Inbound idoc for orders05 to create sales order

Hi all,
I am creating a sales order through idoc (ORDERS05). I am getting a flat file, which is being converted into idoc from XI side and i need to add certain things and validate inside the function module IDOC_INPUT_OREDERS. I am using the exit call customer function '002' (EXIT_SAPLVEDA_002)  in it.
My confusion is regarding the population of control records. If some validation fails, i need to set current status as 51. Which field i need to update in this exit in order to achieve this. What are the other control fields that i need to update for an inbound idoc please specify.
Also, i have another doubt, what is the use of DXBDCDATA in that exit. Do i need to do any BDC related work in inbound idocs.
I am new to inbound idoc scenario. But havn't found enough tutorial related to standard idoc generation..
thanks

Hi,
I think, you should fill the validation errors in EXIT_SAPLVEDA_011 (SD EDI Incoming Orders: Final Processing of Internal Error Tables) which subsequently update the status records of IDOC.  Check line NO 56 of function module "IDOC_INPUT_ORDERS".
Regards
Vinod

Similar Messages

  • Stock Reserve for customer while creating sales order

    Hi Gurus,
    In our scenario,i want to reserve my stock  while saving the sales order for customer .when the next order will get placed for same article system should not be  allow to use commited stock for pending sales order which is not yet get pgi.
    _Scenario:-_
    I raised order , say N0.20091076 with quantity 100 Boxes
    I raised order , say N0.20091077 with quantity 50 boxes
    Availability check was performed and system has confirmed the quantities as above for both the orders
    Now i have gone to delivery and raised delivery for order N0. 20091077 ( OR.N0.20091076 --- 100 Boxes is still open).
    but in the delivery i changed the quantity to 80 boxes instead of 50 as raised in the order N0.20091077 , but system is allowing to do PGI for order N0. 20091077 with 80 boxes. ( This means order N0.20091076 which contains 100 boxes is having deficit now).
    Can i controll this that if i raise the oder with certain quantity and a particular batch then the system should not allow this quantity to be used by other order in the delivery/PGI irrespective of the customer .
    Thanks & Regards,
    Sunil

    Hi
    No need to do MB1B movement type 412 E
    If  include sales requirements is ticked in OVZ9 for the checking group  in MMR and checking rule A (SD sales order) you cannot increase the qty in order 2
    Example
    Material X stock is 10 units
    order A is created first for 5 and order B is created second for another 5
    Include sales requirements is ticked in OVZ9 for A (sd sales order) combination
    Now if you try to deliver order B with 6 units system will throw error as only 5 units is available
    If you try to deliver order A also with 6 units system will throw error as only 5 units is available
    So stocks are reserved as per sales orders
    I already suggested you to do this sales requirements ito be ticked in OVZ9 in my first post  but i thought it  may not be very effective for the scenario described by you
    But on testing it is found to be very effective provided backorder processing and rescheduling is not carried out
    For your account determination error you have to check OBYC settings and also in t code OMWD whether the valuation grouping code 0001 has been assigned to your plant
    If this not done in then during PGI you will face the same error
    In normal circumstances during PGI only material doc is generated and this error is expected at that time
    Since you are making a hard reservation during MB1B itself you are facing it as this transaction generates material doc
    If you have already done 412 E you can reverse the same with MB1B movement type 411E
    Regards
    Raja

  • How to get the inbound idoc for the newly created inbound Idoc FM

    Hi,
    I have created a new function module to process the Inbound idoc.  I need to have a idoc to check my function module, whether it is working fine or not.  How I can get the data.  Do I need to have the idoc from the partner ?  Please help me ASAP.
    Thanks,
    sreenivas.

    Hi Sreenivas,
    Go to WE19 and get any of the your present idoc  with the idoc type
    then go to BD20...execute the same idoc...and there you can create the IDoc, and process the same with the Inbound function module tab..( give the FM you are using as the process code.)
    from there you can do the debugging aswell of that FM
    Thanks

  • Idoc in status 51 creates sales order

    We have a peculiar problem in our production system.
    The SALESORDER_CREATEFROMDAT201 Idoc comes in and goes into status 51 with the error that the material does not exist in the sales org.
    Even though the Idoc is in status 51 the SO gets created with no line items (the Idoc had one line item)
    If anyone anyone encountered such a problem before, please let me know how to resolve it.

    Hi,
    Go to we05 and see whether you have received an IDoc or not.(U sure must have received one,pick the latest).
    Go to we64 and find the Process code and thereby the Function module attached to that PRcoess code for your Idco message type.
    Put a Breakpoint in that function module.
    Go to we19 and give that IDoc number and press inbound processing button on the application toolbar.
    From the error message what I can infer is that The IDOC comes through to the CRM system, but the data in the IDoc is not able to create a correspoding employee record.
    So it must be a Data problem and i don't think there is any problem with partner profiles or ports
    <b>Reward points</b>
    Regards

  • Create Sales order from Internal Purchase Order using IDOC

    Hello Friends,
    I have requirement to create Sales Order from Internal Purchase Order Using IDOC.
    Backgorund, we have already configured IDOC orders05 to create Sales Order from external Purchase order from Inbound IDOC, and it is working fine.
    Now we have new requirement to create Sales Order from our own Purchase order, i.e. When PO is created in one plant corresponidng sales order automatically must needs to create in another Plant with respect PO.
    I m trying to design a solution for above problem as follows,
    1.create an Inbound Idoc from PO, by creatiing one new message type on PO save.
    2.Process that Inbound  IDOC same as it is from external PO.
    3.Once processed Sales order will create.
    Please help me in step 1. to create Inbound IDOC from PO.
    If you want any further clarification please write me.
    Thanks,
    Mahesh

    I had done a similar scenario before and we achieved it through SAP XI. The problem is with the control record. When we create a ORDERS IDOC from a PO the control record will be for outbound transmission. We sent the file to XI and XI resent it back with some data parsing and a new inbound control record. This way it went neat outbound and inbound.
    I'm not sure what kind of architecture you have. If you have to do it within your ECC/R/3, then you could create the outbound IDOC to a new port and write a fresh RFC to pick it up from the same folder and create a new control record for inbound processing.
    I haven't tried this; but there is a "processing w. trigger (inbound)" option on the outbound process code. May be you can explore into that a bit more.
    I'm sure there could be better approaches to handle this within ECC so if you stumble on any, do write back. I would like to know to update my knowledge .

  • BAPI vs IDOC in creating Sales Order

    Hi Gurus,
    Good day!
    I would like to seek for your expertise to assess the advantages and disadvantages of using IDOC vs BAPI in creating sales orders?
    Overview of the requirement:
    Sales Orders are automatically created via idoc but we are planning to redesign the process by using BAPI. However, there are concerns when using a BAPI such as.
    1. Error handling/monitoring
    2. reprocess of failed creation of orders
    Thank you in advance.

    Hi Sai Sai,
    those are exactly the disadvantages.
    If you were using other middleware like SAP XI then you would have a place to monitor communications and reprocess messages, so you could use BAPI.
    But if you don't you'd had to create that mechanism in SAP or move that responsibility to your partners.
    BAPIs are useful for online SAP programs but if you require a background process with a maintenance infrastructure then you are better served with IDOCs.
    regards,
    Edgar

  • Bapi: create sales order with reference to Invoice.

    HI ,
    i am trying to create sales order(credit memo request) with respect to invoice.
    What  BAPI to use. also, please provide with sample code.
    I have passed invoice to BAPI_SALESDOCU_CREATEFROMDATA1 at header level(ref_doc).
    and i am  passing other details correctly. the pricing procedure attched to original invoice is not getting triggered for th newly creating sales order.
    Please help me with this.

    use   BAPI_SALESORDER_CREATEFROMDAT2
    search the forum for sample program

  • Problem creating sales order using IDoc ORDERS05 (Inbound)

    Hello Experts,
    We are trying to create a sales order using the IDoc ORDERS05 with process code ORDE for creating sales order. I am getting the following error "VKORG, VTWEG, SPART cannot be determined for customer 0000006000 , vendor
    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.
    I was not able to find the fields to fill the distribution channel and divison in the Idoc structure. I have filled in Sales organization in E1EDK14 segment as 3000.
    I am not able to figure out the cause for the error.
    Same data works fine from BAPI_SALESORDER_CREATEFROMDAT2.
    Please help.
    Thanks,
    Suma
    Edited by: Suma B on Jun 17, 2008 11:12 AM

    Hello Suma
    In this case I would recommend to debug the IDoc processing.
    Call transaction WE19 and start the inbound processing of your IDoc in debugging mode. The error message will most likely occur in function module IDOC_INPUT_ORDERS.
      LOOP AT idoc_contrl.
    * SET/GET Parameter und interne Tabellen neu initialisieren
    * initialize SET/GET Parameter and internal tables
        PERFORM initialize_organizational_data.
    * IDOC-Segmente in die entsprechenden Anwendungsdaten übernehmen
    * Move IDOC to internal tables
        PERFORM interpret_idoc_orders.                    "<= check here
    * Prüfen ob gewisse Segmente gefüllt sind
    * check IDOC-Segments
        PERFORM check_idoc_segments.                 "<= check here
    * Prüfen und Ermitteln von Organisationsdaten
    * check internal tables and determine organization data
    Regards
      Uwe

  • Error determining posting period(infostructure S008,Variant Z2,RC3) while creating Sales orders from Inbound IDOCS

    Hello,
    I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
    While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
    Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
    Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    Thank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
    Could it be an issue with e Update rule in this Infostructire S008
    Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
    "Maintenance of SAP standard updates not allowed"
    Kindly advice
    Thanks and Regards
    Mohammed Roshan

  • Creating Sales Orders from Quantity Contract - ORDERS05 IDOC

    Hi,
    I have created a Quantity Contract in ECC. Now I want sales orders to be created w.r.t to the Contract through ORDERS05.
    Can anyone suggest which IDOC Segment and Qualf i have to populate to achive the same.
    Also say once I am able to achive the creation of Release Orders from the Contract through ORDERS05. If I surpass the Qty of the Contract . The IDOC should be have a field for notifying the same.
    REgards,
    BInayak

    Hello Binayak
    You  may use the following segment and fields for reference data:
    Segment: E2EDK02
    Fields:
    QUALF : IDOC qualifier reference document - I think for contracts this is '001'.
    BELNR : IDOC document number
    POSNR : Item number
    As per a flag to indicate that the contract quantity is surpassed, I doubt there will be anything like that becasue is an Idoc is before you created the order and how will the system know you have surpassed until an order is entered?
    I think you need to use 'completion rule' and copy control 'update document flow' features to work on this.
    Hope this helps.

  • ERROR IN CREATING SALES ORDER,USING IDOC TYPE ORDERS05

    I am using exit to write my code for creating sales order of IDOC Type ORDERS05 and order type ZDRX.
    IF I proceess the Idoc in background each time error message comes
    FIELD kuwev-kunnr(ship to party)is not an input field.
    but if i run in foreground in debugging mode,sales order is getting created..
    please suggest something.

    If thats not working..
    try BAPI_SALESORDER_CREATEFROMDAT2
    If BAPI is not working. try creating a bdc for the same if there's not error on trying from VA01

  • Create Sales order using ORDERS05 idoc

    Hi Experts,
      i need to create sales order from an external system using Idocs. we are using ORDERS05. We needs to save data in some custom fields. hence we have extended the idoc. But the Z* fields are not at the screen level. The function module 'IDOC_INPUT_ORDERS' uses call transaction and hence we are unable to save data in the Z fields.
    Please advice some alternate approach.
    We are looking into the possibility of using a custom function module and calling the create BAPI. Please advice is there is a better approach.
    Thanks & Regards,
    Amit

    The process code ORDE does not use BAPIs. It uses call transaction to VA01. This is the reason i am facing the problem. The custom fields which i have are not in the VA01 screen.
    The BAPi is called by IDOC_INPUT_SALESORDER_CREATEFR for message type SALESORDER_CREATEFROMDAT202. But i am not sure if this works.
    Regards,
    Amit

  • Inbound IDoc for Sales Order Creation with Serial Number

    I would like to create Sales Order with Serial Number input at Item Level using IDoc. I have tried to use the followings:
    1) Basic Type : ORDERS05
    2) Message Type : ORDERS
    3) Process Code : ORDE
    I have used segment E1EDP19 with the followings:
    1) QUALF = '014'
    2) IDTNR = Serial Number
    However, it fails. It seems that the system just expects us to input BOM explosion number (VBAP-SERNR) instead of the Serial Number that I want.
    If we use VA01, we can input the Serial Number from Menu: Extra --> Technical Objects.
    Is there any idea what should I do ?

    The error message is "Entry 1276 does not exist in SNUM - check your entry" (Message no. 00058).
    1276 is the Serial Number that I input. It treats the Serial Number that I input as the BOM explosion number (VBAP-SERNR).
    Regards,
    Alan.

  • Creating Sales Order using inbound IDOC

    hi,
    Using test tool WE19 if i create sales order in foregound no error occurs and order is created successfully but if i try to create in backgound it gives error "No batch input data for screen SAPMSSY0 0120".
    please suggest a way out .

    I hope you do not have any popup windows during your order create, popups should be suppressed for batch-input.
    try to run it in foreground and check if there is any warning message which forces you to press Enter once more to bypass it.
    try to process it in "foreground after error" to see if it stops on any error/warning message.

  • Create Sales Order using IDoc

    Hi All,
    Based upon customer's input file which contains header and line item details I have to create sales order in our system. We would like to use IDoc for this. Customer will send us file once a day by email or FTP.
    For this I have created a port and partner profile but I am not sure how the process will get initiated?
    Can someone please let me know how can I do this? There is now outbound process involved, I just need to create sales order based upon input file using IDoc.
    Regards,
    Sanjay

    HI,
    You cannot directly call the function modules that process the idoc, because these functions are called dynamically by the ALE layer and the function expects data in a certian format (IDoc format ).
    BAPI would be the best way to go for your scenario.
    However there is a workaround if you want to use IDoc only. You can follow this approach :
    1. Populate an outbound ORDERS05 IDoc from the file data.
    2. Distribute it to the same system, i.e sender system and receiver system is same.
    3. On the Inbound side the Idoc that you created on the outbound side will be received and processed.
    "R3  File----->Outound ORDRES05  -----
    ______________________________________|
    |
    '------> " Inbound ORDERS05 ( in the same R3 system)
    The tricky part is sending an Idoc and receiving in the same system, but you can find how to do this on the wiki pages.
    regards,
    Advait

Maybe you are looking for

  • I got the above error while i restore the standby database using RMAN backu

    Dear All, RMAN> crosscheck archivelog all; using target database controlfile instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=14 devtype=DISK specification does not match any archive log in the recovery catalogi got t

  • Pages 09 version 4.0.4 PDF files in emails

    Good day to all. Upgraded to latest version, has caused PDF files to act differently. Ie: When exporting a letter as PDF (Export) and then later transferred as an attachment to an email, the whole file (PDF) will open instead of just listing the litt

  • My firefox toolbars are not visible when I open firefox

    All of my firefox toolbars are not visible when I open firefox. I get the tabs but no command menu no search bar or any other toolbar icons help!! == This happened == Every time Firefox opened == when I logged on one day about 2 weeks ago == == User

  • Problem selecting the right jre version with jnlp

    I am using Webstart 1.4.2. When instaling, it correctly found 2 jre versions on my system, 1.4.1_03 and 1.4.2. Because our application currently is not working with 1.4.2 I need to force webstart to use 1.4.1_03. I tried to set the tag <j2se version=

  • JMS based message service and Service account in OSB

    Hi forum, I have query regarding JMS base messaging service and Service account. My OSB service: I have created one OSB service which of type JMS configuration : General :Messaging Messaging: Request type :XML response type :none Transport:JMS JMS Tr