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

Error in Call Transaction

Former Member
0 Likes
731

Hi,

Let me know why this issue is coming.

I'M doing a bdc using call transaction and want to catch the error messages and throw back as alvoutput.

my code is

PERFORM bdc_dynpro using 'X' 'SAPMV50A' '0101' '' ''.

PERFORM bdc_dynpro using 'X' 'SAPMV50A' '4004' '' ''.

PERFORM bdc_dynpro using '' '' '' 'LIKP-VBELN' wa_likp-vbeln.

PERFORM bdc_dynpro using '' '' '' 'BDC_OKCODE' 'WABU_T'.

CALL TRANSACTION 'VL02N'

USING itab_bdcdata

MODE lv_tmpmode

UPDATE 'S'

MESSAGES INTO itab_messages.

IF sy-subrc NE 0.

PERFORM messages.

ENDIF.

what the message that i'm getting in itab_messages is "

Start screen does not exist in batch input data".

please let me know why this error is coming.

--sudha

1 ACCEPTED SOLUTION
Read only

0 Likes
678

Hi,

no need to call the screen num 101.

4004 is the first screen number of the transaction code vl02n.

regards.

sriram.

Hi,

no need to call the screen num 101.

4004 is the first screen number of the transaction code vl02n.

regards.

sriram.

3 REPLIES 3
Read only

Former Member
0 Likes
678

Hi,

what is the need of calling screen '0101'. For vl02n the main screen is '4004'.

remove the below perform from the code and check it.

PERFORM bdc_dynpro using 'X' 'SAPMV50A' '0101' '' ''.

even if you get the error, run it in foreground then you will better understand the error.

Read only

Former Member
0 Likes
678

Hi Sudha,

You have called a dummy screen first, the first screen in the VL02N transaction is 4004. Remove the first perform and check, then you will not have a problem.

Thanks,

Mahesh.

Read only

0 Likes
679

Hi,

no need to call the screen num 101.

4004 is the first screen number of the transaction code vl02n.

regards.

sriram.