abap

LOOP AT… GROUP BY with dynamic group key

让人想犯罪 __ 提交于 2020-08-19 14:08:51
问题 I am trying to loop by grouping data with dynamic group parameter. We can use dynamic queries on WHERE conditions on loops but I do not know whether it is possible to use a dynamic string in group condition. Here is the sample where user decides by which field to group and then put additional logic based on the decision: DATA query TYPE string. IF i_condition_type = 'ERNAM'. query = |ERNAM = MARA-ERNAM|. ELSE. query = |ERSDA = MARA-ERSDA|. ENDIF. LOOP AT lt_mara INTO DATA(mara) GROUP BY (

LOOP AT… GROUP BY with dynamic group key

╄→гoц情女王★ 提交于 2020-08-19 14:02:41
问题 I am trying to loop by grouping data with dynamic group parameter. We can use dynamic queries on WHERE conditions on loops but I do not know whether it is possible to use a dynamic string in group condition. Here is the sample where user decides by which field to group and then put additional logic based on the decision: DATA query TYPE string. IF i_condition_type = 'ERNAM'. query = |ERNAM = MARA-ERNAM|. ELSE. query = |ERSDA = MARA-ERSDA|. ENDIF. LOOP AT lt_mara INTO DATA(mara) GROUP BY (

Accessing stack memory of RFC-called system

别等时光非礼了梦想. 提交于 2020-08-19 08:43:59
问题 When a program is running in SAP ECC, the "system stack" stores all global variable irrespective of what modules/programs are called in that single session. When it's calling RFC-enabled Function Modules (FM), a new system stack is created in the called system and only the export parameters defined in the called FM can be retrieved in ECC when the called FM has finished. Is there a way to access another system stack's global variables in ABAP? For example, in my case: The FM BAPI_MATERIAL

Accessing stack memory of RFC-called system

最后都变了- 提交于 2020-08-19 08:42:34
问题 When a program is running in SAP ECC, the "system stack" stores all global variable irrespective of what modules/programs are called in that single session. When it's calling RFC-enabled Function Modules (FM), a new system stack is created in the called system and only the export parameters defined in the called FM can be retrieved in ECC when the called FM has finished. Is there a way to access another system stack's global variables in ABAP? For example, in my case: The FM BAPI_MATERIAL

Accessing stack memory of RFC-called system

爷,独闯天下 提交于 2020-08-19 08:42:04
问题 When a program is running in SAP ECC, the "system stack" stores all global variable irrespective of what modules/programs are called in that single session. When it's calling RFC-enabled Function Modules (FM), a new system stack is created in the called system and only the export parameters defined in the called FM can be retrieved in ECC when the called FM has finished. Is there a way to access another system stack's global variables in ABAP? For example, in my case: The FM BAPI_MATERIAL

To get total and subtotal without loop in new abap

余生颓废 提交于 2020-07-22 09:20:26
问题 I am starting learning the new abap. But i have problems. I want to make result output as below without using "LOOP" and "AT" statements. I have internal table like: Category Amount AAA 10 AAA 20 BBB 30 CCC 40 CCC 50 CCC 60 I need to display output as: Category Amount AAA 10 AAA 20 SUBTOTAL 30 BBB 30 SUBTOTAL 30 CCC 40 CCC 50 CCC 60 SUBTOTAL 150 TOTAL 210 Can anyone help with this? 回答1: If your question is about how to build an internal table (in memory) with constructor expressions (ABAP >=

No option to submit and retrieve SAP UI5 application in ABAP Repository

杀马特。学长 韩版系。学妹 提交于 2020-07-14 12:23:32
问题 I got an issue regarding submitting and retrieving SAP UI5 applications. Usually I would create my UI5 project and submit it by right clicking on project and then TEAMS->Share-> then I share my project to ABAP repository. Unfortunately Eclipse won't show me any connections and it shows when I resize the window as showing in first two images(image: error1 and error2). and no repositories are show in eclipse as well(image : error3) I am using Eclipse IDE for Enterprise Java Developers. Version:

No option to submit and retrieve SAP UI5 application in ABAP Repository

安稳与你 提交于 2020-07-14 12:23:12
问题 I got an issue regarding submitting and retrieving SAP UI5 applications. Usually I would create my UI5 project and submit it by right clicking on project and then TEAMS->Share-> then I share my project to ABAP repository. Unfortunately Eclipse won't show me any connections and it shows when I resize the window as showing in first two images(image: error1 and error2). and no repositories are show in eclipse as well(image : error3) I am using Eclipse IDE for Enterprise Java Developers. Version: