Filling the Sales Order Header - Source for filling the dropdown boxes

Hi,
I am trying to design the User Interface for Creation of sales order using the WebDynpro's. I want to know, what are all those BAPI's i need to use to fill the following drop down boxes.
1. Order Type
2. Sales Organization
3. Distribution Channel
4. Division
As i am new to ABAP., and i am from Java background, i dont know much about the BAPIs used to get the above data.
Could anyone let me know the source to fill those dropdown boxes. Thanks in advance.
Thanks,
Raghavendra

Ah,my bad.
Hmmm,i haven't found a BAPI's for filling all your dropdown-boxes with the valid values.
What about using the FM "RFC_READ_TABLE" to read the values for your drowdown-boxes.(only if you don't want to write a Z*-Function).
For examlpe for the dropdownbox "Sales Orgs",you can can start this FM for the table TVKOT.
Is that a possilbe solution for you?
Greetings
Frank Brackmann

Similar Messages

  • How to make Delivery block at Sales Order Header level for specific materia

    Hi,
    My client want to create a delivery block EDI order at the Order Header level for specific materials
    How can we achieve this.

    Dear Varada rajan
    Go to material master, select "Sales: sales org.1" view and assign "01" against the field "DChain-spec. status" and save.  By assigning, for a particular sales area, you can block that material.
    Now go to OVSU select 01 and assign "B" against the field "Block delivery".
    Now create a sale order and post the outcome.
    thanks
    G. Lakshmipathi

  • Sales order header status

    Dear Gm,
    I want see sales order header status for "n" number (Mass) of sales order,From the Sales order header status i want the details abt ("Incomplete header data"/Partially rejected),Please guide me how to get the same,
    now i am taking From VA03 ,But it consume more time
    Regards
    Arun kumar K

    incomplete doc - header data
    Use Table VBUV - Sales Document: Incompletion Log
    Where, Table-Field VBUV-TBNAM maintain Tables as VBAK
    Partially rejected
    Header level
    VBUK-ABSTK as B - Partially processed
    Item Level
    VBUP-ABSTA as B - Partially processed
    Regards
    JP

  • Sales group not filled form sales order header in PGI accounting Document

    Hi all,
    we are creating a sales order . when sold to and ship to is entered the sales group at the header level is fetched from the customer master automatically.
    Now after changing the sales group,different from customer master,the sales order got saved as usual with a warning mesaage 'sales group is diiferent from customer master'.
    After doing PGI and billing , the sales group fetched in billing document is same as that of sales order header,but when good issue delievry document is displayed , in accounting document of the material document (ie. in FB03),the sales group in profit segment tab is getting filled from customer master.
    Now the requirement is to fetch the sales group from sales order header instead of customer master.

    hi
    check your copy control settings and change if required

  • What's the name of FM for getting Sales Order Header / Item Status info

    Hello All:
    Do you know what's the name of Function Module for getting Sales Order Header / Item Status Overview ? Any sample code will be very much appreciated.
    Basically, I am trying to create a Webpage where user can enter the Sales Order document number and will return the Sales Order: Status Overview.
    Thanks,
    Dipankar Biswas

    Thanks everybody ! Appreciate for your prompt response. I was also looking for some sample code, and I did find some on. And here is one. I still have to try the code, but here is for all your reference:
    *& Report ZBAPI_SALESORDER_GETSTATUS *
    *& Read and Display the Sales Order Items and Status of the Order *
    REPORT zbapi_salesorder_getstatus NO STANDARD PAGE HEADING LINE-SIZE 200 LINE-COUNT 33(3).
    TABLES: vbap. "Sales Document Item Data.
    DATA: wa_bapireturn TYPE bapireturn,
    wa_bapisdstat TYPE bapisdstat,
    it_bapisdstat LIKE STANDARD TABLE OF wa_bapisdstat.
    TYPES: BEGIN OF ty_mat_name,
    matnr TYPE makt-matnr,
    maktx TYPE makt-maktx,
    END OF ty_mat_name.
    DATA: wa_mat_name TYPE ty_mat_name,
    it_mat_name LIKE TABLE OF wa_mat_name WITH KEY matnr .
    PARAMETERS: p_vbeln LIKE vbap-vbeln DEFAULT 5573.
    START-OF-SELECTION.
    SELECT matnr maktx FROM makt INTO TABLE it_mat_name.
    CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
    EXPORTING
    salesdocument = p_vbeln
    IMPORTING
    return = wa_bapireturn
    TABLES
    statusinfo = it_bapisdstat.
    IF wa_bapireturn IS INITIAL. " Successful Execution.
    WRITE: / 'Document No: ' COLOR 1, 20 'PO Number : ', 40 'Status' , 50 'Delv.Stat',60 'Item No', 80 'Material', 90 'Material Description', 130 'Net Price' COLOR 2.
    ULINE.
    LOOP AT it_bapisdstat INTO wa_bapisdstat.
    WRITE: / wa_bapisdstat-doc_number. " Sales Document Number.
    READ TABLE it_mat_name INTO wa_mat_name WITH KEY matnr = wa_bapisdstat-material.
    WRITE: /20 wa_bapisdstat-purch_no, " Customer Purchase Order Number
    40 wa_bapisdstat-prc_stat_h, " Processing Status
    50 wa_bapisdstat-dlv_stat_h, " Delivery Status
    60 wa_bapisdstat-itm_number, " Item Number
    80 wa_bapisdstat-material, " Material
    90 wa_mat_name-maktx, " Material Description
    130(10) wa_bapisdstat-net_price. " Net Price
    CLEAR wa_bapisdstat.
    ENDLOOP.
    REFRESH it_bapisdstat[].
    ELSE.
    WRITE: wa_bapireturn-message.
    ENDIF.

  • 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

  • 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

  • Sales order header data change by using the ORDERS05 IDOC

    Hello Team
    I am getting sales order number and some code value from the legacy system. i need to check whether the sales order is avialable in SAP or not. if it is there, i need to update the CODE value (ie for example ABC100) in sales order header data> order data> your reference field.  For doing this i am using the IDOC type ORDERS05 and message type ORDCHG message type.
    Now i want to know what are the mandatory fields which i need to do the mapping for the IDOC ORDERS05, to change the sales order header data. please check and suggest me the required fields of the IDOC to be mapped, so that i can change the sales order header data.
    Please correct me if i am doing something wrong here.
    Regards
    Rj

    Hello chirag
    Thanks for your reply. My requirement is to change the sales order which is already avialable in SAP. Just i need to change the header data of the sales order, for example if i am getting the sales order as 1000 and CODE as ABC100. i need to change the Sales document number 1000 and put the code ABC100 in sales order header data>orders data>your reference field.
    So now i want to know the below points
    1. what are the mandatory fields for which i need to pass the values for the IDOC ORDERS05.
    2. what is the user-exit used for picking up those values from SAP because i am getting only sales order number and CODE values from legacy system.
    Please check and suggest me accordingly.
    Regards
    Rj

  • 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

  • How the sales order header status update?

    Hello,
    In the sales order header "STATUS" tab is there, under this status tab we can find OBJECT status if we click that object status it shows the Object number,Object category,status profile and status with status no. on which bases this status will update in the sales order header?
    my case is Status "10-xxxx" set automatically for some orders.
    Could you plz let me know on which bases, the status will be updated in the sales order?
    Regards|KS

    Hi
    SAPu2019S GENERAL STATUS MANAGEMENT FUNCTIONALITY
    General Status Management replaced order status management functionality in recent SAP releases (4.6C).  This discussion will address general status management, as this is how SAP allows user statuses for controlling objects in this and future releases.
    General Status Management applies to internal orders, project definitions, WBS elements, production orders and many other objects in SAP.  For the purposes of this discussion we will concentrate on status management for internal orders and WBS elements.  A list of all objects relevant for status management will be made available upon request.
    A status is an indicator that fulfills two functions.  First, it informs you that a particular status has been reached.  For example, an internal order has been created and released; a settlement rule has been entered; a particular business transaction has been executed, etc.  Second, it influences the business transactions you can perform for a particular status.  A status can allow a business transaction; allow a business transaction but issue a warning message; or prohibit a business transaction altogether.  If a warning message is issued it is up to the user whether the business transaction is carried out or not.
    Statuses can be used to control and communicate.  Statuses can be used in reporting (show me a report of all internal orders with a status of TECO, or technically complete).  Statuses can be used as selection criteria (select all internal orders with a status of CLSD, or closed).  Statuses can communicate the state of an object (ready for archiving, not ready for settlement execution).
    There are SAP standard delivered statuses that apply to all object types.  These are known as SYSTEM STATUSES.  CRTD, REL, SETC, TECO are examples of SAP standard system statuses.  SAP standard system statuses cannot be removed from use.  You cannot override the SAP system status with a user status.  You cannot change the behavior of an SAP system status.
    User statuses (or user defined statuses) exist in addition to SAP standard statuses.  User statuses are intended to augment or refine SAP standard statuses, not replace them.  There is no limitation to the number of user statuses that can be created.  Both system and user statuses influence business transactions in the same way.
    An object can have multiple statuses active at the same time.  A plant maintenance order can have released, preliminarily costed, work order printed and confirmed statuses all at the same time.  For SAP display purposes only one status can be displayed on the status line in master data screens, but it is possible to see all active statuses for an object at one time by drilling down into the master data screens.
    A STATUS PROFILE, or user status profile, contains individual user statuses and the business transaction rules defined for those statuses.  There is no limit to the number of user status profiles that can be maintained in SAP.  A user status profile is assigned to an order type or a project profile in configuration.  This user status profile is then defaulted into all objects that reference that order type or project profile.  A users status profile can be overwritten (or deleted) in an individual object (via native master data screens), but only if a user status has yet to be activated for that particular object.  Once a user status has been activated for that object the user status profile cannot be changed.
    HOW STATUS MANAGEMENT WORKS
    When an object (internal order, WBS element, production order) is created SAP assigns the system status CRTD.  MIT automatically releases the order, so the system status REL is also activated.  If there is a user status profile defined in the order type (or project profile) this is carried over into the internal order (or WBS element).  If not, only the SAP system statuses will apply to this object.
    When a user executes a business transaction for this object, SAP checks the user status to see if that business transaction can be executed without any additional influence from a user status, can be executed but with a warning message being issued, or cannot be executed at all.  SAP also checks whether the business transaction sets or deletes any other user statuses within the user status profile.
    A user status may also be maintained directly in the object master data.  Accessing the master data screens allows a user to manually maintain user statuses.  If necessary, an authorization code can be assigned to a user status to ensure that no unauthorized persons can change the status of an object.  Once changed, the new user status is fully active and acts no differently than if a business transaction set the user status.
    Status management and business transaction control only work with standard SAP transactions.  Z transactions will not show up on the business transaction list for an object.  The business transaction table is configurable, but SAP strongly recommends not changing that table.  SAP directly updates that table via support packs and it is often impacted during upgrades.
    Authorization codes / keys are available in user statuses.  The authorization code is checked only when user statuses are being set manually, from within the objectu2019s master data screens.  This ensures the user has the proper authorization to set that status for that particular object.  However, it is important to understand that SAP sets a user status in reaction to a business transaction it does not perform an authorization check.

  • Subsinvprocess in the sales order header --- billing tab and in the custom

    Hello All
    there is a field SubsInvProcess in sales order header - billing- tab and in the customer master - billing tab
    what was the functionality of this field. I never worked with it
    kindly help on this one. 
    Thanks,
    prasad

    Dear Vara prasad,
    The value of this field is if you want to print the invoices that are being posted manually you can activate this field.
    It will be directly proposed from customer master to sales document, where you can change.
    Please let me know if you want any further clarifications.
    Please go through this thread also for further reference.
    Clarification for usage of Subsequent Invoice Processing in Customer Master
    Thanks&Regards
    Raghu.k

  • Sales order condition change for Header and Item level..

    Hi Gurus,
    My requirement is as below..
    Business wants to create new sales order from reference.. While creating slaes order fron reference , need to populate header/Item level condition tab data from originally paid by the invoice for that refence sales order not from refence sales order condition price.
    I would like to how to bring this one, any user exit or copy control and any VOFm routine need to populate this kind of requirement.
    Any one have any idea please let me know.. It very urgent, give reward points for right solution..
    thanks,

    Hi,
    Here are the answers to your question
    > Is it possible to add/change condition types on the sales order (header and item level) for which invoice has been created already?
    I mean is it possible to add some surcharge condition to already invoiced order and than as result debit memo?
    The answer is No. You cannot add or change the condition once it is invoiced.
    > And one more question : Are there some time restrictions when debit/credit memo can be created? (I believe not, but I would like to have this confirmed, as I am not SD expert.)
    The answer is No again. There is no time restriction and you can create debit or credit memo immediately when the invoice is released to accounting.
    Hope this helps
    Thanks
    Mukund S

  • 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

  • Creating multiple partner function for a sale order @ header level

    Hi All,
    I have a requirement where in i have to create more than one partner funtion for a sale order @ header level. But the system did not allow this sort of scenario and i got the error,
    Partner function ZZ can only occur  1 times in procedure TA (Sales Document Header)
    the function module that was giving this error was SD_PCHECK_PARVW_COUNT_OK
    here the function module checks if a partner function already exists if so it throws that error. This also updates the VBPA table where partner function is one of the key fields.
    Our issue is that we have to allow the system to enable posting 2 or more partner function for the same sale order. It was also verified that the unique key was unchecked during configuration.
    is there any other way of over coming this issue as we are updating the standard table. Is it possible??
    Thanks a lot in advance for your reply....

    I believe this is a configuration setting, based upon the details of your post.  Typically, a sales order can have multiple partner functions, but usually the partner type is not duplicated at a single level (header or one item).  For example, it would not be logical to have multiple ship-to partners at the header level...these would be unique at the item level, if required.
    Speak to your SD functional specialist about the configuration controls for partners, if you must have more than one partner with parvw = ZZ, for the entire order (header level).
    Edited by: DaveL on Aug 23, 2011 3:00 PM

  • Screen /user exit for additional screen on sales order header

    Hello sir's,
    can anybody help me for this query---
    Screen /user exit for additional screen on sales order header.
    exit name.
    Thanks in advance,
    Vikram

    Hi,
    SAP has provided screen modification. This you can do on "Additional data B" screen at both <b>header</b> and line iteam level.
    Additional <b>header data is on screen SAPMV45A 0309</b>, additional item data on screen SAPMV45A 0459. These screens contain the <b>Include screens SAPMV45A 8309 ( this is the screen exit at header  )</b> or SAPMV45A 8459 ( this is the screen exit at item ) as user exits. There few more exits you will have to code to get this screen works. The are,
    MV45AOZZ - PBO module of screen
    MV45AIZZ - PAI module of screen
    MV45ATZZ - Global data definition for user-exit.
    Check this link for more info regarding user-exit in sales docs.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm
    We have alredy implemented this solution at line item level. Let me know if you have any question.
    Regards,
    RS

Maybe you are looking for

  • ESS/MSS Installation to R/3 4.7 Enterprise

    Goodday Guru's, I've just received a requirement to install and configure ESS/MSS. Backend system is on R/3 4.7 and Portal is on EP 6.0. I have downloaded ESS 50.4 and MSS 60.1_19 for this requirement. There would not be any development work, only ou

  • Error message when opening file

    When opening a client's file and I keep getting the error "Adobe Muse will now shutdown. Assert: BackgroundImage is not loaded?" ...can this be fixed or am I in trouble? This is a very important client and if I have to redo their website from scratch

  • Payment and Typekit

    I'm paying for the full package of Adobe CC monthly. I want to use type kit for fonts. Type kit says I have to pay or I can use one kit for free. I thought If I paid for the full package of AdobeCC Type Kit came with it. Is This true, and is there a

  • Extract information from Javadoc files

    I want to extract class, method & parameter information from the javadoc files (in html format, not from source code). Are there any existing API's / opensource projects that would help me do this. I have tried searching google and the forums, but I

  • Daylight savings moved all my event ahead one hour

    When Daylight savings kicked in all of my iCal events were bumped ahead 1 hour, is there a fix for this?