abap

ABAP alv输出的方式

匿名 (未验证) 提交于 2019-12-02 23:47:01
'REUSE_ALV_GRID_DISPLAY_LVC' CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_callback_program = sy-repid is_layout_lvc = gs_layout it_fieldcat_lvc = gt_fieldcat[] * i_grid_settings = ls_glay i_callback_pf_status_set = 'FM_SET_STATUS' i_callback_user_command = 'FRM_UCOMM' i_default = 'X' i_save = 'A' it_excluding = it_exclude it_event_exit = gt_event_exit[] * i_grid_title = r_title is_variant = gs_alv_variant TABLES t_outtab = gt_out EXCEPTIONS program_error = 1 OTHERS = 2. 'REUSE_ALV_GRID_DISPLAY' CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING* I_INTERFACE_CHECK = ' '* I_BYPASSING

abap alv双击事件

匿名 (未验证) 提交于 2019-12-02 23:42:01
TABLES:MARA. TYPE-POOLS: SLIS. SELECT-OPTIONS:MATNR FOR MARA-MATNR OBLIGATORY. DATA:LT_MARA TYPE TABLE OF MARA WITH HEADER LINE, FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE, LAYOUT TYPE SLIS_LAYOUT_ALV, W_REPID LIKE SY-REPID. START-OF-SELECTION. SELECT * FROM MARA INTO TABLE LT_MARA WHERE MATNR IN MATNR. W_REPID = SY-REPID. 定义热键显示字段,使双击事件有效 FIELDCAT-REF_TABNAME = ‘LT_MARA’. FIELDCAT-FIELDNAME = ‘MATNR’. FIELDCAT-HOTSPOT = ‘X’. APPEND FIELDCAT. CALL FUNCTION ‘REUSE_ALV_GRID_DISPLAY’ EXPORTING I_CALLBACK_PROGRAM = W_REPID "定义回执程序 IS_LAYOUT = LAYOUT I_STRUCTURE_NAME = ‘MARA’ I_CALLBACK

ABAP WDA

匿名 (未验证) 提交于 2019-12-02 23:03:14
一、 2 0181217-20181226笔记 二、 相关服务 1、 事务码: SICF 默认 SERVICE, 执行。 Service: default_host/sap/option/* default_host/sap/public/bc/* default_host/sap/bc/wdvd default_host/sap/bc/webdynpro/* 2 、 在应用 WEBDYNPRO 之前,首先要将你的 APPLICATION SERVER 中的 FQDN 配置好,也就是说您的 WS 必须是 Full Qualified Domain Name, 如: hostname.companyname.com 这种形式,任何以 IP 地址或者机器名称为命名 的 URL 地址都不能正常访问 WEBDYNPRO ,因此在开始开发 WEBDYNPRO 之前,首先我们要和 BASIS 确认服务器是 Full Qualified Domain Name 即 FQDN 。 三、 界面、元素介绍 1.ELEMENTS: Context 上下文的参数 添加元素 添加单个元素 按上下文添加 展示文本 删除 按钮 可折叠块 文本输入框 ) 说明文本 ) 表控制 VIEW_CONTAINER_UIELEMENT 视图组建控制器(一般用来放 ALV 、 SELECT_OPTIONS 或其他组建) 2

ABAP POP消息框

匿名 (未验证) 提交于 2019-12-02 23:00:14
POPUP_TO_CONFIRM_STEP Yes, No or Cancel(J,N,A) POPUP_TO_CONFIRM_WITH_MESSAGE Yes, No or Cancel(J,N,A) POPUP_TO_CONFIRM_WITH_VALUE Yes, No or Cancel(J,N,A) POPUP_TO_CONFIRM_LOSS_OF_DATA(数据将会丢失) two-line question W Message Yes, No (J,N) 文章来源: ABAP POP消息框

ABAP - ALV delete selected row

余生长醉 提交于 2019-12-02 19:01:14
问题 I'm new to abap and I did not found a solution on the internet, that worked for me. So. I have a table, that is displayed with alv. I made a custom button in the Toolbar. Whenever the button is pressed, I want to delete the selected row. Now there's just a message showing up (so I could see if the custom button is working). Here's my code: METHOD on_user_command. CASE e_salv_function. WHEN 'MYFUNC1'. MESSAGE i301(z_global) WITH 'Function 1'. *Right here the row should be deleted. WHEN

Make math operations on a grouped table

一笑奈何 提交于 2019-12-02 15:08:50
问题 My problem is not in a real programming Language. I have an exercise in ABAP Language but is not very important the language. Anyway, I have a table: I need to make the total cost of the position(after the select obviously). Then, the table will be grouped by two fields (MATNR and BUKRS), so I need to know for each Group the total cost MAX, the total cost MIN and the total cost AVERAGE of the positions. However I need a simple algorithm to solve this problem (pseudo-code). I hope I was clear.

[ABAP]collect

别来无恙 提交于 2019-12-02 14:38:33
REPORT ZCALCUATOR. TYPES:BEGIN OF TY_TEST, ID(3) TYPE C, DS(3) TYPE C, MENGE TYPE I, END OF TY_TEST. DATA:I_TEST TYPE TABLE OF TY_TEST, W_TEST TYPE TY_TEST. DATA:I_TEST2 TYPE TABLE OF TY_TEST. W_TEST-ID = '001'. W_TEST-MENGE = 10. W_TEST-DS = '123'. APPEND W_TEST TO I_TEST. W_TEST-ID = '001'. W_TEST-MENGE = 70. W_TEST-DS = '123'. APPEND W_TEST TO I_TEST. W_TEST-ID = '002'. W_TEST-MENGE = 20. W_TEST-DS = '1'. APPEND W_TEST TO I_TEST. W_TEST-ID = '002'. W_TEST-MENGE = 50. W_TEST-DS = '1'. APPEND W_TEST TO I_TEST. W_TEST-ID = '002'. W_TEST-MENGE = 80. W_TEST-DS = '3'. APPEND W_TEST TO I_TEST. W

Helicopterview of ABAP [closed]

一个人想着一个人 提交于 2019-12-02 14:17:12
I don't know a thing about ABAP, apart from it has an OO side, and I would like to have some kind of helicopterview of it before I start to look at it in detail. I know I can find all of this when studying it , but like I said for starters I like to know what I am dealing with. Is it (always) compiled? Typestem : Is it strongly typed? Does it use type inference? Inheritance : single / muliple, interface-like structures ? Collections : Has it collections apart from arrays ? Has it generic collections? Does it use List comprehension ? How about (con/contra/in)variance in arrays, returntypes,

What are ABAP and SAP?

本小妞迷上赌 提交于 2019-12-02 13:57:30
What are SAP and ABAP? I searched and got a bunch of different acronyms that don't quite make sense. Is SAP a database engine? Is ABAP a programming language? Or are they nothing of that nature? What are they primarily used for? Jé Queue SAP is a full Enterprise Resource Planning (ERP) system and business platform. SAP is the company, that produces the business platform and the associated modules (financials, general ledger, &c). ABAP is the primary programming language used to write SAP software and customizations. It would do it injustice to think of it as COBOL and SQL on steroids, but that