Automate

 View Only
  • 1.  BAPI_PO_CHANGE line item deletion error.

    Posted 09-10-2021 00:59
    hello,

    need one help with how to delete PO line item with bapi.
    attached is my attempt files. please advise.
    thanks.

    ------------------------------
    suthagar
    ------------------------------

    Attachment(s)



  • 2.  RE: BAPI_PO_CHANGE line item deletion error.

    Employee
    Posted 09-10-2021 10:38
    Hi Suthagar,

    You had the gist of it, but there were several things to update.  The most important part was mapping the item number in both POITEM and POITEMX - see all below


    the single loop simplifies it
    you MUST map the item number of POITEM and POITEMX - you can map to the same column
    set Delete_IND in ITEMX  to X and make it fixed
    no need for PO Header - unless you're changing something there
    ensure you check commit required on the workspace tab

    no need to zero pad either the PO number nor the item number field - the default is zero pad, but that may not be a factor

    my run results

    HTH
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------

    Attachment(s)