How to unlock sales order number after changing its line item statuses.

hi all,
        my requirement is i am changing the status of the double
       clicked sales order which is showing in ALV grid display
       before that i am locking that sales order using FM
       CALL FUNCTION 'ENQUEUE_EVVBAKE' and for
       changing the status i am using FM
        CALL FUNCTION 'STATUS_CHANGE_EXTERN'
        which doesnt have commit statement inside this FM so
       i have explictly written this commit statement if this FM
       gives SY-SUBRC = 0 but with this statement it unlock my
       sales order because of the commit functionality.
also this FM is in loop for all line items for that sales order
please help me with that!!!!

Hi,
I have created delivery against sales order.
While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
Sales order (SO1) - Material (Mat1) - qty (15 ea)
Delivery against sales order (Del1) - batch split: batch1 - 10 ea
                                                                     batch2 - 5 ea
In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
   del no.     Item No.      Material   Qty       Batch no       Sales Order no     Sales Order Item no
1. DEL1       10              Mat1        10 ea    batch1          SO1                    10
2. DEL1       20              Mat1         5 ea     batch2         ______                 ____
Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
Hope this clarifies the issue faced.
Regards,
Ankush

Similar Messages

  • How to get sales order number before saving in VA01 by using parameter

    Hi,
    Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
    I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
    can you please suggest how to do it?
    Thanks & Regards.
    Rahul Verulkar

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

  • Change the  sales order reason for rejection for line item

    Hi,
    i want to change the  sales order reason for rejection for line item.
    iam using bapi_salesorder_change.but i unable to change the sales order.
    if possible please provide me what are the fields necessary  for changing
    sales order reason for rejection for line item.
    Regards,
    Suresh

    This is the standard config to supress printing on the rejected item. Are you using standard programs or customised ?

  • Sales order delete and rejecting the line items

    Hi,
    1 )What is the difference between deleting a sales order and rejecting all the line items of a sales order.
    2) Are there any pre-conditions for deleting a sales order.
    3) why there is a need to reject line items of a sales order
    regards

    What is the difference between deleting a sales order and rejecting
    If you delete a sale order, you cannot retrieve it or view it.  On the other hand, if you reject any sale order, at any point of time, you can retrieve that sale order and analyse as to why it has been rejected.
    Are there any pre-conditions for deleting a sales order.
    Certainly not.  Its all depends on the discretion of the user.  Of course, you cannot delete a sale order if any subsequent document exists.
    why there is a need to reject line items of a sales order
    Customer has placed an order and at a later date, due to some reason, they have asked the client not to proceed with production against that sale order.  Now if the Management decides to track such of those sale orders, you can assign reason for rejection and have it in system for record purpose.
    thanks
    G. Lakshmipathi

  • How to get sales order number when it is created in VA01

    hai experts,
    i have a requirement , when i create a sales order using transaction VA01 and save the transaction number , after saving i want to catch the sales order number and use in some other fucntion moudle, how can i do that  , should i use the events or any other methods to do the same
    regards
    m.a

    You can call you Z function module either from the workflow or from a BADI' where you can access the newly created sales order the BADi name is BADI_SD_V46H0001 and the method that you need to check is
    EXIT_SAPLV46H_003     Customer Function when Creating/Changing Header
    You can even call the FM from workflow too, but aganin for tht you need to create a ZBOR, if at all you are using a standard Business object and you hvae to create a new task and include that new task in the workflow by creating a new background Activity step. which I personally feel that you eed to put some more effort to fix the issue.
    Instead it is simple and sweet to call that function module from the Method which mentioned. where you can acess the sales document number tooo check int he method parameters.

  • How to generate sales order number

    Hai friends,
         In sales order creation, I want to generate a sales order number (i.e., 1 for the first sales order, 2 for the second and so on). This number should be generated successively in background. How it can be done..?

    Hello,
    Yes, I'm struggling to understand what you're after too. You could create a z table to keep track of the number if it's bespoke. Otherwise try these tables: FBN1, NRIV (intervals), T161 (po) TNRO (linked to NRIV).
    Good luck!
    Ash Thomas
    http://www.ashthomas.com
    Sap Abap Developer & Sap Abap Programmer

  • How to update sales order number (KAUFN) characteristic in the profitability segment of the PA document created at the time of service entry sheet confirmation, as a result of shipment cost document

    Hi,
    We have a scenario wherein we create shipment cost documents against delivery. As a result of shipments fully transferred, a PO for freight vendor is automatically created and a service entry sheet confirmation happens. As a result of service entry sheet confirmation, we have Financial accounting, Controlling and profitability analysis documents created. We have a requirement wherein we need to have the characteristic “sales order number (KAUFN)” populated in the profitability analysis document created as a result of service entry sheet confirmation.
    Could someone please advice how could this be attained in COPA. Thanks for your help in advance.
    Regards,
    Sandeep

    Hi Ajay,
    Thank you for the quick update.
    The document is updated to COPA through OKB9 settings. The profitability segment is updated with fields like customer, product, company code, plant, sales area data, profit center, etc; however the sales order number is missing.
    Could you please elaborate further how could FI substitution be implemented to call for the FM COPA_PROFITABILITY_SEGMENT through user exit? Are you recommending the substitution through GGB1? What could be the possible validation to call for the user exit to be implemented?
    Regards,
    Sandeep Kulkarni

  • How to trace sales order number from delivery number, when batch is split

    Hi All,
    I have created a Sales Order and a Outbound Delivery against the sales order.
    While creating the Outbound delivery, I have split the qty in two batches.
    Now when I go in table LIPS, and search on the basis of the Delivery number, I get two rows, one for each batch. But here the sales order LIPS-VGBEL, and Sales order item no (LIPS-VGPOS) is updated only for the 1st batch line item, but is not updated for the second batch line item.
    Please help me so that on the basis of the delivery number, i will be able to find record from tables for sales order for both the line items (i.e. for each batch).
    Immediate help would be appreciated.
    Thanks in Advance.
    Ankush

    Hi,
    I have created delivery against sales order.
    While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
    Sales order (SO1) - Material (Mat1) - qty (15 ea)
    Delivery against sales order (Del1) - batch split: batch1 - 10 ea
                                                                         batch2 - 5 ea
    In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
       del no.     Item No.      Material   Qty       Batch no       Sales Order no     Sales Order Item no
    1. DEL1       10              Mat1        10 ea    batch1          SO1                    10
    2. DEL1       20              Mat1         5 ea     batch2         ______                 ____
    Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
    I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
    Hope this clarifies the issue faced.
    Regards,
    Ankush

  • Error using BAPI_BUSPROCESSND_CREATEMULTI, how to get sales order number

    Hi all, i am using the BAPI BAPI_BUSPROCESSND_CREATEMULTI to create a sales order of type ZWEB in CRM. I am using HEADER,  INPUT_FIELDS ,  ITEM ,  CREATED_PROCESS and  RETURN
    tables. In the CREATED_PROCESS i am getting the GUID but no value for object id. and in return table i find the error mesages as "no status object available for unknown object", "A log has been generated for single document", "no status object availabe for unknown object".
    what mistake i am doing? i want to create a sales order in SAP CRM and get the sales order number as the output. am i using correct bapi. many people suggested of using bapi BAPI_BUSPROCESSND_SAVE....i dont know how to use it and what values i should pass to the objects_to_save paramter of this bapi.
    here is my code please help me
    ***TABLES
    DATA: IT_HEADER TYPE TABLE OF BAPIBUS20001_HEADER_INS.
    DATA: IT_INPUT_FIELDS_FILL TYPE TABLE OF BAPIBUS20001_INPUT_FIELDS.
    DATA: IT_ITEM TYPE TABLE OF BAPIBUS20001_ITEM.
    ***WORK AREA
    DATA: WA_INPUT_FIELDS TYPE BAPIBUS20001_INPUT_FIELDS.
    DATA: WA_HEADER TYPE BAPIBUS20001_HEADER_INS.
    DATA: WA_ITEM TYPE BAPIBUS20001_ITEM.
    DATA: IT_EV_GUID_32 TYPE GUID_32.
    DATA: IT_EV_GUID_32_1 TYPE GUID_32.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32.
    WA_HEADER-GUID                      =  IT_EV_GUID_32.
    WA_HEADER-PROCESS_TYPE    =  'ZWEB'.
    WA_HEADER-DESCRIPTION        =  'WEB ORDER'.
    WA_HEADER-CREATED_BY        =  'SAPUSER
    APPEND WA_HEADER TO IT_HEADER.
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_H'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'PROCESS_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'DESCRIPTION'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'CREATED_BY'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    REFRESH: CREATED_PROCESS.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32_1.
    WA_ITEM-GUID              =  IT_EV_GUID_32_1.
    WA_ITEM-NUMBER_INT        =  '10'.
    WA_ITEM-ORDERED_PROD      =  '90000000'.
    WA_ITEM-ITM_TYPE          =  'ZTAN'.
    WA_ITEM-MODE              =  'A'.
    APPEND WA_ITEM TO IT_ITEM.
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32_1.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_I'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'NUMBER_INT'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ORDERED_PROD'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ITM_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    REFRESH: created_process.
    CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
    TABLES
      HEADER = IT_HEADER
      INPUT_FIELDS = IT_input_fields_fill
      ITEM = IT_ITEM
      CREATED_PROCESS = CREATED_PROCESS
      RETURN = RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
        WAIT = 'X'
      IMPORTING
        RETURN = RETURN1.
    Edited by: jessica sam on Dec 11, 2008 5:23 AM

    Hi Jessica,
                    I am not able map billing plan details for BAPI_BUSPROCESSND_CREATEMULTI.
    If u done alreay please guide or send program for that.I will be grateful for you.
    Regards,
    Dilip

  • Q60: How to report sales order number against in voice number

    Dear All,
    I have this simple report but need to include the relevant sales order in the column aftero the invoice number.
    I know it is the base doc but do not know how to build it in.............
    SELECT
    t0.docduedate as 'Invoice Date',
    t0.docstatus as 'Open/Closed',
    t0.docnum as 'Invoice Number',
    t0.numatcard as 'Customer Ref. No.',
    t0.u_rbdelivery as 'Tracking Number',
    t0.doctotal as 'Invoice Value',
    t0.cardcode as 'Customer Code',
    t0.cardname as 'Customer Name',
    t0.address2 as 'Delivery Address'
    FROM
    oinv t0
    WHERE
    t0.docstatus = '[%0]' and
    t0.doctype = 'I' and
    left(t0.cardcode,1) = 'K'
    Many thanks for any help.
    Robin

    Hi,
    You have to use following tables to get the data VBRK (Billing Header), VBRP (Billing Item), KNA1, KNB1 and KNVV (Customer Master Tables), VBAK (Sale Order Header) and FPLTC(Payment cards table)
    First pass the input data for example
    Customer reference number into VBRK- KUNNR and Date into VBRK-FKDAT and get the relevant VBLENu2018s for the customer. 
    Pass VBRK-VBELN value into VBRP-VBLEN and get VBRP-AUBEL (Sale order number).
    Pass customer number into KNA1-KUNNR and get KNA1-ADRNR (for fetching the address details for the customer) pass this
    ADRNR into ADRC-ADDRNUMBER And get all the address details of the customer.
    Similarly pass VBRP-AUBEL into VBAK-VBLEN and get VBAK-FPLNR pass this value into FPLTC-FPLNR and get all the card relevant details.
    Hope this helps.
    Revert back in case of clarifications.
    Regards,
    Sharan

  • How to get sales order number based on purchase order

    hi,
    what is the transaction code to find the sales order number based on the purchase order number
    Regards,
    Murali

    Hi,
    Go to Se16 (data browser), see the table VBKD, enter the PO number, if any, execute.
    Prase

  • How toset 2nd sales order number on the status application in Inbound Idocs

    Hi All,
    When processing inbound idocs in sales order we are splitting that idocs into two sales orders so for one sales order we are getting on Apllication with sales order number, But i want display second sales order number same as first one. can any one suggest me any function module for that....
    Regards,
    Sudhakar Reddy.A

    Hi ,
    Thanks for the relies i am writing the code in same FM (EXIT_SAPLVEDA_005) include (ZXVEDU07). this is for error message i wrote .
    Data : wa_e1ed19_E TYPE ty_e1edp19,
           wa_status1 type BDIDOCSTAT.
    if DIDOC_STATUS-status = '51' and DIDOC_STATUS-msgty = 'E' and DIDOC_STATUS-msgno = '382'.
    read table IT_E1EDP19 into wa_e1ed19_E with key idtnr = DIDOC_STATUS-msgv1.
    if sy-subrc = 0.
    wa_status1-docnum   = DIDOC_STATUS-docnum.
    wa_status1-STATUS   = DIDOC_STATUS-STATUS.
    wa_status1-MSGTY    = DIDOC_STATUS-MSGTY.
    wa_status1-MSGV1    = wa_e1ed19_E-idtnr.
    wa_status1-MSGV2   = wa_e1ed19_E-posnr.
    append wa_status1 to DIDOC_STATUS.
    clear wa_status1.
    endif.
    endif.
    Regards,
    Sudhakar Reddy .A

  • How to see Sales Order Number on Back to Back PO

    We are implementing Back to Back to generate a Purchase Order from a Sales Order.
    Everything is working well except I can't find the sales order number on the PO and can't find if for the receipt.
    We want the item when received to be marked for the SO it is for?
    Ideas?
    Jean

    Hi,
    You can get the PO # for corresponding Sales order by using table (OE_DROP_SHIP_SOURCES).
    u can join the po_header_id (OE_DROP_SHIP_SOURCES) with po_header_id (PO_HEADERS_ALL).
    Hope this will help you
    Thanks
    --Sandy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • PO printout is not coming after changing only line item Delivery Address

    Hi
    Can anybody suggest a solution for the problem?
    Using ME22N , if I change the line item delivery address details to the already generated manual address number ( Not generated using Transaction MEAN)
    If I save the PO then PO Printout is not coming but output message log showing " No print-relevant changes to document XXXXXXXXX exist"
    We can read CDHR and CDPOS table for changes .
    Is there a way to pass the parameter to the print program to Print the changes?
    Thanks
    sanath
    Edited by: sanath kumar sarvepalli-venkata on Nov 2, 2010 11:23 PM

    Hi,
    In IMG - Materials Management- Purchasing-Messages - Fields relevant to Print out of changes
    Enter Table EKPO , Reference Field LOEKZ, tick on change print relevant for purchase order,in routine enter 03.
    Now your Output will be triggered with a change indicator and you can process it using ME9F.
    Regards
    Chandra Shekhar

  • Sales order costing after changes on configuration or sales order BOM

    Hi all
    Our sales order items requruire an sales order costing. This is done automatically, when saving the sales order item:
    Settings in requirement class:
    - costing: X (costing required)
    - costing-ID: B (automatic costing and marking)
    This works perfect, means the sales order receives a caluculation that is marked.
    Now, something is changed on the sales order BOM with transaction CU51
    It seems, that each time you change the BOM you have to ensure yourself, that the costing of the sales order items (via VA02 -> extras -> costing) has to be performed manually.
    There is no SAP standard process, that does this automatically.
    Thanks for your feedback.
    Pius

    Dear Pius,
    System cannot take the changes from the BOM and execute the cost estimate automatically.
    Need to refresh system when the changes are happened i..e need to execute the Cost Estimate once again.
    Kind Regards
    Umapathi G

Maybe you are looking for

  • Post removed

    Post removed: Wrong place in the forum. See FM or BAPI for Outbound delivery / Batch split Post removed:Wrong place in the forum. Message was edited by:Yann Portrait Message was edited by:         Yann Portrait

  • 6 IF-THEN and OR conditions for one target field mapping

    Hi Mapping experts, I have a validation condition involving 2 source fields and 1 target field only, however the number of conditions is 6 (OR) Source Fields: TYPE PONUM Target Field: BELNR If TYPE = 1st value   then   BELNR = PONUM substring (0, 8) 

  • Tree Navigation and Link  - Open iview in Content Area

    Hi, this is maybe trivial, but I can't find anything about it right now: I created an iview in Java that shows a custom tree in the detailed navigation area. Now I have an iview ( a BW apps), that should be behind this link on the inner tree level, a

  • [solved] Gnome - unlocking keyring via xinitrc

    Hi guys, I am not using a login manager but launch gnome via xinitrc. As such my keyring does not get unlocked automatically and Chromium asks me to unlock the keyring every time. I though of adding the following to xinitrc but that did not the trick

  • What is "unknown error -50"?

    I deleted iTunes and a bunch of other iTunes related files and downloaded the latest version and now it works (if you saw my previous post) but now it says "The iTunes Library file cannot be saved. An unknown error occured (-50)." I could just say "D