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

new fields in sales order

Hi

I need to add 2 new fields in sales order header 1. P.O Ammendment number and 2. P.O Ammendement Date and these 2 fields should also be printed on the invoice ?

Please guide me how to map these scenarios?

regards

rithvi

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 11, 2008 at 05:43 AM

    Hi,

    Herewith are the guidance for adding new fields in sales order:

    1. Choose the table VBAP or VBAK ( depending on header or item)

    2. click on button "append Structures" and it will propose you the standard name for the table ZAVBAP or ZAVBAK

    3. Add fields with prefix ZZ

    4. Go to TCode SE51 maintain user exit screens in program SAPMV45A

    - 8459 user exit item level

    - 8309 user exit header level

    Here you can then design your own layout. and define your flow logic

    PBO modules MV45AOZZ

    PAI modules MV45AIZZ

    Data definitions MV45ATZZ

    Subroutines in MV45AFZZ

    As for display them in the invoice document, just select these fields from VBAP or VBAK accordingly.

    Hope this help.

    Cheers.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 11, 2008 at 05:44 AM

    Hi

    I think to assign values to new fields at the header/item level in sales order by using the followig user exits:

    USEREXIT_MOVE_FIELD_TO_VBAK

    Use this user exit to assign values to new fields at sales document header level. The user exit is called up at the end of the FORM routine VBAK_FUELLEN.

    USEREXIT_MOVE_FIELD_TO_VBAP

    Use this user exit to assign values to new fields at sales document item level. The user exit is called up at the end of the FORM routine VBAP_FUELLEN.

    Regards,

    Satya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 11, 2008 at 05:53 AM

    Dear Rithvika,

    [Sales Order - New Fields|add-new-field-to-the-screen]

    Once included the fields in Sales Order (under Tab: Additional Data A/ Additional Data B); include these two fields in to Invoice-SmartForm, for Printing.

    Best Regards,

    Amit

    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.