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

Similar Messages

  • 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

  • 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

  • Where we can see Sale order Number in the project which is asigned to it.

    Hi,
    Where we can see Sale order Number in the project which is asigned to it.
    Regards,
    somiraghu

    Hi,
    Thank you for your reply.
    Here we can see in repot format.
    Mainly Iam looking for a feild type for making report.
    My expected report format is
    Production order     WBS Element         Sale Order
    12345                     PR-154534              8736444
    for the above report I can get details of production order and WBS element fron Prodction order table.But I also want Sale order number.
    Regards,
    somiraghu

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • 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

  • 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

  • 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

  • Sales order number on the AR Invoice PLD

    I know I've seen a formatted search that enters the sales order number in a UDF so I can use it in the AR invoice PLD?  Could someone direct me in the right direction of give me the query to do this?
    Thanks, Jeff

    Hi,
    Do this,
    Create One UDF Header Level on A/R Invoice and Put FMS (or) Type direct SO No. (USER)
    Try this FMS in UDF, Exactly Sales Order No. Will Come.
    SELECT Distinct(T0.DocNum )
    FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN ODLN T2 ON T2.DocEntry = T1.TrgetEntry
    INNER JOIN DLN1 T3 on T3.DocEntry = T2.Docentry
    INNER JOIN OINV T4 ON T4.DocEntry = T3.TrgetEntry
    INNER JOIN INV1 T5 ON T5.DocEntry = T4.DocEntry
    Where T0.DocNum = (Select $[$38.44.0] )
    OR
    T2.DocNum = (Select $[$38.44.0] )
    Finally Put Remarks in Command Field. This is mendatory because you should give to use of Auto Refresh to UDF
    ->> Auto Refresh Remarks.
    Put the Remarks in Command Field and Click Tap Button(TAP button is Auto Refresh) and will come*
    the Sales Order Number in UDF
    Else
    You can put this Query in Remarks Field and Shift + F2, Sales Order No. will Come Exactly.
    Regards,
    Madhan.

  • What can cause a sales order to have the status "To Be Costed"?

    Dear Experts,
    We are not very proficient in SD/FICO config and we are facing this problem. We are creating debit/credit note and after we saved, sometimes the system status becomes "To be costed". This prevents billing to be done.
    Sometimes using the same data to create another debit/credit note, the issue does not occur.
    We are not sure why the same data of the sales order created sometimes has that issue and sometimes it does not.
    1) What are the factors that cause the status "To be costed" to be assigned to the sales order?
    2) We don't want the status "To be costed" to appear. What can we do to do this at sales order type level?
    3) We are suspecting might be because of the availability check. Does this affect the status as well?
    If there is, we do not want to change the data for this material at material level. Is there a way to control by sales order type level? Thanks.
    Regards,
    Janet

    Hi,
    Please check if the material you are trying to invoice has the cost estimate released properly and which is updated in the material master as the planned price.
    Good Luck!!!!!
    Thanks and Regards,
    Bhuvaneswari.S

  • How to know an order number from the service contracts table

    Hi all,
    I want to know how the order entry module and service contracts module are connected. I mean to ask if a service is placed as an order for purchase how do i get the information about the order_id or order_number from the service contracts table.
    please point me in a direction so as to which tables i should be lookling at.
    Thanks.

    Try OKC_K_REL_OBJS table. The column JTOT_OBJECT1_CODE contains values 'OKX_ORDERHEADER' or 'OKX_ORDERLINE' and the column RTY_CODE = 'CONTRACTSERVICEORDER'. The column OBJECT1_ID1 should store order HEADER_ID or LINE_ID based on JTOT_OBJECT1_CODE value. Hope this helps.

Maybe you are looking for

  • ACR 3.7 works better than 4.2 with RAW NEF - Why?

    I've got CS3 with ACR 4.2 on my Mac. When I open RAW camera files in ACR 4.2 they end up desaturated. The reds in particular have mostly disappeared, but all the colors are annoyingly pale and wan. I then have to punch up the saturation, and often go

  • Adobe creatpdf desktop printer

    when using adobe creatpdf destop printer, where does the file end up

  • Transitions flicker and flash when exported

    Most of my clips have movement to them. The dissolve transitions have the green bar above them. After rendering these simple dissolve transitions in Final Cut, everything looks great. Playing within the program works perfectly. After "Export Movie" t

  • How do I connect WRT54GS Router to Talk Talk MT882?

    I was able to set up my Talk Talk wired SmartAX MT882 modem but I now want to use my Linksys Wireless-G WRT54GS Broadband Router but it can't connect. I entered the Talk Talk setup using the setup cd. I then used the Linksys setup cd to connect the r

  • Question about the Ni-DAQ function used in VB

    thanks for the previous answer first! I found that my computer has not installed the Measurement Stduio. When i wanna add module with file nidaq.bas, it shows nothing. Therefore, i download this file and nidaqcns.inc file from the web. Then i add the