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

Copy data from VBAK to LIKP during delivery creation

Hi Experts,

There is a custom field ZZLATESTDATE in the table VBAK. This is entered during sale order creation on the screen in the Additional Data tab of VA01 transaction.

Now when I create a delivery with ref to this sale order, and save it, I want to copy this field VBAK-ZZLATESTDATE to LIKP-ZZLATESTDATE. This needs to be done automatically, through a user-exit or any other enhancement available. I dont want to populate it on the delivery screen. I just want to save it in the delivery header table LIKP. How do I go about it?

Appreciate your help. 😊

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 19, 2012 at 02:00 PM

    Where have you looked for available exits so far?

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 19, 2012 at 03:20 PM

    Hi

    First of all, you need that the copy relation will be 1 to 1, ie, don't merge two or more SO in one delivery. For this, check in VTLA the field or VOFM that you set in Combination Requirement.

    Second, in tcode VTLA check in copy rules for the type SO to delivery. So, in VTLA in the field Header Data in transfers, create a copy of VOFM 001 (for instance 901) using VOFM 001 as a template and add this line.

      LIKP-ZZLATESTDATE = CVBAK-ZZLATESTDATE.
    

    See Note 327220 - VOFM function and its objects for further information related with VOFM.

    I hope this help you

    Regards

    Eduardo

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 20, 2012 at 01:15 AM

    You can use the BADI LE_SHP_DELIVERY_PROC and create its implementation to resolve your purpose.

    The method which can be used is FILL_DELIVERY_HEADER.

    You can read the Sales order number from LIPS-VGBEL, query the VBAK table for your custom field and pass it over to the LIKP header field.

    Regards,

    Abhishek

    Add a comment
    10|10000 characters needed characters exceeded

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.