Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Waiting for your comments on this code

Former Member
0 Likes
438

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
411

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 screens

then you could watch the steps as it executes.

2 REPLIES 2
Read only

Former Member
0 Likes
411

The code is about batch input.

Is everyone at vacation:)

I wait for your explanations...

Read only

Former Member
0 Likes
412

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 screens

then you could watch the steps as it executes.