Capturing Release order number in Sales Order

Hi SD experts,
My client is into sugar industry.. so sugar is an essential product... so government will issue the release order quantity... for example... monthly 1000000 kgs and say the release order number is 9999 . my  requirement is i want to capture the release order number in the Sales Order.
Thanks in advance...

Hi Jayanth,
you can use the user-exit USEREXIT_MOVE_FIELD_TO_VBAK (present in include MV45AFZZ ) to add new field say "Release Order No. " .
Then, define a Z Table with fields Sales Order Number and Release Order No.
Use user-exit USEREXIT_READ_DOCUMENT
to read the  field "Release Order No. "   into Z Table.
Use USEREXIT_SAVE_DOCUMENT to save the Release Order No. "   into Z Table.
Just ask your ABAPer  and let him/her take an analysis.
Test it into your TEST Client or system.
Hope it helps you.
Reward Points if found useful.
Regards,
Gaurav Raghav.

Similar Messages

  • Getting purchase order number from sales order number

    Hi Experts,
    My requirement is to fetch the following values from a sales-order number:
    Purchase Order Number,
    Delivery Date
    Order Type(Source of Order EDI/EFAX/..)
    Ship To,
    Sold To.
    We are trying to fetch this data from the ECC system in our CRM system.We are exploring the possibilty of RFC calls to get the data from ECC system.
    Is there any standard FM present in ECC which gives the above information from the sales order number?
    Thanks in advance
    Regards
    Shilpi

    Hi,
    Check the FM BAPISDORDER_GETDETAILEDLIST
    It provides the whole data for a particular Sales order which you need to provide Sales order number in the table 'SALES_DOCUMENTS' in tables parameter.
    You have to provide the view what you need and in the import parameter 'I_BAPI_VIEW' like all the views that are in the tables parameter...
    HEADER, ITEM etc...
    The fields
    PO_METHOD
    PURCH_NO
    REQ_DATE_H
    SOLD_TO " will provide you the details you need in the table 'ORDER_HEADERS_OUT'
    SHIP_POINT in ORDER_ITEMS_OUT table provides the ship to
    Regards
    Sarves

  • Update Purchase order number in Sales order item level from inbound ORDCHG iDoc

    Hi Gurus,
    I want to update purchase order number from the iDoc 'ORDCHG' to sales order item level (sold to party purchase order number) i.e, VBAK-BSTKD.
    Which exit I need to use?  where to update?  Can you please help.
    Thank you in advance.
    Regards,
    San

    Finally Resolved the problem by writing 2 exits.
    one exit 'EXIT_SAPLVEDB_007'  for identify correct item in the sales order by updating the customer purchase order item number i.e., VBAP-POSEX.  if we update the POSEX field then it wont create new item instead, it will update the item which it is referring to .
    2nd exit for updating the purchase order number. 
    I have tried to pass the program name, screen number, field name, field value etc to bdcdata in the exit 'EXIT_SAPLVEDB_002'. but I observed that it is not going to that screen in the debugging.
    when I try E1EDP02 with QUALF '044' it will update ship-to party's purchase order number.  so to update ship-to party's purchase order number it is going to that screen. 
    so I have used that thing to update purchase order number in sold-to party's purchase order number.
    so when it is going that screen iam changing the field name 'VBKD-BSTKD_E' to 'VBKD-BSTKD' in bdcdata.  Then it is worked.
    This is the solution I found in my time.
    Any way it is solved.  Hope it will be helpful for others who will get this problem.

  • Purchase order number from Sales order

    hi gurus,
             i wan to pull PO number from SO number.i saw the customer PO in VA03 for that SO.
    what is the customer PO(in vbkd-bstnk)?.what is the PO in EKKO-ebeln?what is the diffrent between these two?

    Pradeep Chintala is right!
    vbak-bstnk is not long enough!
    if you va01 create a SO with customer po num's length exceeding 20, you'll find the vbak-bstnk is incomplete.
    and you would never find the vbak-bstnk in screens of  va01, va02, va03
    but you can find vbkd-bstkd.

  • Delivery schedule line number in sales order is not populated in production

    Hi all,
    i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order number and sale order item number is getting updated in production order . Beside these two , delivery schedule line number is not populated in production order.
    please give your valuable suggestion .
    i would be highly thankful to u
    Will reward points.
    Regards
    Kumaraguru

    Hi Kumar,
    Some changes done in your PRD server.If yes then contact abap consultant regarding the same.
    Because these type of problem comes when you do transport or changes done in the system.
    Regards,
    Anil

  • Delivery schedule line number in sales order is not populated  in productio

    Hi all,
    i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order number and sale order item number is getting updated in production order . Beside these two , delivery schedule line number is not populated in production order.
    please give your valuable suggestion .
    i would be highly thankful to u
    Regards
    Kumaraguru

    Hi Kumar,
    Some changes done in your PRD server.If yes then contact abap consultant regarding the same.
    Because these type of problem comes when you do transport or changes done in the system.
    Regards,
    Anil

  • Assign batch number from sale order to production order automatic

    Dear all, I have a question for all. Please help me in this case
    My scenario is make to order
    I have a sale order, when i create sale order, i have assigned batch number at each line item.
    When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
    So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
    So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
    Thanks all

    Hi,
    To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
    In fact , you are following wrong practice for generating batch no.
    Follow procedure like this :
    Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
    While creation / releasing of Production order, you have option to generate batch automatically by following way :
    Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
    > Automatic Batch creation in the order maintain this field as
    1     Automatic batch creation at order creation
    or
    2     Autom. batch creation at order release
    This will generate batch number automatically at the time of creation or release of order.
    Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
    So you will get sales order stock in the form of batch managed.
    Check & revert if any issue in above flow.
    Regards,
    Tejas

  • Safety Stock Not Being Released To Cover New Sales Orders Or Forecast

    Hi,
    Does anyone know of a way to get safety stock at the lower levels of the BOM to get released for upper level sales order or forecast demand without having to adjust the effectively out to a future date?
    Example:
    A = Finish goods item with two weeks lead time
    B= component of A and it has two weeks lead time
    C= component of B and has 10 weeks lead time.
    Have safety stock hard coded with an effective date of today for 100,000 units.
    I have 100,000 in inventory and I have planned orders to cover all my demands and future safety stock requirements for the next ten weeks.
    I receive a new sales order for 50,000 units with a customer request date five weeks out.
    I am getting ATP dates to assign to the new sales order 14 weeks out versus allowing me to use 50,000 units from the safety stock to schedule in week five?
    Even If I schedule the sales order for five weeks, because I have gone down two levels to confirm that I have safety stock, and It could be used, planned orders would not get generated at the next two levels, because the demand date on the safety stock is earlier than the demand date for the new order?
    Is there any resolution that anyone has found that addresses this issue?
    We have set a demand priority rule on the ASCP plan options tab to "Sales Order Priority" where we have set criteria for number one to "Sales Orders & MDS Entries Priority" and number two to "Schedule Date".
    We have found that adjusting the supply and demand dates out to cover the full 14 week period does reduce the safety stock at the lower levels, but it also creates additional starts and inventory to be put into the line, which makes this approach not feasible.
    Does anyone have any solutions to this problem? We do not build safety stock for the sake of building safety stock. We want it to be used for any sales order or forecast demand that comes within the planning horizon.
    Appreciate any inputs.
    Regards,
    Dave

    Hi Dave,
    Try this note suggestion, possibly help you in resolving your issue.
    How to Avoid Getting Safety Stock Replenishment Too Early in an ASCP Plan [ID 301629.1]
    In order to line up the safety stock supply with the changes in safety stock, a combination of the profiles must be used:
    MSC: Use FIFO Pegging as yes
    and the plan option
    Peg Supplies by Demand Priority is checked.
    The profile MSC: Use FIFO Pegging as yes will perform the following:
    For all demands and supplies, it proceeds item by item and
    pegs supplies to demands on a daily basis. Daily supplies
    and demands are not sorted. When supplies or demands
    on a given date are used up, it picks from supplies or
    demands on the next date. The unpegged supplies are
    pegged to excess.
    The peg supplies by demand priority combined with the profile above will prevent the system to plan ahead for safety stock.
    Also no safety stock smoothing is setup.
    To implement the solution, please execute the following steps:
    1. Please set the profile:
    MSC: Use FIFO Pegging as yes and
    2. Under the plan settings in the main tab the set the following options:
    Enable Pegging ON
    Peg Supplies by Demand Priority ON
    Warm Regards
    Sivaraman.G

  • How to count number of sales orders generated in a month in SAP SD

    Hi SD Gurus,
    I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
    Regards
    Vinod Kumar

    Hi,
    Goto the T.Code "SE16" or "SE16n" or "SE11".
    Enter the table name as VBAK
    Enter the created on date as the starting date of the period and to date as the end date.
    Enter.
    Click on "Number of Entries".It will tell you the number of entries created in a particular period.
    If you want a report,goto the T.Code "VA05n".
    Regards,
    Krishna.

  • Want to add number of sales orders in a COPA report or form

    Hi All
    I created a COPA report that has two columns: sales from sales orders & sales from billing documents. Now I want to add columns which shows number of sales orders that make up sales. Can any one explain me , how can we acheive this  With a user exit, .
    thanks in advance for looking into this

    Hi Steve,
    Walter is very right in saying so.
    In SD module itself you can get some reports like this.
    Even in COPA you will get these kind reports.  But if your company is a big company and have lots of sales orders,
    Then you will have serious problems with System performance issue. 
    When you define that sale order is a segment level character, then system will ear up the resources and take very long time in executing the reports.
    But for some reason this requirement is a must case, then it is very simple
    you define Sale order in either form or report,
    then give the variable parameters like Co.Code, Period etc. you will get all the sales orders details for the selected period
    But think about not going for it before you make up your mind
    Best Regards
    Surya

  • How to have a custom Item Number in Sales Order Items

    Hello Experts,
    We are creating a sales order using IDoc, sales order gets created but, its not taking value what we are populating in Item Number field for Item. Defualtly its filling 10,20 and so on...
    Is there any thing that I need to maintain, so that SAP accepts the custom number for Item number.
    Please help,
    Thanks,
    Suma

    Hi Suma,
    In VOV8, you can see the fields Number system..here u can see sub item increment u can enter 12 here then the next item number will be 500012, 500024 and so on. But if u want to maintain external number range then follow this steps.
    Determine which external number ranges are provided for the relevant
    document type. Choose the function "Maintain number range" of the
    document type (for example: Purchase order -> Maintain number range)
    for this purpose.
    Choose a number range and note its number.
    Enter the number of the desired number range.
    Thanks,
    Raja

  • Serial number in sales order creation

    HI all,
         please help to me........
    My requirement a add the serial number BAPI sales order.
    problem is their no serial number in bapi structure.
                How to add serial number crate a salesorder bapi.
    serial number is RIPW0-SERNR.
    Thanks & Regards,
    SReddy.

    hi,
    refer to this link
    http://help.sap.com/saphelp_nw04/helpdata/EN/3e/0e1089c24611d1ad09080009b0fb56/content.htm
    refer to this code...
    Also if you set the * CONVERT_PARVW_AUART = 'X' parameter to 'X' you can use sold to party as SP and ship to party as SH.
    REPORT ZEX_BAPISALESORDCRT .
    --Data Declaration--
    Data: st_BAPISDHEAD like BAPISDHEAD, " Sales Order Header Data
    ta_BAPIITEMIN like BAPIITEMIN occurs 0 with header line, " Ln item
    ta_BAPIPARTNR like BAPIPARTNR occurs 0 with header line, " Partner
    d_BAPIRETURN1 like BAPIRETURN1, " Bapi return msg
    d_vbeln like bapivbeln-VBELN. " Sales Order Number
    Move the data to create sales order in the repective parameters------*
    move: 'TA' to st_BAPISDHEAD-DOC_TYPE, " Sales document type
    '15493' to st_BAPISDHEAD-PURCH_NO_C,
    '00010' to ta_BAPIITEMIN-ITM_NUMBER,
    'Y-351' to ta_BAPIITEMIN-MATERIAL,
    '1100' to ta_BAPIITEMIN-PLANT,
    '1' to ta_BAPIITEMIN-REQ_QTY,
    'AG' to ta_BAPIPARTNR-PARTN_ROLE, " Sold to Party
    '0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
    Append the internal tables-------------------------------------------*
    append ta_BAPIPARTNR.
    clear ta_BAPIPARTNR.
    append ta_BAPIITEMIN.
    clear ta_BAPIITEMIN.
    Move ship to party---------------------------------------------------*
    move: 'RG' to ta_BAPIPARTNR-PARTN_ROLE, " Ship to party
    '0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
    Append the internal tables-------------------------------------------*
    append ta_BAPIPARTNR.
    clear ta_BAPIPARTNR.
    Call the Bapi to create the sales order
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
    EXPORTING
    ORDER_HEADER_IN = st_BAPISDHEAD
    WITHOUT_COMMIT = ' '
    CONVERT_PARVW_AUART = ' '
    IMPORTING
    SALESDOCUMENT = d_vbeln
    SOLD_TO_PARTY =
    SHIP_TO_PARTY =
    BILLING_PARTY =
    RETURN = d_BAPIRETURN1
    TABLES
    ORDER_ITEMS_IN = ta_BAPIITEMIN
    ORDER_PARTNERS = ta_BAPIPARTNR
    ORDER_ITEMS_OUT =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CCARD =
    ORDER_CFGS_BLOB =
    ORDER_SCHEDULE_EX =
    if d_vbeln <> space.
    write: 'Sales order No. ', d_vbeln.
    endif.

  • How to restrict the Number of sales orders in theTCode:VL10A whil creation

    I'm creating the Delivery by using the batch job with program: RVV50R10C Here I need to restrict the number of sales orders numbers while creating deliveries for sales orders
    Like system should pick the sales orders (sales documents) from 1 to 100 OR 100 to 200
    Please advise me how to do it and what changes I need to do it

    Hi,
    Aslo, you can see Note 198137 - VL10: Customer-specific enhancements / user exits. As is for SO, check subroutine LV50R_VIEWG03. If cf_subrc = 1 thin this SO isn't seen in list.
    ***INCLUDE LV50R_VIEWG03 .
    *&      Form  POSTAB_VEPVG_FILL_USER
    FORM POSTAB_VEPVG_FILL_USER
         USING    IX_LIST_PROFIL    TYPE      SHP_VL10_LIST_PROFIL
                  IX_PARAMETERS     TYPE      SHP_VL10_PARAMETERS
                  IX_SELECT_OPTIONS TYPE      SHP_VL10_SELECT_OPTIONS
                  IT_ENQUEUE        TYPE      SHP_VL10_PACKAGE_T
                  IX_SD_ORDER       TYPE      SHP_VL10_SD_ORDER
                  IS_VEPVG          TYPE      VEPVG
         CHANGING CS_POSTAB         TYPE      SHP_VL10_ITEM
                  CF_SUBRC          TYPE      SYSUBRC.
    CF_SUBRC = 0.
    *  cs_postab-zzfield = ......              "add new field to List
    *  if xxxxxxx = yyyyyyy.
    *    cf_subrc = 1.                         "Exclude this index from List
    *  endif.
    ENDFORM.                    " POSTAB_VEPVG_FILL_USER
    I hope this helps you
    Regards
    Eduardo

  • Whre to see the contract number in sales order

    Hi All,
    I created conrtact thruogh T.code:va41,based on this number,i create sales order.But my question is where can i see the contract number in sales order(va01).Pls suggest.
    Thanks,
    GTNR

    Hi GTNR,
    This is not possible to see in VA01 while creating the sale order,because the system taking the reference document no form buffer,so it is not possible to see in VA01.While creating the order you select create with reference there it self you will tell the system through which contract you want to create the sale order.
    Once you save the order in change mode VA02 you can see that through document flow or form table also you can see
    as Mr.Ravi mentioned above.
    Regards
    Ram

  • Workflow in the releasing of Credit blocked sales orders.

    Hi All,
    My Client requirement is that they need workflow in the releasing of credit blocked sales orders.
    If once sales order is blocked then it should be approved at 3 levels, then only it should be released.
    Suggestions are highly appreciated 
    Regards,
    Kumar

    Hi Kumar,
    I think you can achieve this by using Authorization Concept.
    Please find the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm
    Authorization levels for Credit Rep Groups
    Thanks
    Dasaradha
    Edited by: dasaradha ramireddy on Nov 28, 2011 12:53 PM

Maybe you are looking for

  • Replace a file which has a specific ID with another one

    I want to replace a file with another one using JSOM, but preserving all other associated fields (like Author and other custom columns in the document library) How can I select the file I want to replace using the ID field? For example, when I update

  • Output triggred in the invoice with Date/Time 1

    Output triggred in the invoice with Date/Time as 1 i e Send with periodically scheduled job. So could you  let me know when this gets triggeed if we maintain 1 in condition record? Thanks, Praveen

  • Css document not appearing

    Hello Dreamwevaers. i have managed to attach my source code to my style sheet,but when i go to my style.css i dont see the following in my sheet. /* CSS DOCUMENT */ does that mean the css wont work?or is it somethig i can even type myself in,if dream

  • Path app was closed every time i opened the camera

    Hi .. I has one issue in my new Z2. in Path application, every time i want to open the camera to post a picture, the application was closed. it was not alway like that, but often. i don't know if this because of the app or because of the camera. than

  • Status of R/3 Workflow in Portal

    Hi, Is it possible to display the request number and status of the R/3 workflow in Portal? Do we need any custom development or we can call a transaction for it?