Skip to Content

Add custom line item in va01 tcode automatically

Hi Expert ,

I have a requirement when create sales order user want to get the line item data based on some condition.That's mean user do not fill the line item data manualy. It will fill automatically .Actually the line item is a table control

Please help me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2013 at 10:45 AM

    Well Palash,

    There is only 1 place where you can achieve this to my knowledge...

    MV45AFZZ.

    In

    • USEREXIT_MOVE_FIELD_TO_VBAK


    append the XVBAP[] table with the entry you want... I am not sure if it will work but you can give it a try as I have never worked on this kind of requirement.

    Also be sure to create a Flag in memory once you have added the entry use IMPORT / EXPORT.

    First Import if you get the value that means you have already added an entry in VBAP so skip it. else process and export the value in memory so it reads in next import.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2013 at 09:30 AM

    Please elaborate your condition for filling the line item automatically if possible, meanwhile u can search for any BADI's which will serve your purpose.

    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.