Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Weight/ volume in delivery document from MARA

Dear Friends,

I want to change the weight determination in the delivery document. In the standard system weight/ volume is taken from the sales document, but I want to pick weight/ volume to the delivery document from the material master (MARA) instead.

I tried with a data transfer routine in copy control, (Sales doc to delivery - item category level) as below, but it doesnu2019t work. System overrides the weight determined with this function with a subsequent program.

* Weight
*  lips-ntgew = cvbap-ntgew.
*  lips-brgew = cvbap-brgew.

  DATA  :   LV_BRGEW TYPE MARA-BRGEW.
  DATA  :   LV_NTGEW TYPE MARA-NTGEW.
  DATA  :   LV_VOLUM TYPE MARA-VOLUM.

  SELECT  SINGLE BRGEW NTGEW VOLUM
    FROM  MARA
    INTO  (LV_BRGEW, LV_NTGEW, LV_VOLUM)
    WHERE MATNR EQ CVBAP-MATNR.

  LIPS-NTGEW = LV_NTGEW * CVBAP-KWMENG.
  LIPS-BRGEW = LV_BRGEW * CVBAP-KWMENG.
  LIPS-VOLUM = LV_VOLUM * CVBAP-KWMENG.

Please provide a solution for above requirement. Thanks in advance for all answers!

Regards,

Nelson

Former Member
Not what you were looking for? View more on this topic or Ask a question