Automatic Sales order creation from IDOC generated in another SAP instance?

Hi,
I have been trying to create Sales ordes in a seperate SAP instance, through the Purchase order generated in another Instance.
The Purchase order generated, passes the informtion through an IDOC to another SAP instance, I am getting the following error
" VKORG, VTWEG, SPART cannot be determined for customer 0000001000 ,Vendor000200038 "  
It is Message No VG204 , Status Record 51
Please help to solve the problem.
Regards,
Chamandeep

SAP Xpert friends,
I really need help in figuring out this error I get when I send an IDoc from external system to SAP.
Here is what I do....
create empty idoc of type ORDERS01
idoc.MESTYP = "ORDERS";
idoc.SNDPRN = "1171";
idoc.SNDPRT = "KU";
idoc.MANDT = "400";
idoc.SNDPFC = "AG";
idoc.MESCOD = " ";
idoc.MESFCT = " ";
idoc.TEST = " ";
create segment of type E1EDK01
add field MENGE with a value
add segment e1edp01  to idoc
create segment of type E1EDP19
add field QUALF with a value to segment
add field IDTNR  with a value to segment
add segment E1EDP19 to idoc
send idoc
When I check WE02 in SAP, I can see the idoc, but
get this error
Here are all the STATUS RECORDS
<b>50  IDoc added
64  IDoc ready to be transferred to application
62  IDoc passed to application
51  Error: Application document not posted
    <i>VKORG, VTWEG, SPART cannot be determined</i>
    for customer 0000001171 , vendor</b>
I checked on Internet and found that VOE2 can be used to setup ... this is what I have in VOE2
Customer    Vendor  SOrg     DChl   Dv
1171        0000001171       1000   00
Thanks for help...

Similar Messages

  • Automatic Sales Order Creation from PO in B1

    Hi,
    I have this scenario. Purchase order is created in SAP B1 (Business One) which triggers automatic Sales Order creation in SAP ECC 6.0.
    The requirement:
    For the combination of PO number and Sold to party there should be only one sales order created.
    The problem:
    Sometimes for the same PO duplicate Sales orders(sometimes 3,4) are getting created in ECC.
    Possible causes:
    Probably no validations in the interface.
    Question:
    1. First of all, is it an SD issue or PI (process integration) issue.
    2. If it is an SD issue, as a functional consultant what / where can we do to prevent this.
    Thanks.
    Edited by: SAP SD_Newbie on Oct 20, 2011 6:59 PM
    Edited by: SAP SD_Newbie on Oct 20, 2011 6:59 PM
    How do I move this to "ERP - Sales and Distribution (SD) General", because this question is not just related to "ERP SD Sales" but SD in general. Isn't there an option for the users to a question from one forum to another.

    1. First of all, is it an SD issue or PI (process integration) issue.
    - May be PI, or SD or both. I am not sure about the integration mechanism/program so I am not able to pinpoint.
    2. If it is an SD issue, as a functional consultant what / where can we do to prevent this.
    In t.code VOV8, go to the sales document type. Select value A in the field, check Purchase order Number. Then go to t.code OVAH, there make the message number V4 115 as error message. This will not allow the creation of the sales order, if the Purchase order number duplicates. I assume in your process, the purchase order number is populated in the PO number field of the sales order overview screen.
    Regards,

  • Sales Order Creation from IDOC type ORDERS05

    Hi experts,
       I have tried to create sales order using IDOC, using FM input IDOC_INPUT_ORDERS. But when I include segment E1EDP05 - IDOC: Document Item Conditions. I got the following errors "Conditions in IDoc E1EDP05 transferred: Check data", with status 51, and application is post.
       Fields I filled in the segment:
    KSCHL
    KRATE
    UPRBS
    MEAUN
      Thanks.

    SAP Xpert friends,
    I really need help in figuring out this error I get when I send an IDoc from external system to SAP.
    Here is what I do....
    create empty idoc of type ORDERS01
    idoc.MESTYP = "ORDERS";
    idoc.SNDPRN = "1171";
    idoc.SNDPRT = "KU";
    idoc.MANDT = "400";
    idoc.SNDPFC = "AG";
    idoc.MESCOD = " ";
    idoc.MESFCT = " ";
    idoc.TEST = " ";
    create segment of type E1EDK01
    add field MENGE with a value
    add segment e1edp01  to idoc
    create segment of type E1EDP19
    add field QUALF with a value to segment
    add field IDTNR  with a value to segment
    add segment E1EDP19 to idoc
    send idoc
    When I check WE02 in SAP, I can see the idoc, but
    get this error
    Here are all the STATUS RECORDS
    <b>50  IDoc added
    64  IDoc ready to be transferred to application
    62  IDoc passed to application
    51  Error: Application document not posted
        <i>VKORG, VTWEG, SPART cannot be determined</i>
        for customer 0000001171 , vendor</b>
    I checked on Internet and found that VOE2 can be used to setup ... this is what I have in VOE2
    Customer    Vendor  SOrg     DChl   Dv
    1171        0000001171       1000   00
    Thanks for help...

  • Syntax for commiet  for sales order creation from VB

    syntax for commit  for sales order creation from VB.
    i have created sales order from vb using "sap bapi control" object, i am getting message too that sales order created of this number
    BUT it will not reflect in particular table or tcode?
    what should i do to commiet that sales order creation from vb while using sap bapi control.
    i have tried sap function call too,
    now how to commiet or is there any other way?
    regards,
    dushyant.

    Hi,
    Check this link, explains step by step.
    http://abaplovers.blogspot.com/2008/02/bap-sales-order-create.html
    Thanks,
    Krishna

  • Sales order creation -pricing- IDOC processing

    Hi All,
    Issue is related to pricing procedure and condition types while processing the IDOC for sales order creation.
    The condition type ZSTD maintained in the pricing procedure AAAA, has reference condition type as ZZZZ, when we are processing IDOC, system is throwing error as " condition type ZZZZ, is not maintained for A V AAAA.
    This error will not populate when we create the sales order manually.
    Kindly let me know if programs needs to be checked and or any configuration mistakes involved in this.
    Regards,
    SAN

    >
    Vivek Baddula wrote:
    > Hey Teju,
    >
    > Could you pls put me the block of code how you are populating to the idoc edidd. So that we can guide you.
    >
    > And also tell me the message status 51 in IDoc what it is showing , and also see the segment( maybe E2EDP05)  specific  to pricing for the IDoc  you populated.
    >
    > Regards,
    >
    > Vvieks
    >
    > 'Grow and help others to Grow'
    Vivek,
    Thanks for the reply.
    Status 51 reads "condition ZPRL is missing in pricing procedure A V ZPRINT, WE are not passing any value as a part of tsting. The system should pick price values from condtion record.

  • Find Sales order number from IDOC number

    I have a bunch of SO idocs, in status 64. They are then posted and Sales orders are created.
    How can I programatically find the Sales order Number from the Sales Order idoc number once it is in status 53 (other than going to EDIDS and checking if status = '53' and grabbing the 'STAPA2' field there ).

    Look at table EDIDS for sales order idocs and you can see SO number in any of STAPA1/2/3/4 variable for specific message id and message number.

  • Steps for Sales order creation via IDOC

    Hi,
    I am getting a file on the application server ,which is a purchase order IDoc outbound from another SAP system. I need to use this file to create a sales order through an IDOC in my SAP system. What are the various settings and steps need to be undertaken to achieve this?
    Regards
    Nishant

    Nishant,
    This is NOT the way IDOCS are to be used. When you want to communicate between two SAP systems, you recieve a info from a middleware you use IDOCS.
    Here if you want you can read the data and call the concerened BAPI, to create the Sales order.
    regards,
    Ravi
    Note : Please mark the helpful answers

  • Line item Ship-to Info is not the same in Header Ship-to Party During Sales Order Creation via IDOC

    We have observed that during creation of sales order using idoc, the line item ship-to party is not the same with header ship-to. The ship-to party info in line item is equivalent to the header's sold to party. To give you a quick background, Sold to party info is given in idoc and ship to party is being determined using table EDPAR. In this specific scenario, sold to customer is not the same with ship to customer.
    Initial checking on the code leads us in function module VIEW_KUAGV. This FM populates partner details of sales order header and line item in program LVEDAF1Z
    Below is the code for Sales order Header. Notice that WE_INPUT parameter which contains Ship to party is passed as exporting parameter in FM VIEW_KUAGV. This is the reason why Ship to Party is populated correctly in sales order header but not in sales order item.
    Initially, it first set to Sold-To Party. However, if WE_INPUT is given or provided, partner details is set to Ship-To Party.
    Please advise on how we can make the ship to party info in header and line item be consistent. This is SAP Standard program which why we are hesitant to make change on the program. If there is a configuration to make this happen, kindly advise.
    Regards,
    Rommel

    Hi Jayesh,
    If I understand you correctly, you want that when creating SO from Quoatation
    the Ship to Party also follow/copy Ship to Party from Quotation, right?
    Just to confirm with you, when you creating SO reference from Quotation, you
    use copy/follow-up function, am I right?
    You can do this by setting in configuration of Copy Control (like mentioned by Hui).
    Step as follow :
    1. Go to IMG->CRM->Transactions->Basic Settings->Copying Control for
        Business Transactions
    2. Create your BAdi (Business Add-In for Copying Control), such as get Ship to
        Party value from source document and use it in current document
    3. Use this Rule you have created in BAdi (no. 2), in copy control transaction type
        IMG->CRM->Transactions->Basic Settings->Copying Control for
        Business Transactions-> Define Copying Control for Transaction Types
    4. Here you set Copying Routine for your transaction types (put name of your Badi
        created in step no. 2)
    Or alternatively, you can set it on access sequence in Partner Function
    Ship to Party in configuration. You can define access sequence the Ship
    to Party is taken from Preceeding Document -> Ship To Party
    1. Go to Partner Function access sequence :
        IMG->CRM->Basic Functions->Partner Processing->Define Access Sequence
    2. Create new access sequence with following entry :
        - Source COM_PARTNER_A (PrecedingPartner)
        - Check Mapping for Partner Being search
        - Partner Function in Source  = Ship To Party
    3. Assign this Access Sequence in you Partner Function used in Sales Order Transaction
       Type.
    Tell me if this is what you looking for
    Gun.

  • APO: RRP3 automate Production order creation from planned order ?

    Hi everyone ,
    I have got a business requirement in APO where in Open sale orders uploaded in R/3, needs to be converted to Planned order and subsequently to Production order in APO-PPDS tcode RRP3 at all stages. They want to automate this process rather than doing it
    manually.
    Can anyone tell how is this possible . Any BAPI or function module available to do this . Please help.
    Regards,
    Syed

    Hi,
    1.You need to run the heuristics Planning of standard lots SAP_PP_002  in /SAPAPO/CDPSB0 by specifying the time profile
       and  strategy profile, planning version and propagation range, product and location.
    2. Convert PPDS Planned Orders created to process orders thru /SAPAPO/RRP7 by specifying the product location start date of the order for production order creation.
    Out put of step 1- For sales order requirement, PPDS Planned orders gets created.
    Out put of step 2- PPDS Planned orders are converted to production orders.
    Thanks,
    nandha

  • BAPI for Sales Order Creation from Third-party Application

    Hi,
    I need to create a Sales order in a SAP system from a third-party applications. Please provide the list of BAPIs/Interfaces that are involved in creation of Sales Order.

    Hi,
    Check this link, explains step by step.
    http://abaplovers.blogspot.com/2008/02/bap-sales-order-create.html
    Thanks,
    Krishna

  • Issue in Sale order creation from program

    Hi Friends
    As per our project requirement we are creating sale order from ABAP Program.
    We are adding all the line item values from some table and pushing it into final internal table.
    After the loop statement we are adding one more material( Material X) in the final internal table through hard coding.
    Its working fine in Dev/QA/SND,but when it comes to production its adding the material(material X) in multiple lines(only in some cases).But as per our logic it should come only once..
    we are not able to replicate the same scenario in Dev/QA/SND.
    So anybody have an idea about this kind of issue.Kindly let me know.
    Thanks in Advance.
    Thanks
    Gowrishankar

    Actually I added like that only.
    LOOP AT idoc_data WHERE segnam = c_e1edp19.
              indx = sy-tabix.
            ENDLOOP.
            LOOP AT idoc_data WHERE segnam = c_e1edp01.
              index = sy-tabix.
            ENDLOOP.
            READ TABLE idoc_data INDEX index.
            IF sy-subrc = 0.
              segnum = idoc_data-segnum.
              wa_e1edp01 = idoc_data-sdata.
              n_posex = wa_e1edp01-posex.
              n_posex = n_posex + 10.
              CLEAR: wa_e1edp01.
              wa_e1edp01-posex = n_posex.
              wa_e1edp01-menge = '1'.
              wa_e1edp01-menee = 'EA'.
              idoc_data-sdata = wa_e1edp01.
              indx = indx + 1.
              INSERT idoc_data INDEX indx.
            ENDIF.
            CLEAR: n_posex, n_config_id, n_inst_id.
            READ TABLE idoc_data WITH KEY segnam = c_e1curef
                                   psgnum = segnum.
            IF sy-subrc = 0.
              e1curef = idoc_data-sdata.
              n_posex = e1curef-posex.
              n_posex = n_posex + 10.
              e1curef-posex = n_posex.
              n_config_id = e1curef-config_id.
              n_config_id = n_config_id + 1.
              e1curef-config_id = n_config_id.
              n_inst_id = e1curef-inst_id.
              n_inst_id = n_inst_id + 1.
              e1curef-inst_id = n_inst_id.
              idoc_data-sdata = e1curef.
              indx = indx + 1.
              INSERT idoc_data INDEX indx.
            ENDIF.
            idoc_data-segnam = c_e1edp19.
            wa_e1edp19-qualf = '002'.
            wa_e1edp19-idtnr = c_sm.
            idoc_data-sdata = wa_e1edp19.
            indx = indx + 1.
            INSERT idoc_data INDEX indx.
          ENDIF.
        ENDIF.
    Its working in DEV/QA/SND part..

  • LSMW - Sales Order creation using IDoc

    Hello,
    I'm receiving a file containing different category of products and need to create a sales order (using IDoc or BAPI) per category. The input file contains UPC code, I use a SELECT statement to check the category and append the UPC code to the specific internal table .(one internal table per category). The issue I have is to do loop in all internal table and then to create a sales order. I have some difficulties to update item segment. Only one UPC is populated to the required segment. Please let me know if this could be done using LSMW.
    Thanks ! Thanks ! Thanks ! Thanks !
    Mehdi

    You can use program RVINVB10 ( Direct Input ) to create Sales Order , Before you run this program you will have to create a file with data in specific format.
    Read the documenatation of the program.
    LSMw can help in formatting the data but beetr write your own progarm to format data and then run above program as LSMW has limitations and I am not sure what type of file you are getting. In you custom program you will have more control.
    Cheers.

  • Sales Order Creation from BAPI Error

    Hi Friends,
    I am using BAPI_SALESORDER_CREATEFROMDAT1 to create the Sales Order. But I am getting an error when I am executing the FM. I am filling the following Information and passing on the information to the BAPI FM. Details:
    IMPORT PARAMETERS:
        ORDER_HEADER_IN:           
                DOC_TYPE:     OR
                SALES_ORG:   BP01
                DISTR_CHAN:   01
                DIVISION:         01
                REQ_DATE_H:  29.08.2008
                PURCH_DATE:  29.08.2008
                INCOTERMS1:  FH
                INCOTERMS2:  PALO ALTO
                PMNTTRMS:     0001
                SHIP_COND:    01
                CURRENCY:    USD
    TABLES:
         ORDER_ITEMS_IN:
                 ITM_NUMBER:    10
                 MATERIAL:         XXXX-6
                 PLANT:               BP01
                 REQ_QTY:          20
                 SALES_UNIT:      EA
                 ITEM_CATEG:     AGN
                 SHORT_TEXT:     TEST MATERIAL
          ORDER_PARTNERS:
                 PARTN_ROLE:     SH
                                            PY
                                            BP
                                            SP
                 PART_NUMB:      1000
                                            1000
                                            1000
                                            1000
    By using the above information, when I am executing the FM I am getting error
    EXPORT PARAMETERS
          RETURN:
                  TYPE:         E
                  ID               AM
                  NUMBER    216
                  MESSAGE  Incomplete address; enter country
    But when I am creating it from the VA01 Transaction, I am able to create Sales Order Successfully.
    Friends, please help me in this regard.
    Yours
    Pradeep Goli
    Edited by: Pradeep Goli on Sep 8, 2008 2:56 PM

    Hi,
    I hope the below link will help you.
    Help needed with BAPI_SALESORDER_CREATEFROMDAT1 parameters
    Thanks,
    Khushboo.

  • Sales order Creation from Purchase Order

    Hi all ,
    I want to create SO from PO.Is it any bapi to create SO from PO.
    or other wise i will use to get PO details from this BAPI_PO_GETDETAIL and then create So from this BAPI_SALESORDER_CREATEFROMDAT2..
    Iis there any bapi like BAPI_SALESDOCUMENT_COPY..

    Hi
    I doubt if there is one single BAPI which will serve the purpose in your case. I think you should go with the first step you mentioned. Get the PO details and then pass it to the sales BAPI.
    Vishwa.

  • BADI:to create automatic Sales order(va01) from Scheduling Agreement(ME31L)

    Gurus,
    I want to create SO after Scheduling agreement creation.
    I am trying to do it using BADI: ME_PURCHDOC_POSTED method Posted.
    I've implemented it, and it is getting called, I am trying to create SO using SO create BAPI in the BADI.
    though the same code of SO creation with schedule line Through BAPI working fine with reports, its not able to create SO with schedule line when i use it in BADI.
    Point rewarded for any help.
    Rgs
    Ashok.
    Edited by: Ashok Gupta on Mar 30, 2008 5:20 PM

    i've done it.

Maybe you are looking for

  • Customer Statement send by email

    Hi,     I have a problem in sending multiple customer statement seperatly to each customer by email .Here  i can able to send email to all the customers but the attachment contains all the customer statements.but i want to send the particular stateme

  • Edit a form created with a template

    I created a page by using a template in Dreamweaver. It was an invitaiton form: http://www.eddieandalice.com/invite.html I didn't use validation fields (lack of knowledge at the time). I am trying to go back and make that happen however, when I try t

  • How do I gain control....

    How do I gain control of my F14 and F15 keys on the keyboarde of my G5? Right now they are taken up by brightness and dimming controls that are redundant since I have those on the monitor itself (Apple 23) and badly need those to assign functions in

  • SOAP API via Java

    I get the following error when trying to connect to the SAW Authentication service via java [java] {com.siebel.analytics.web/soap/error/v1}Error: [java] <sawsoape:Code>OQ78YWIW</sawsoape:Code> [java] <sawsoape:Message>Assertion failure: false at line

  • Converting QT to Tiffs - No Alphas?!?

    I'm converting QT's with embedded alphas (Millions+) into Tif image sequences and it works, but it fails to preserve the alpha channel. They are missing in the newly created tifs. I've searched the Image Sequence settings but don't see any alpha opti