How to add a field in sales order header

Hi all,
I need to add a custom field say a check box in sales order header in additional data B tab.
let me know step by step.
Points will be rewarded.
Thanks.
Ramya

additional data B in sales order
sales order - Additional data B
Add new fields to Additional Data B tab in sales order
Reward Points..

Similar Messages

  • How to add three fields in Sales order item level and supress/hide many

    Hi Gurus,
    My client requirement is :
    1. Three fields to be added at Sales order Item level and they should flow till billing.
    2. Supress/hide most of the fields in Sales order, so that end user will be happy( thru SHDO how to do)
    Please share your experiences and help me.
    BEST REGARDS
    Srikanth

    Hi Subba Rao
    in VA01 screen - Material /qty/ after entering this client wants to enter three more details say X/Y/Z
    and after that he dont want to see maximum fields displayed in VA01 Screen.
    I think it makes sense.
    Regards
    Srikanth

  • How to add a field in sales order

    Dear All,
    First I created a ZTable in which there are 15 fields exist then I append structure in ZVBAP which contain only one field from this ZTable. Now I place this field in the Subscreen 8459 of Sales Order under "Additional Data B" by using access key. Also i have Access to edit the module MV45AFZZ.
    Then I wote the code in the
    FORM userexit_save_document_prepare.
    IF XVBAP-ZZSPENR = ''.
    MESSAGE 'SPECIFICATION NO. IS NOT SPECIFIED' TYPE 'E'.
    ELSE.
    VBAP-ZZSPENR = ZSPEC-ZSPENR.
    ENDIF.
    ENDFORM.    
    so that while saving it Checks that field in screen and then if it has value then save it to in the VBAP Table.
    I think I have to write the code into the module
    FORM userexit_move_field_to_vbap.
    VBAP-zzfield = xxxx-zzfield2.
    *{   INSERT         ID3K908846                                        1
      DATA: zlgort LIKE vbap-lgort.
      IF vbap-pstyv EQ 'ZWP'.
        CHECK vbap-lgort IS INITIAL.
        GET PARAMETER ID 'LAG' FIELD zlgort.
        vbap-lgort = zlgort.
      ENDIF.
    *}   INSERT
    WA_XVBAP-ZZSPENR = xvbap-zzspenr.  "but this line gives * me error cause I have to move the screen fields into  * the VBAP Table. So that after this it checks in internal table XVBAP that the field ZZSPENR has value or not ?
    ENDFORM.
    But when I checks XVBAP TAble it shows all entries that I fill in Sales Order except ZZSPENR (My  Field)
    Thanks in advance.
    Regards.
    Adams.
    Helpful answer will be appretiated.

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • Assignment number Field in sales order header

    Hi All,
    Can anyone let me know the ORDERS05 IDoc segment that corresponds to the Assignment number field in sales order header Accounting tab?
    I need to specify the assignment number while creating a new order through IDoc.
    Thanks.
    Regards,
    Riyaz

    Hi,
    Use transaction we60 to find the relevant documentation for your idoc type.
    regards,
    Jakub

  • How to get Changed fields in Sales order to create a report

    Dear Gurus,
    How to get the log from sales order for the change of particular field.
    In my scenario, If an user remove the delivery block from sales order I want to capture the date on which this delivery block
    is removed and by whom (User)?
    I know that I can get the log of change but can I get in the form of field updates because further I want to use that date and user name to create a report.
    I hope u got my query. Please reply soon that I can create a report.
    Thanks in advance.
    regards,
    Sanjay

    Hi
    You can use the table CDPOS for tracking the changes at the Table level with the Sales order number
    or Else you can also use AUT10 transaction to track the logs/chanages with START DATE, END DATE and the Transaction code in your case it is VA02
    Please check and revert back
    regards,
    santosh

  • How to make a field in sales order a required field

    Hi,
    How do i make a certain field in sales order a required field. I want to make the assignment field in accounting tab a required field. How do i configure this.
    Thank you.
    Rachelle

    In you know the Transaction and screen Variant Configurations.
    Use T-code SHD0
    Put your Sales Order t-code There : Va01
    Then Select the feilds or tabs whatever you want as mandatory , optional.
    Customize as per your requirement and save the variant.
    Next GO to the Sales Document types :
    There In the Transaction flow you will find at variant feild.
    Assign this variant there.
    Next when ever you do sales Order for that Document type the feilds will be taken in the fashion of the variant.
    regards,
    SAP SD

  • How to make a field in Sales order as Display

    Hi Friends,
    I want to make the field pricing date in sales order as display only. Currently the field is changeable.
    Can someone please tell me how can i do this.
    Regards,
    Wasim.

    hi
    Follow the below steps.
    T-Code SE51(Screen Painter)
    Give Program Name SAPMV45A (before doing this confirm from the field from sales order, keep curcer on the pricing date press F1 and then select technical details)
    Screen Number 4440(before doing this confirm from the field from sales order, keep curcer on the pricing date press F1 and then select technical details)
    Select Attributes radio button.
    Go to Element list Tab. Inturn select Special Attribute tab in Subscreen.
    For Field Name "VBKD-PRSDT" make Input as "OUTPUT" (DISPLAY).
    Hope this will help you

  • How to add line item to sales order item table?

    Kindly help me the with the below requirement .
    Add line item to sales order(va01) dynamically on click of button. The button is also custom created push button.
    In the above requirement I have added the pushbutton to va01 tcode. But when I click on that button I need to add line item to sales order item table.
    I tried a lot but I am not successful. If possible can u please help on this.
    Regards,
    Rachel

    Hi!
    It's quite easy even in the standard SAP to add a line item for a customer order, I don't think it worth to develop a new button for this.
    However if you wanted to add a line automatically, the you can do the following in the program MV45AFZZ, FORM USEREXIT_SAVE_DOCUMENT.
    You can use similar code, but with some modifications.
    DATA: lv_posnr.
    LOOP AT xvbap.
    MOVE xvbap-posnr TO lv_posnr.   "get the last posnr
    ENDLOOP.
    ADD 10 TO lv_posnr.
    MOVE 'XYZ' TO xvbap-matnr.   "enter your material number here
    MOVE lv_posnr TO xvbap-posnr.
    * fill additinal field data in XVBAP if necessary
    MOVE 'I' TO xvbap-updkz.                  "Insert line
    APPEND xvbap.
    Regards
    Tamá

  • Add new fields to Sales Order

    Hi All,
    I want to add new fields to the Additional Data A of the sales order header and
      and new fields to the Additional Data A of the sales order item. Can anyone please suggest me if there are any user exits or BADI's for this.
    Thanks,
    Nammi.

    Hi Pavan,
    The BADI which could have been used was BADI_SD_TAB_CUST_H but its made for SAP internal use only.
    if you are working on ECC 6. May be you can try implementing this badi as an extension to SAP standard program and see if it works.
    Regards,
    Vikas
    <b>Encourage by rewarding points if useful.</b>
    Message was edited by:
            Vikas Taneja

  • Activate field at sales order header level

    Hi,
    I can see field AUFNR (Order) in sales order header table VBAK. But not able to found same filed in sales order through using t c.code VA01. Where I can see this at header level? How to activate this field if I want to see in sales order?
    Thanks,
    Mohan

    Hi Mohan
    First of all Welcome to SDN forum
    Go to transaction variants using t.code SHD0 and give t.code VA01 and then give the business object as BUS2032 then you will get the programs . select the program and in that and check the AUFNR order feild
    that is as you said that it can be seen in the VBAK table check in this VBAK table ( AUFNR - VBAK) . If that feild is suppressed then make it optional and then save it and then create the sales order and then check the AUFNR feild in VBAK table. It should come in optional mode
    Regards
    Srinath

  • How to create a job card and how to add waranty card in sales order

    I have one scenario for CS.the scenario is realted to automotive industry. Basically its a trading industry of HCV,MCV,LCV apart from that they will do servicing also. First the customer comes for a service.he is having free services. he will have waranty for spare parts of the vehicle. once he comes for servicing first the executive will take complains from the customer after that a Job card will be issued to the customer. there his chasis no ,engine no and registration no will be there. once enter the chasis no entire customer details has to come. how many free services he is having for how many kilo meters.then job card will go to the spare parts dept.that dept will issue the spare parts.then they will invoice the customer. he will pay the payment.and finally the gate pass will be given to the customer to deliver the vehicle.
    painful area is how to create a job card and how to add waranty in sales order.
    Regards,
    Venkat

    Hi,
    Have u resolved it then Please let me know !!! It is a very interesting problem and owuld like to know the solution...
    Regards
    Krishna

  • How to add a button in Sales Order screen?

    Hi,
    Basically I want to add a new button "Show My lookup" in sales order screen and when clicking the button I want to show a form.
    Please anyone tell me how to do this?.
    thanks in advance
    Mina

    Here is a sample ItemEvent that adds a custom button to Sales Order Entry, and loads a form from XML when it is clicked.  Make sure you give the forms unique identifiers when you create them - the sample just uses a hardcoded value.
    Hope it helps,
    John
    Private Sub sboApp_ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)
        On Error GoTo ErrorHandler
        Dim sboForm                 As SAPbouiCOM.Form
        Dim sboItem                 As SAPbouiCOM.Item
        Dim sboBtn                  As SAPbouiCOM.Button
        Dim objXMLDoc               As MSXML2.DOMDocument
        Dim objXMLErr               As IXMLDOMParseError
        Dim objXMLElem              As MSXML2.IXMLDOMElement
        Dim strIdentifier           As String
        If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False And pVal.FormType = 139 Then
            'Add Custom Button
            Set sboForm = sboApp.Forms(FormUID)
            Set sboItem = sboForm.Items.Add("AZU_BTN", it_BUTTON)
            sboItem.Top = sboForm.Items("1").Top
            sboItem.Width = "80"
            sboItem.Left = sboForm.Width - 105
            Set sboBtn = sboItem.Specific
            sboBtn.Caption = "Custom Button"
        End If
        If pVal.EventType = et_ITEM_PRESSED And pVal.Before_Action = False And pVal.ItemUID = "AZU_BTN" And pVal.FormType = 139 Then
            strIdentifier = "AZU_XXX" 'You should set this to a unique value each time
            Set objXMLDoc = New MSXML2.DOMDocument
            objXMLDoc.async = False
            objXMLDoc.validateOnParse = True
            objXMLDoc.Load (App.Path & "\Config\AZU_CUSTOM.srf")
            Set objXMLErr = objXMLDoc.parseError
            If (objXMLErr <> 0) Then
                MsgBox "Failed to load XML screen definition."
                Exit Sub
            Else
                For Each objXMLElem In objXMLDoc.getElementsByTagName("form")
                    objXMLElem.setAttribute "uid", strIdentifier
                Next
                sboApp.LoadBatchActions objXMLDoc.xml
            End If
        End If
        Exit Sub
    ErrorHandler:
        MsgBox Err.Number & " " & Err.Description
    End Sub

  • How  to Activate EAN field in sales order

    Hi Guru's
    Can anybody give  me the T.code/path  for Activating the EAN field at the sales order level i.e in salesA tab in item overview screen.
    Thanks&regards,
    Nagendra

    Hello Nagendra,
    I wanted to know, in which scenario you need EAN field to be filled in Sales Order esp in Retail Scenario.
    You will really have to look at the business need on this.  In IS-Retail, you have multiple EANs for an article. Which EAN should SAP propose?
    Further in a business scenario When a customer is going to buy or order, the customer wouldn't buy the product looking at the EAN. So i am still curious to know.
    In case the business need is genuine, please raise OSS Note for the same.
    Regards

  • How to add material characteristics in sales order via BAPI?

    Hi all!
    I'm trying to use BAPI_SALESORDER_CREATEFROMDAT1 to create a sales order with one item that has some characteristics, but i can't seem to get it work. It creates the salesorder with the item but without characteristics data. Can somebody tell me what could be wrong?
    Here's the code:
    header-doc_type   = 'TA'.
    header-sales_org  = '3000'.
    header-distr_chan = '10'.
    header-division   = '00'.
    items-itm_number = '000010'.
    items-material   = 'CP-12'.
    items-req_qty    = '1000'.
    APPEND items.
    partners-partn_role = 'AG'.
    partners-partn_numb = '0000050000'.
    APPEND partners.
    c_ref-posex     = '000010'.
    c_ref-config_id = '000001'.
    c_ref-root_id   = '00000001'.
    APPEND c_ref.
    c_ins-config_id = '000001'.
    c_ins-inst_id   = '00000001'.
    c_ins-obj_type  = 'MARA'.
    c_ins-obj_key   = 'CP-12'.
    c_ins-complete  = 'T'.
    c_ins-consistent = 'T'.
    c_ins-quantity  = '0'.
    c_ins-quantity_unit  = 'ST'.
    c_ins-class_type = '300'.
    APPEND c_ins.
    c_val-config_id = '000001'.
    c_val-inst_id   = '00000001'.
    c_val-charc     = 'CP_12_ADD_ON'.
    c_val-value     = 'F'.
    c_val-valcode   = '1'.
    APPEND c_val.
    c_val-charc     = 'CP_12_COLOUR'.
    c_val-value     = 'M'.
    APPEND c_val.
    c_val-charc     = 'CP_12_MODEL'.
    c_val-value     = 'M'.
    APPEND c_val.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
      EXPORTING
        order_header_in           = header
        convert_parvw_auart       = 'X'
      IMPORTING
       salesdocument             = salesdoc
       return                    = return
      TABLES
        order_items_in            = items
        order_partners            = partners
       order_cfgs_ref            = c_ref
       order_cfgs_inst           = c_ins
       order_cfgs_part_of        = c_prt
       order_cfgs_value          = c_val

    BAPI_SALESORDER_CREATEFROMDAT1
    "(obsolete from 4.6 version)
    BAPI_SALESORDER_CREATEFROMDAT2
    please see the version  and change the BAPI
    reward  points if it is usefull ....
    Girish

  • How to add a partner in sales order item by enhancement?

    Hi expert,
    Sales order item's bill-to and payer will be same with header if you do not change it manually. now I want to modify some item's bill-to and payer which different from the header automatically. Is there any enhancement for this function?
    Thanks and best regards
    Lance

    Hi Lance,
    You can populate the XVBPA structure with function module "VIEW_XVBPA_FILL".
    You have to pass the following values to the FM:
    COMWA-KUNNR <- the changed partner code
    COMWA-PARVW <- parter role
    COMWA-VBELN, COMWA-POSNR <- Salesorder and item: just fill it with VBAK-VBELN,VBAP-POSNR
    You'll get the result in parameter XVBPA, which can be used for append the internal
    table XVBPA in the userexit.
    BR,
    Barna

Maybe you are looking for

  • Different Resolutions

    I have been struggling to find a way to display jpeg images over a .swf video. I finally found a code written by another person and I modified the code to fit what I was trying to do. The images display over the .swf file the way I want them to. The

  • How to make feild Mandatary in view by palcing "*" in RED

    Hi All, I am new to Web Dynpro  , i need following  clarification, In a Veiw i need to give "County"  labe as mandatary by placing "*" in front of it  which is should be in RED color.can any one tell me how to make it . Thanks and Regards CB

  • Re: canon EOS digital camera..

    Transferring pics to imac some pics import and others show up as wrong format on the same import. I also used image photo to transfer to iPhoto same problem.

  • Queries for Data Warehouse ER diagram

    Hello, I have created an ER diagram for a datawarehouse. I need two queries: 1. A query returning all employees whose job-history end date is equal to or ater 1st Jan 2012 2. A query returning the total salary of all employees who work in the departm

  • Sample code in ASP to connect SAP?

    Hello, Can Anyone give me ASP(VBScript) sample code to connect to R/3? Not Visual basic! I appreciate that