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

BAPI_OUTB_DELIVERY_CHANGE not change gross weight in item line( lips-brgew)

Hi experts,

I need to modify the field LIPS-BRGEW and I using BAPI_OUTB_DELIVERY_CHANGE. I get to change the LIKP-BTGEW but never in position (LIPS).

I did all combinations with GROSS_WT_FLG, CHG_DELQTY parameters in HEAD table and ITEM table but I not get to change the gross weight in item line (LIPS). I think the problem could be in this parameters but I can not find a solution.

Could somebody explain to me how to work this parameters ?

I appreciate any comments.

this is the code I using:

ITEM_DATA-DELIV_NUMB = DELIV_NUMB.

ITEM_DATA-DELIV_ITEM = POSNR.

ITEM_DATA-MATERIAL = mATNR.

ITEM_DATA-BATCH = CHARG.

ITEM_DATA-HIERARITEM = UECHA.

ITEM_DATA-NET_WEIGHT = NTGEW.

ITEM_DATA-GROSS_WT = BTGEW.

ITEM_DATA-UNIT_OF_WT = 'KG'.

*

ITEM_CONTROL-DELIV_NUMB = P_ENTREGA.

ITEM_CONTROL-DELIV_ITEM = LIPS-POSNR.

ITEM_CONTROL-CHG_DELQTY = 'X'.

*

  • ITEM_CONTROL-GROSS_WT_FLG = 'X'.

  • ITEM_CONTROL-NET_WT_FLG = 'X'.

APPEND ITEM_DATA. CLEAR ITEM_DATA.

APPEND ITEM_CONTROL. CLEAR ITEM_CONTROL.

HEADER_DATA-DELIV_NUMB = DELIV_NUMB.

HEADER_DATA-GROSS_WT = TOTAL.

HEADER_DATA-UNIT_OF_WT = 'KG'.

HEADER_CONTROL-DELIV_NUMB = DELIV_NUMB.

HEADER_CONTROL-GROSS_WT_FLG = 'X'.

DELIVERY = DELIV_NUMB.

CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'

EXPORTING

HEADER_DATA = HEADER_DATA

HEADER_CONTROL = HEADER_CONTROL

DELIVERY = DELIVERY

TABLES

HEADER_PARTNER = ITEM_PARTNER

ITEM_DATA = ITEM_DATA

ITEM_CONTROL = ITEM_CONTROL

RETURN = RETURN.

thanks for your help.

Manuel.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2011 at 02:36 AM

    Hi ,

    i assume you are calling "Commit work " after that BAPI ( if no errors ) , if not you need to add that command....

    and you need to flag these filed if any changes to volume,net weight or gross weight....

    VOLUME_FLG  = 'X".  
    NET_WT_FLG  = 'X'.   
    GROSS_WT_FLG = 'X'.
    

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Arhggggg!!!

      You are right, Prabhu. The bapi had a error and I didn't check it. What a stupid error!

      The bapi is working only part, maybe is the reason because only update the header data.

      The error is in item_partner table. I have just to comment this line and the bapi work perfect.

      thanks for your help.

      Manuel.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.