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

no msg return in Call Transaction

Former Member
0 Likes
801

Hi,

I´ve a problem with a CALL TRANSACTION.

When I call the transaction VA02 to Update a Sales order; I´ve no message return. The table i_messg is empty.

Its very strange.

Regards

Copy the code:

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '0102',

' ' 'BDC_OKCODE' '/00',

' ' 'VBAK-VBELN' sales_number.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '4001',

' ' 'BDC_OKCODE' '=UALL'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '4001',

' ' 'BDC_OKCODE' '=POPO'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '0251',

' ' 'BDC_OKCODE' '=POSI',

' ' 'RV45A-POSNR' '10'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '4001',

' ' 'BDC_OKCODE' '=PKO1',

' ' 'RV45A-VBAP_SELKZ(01)' 'X'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '5003',

' ' 'BDC_OKCODE' '=V69A_KONY'.

PERFORM f_dynpro USING:

'X' 'SAPMSSY0' '0120',

' ' 'BDC_OKCODE' '=PICK',

' ' 'BDC_CURSOR' '05/03'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '5003',

' ' 'BDC_OKCODE' '=V69A_KOAN'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '5003',

' ' 'BDC_OKCODE' '/00',

' ' 'KOMV-KSCHL(02)' cond_type,

' ' 'KOMV-KBETR(02)' cond_val.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '5003',

' ' 'BDC_OKCODE' '/EBACK'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '4001',

' ' 'BDC_OKCODE' '=SICH'.

CALL TRANSACTION 'VA02'

USING i_batch

MODE modo

MESSAGES INTO i_messg.

Hi,

I´ve a problem with a CALL TRANSACTION.

When I call the transaction VA02 to Update a Sales order; I´ve no message return. The table i_messg is empty.

Its very strange.

Regards

Copy the code:

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '0102',

' ' 'BDC_OKCODE' '/00',

' ' 'VBAK-VBELN' sales_number.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '4001',

' ' 'BDC_OKCODE' '=UALL'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '4001',

' ' 'BDC_OKCODE' '=POPO'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '0251',

' ' 'BDC_OKCODE' '=POSI',

' ' 'RV45A-POSNR' '10'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '4001',

' ' 'BDC_OKCODE' '=PKO1',

' ' 'RV45A-VBAP_SELKZ(01)' 'X'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '5003',

' ' 'BDC_OKCODE' '=V69A_KONY'.

PERFORM f_dynpro USING:

'X' 'SAPMSSY0' '0120',

' ' 'BDC_OKCODE' '=PICK',

' ' 'BDC_CURSOR' '05/03'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '5003',

' ' 'BDC_OKCODE' '=V69A_KOAN'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '5003',

' ' 'BDC_OKCODE' '/00',

' ' 'KOMV-KSCHL(02)' cond_type,

' ' 'KOMV-KBETR(02)' cond_val.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '5003',

' ' 'BDC_OKCODE' '/EBACK'.

PERFORM f_dynpro USING:

'X' 'SAPMV45A' '4001',

' ' 'BDC_OKCODE' '=SICH'.

CALL TRANSACTION 'VA02'

USING i_batch

MODE modo

MESSAGES INTO i_messg.

4 REPLIES 4
Read only

Former Member
0 Likes
743

Are you looping through the table or just looking at the table header line. There probably won't be anything in the header.

Rob

Read only

Former Member
0 Likes
743

Loop through the i_messg.

And format the message using the function module FORMAT_MESSAGE and then display..

Hope it helps.

<b><REMOVED BY MODERATOR></b>

Thanks,

Srinivas

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
743

All values I pass are ok, I checked it....and the table message return is empty..

Thanks boths.

Read only

0 Likes
743

What is the code after the call transaction? How are you actually handling the message table?

Rob