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 MESSAGE IN UPLOAD PROG

Former Member
0 Likes
290

Hi,

I had some problem in displaying the error message in the below code.pls help me to check the code and correct for me.

DATA : BEGIN OF I_RETURN OCCURS 0.

INCLUDE STRUCTURE DATA_TAB.

DATA : EBELN LIKE I_EKKO-EBELN.

DATA : MESSAGE LIKE RETURN-MESSAGE.

DATA : END OF I_RETURN.

IF SY-SUBRC = 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = C_X

  • IMPORTING

  • RETURN =

.

ENDIF.

                    • TO GET THE PO NUMBER *************

SELECT EBELN FROM EKKO INTO TABLE I_EKKO

WHERE BSART EQ DATA_TAB-BSART

AND LIFNR EQ DATA_TAB-LIFNR

AND EKORG EQ DATA_TAB-EKORG

AND EKGRP EQ DATA_TAB-EKGRP.

LOOP AT I_EKKO.

MOVE I_EKKO-EBELN TO I_RETURN-EBELN.

APPEND I_RETURN.

CLEAR I_RETURN.

ENDLOOP.

LOOP AT RETURN.

MOVE-CORRESPONDING RETURN TO I_RETURN.

MOVE-CORRESPONDING DATA_TAB TO I_RETURN.

APPEND I_RETURN.

CLEAR I_RETURN.

ENDLOOP.

the i_return will pass in to the alv for display.

Thanks,

Raj.

1 REPLY 1
Read only

Former Member
0 Likes
255

solved