HI all,
I am using BAPI_PO_CHANGE to change the Quantity and Item text of PO items .
The following is the function call :
Loop at loop at z_i_item assigning <z_f_item>. call function 'BAPI_PO_CHANGE' exporting purchaseorder = <z_f_item>-ebeln tables return = z_i_return poitem = z_i_poitem poitemx = z_i_poitemx poschedule = z_i_posch poschedulex = z_i_poschx potextitem = z_i_itemtxt . Endloop.
Am filling all the internal tables in the " tables parameter " for every loop of z_i_item.
But it throws a short dump as soon as the BAPI is executed .
" The current ABAP "SAPLMEPO" program had to be terminated because the
ABAP processor detected an internal system error.
When exporting the structure description, the structure
components overlapped. The error occured in the
description of the object "XEKPO". "
Hi
You can change the approach to get the better pefromance.
try as below:
Loop at item table.
Move all the related items of PO into another ITAB.
Use AT END of EBELN and call the BAPI pass EBELN and ITAB and use commit.
The above will have better performance.
if you wish continue the current appraoch then,
Put some wait after iteration and also use comit based on the return of SY-SUBRC.
Use WAIT UPTO 2 SECONDS. (please check correct stmt)
Regards
Shiva
Add a comment