Skip to Content
author's profile photo Former Member
Former Member

Short dump in BAPI_PO_CHANGE

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". "

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 23, 2009 at 06:52 AM

    hi,

    once have a check that ur datatype assigns are stable inthe sense ur data has the datatype expected and ensure all mandatory fields are passed

    shiva

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 23, 2009 at 06:53 AM

    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 comment
    10|10000 characters needed characters exceeded