Enchancements for sales order header - VA01

Hi,
Could any one suggest is it possisble to enhance the additional data tab B(Screen number 8309) of the sales order header like below mentioned.If its possisble please suggest the procedure.
I need to create a new field in the screen number 8309 of VA01 with drop down box, a possisble list of 7 entries to be provided and if cursor is placed on a value of the list a box(item Box) should be open with the list of possisble values again like this there will be 3 items box and finally the user should be able to select the field and save it.
For EX just like Go->header->Additional functions->Additional data B.
Regards,
Nagendra

Hi Nagendra,
First append the requisite custom field in the structure of VBAK (since the Additional Tab B is for Header data).
Go to screen number 0312 in program SAPMV45A and develop the screen layout along with the Custom Field of VBAK structure, as it is done in normal module pool programming.
Then in the PAI and PBO section of the screen define PAI and PBO modules or use the already defined modules.
Then double click on the module and create the modules in Inlcudes MV45AOZZ (PBO) and MV45AIZZ (PAI). Write your requisite code in the created PAI and PBO modules.
In case the screen field name does not match with the table field name (e.g., let us say that the custom field in table VBAK is "ZZCUSTOM" and the screen field is "CUSTOM1"), the field value from the structure/table (i.e., assign VBAK-ZZCUSTOM to the screen.) has to be assigned to the screen field (CUSTOM1) in the PBO module and in the PAI module the value from the screen field has to be assigned back to the structure/table field.
In PAI : VBAK-ZZCUSTOM = CUSTOM1.
IN PBO : CUSTOM1 = VBAK-ZZCUSTOM.
But if the screen field name is VBAK-ZZCUSTOM then the above assignments need not to be done. It will be handled by the system itself.
As for the list box, while defining the screen layout, define the field property as list box.
But I dont think that the second list of possible entries is not possible by using listbox.
Instead you can do define a normal F4 help for the 1st list of possible entries. Then when the user selects a entry you can call a modal screen (i.e., pop up screen) with the 2nd list of possible values. When a user selects a entry from this list you can put that value in the screen field.
Hope this helps.
Regards,
Abhisek.

Similar Messages

  • Enchancements for sales order header

    HI,
    I have created a new field Backorder Reason in the additional data tab B (Screen number 8309) for the sales order header.The new field is of input/output field.The new field should be able to select the values and save the sales order.I have done upto here.
    Could any one please suggest how to disabled this field only for the Tcode 'VA03'.
    It should be enabled for Tcode 'VA01'.
    Thanks,
    Nagendra

    Hi...
    try to capture through which transaction  user is executing(VA01, VA02,  or VA03). write IF condition  like if transaction code is not  "VA03" then display.
    Regards
    KP.

  • Table Name for Sales Order Header Text.

    Hi.
    Whats the Table name for Sales Order Header Text???
    Reg,
    Amol

    Hi Amol,
    please Try to check the below link
    http://scn.sap.com/thread/1361272
    http://scn.sap.com/thread/416757
    https://scn.sap.com/thread/1909247
    https://scn.sap.com/thread/811915
    Regards,
    Gurunath

  • How to create a sap script for sales order header items?

    Hi friends i am totally new to scripts i have got a task where i have to create a sap script for sales order header items details, the clue that i have got is to create using MEDRUCK but i have got no idea please can any body help me with this task with any sample sap script?
    Points will be rwwared with out fail Thks in advance.

    Hi,
    The Standard Form NAme is RVORDER01
    Regards
    Sandipan

  • Bdc for sales order header text

    we need to write a bdc program for va01. In that we need to
    upload header text also .
    So please kindly tell me how to upload flat file to va01 along with
    header text.And how we need to declare the flat file.
    if it is not possible through bdc then tell me how to do with bapi.
    thank you so much for all the replies

    Hi,
      Using BDC, You can not uplaod sales order header text. You can upload the header text using FM
    CREATE_TEXT.
    Here giving sample code. This code is written for Material master text. You change this code according to your requirement
    REPORT ZMM_INSERT_LONGTEXT.
    *Internal table to hold long text...
    DATA:
      BEGIN OF T_UPLOAD OCCURS 0,
        MATNR LIKE MARA-MATNR,             " Material number
        ID(2) TYPE C,                      " Identification
        LTEXT LIKE TLINE-TDLINE,           " Long text
      END OF T_UPLOAD,*Internal table to hold long text....
      T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.DATA:
       W_GRUN LIKE THEAD-TDID ,            " To hold id
       W_OBJECT LIKE THEAD-TDOBJECT VALUE 'MATERIAL',
                                           " To hold object id
       LV_VALUE(70).                       " Value to hold material number
    START-OF-SELECTION.* This perform is used to upload the file
      PERFORM UPLOAD_FILE.* This perform is used to place the text in MM02 transaction
      PERFORM PLACE_LONGTEXT.
    *&      Form  create_text
    *  This routine used to create text in MM02 transaction
    *  Passed the parameter w_grun to P_C_GRUN
    *                 and lv_value to P_LV_VALUE
    FORM CREATE_TEXT  USING    P_C_GRUN
                               P_LV_VALUE.  DATA:
        L_ID LIKE THEAD-TDID,
        L_NAME(70).  MOVE : P_C_GRUN TO L_ID,
             P_LV_VALUE TO L_NAME.  CALL FUNCTION 'CREATE_TEXT'
           EXPORTING
             FID               = L_ID
             FLANGUAGE         = SY-LANGU
             FNAME             = L_NAME
             FOBJECT           = W_OBJECT
    *      SAVE_DIRECT       = 'X'
    *      FFORMAT           = '*'
           TABLES
             FLINES            = T_LINE
          EXCEPTIONS
            NO_INIT           = 1
            NO_SAVE           = 2
            OTHERS            = 3
      IF SY-SUBRC <> 0.
        CLEAR LV_VALUE.
      ELSE.
        DELETE T_LINE INDEX 1.
      ENDIF.ENDFORM.                    " create_text*&---------------------------------------------------------------------*
    *&      Form  upload_file
    *  This routine is used to upload file
    *  No interface parameters are passed
    FORM UPLOAD_FILE .  CALL FUNCTION 'UPLOAD'
       EXPORTING
    *     CODEPAGE                      = ' '
    *     FILENAME                      = ' '
          FILETYPE                      = 'DAT'
    *     ITEM                          = ' '
    *     FILEMASK_MASK                 = ' '
    *     FILEMASK_TEXT                 = ' '
    *     FILETYPE_NO_CHANGE            = ' '
    *     FILEMASK_ALL                  = ' '
    *     FILETYPE_NO_SHOW              = ' '
    *     LINE_EXIT                     = ' '
    *     USER_FORM                     = ' '
    *     USER_PROG                     = ' '
    *     SILENT                        = 'S'
    *   IMPORTING
    *     FILESIZE                      =
    *     CANCEL                        =
    *     ACT_FILENAME                  =
    *     ACT_FILETYPE                  =
        TABLES
          DATA_TAB                      = T_UPLOAD
         EXCEPTIONS
           CONVERSION_ERROR              = 1
           INVALID_TABLE_WIDTH           = 2
           INVALID_TYPE                  = 3
           NO_BATCH                      = 4
           UNKNOWN_ERROR                 = 5
           GUI_REFUSE_FILETRANSFER       = 6
           OTHERS                        = 7
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.  SORT T_UPLOAD BY MATNR ID.
    ENDFORM.                    " upload_file
    *&      Form  place_longtext
    *  This routine places the text in MM02 transaction
    *  No interface parameters are passed
    FORM PLACE_LONGTEXT .  LOOP AT T_UPLOAD.    T_LINE-TDFORMAT = 'ST'.
        T_LINE-TDLINE = T_UPLOAD-LTEXT.
        APPEND T_LINE.    IF T_UPLOAD-ID EQ 'BT'.
          MOVE T_UPLOAD-MATNR TO LV_VALUE.
          MOVE 'GRUN' TO W_GRUN.                   "Test ID for Basic data text
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.    IF T_UPLOAD-ID EQ 'IT'.
          CLEAR W_GRUN.
          MOVE T_UPLOAD-MATNR TO LV_VALUE.
          MOVE 'PRUE' TO W_GRUN.                      "Test ID for Inspection text
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.    IF T_UPLOAD-ID EQ 'IC'.
          CLEAR W_GRUN.
          MOVE : T_UPLOAD-MATNR TO LV_VALUE,
                 'IVER' TO W_GRUN.                    
                                                      "Test ID for Internal comment
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.
      ENDLOOP.ENDFORM.                    " place_longtext

  • BADI for sales order header level data

    Is there any BADI which will give me the sales order header level data? I need net price of the sales order in header level. KOMK structure does not contains the net price value.

    My requirement is:
    I am writing a pricing routine for calculating ZSMR condition value in sales order header level. The formula for calculating is (NET PRICE / NET SALES COST) / NET PRICE.
    I can't use VBAK  because I have not saved the sales order yet. I need to use some structure.
    Which structure contains the net price of the sales order in header level. KOMK structure does not contains the net price value.
    Edited by: dossgs on May 21, 2010 4:08 PM

  • Table for Sales Order Header Text

    Hi,
    I want Table Name for Sales Data -> Header Text.
    Path--
    When we open the Sales order, Click on Display Document Header Details --> Here select the Text tab. Here, see the written text in Form Header (1st option).
    I want that table Name which contain the Header Text. Because If header text is more than 1 line, where it stores??
    Plz. help

    Hi,
    Text data are stored in tables STXH (Header) and STXL(Item).
    But you can't find the exact text in these tables as the text are stored in binary form.
    You need to use function module READ_TEXT to read any document texts.
    Check the link [Use FM READ_TEXT to Read the Various Text|http://www.sap-img.com/abap/use-fm--read-text-to-read-the-various-text.htm] which explains how to use this module to read the text.
    Regards,

  • How to supress tab for Sales Order item (VA01)

    Hi,
    Please suggest the ways to suppress tab (example "Country") which appears at Sales Order item for some countries.
    Thanks,
    Edited by: Dipesh Kothari on Oct 6, 2009 8:34 PM

    Hi
    If you want to suppress the tab which is appearing at sales order line item then using t.code SHD0  and give the t.code VA01 and business object as BUS2032 and then select the line item data and then you can suppress the fields as per your requirement
    Kindly let us know  why you want to suppress the fields ?
    Regards
    Srinath

  • User exit for sales order creation VA01.

    Hi friends,
    While creating Sales order, before saving the document, I need to check the Customer (Sold to pary?) details in KNEX table. KNEX-KUNNR  KNEX-TDOCO KNEX-DHRCO. if condition fails, I need to display an error message V1525,
    which should contain
    1)customer(sold-to -party?KNEX-KUNNR)
    2)partner function PARVW  (VBPA-PARVW?)
    3)country LNDEX KNEX-LNDEX
    Functional spec says, 1)V45A0002
                                  2)V45A0003
                                  3)V45S0001
                                  4)V50EPROP User exits can be levaraged.
    1)triggers before we enter customer (sold-to-party) in VA01. so may not be used.
    remaining i tried, but I am not able to get the proper PARVW, LNDEX from function module parameters / structures like VBAP/VBPA etc.
    Please help me the way.
    i) the above user exits can be used?if not, help me with user exit name.
    ii)if yes, how to fetch PARVW  , LNDEX, KUNNR...as all the primary keys must be used in the selection query.
    Please help me ASAP.

    Hi,
    Use this enhancement V45A0002.
    Reward points if it helps,
    Satish

  • Default Output Type for Sales Order Header

    Hi Guru
    I created 2 output types for hardcopy printout and for mail.
    I want both should be selected as default when a sales order is created. (using NACE)
    Output will be manually from VA02 -> issue output to. Here I must get 2 output types.
    As of now, this is manual process. 
    Please help.
    sunil Kolambkar.

    Hi Sunil,
    For this you need to maintain condition record for output type. for the sales order type, [V V11].
    Do the output determination in the same way as Pricing procedure determination.
    OUTPUT DETERMINATION:
    SPRO- IMG- Basic Functions- Output Control- Output Determination- Output Det using Cond Tech- Output Det for Sales Documents & output det for billing documents.
    Create Condition Table: select the field Sales Doc Type from field catalog & Save
    Maintain Access Sequence: 4-digits code & description.
    Assign condition table to access sequence. Select Accesses line item and Go To Fields. Fields will display the fields we have selected in the condition table i.e. sales doc type.
    Maintain Output Types:
    AF00: Inquiry
    AN00: Quotation
    BA00: Order Confirmation
    LD00: Delivery
    Select BA00 & Copy & Rename. Give the same 4-digit code as given to acc seq.
    You Can Maintain:
    Languages of Output
    Partners (to whom we want to send output)
    Print Program- print specification
    Sap Script- layout
    Assign Output Types to Partner Functions: go to new entries & assign your output type to partner functions.
    Maintain Output Determination Procedure: V10000 (Standard Procedure). Go to new entries & create your own 6-digit code with descp. Select the procedure & go to Control Data. Here mention the output type i.e. cond type & leave requirement and manual only columns as blank.
    Determination Rule: link the 6-digit procedure code to doc types.
    Create Condition Records: VV11. Select document type and click on Communication. Mention partner function, medium, time. Output device: LP01, Spool request Name: SD_003, Suffix 2: order_confir & flag on print immediately.
    Once you press enter you will come across 2 key combinations:
    Sales organisation/ Customer Number: fill SO, Customer No, Partner Function Abbreviation, Partner to whom the output should be sent, time, medium, language. {It contains: Sales Orgn, Customer, Partner Function (The abbreviated form of the name that identifies the Partner) (During output determination, the system determines the recipient of the output from the master record for the specified partner function. In this field, you can explicitly specify a recipient that will override the standard partner. There must also be a master record for the partner that is specified explicitly.), Medium, Time & Language.}
    Order Type: Document Type, Partner Function (abbreviation), Partner, Medium, Time & Language.
    Hope this would be helpful.
    Regds,
    Rupali

  • Updating processing log for sales order header output

    I want to prevent a custom sales order confirmation from printing when the order has not been approved.  When the user requests the form to print in the background, I want to update the processing log to have a red light and a message indicating the order has not been approved, so it cannot be printed.  When I pass an error message to the protocol processing, the update is terminated and my changes to the sales order are lost.  Is there a way to update the processing log, show the red light, and not get the hard error? 
    Thank you in advance. 
    Jay

    Setting the return code after the protocol update did the trick.

  • How to update the sales order header & item data in TM system

    Hi Experts,
    Greetings!
    I need your help,I have a one requirement sales order data came from ECC these sales order data need to update in TM Sales order header table as well as item table also these fields are additional fields.
    Can anyone please guide me I am very new in TLM .
    Thanks in advance.
    Thanks&Regards,
    Siva.

    Hi Siva
      "/SCMTMS/TRQ~ROOT" is for sales order header and "/SCMTMS/TRQ~ITEM" is for details.
      I assume you need to
    enhance the structures for these nodes to hold your add. fields;
    and do the same for the input parameter of service TransportationRequestRequest_In (which is used to create OTR) from PI side;
    Pass the add. fields during service call (impelment in ERP system);
    Map the fields from service paremeter to node attribute (implement in TM system, BAdI   /SCMTMS/TRQ_SE_TPNRQ_REQ~CHANGE_MODIFICATION create modification table for the input parameter).
    I cannot find source code for all of that; hope it helps.
    Sensen

  • Which table stores the Sales Order--Header--Texts--EDI Text?

    Hi Experts,
    I hv a requirenment regarding the Sales Order -> HEADER -> TEXTs -> EDI Text-Int, so, I need to hv some Orders(#). which does hv this text on them, for as test data.
    So, I am looking which table stores, this text for my_sales_oders_12345678.
    [ actually, i got some info from sdn, like,
    Table TTXOB -> stores Texts: application object for Sales order header it is always VBBK i.e. field TDOBJECT = VBBK.
    Now all the text types i.e. text ids are stored in table TTXID
    So fetch all text ids(TDID) from this table based on TDOBJECT = VBBK. And its descriptions are stored in TTXIT table.
    but, no use this ]
    thanq
    Edited by: Srinivas on Jul 10, 2008 11:06 PM

    Hi Srinivas,
    Generally to access the text we use READ_TEXT function Module.
    we need to pass the four parameters
    ID
    LANGUAGE
    NAME
    OBJECT
    You can find these parameters in the sales order it self.
    Goto ---> Header ---> Texts
    Now double click on the text it takes you to the Text Editor. You can find the screen Display Form Header . In this goto Menu Path Goto ---> Header. You get a screen Text header. Here you can find the these parameters.
    Text Name
    Language
    Text ID
    Text Object
    You need to pass these parameters to the function Module to text the text.
    You can also fins the text in Table STXH
    Best regards,
    raam

  • Need function module for Sales order overall status

    Dear Team,
    Our requriement is we need to capture sales orders overall status 'compleated' in header and item datat details.
    Could you please let me know what are function modules available for to get the over all status for sales orders, (header and item)
    Thanks & Regards,
    MK.

    Hi MK,
    Use any of this FMs.
    C1CE_VBUK_READ
    SD_VBUP_READ_WITH_VBELN
    WCB_VBUK_READ
    Note that the values are in table VBUK and you can do a select statement from that table to get what you need.
    Regards,
    Peter

  • VA01 Sales order - Header-- Accounting tab need to add a field

    Dear All,
    The requirement is,
    1. I need to add a field in Sales order.
    Path for the same is as follows:
    VA01> Goto> Header--> Accounting tab
    2. The field will be a date field that needs to calculate date on.
    a)create a new field. ex - zchdt (chq due date)
    b)when customers enters value in Assignment,
    i.e vbak-zuonr
    after that trigger logic is
    3.vabk-kunnr = knvv-kunnr
    a)sy-date + knvv-kvgr2 (exclude sundays)
    example - 14 sept + 30 days = 14th october
    should populate value - 14th october i.e. field (zchdt)
    4. This activity needs to be triggered before the sales order is saved.
    kindly know whether this is possible or not.
    if possible how & which exit & also with example code.
    if you could give me your contact(cell no).
    Regards,
    Nagendra D.S.
    Mobile - +91 9819899082

    Hi All,
    VA01 Sales order - Header--> Accounting tab need to add a field. field name - zchdt(cheque due date)
    when customer enters value in Assignment i.e zuonr & after that trigger logic is
       1.     vbak-kunnr = knvv-kunnr
       2.     sysdat + knvv-kvgr2 (exclude sundays)
    example - 16 sept + 30days = 16 oct
    in field zchdt value 16 oct as to populate
    Pls help me in the code.
    Regards
    Nagendra

Maybe you are looking for

  • Can't print PDF unless I save the file

    Ever since I did my last update of Acrobat (I did another new update yesterday), I can't print a PDF document from an email attachment unless I save it first. I use gmail. I also used to be able to click on the icon to open up the PDF, but now I can'

  • How do I turn off autocomplete in Safari

    I am using Safari 5.0.1 on a Win7 64-bit PC.  I have several major problems with this.  One is a petty annoyance, perhaps, but it drives me up the wall!  I CANNOT turn off the autocomplete when I am in the address bar.  I DO NOT USE AUTOCOMPLETE, and

  • Reversal of dishonored check related.

    hi friends, How should entry be posted in SAP for dishonored check? I received a check against a customer invoice through FBCJ and presented it to bank for credit and manually cleared the customer invoice also. Now after some days, the bank dishonore

  • Info Record - Purchase group

    Hi, I'm creating info records and I have two doubts/issues: 1 - Even if in the screen layout configuration the purchase group is not mandatory, when I'm creating the info record the system gives me a error message. The purchase group is really necess

  • XML Processing line

    Hi,    In my scenario, we are trying to connect to a web service and web service expects a XML with out the below processing line <?xml version="1.0" encoding="utf-8"?> Can we manage this in receiver SOAP adapter? Appreciate your help on this. Thanks