Automate

 View Only
Expand all | Collapse all

Solution for updating delivery header del. priority and shipping instructions inconsistency issue - help please

  • 1.  Solution for updating delivery header del. priority and shipping instructions inconsistency issue - help please

    Posted 09-12-2025 09:39

    I have created a solution for updating 2 fields in the delivery header, delivery priority field (LIKP-LPRIO) which must be sent via idoc and only when updated along with shipping instructions text (VBBK-0012) is the idoc triggered. Issue is when this solution runs I am facing an issue if texts already exists in this field. If no text exists then solution runs fine but if text exists it is updating the 'Internal Note (printed)' VBBK-9001 instead.

    Any advice how to create this simple solution with a single field update and texts which will consistently update the right text field?

    I have attempted to chain solutions however if not sent at the same time then idoc is not sent with DP change...

    Thanks!



    ------------------------------
    Amy Southern
    Application Manager
    Yara International Asa
    ------------------------------


  • 2.  RE: Solution for updating delivery header del. priority and shipping instructions inconsistency issue - help please

    Employee
    Posted 09-15-2025 17:59

    Hi Amy

    Since we don't support long text via the Function Module for that tcode, I found a BAPI. 

    The header portion includes values in Header_Data and then upload the delivery # again for Header_Control and put an "X" in the fields you want to update - I selected priority.

    I had to play around with the input fields for the text, and it turns out the fields have to be selected in two places - Text_Header and Text_Lines.  

    I have it hard coded in my system for text id as 0002 which is Header Note 1, but you can find the text  by going into your delivery and selecting the text you want to create. then double click in the open window to get to the line editor. Once in the line editor click Goto and then Header in the top menu and see something like this:

    I also hard coded the language but you can map both the language and Text ID and then use a lookup to find a value.

    One final note - I created this in S4 2023. I noticed in ECC that long text wasn't in the bapi. Since you didn't specify, I picked the system I use the most often.

    I've attached an example. Hope this gives you an option.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------