Wrong customer number in ORDERS IDoc

Hello gurus,
we are trying to send MM orders from one of our company codes to another one (same system, same client).
The ORDERS IDoc is sent without error, but the we get an error message on the inbound side:
VKORG, VTWEG, SPART cannot be determined for customer 0000569630, vendor 0020011961
Message no. VG204
Diagnosis
No sales organization, distribution channel or division were sent to the IDOC. This data is necessary if a sales order is to be added automatically. If this data is unavailable, you cannot create a sales order document.
Procedure
If data on the sales organization, distribution channel and division have not been entered in the IDOC, it must be determined using a user exit defined in the program.
The thing is, the customer does not have the number 569630 in our system! Still the number is in the E1EDKA1 AG segment in PARTN. The vendor number is correct.
Where does this strange customer number come from?
Cheers
Alicia

hi,
you have three possibilities to determine the organizational data in SD
during the EDI inbound process.
The first possibility is to send these fields in the Idoc-Segment
E1EDK14 (Qualifier 006 - division, Qualifier 007 - distribution chanel,
Qualifier 008 - sales organization, Qualifier 010 - sales group,
Qualifier 012 - ordertype,  Qualifier 016 - Sales office)
The second possibility to determine is table EDSDC. In this table You
can make table entries for sales organization, distribution chanel and
division per customer and vendor. You need an sold-to party and a
E1EDKA1 segment with an filled vendor in field E1EDKA1-LIFNR.
(transaction VOE2). Please check these settings.
The third possibility is to fill it in the IDOC_INPUT_ORDERS user-exits.
For error analyis, see SAP note 380603
kind regards
Paul Quinn

Similar Messages

  • SEPA Mandates Registered on wrong Customer Number

    Hello all,
    In the past few months we have been implementing SEPA, we are nearing the end of the implementation, but we still have one issue open. During the implementation of SEPA we have also implemented a new customer model (changing of payer and sold-to-party partner functions). This is leading to the problem that some of the SEPA mandates that we have registered in SAP, have been registered on the wrong customers number, ie. xx2 instead of xx1.
    Now I can't change the status of the mandate to "Obsolete" and then create it on a different customer as the mandate ID number already exists in SAP. So I'm looking for a way to delete the mandates completely from SAP so that I can then create them once again on the correct customer number, but so far I have not yet been able to find such a way. So I'm hoping that you can help me.
    It's concerning mandates for which the mandate ID's where created outside of SAP, so the Mandate number range within SAP should not be a problem.
    Regards,
    Thijs

    hi,
    you have three possibilities to determine the organizational data in SD
    during the EDI inbound process.
    The first possibility is to send these fields in the Idoc-Segment
    E1EDK14 (Qualifier 006 - division, Qualifier 007 - distribution chanel,
    Qualifier 008 - sales organization, Qualifier 010 - sales group,
    Qualifier 012 - ordertype,  Qualifier 016 - Sales office)
    The second possibility to determine is table EDSDC. In this table You
    can make table entries for sales organization, distribution chanel and
    division per customer and vendor. You need an sold-to party and a
    E1EDKA1 segment with an filled vendor in field E1EDKA1-LIFNR.
    (transaction VOE2). Please check these settings.
    The third possibility is to fill it in the IDOC_INPUT_ORDERS user-exits.
    For error analyis, see SAP note 380603
    kind regards
    Paul Quinn

  • Hi Reg Problem in Purchase order--taking wrong customer number.

    Hi all, I have a purchase order created with ref to sales order. But as per the partner role it was suppose to take customer A. But it is taking customer B. How is it possible??
    Can you please guide me.where all to check??
    Regards,
    Smitha

    Hi,
    For MM Partner Determination;
    SPRO > MM > Purchasing > Partner Determination > Partner Roles
    - Define Partner Roles
    - Define Permissible Partner Roles per Account Group
    SPRO > MM > Purchasing > Partner Determination > Partner Settings in Vendor Master Record
    - Define Partner Schemas
    - Assign Partner Schemas to Account Groups
    SPRO > MM > Purchasing > Partner Determination > Partner Settings in Purchasing Documents
    - Define Partner Schemas
    - Assign Partner Schemas to Document Types
    And for SD Partner Determination;
    Check in transaction VOPA

  • Customer Sales Order number to display in Purchase Order idoc

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

  • Ship to party PO number line item field updating in ORDERS IDOC

    Hi Experts,
             We are in the process of creating the Sales order by receiving EDI data from customer and converting in to IDOC format and trying to create the sales order. While executing the ORDERS IDOC message type sales order is getting created successfully.
    But our requirement is, we want to store the customer contract details in the sales order. So we identified the "Ship to Party Purchase Order data" in ORDERS Tab in the sales order. While executing, in the Header level the Contract number is getting updated against Ship to party Contract number field.
            But during item level process, system is not updating the contract line item number field even though we maintained the value in E1EDP02-ZEILE for the QUALF 044.
    Note: The similar scenario, we want to capture the Customer Purchase order number & line item number. For this we maintained the value in E1EDP02-ZEILE for the separate QUALF, its working fine.
    Kindly give your valuable feedback on this issue also
    Regards,
    nag

    Hi
    See Note 753153 - FAQ: Customer-functions in IDOC_INPUT_ORDERS. Check if EXIT_SAPLVEDA_001 gives you any possibility to do it.
    I hope this helps you.
    Regards
    Eduardo

  • Get Sales order by PO Number w/o customer number

    Is there a bapi out there that can get the Sales Order Number by PO Number without the need for a customer number?
    I know there is BAPI_SALESORDER_GETLIST but it requires there be a customer number.

    Was putting the PO number in the wrong field.

  • Customer number not in the inspection lot for a make to order scenario

    Hi All,
    I know that standard SAP will get the Customer number into Insp. lot only for insp. types 10/11/12.  I am wondering if someone know a way to get the customer no. into insp. lot for insp. type 04 where the material is make-to-order scenario and the Production/Process order has the Sales order and customer no. without activating User-exit.  The quality users want to be able to see the customer no. in insp. lot without having them to go to process order. 
    It makes no sense to me why the customer no. is not brought into insp. lot when that is available in the Prod/process order, which can further be used to select the customer specific insp. plans for 04 insp. type Insp. lot without using Variant configuration.
    Any light on this topic is appreciated.
    Thanks.

    Hi Srikant,
    I guess.........
    Normally the inspection lot refers the triggering document that are the trigger cause for them.
    - Inspection type 01: - Purchase Order and GR material document.
    - Inspection type 03: - Pro. Order Number
    The same way...
    The inspection type 10\11\12 are purely related to the SD, and directly integrates QM and SD. Hence in the inspection lot for the inspection types directly integrated to SD, it will furnish the Sales order number \ Customer.
    But the inspection type 04 is purely have it's relation to Production process. So it will have the details related to integrations it has i.e. the "Pro. Order." Hence it integrates QM-PP, it have the data related to PP (Pro Order), not the SD's one.
    But I think one way you can achieve it,
    Assign the Customer number also to the inspection plan along with the Material. So I think at the time of assigning the inspection plan to the inspection lot, it will refer the Customer number also and will display the Customer number along with Task list Group\Group Counter, in the inspection specification screen in QA03/02
    Regards,
    Shyamal

  • Function Module to fetch Customer Number from Sales Order or Process Order

    Hi Gurus,
    I am looking for a Function module which gives me customer number from Sales order or Process order.
    Please let me know of any FM's available.
    Regards,
    Madan

    Hi,
    Thanks for your response.
    I am actually looking for function modules which take "Sales Order" or "Process Order" as input (import parameter) and return Customer Number as output (export parameter).
    Please suggest some function modules you know any.
    Many Thanks,
    Madan

  • 7 character field to purchase order ,customer number

    please help
    1)
    data : kunnr1(7) type c.
    data : kunnr like kna1-kunnr.
    kunnr1 has only field length 7 and it is of type character.
    kunnr is a sap field.
    everytime i need to fill the data from the field kunnr1 to sap kunnr and pass to bdc .
    suppose kunnr1 = 1930903 ie 7 characters .
    and in sap shall i simply copy like this
    kunnr = kunnr1. " will this work
    or
    concatnate '000' kunnr1 to kunnr.
    or
    any other one .
    2)same with the purchase order number.
    data : po(7) type c.
    dat : bstdk type vbak-bstdk.
    po = asdefgr
    bsdtk = po
    or
    concatenate '' po to bsdtk.
    if i assign value from po to bsdtk will at end command will work on bstdk?
    example
    loop at itab into workarea.
    at last bsdtk." i need this to work so tell me how to assign the value from po to bsdtk
    endloop.

    i checked the customer number in sap system,
    in the sales order it is stored as 1277494
    i checked in vbak table and it is stored as 1277494and rest blank spaces.
    i checked in kna1 table , the same kunnr is stored as 0001277494.
    why is this difference?
    so i need to use the 'CONVERSION_EXIT_ALPHA_INPUT' for kunnr?
    I checked for po but that is stored as a charater format and no need to add the leading zeros, is that right?
    I used CONVERSION_EXIT_MATN1_INPUT for material do i need to use CONVERSION_EXIT_ALPHA_INPUT for material also?
    thank you for the solutions given.

  • Production order & idoc number

    gurus,
    is there any table which gives link between the production order & idoc number

    check the nast table in se16..
    object key is the  production order ..
    and catch the partner number from nast and pass to EDIDC table with data and time to get the idoc number from EDIDC table.
    Regards,
    Prabhudas

  • PI to Idoc - Wrong partner Number

    Hi experts,
    something odd happened yesterday, we usually receive ORDERS idocs from different legacy system, but for one order, the Partner Number of the Idoc created in SAP was incorrect.
    For example, Legacy ABC sent us an order which created an idoc in SAP. Usually it creates idoc with Partner Number ABC which is populated according what we have defined in the SLD.
    But this time, we received the order from legacy ABC but the idoc was created with another Partner Number (DEF) from which we also receiver orders.
    Do you know where it might come from ?
    Any helmp would be greatly appreciated
    Kind regards,
    Jamal

    Hi,
    >>>Hi I have no mapping at all for control records segment, it is populated by it self according to SLD and partner profiles
    please check the receiver agreement object and field - header mapping - sender service
    is it the same as with other flows ? you can put there the business system which has the correct
    logical system name in SLD - so it will go correctly to ERP
    Regards,
    Michal Krawczyk

  • Wrong Operation number(Activity  Number) showing in Production Order

    Friends
    I have created a production order.
    Wrong Operation number(Activity  Number - RESBD-VORNR) is  showing for some of the Production Order components(all are phantom components only)   where as the activity number in its  Routing components (RCM01-VORNR) is different. So we need to change the activity to correct activity manually in change production order screen(CO02)
    I found one  SAP Note 104322 - Error in reallocating phantom (When reallocating phantom components in a production order to another operation, different errors can occur:
    --  not all dependent components are allocated to the correct operation). We are on ECC 5.0 . This note already exists in our system
    This issue happened only with one BOM . Many other BOMs ( similar type) donot have this issue.
    Can some one from the group help me to resolve this issue?
    Thanks in advance
    Please let me know if you guys need more details
    Thanks
    MVSSAI

    Hi MVSSAI,
    I am just a bit confused if you are talking about wrong operation nos. or wrong activity nos. If I am correct, it should be wrong operation nos. which fetches the activities that are defined in that work center.
    If wrong operation nos. is getting selected then
    Please check if the system is configured with alternative sequence under T.Code: CA01 for a particular group & group counter (just in case you are using nos. of routings for the single material).
    If yes, then check if you have defined priority of the sequence i.e. in which order it has to taken.
    If yes, further check if you have aligned automatic routing selection depending upon the B.O.M. alternatives in routing itself.
    Just in case you have maintained any of these the routing will get automatically selected depending upon the priority that is given to work center and hence different operation nos.
    Regards,
    Pankaj

  • Get the sales order number based on customer number

    HI all,
    how can i get the sales order numbers based on the customer number?
    plz tell me the table names.
    thanks,
    Srini

    hiiiii..
    go to database table VBAK
    where you can find customer id and sales order
    use a select statement in your report program
    and key as kunnr ...
    i hope it does ...the job

  • Custom number range to sales orders

    HI Gurus
       I have a requirement to keep a custom number range to sales orders. The number range should start with X.The next two characters should be based on the user name. The remaning part is the sequence number. Please advice the best way to do it.

    HI Seshu
      If we need to use that user exit we should assign the number range as internal. From here you can select a number range but not the number. If we assign any number in the user exit then the vbeln is refreshed. I am thinking of creating externel number range and write some code in the field exit of vbak-vbelen. Will it have any side effects. And is there any number range object in SAP. I know in oracle we can create a number (counter). Please advice

  • How to fix when wrong serial number is sent to a customer

    Hi,
    We are using SAP Business One 9.  We have some items managed by serial number.  Occasionally, someone will ship a customer the wrong serial number (vs. the serial number they have picked for the Invoice).  What is the best way to fix this?  Do we need to do a credit memo to get the incorrect serial number showing back in stock, and then a new Invoice with the correct serial number that they were shipped - or is there a better way to fix this? 

    HI Theresa,
    how about updating the serial numbers directly?
    http://help.sap.com/saphelp_sbo900/helpdata/en/45/2364f39e152b31e10000000a1553f7/content.htm
    "You can update the details of existing serial numbers with reference to specific items, subsequent to the definition or use of the serial numbers in documents."
    Best

Maybe you are looking for

  • Is there a way to make a "music" playlist that contains videos? for iCruze

    Hello, I just purchase a 5th generation iPOD video to replace an old 15GB iPOD in my wife's car. The old iPOD has worked wonderfully in my wife's car, playing audio (MP3s) with an iCruze interface to the factory stereo. In case you haven't heard of i

  • To iMac or not to iMac

    I am an architect using mainly AutoCAD. I despertly want to get into the Mac world, but know AutoCAD and Mac don't play well. Now with what I hear about Leopard being able to run windows, it sounds like it may be time, but I don't like thinking about

  • User Exit For PR Create and Change

    Hi,    Please help me for finding User Exit while creating Purchase Requisiton(Me51/Me51n)  and aslo changing Purchase Requisiton(Me52/Me52n). Mainly i want to exit for validating Plant and material code while creating and changing PR. Thanks, Sunil

  • Dynamic Selection option in the selection screen

    Hi , I have a requirement like this .... The user wants some fields to be default available in the selection screen. But they also want to be able to select the data based on additional fields (all the remaining fields ) which they want to see in the

  • Needing to run Mountain Lion with Yosemite OS

    I'm needing to run Mountain Lion and I've got a new Retina 15" MBP that shipped with Yosemite. I've been told you cannot run it on a partition with Yosemite. What is the best way to go about doing this? I'm needing to have access to Pro Tools 10 as s