sap

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