02-14-2011 9:06 AM
Hi,
Im using below code to load Operations in IW32, my problem is , it is updating 1st operation from file but when it comes to 2nd operation it is giving error message as already exists, can any body help me on this ?
IF IT_OPERATION IS NOT INITIAL.
call function 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = it_methods
it_operation = it_operation
return = i_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
DATA: TEXT(200) TYPE C.
clear wa_return.
LOOP AT I_RETURN INTO WA_RETURN.
IF WA_RETURN-TYPE ='E'.
CONCATENATE SOURCE-AUFNR '|' SOURCE-VORNR '|'WA_RETURN-MESSAGE
INTO TEXT.
WRITE:/ TEXT.
ENDIF.
ENDLOOP.
ENDIF.
02-14-2011 12:38 PM
Hi,
please watch the content of your internal tables IT_METHODS and IT_OPERATION for remaining data in 2nd Operation!
Maybe there is a missing refresh ...
Regards,
Klaus
Edited by: Klaus Babl on Feb 14, 2011 1:38 PM
02-14-2011 12:21 PM
Not sure about the values mapped in the structure but first i would say to pass WAIT = 'X' to bapi_transaction_commit and check it.
02-14-2011 12:38 PM
Hi,
please watch the content of your internal tables IT_METHODS and IT_OPERATION for remaining data in 2nd Operation!
Maybe there is a missing refresh ...
Regards,
Klaus
Edited by: Klaus Babl on Feb 14, 2011 1:38 PM