2007 Nov 05 8:31 PM
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.
2007 Nov 05 9:06 PM
Are you looping through the table or just looking at the table header line. There probably won't be anything in the header.
Rob
2007 Nov 05 9:48 PM
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
2007 Nov 05 10:17 PM
All values I pass are ok, I checked it....and the table message return is empty..
Thanks boths.
2007 Nov 05 10:27 PM
What is the code after the call transaction? How are you actually handling the message table?
Rob