‎2007 Aug 02 7:55 AM
Hi all.
What does the following code segment do?
Thanks in advance.
DATA: BDCDATA TYPE TABLE OF BDCDATA.
DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
DATA: PROGRAM LIKE SY-REPID,
WA_BDCDATA TYPE BDCDATA.
WA_BDCDATA-PROGRAM = 'SAPMS38M'.
WA_BDCDATA-DYNPRO = '0100'.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'RS38M-PROGRAMM'.
WA_BDCDATA-FVAL = PROGRAM.
APPEND WA_BDCDATA TO BDCDATA.
...
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'N'
MESSAGES INTO ITAB.
‎2007 Aug 02 8:36 AM
There isn't enough code there to determine exactly what it will do... it is calling the SE38 (ABAP editor) transaction, and has fed in the program name into the first screen... but there is no BDC OKcode specified at that point so it would go nowhere (unless there is more logic that you have not provided).
If you change
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'N'to
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'A' "all screensthen you could watch the steps as it executes.
‎2007 Aug 02 8:04 AM
The code is about batch input.
Is everyone at vacation:)
I wait for your explanations...
‎2007 Aug 02 8:36 AM
There isn't enough code there to determine exactly what it will do... it is calling the SE38 (ABAP editor) transaction, and has fed in the program name into the first screen... but there is no BDC OKcode specified at that point so it would go nowhere (unless there is more logic that you have not provided).
If you change
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'N'to
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'A' "all screensthen you could watch the steps as it executes.