IDOC  ORDERS01

I am testing IDOC for IDOC type ORDERS01.
When i send PO from one client 502 to another client 602 (vendor) then a Sales Order should automatically be created at receive side . How is it possible?
PO IDOC is going from 502 to 602 but no Sales order created in 602 so PO is not getting confirmed. Pls explain
Thanks

hi
The following code may help you
REPORT ZALE_USR.
CONSTANTS: C_DOCTYP TYPE EDIDC-IDOCTP VALUE 'ZUSRDET01',Idoctype
C_SEGNAM TYPE EDIDD-SEGNAM VALUE 'Z1USRDET01', segmenttype
C_MESTYP TYPE EDIDC-MESTYP VALUE 'ZUSRDET'. message type
DATA: IT_ZUSR02 TYPE USR02 OCCURS 10,
IT_EDIDC TYPE EDIDC OCCURS 0,
IT_EDIDD TYPE EDIDD OCCURS 0,
WA_ZUSR02 TYPE USR02,
WA_EDIDC TYPE EDIDC,
WA_EDIDD TYPE EDIDD,
WA_Z1USRDET01 TYPE Z1USRDET01,
V_OCCMAX TYPE IDOCSYN-OCCMAX,
V_NBSEG TYPE I.
CLEAR WA_ZUSR02.
CLEAR WA_EDIDC.
Save the message type and the basic IDoc type in the control segment.
MOVE C_MESTYP TO WA_EDIDC-MESTYP.
MOVE C_DOCTYP TO WA_EDIDC-IDOCTP.
Retrieve the maximum number of segments in the basic IDoc type.
SELECT MIN( OCCMAX ) FROM IDOCSYN INTO V_OCCMAX WHERE IDOCTYP EQ C_DOCTYP AND SEGTYP EQ C_SEGNAM.
Save the whole USR02 table content in the IT_ZUSR02 internal table.
SELECT * FROM USR02 INTO CORRESPONDING FIELDS OF TABLE IT_ZUSR02.
Create a data segment for each line of IT_ZUSR02.
LOOP AT IT_ZUSR02 INTO WA_ZUSR02 .
MOVE-CORRESPONDING WA_ZUSR02 TO WA_Z1USRDET01.
CLEAR WA_EDIDD.
MOVE C_SEGNAM TO WA_EDIDD-SEGNAM.
MOVE WA_Z1USRDET01 TO WA_EDIDD-SDATA.
APPEND WA_EDIDD TO IT_EDIDD.
CLEAR WA_ZUSR02.
CLEAR WA_Z1USRDET01.
ENDLOOP.
Count the number of data segments.
DESCRIBE TABLE IT_EDIDD LINES V_NBSEG.
If the number of data segments exceeds the maximum allowed number,then display an error message.
IF V_NBSEG GT V_OCCMAX.
WRITE:/ 'ERROR'.
ENDIF.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = WA_EDIDC
OBJ_TYPE = ''
CHNUM = ''
tables
communication_idoc_control = IT_EDIDC
master_idoc_data = IT_EDIDD
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>Reward points for helpful ans</b>
Regards
Aarti

Similar Messages

  • Field Value not passed from IDOC (orders01) to File Generated

    Hi All,
    I have added a custom field to a PO at item level (ekpo-Ztest)and Passing it to OUTBOUND IDOC.
    In process of passing to IDOC(ORDERS01) i mapped the field to segment E2EDP19001-MFRPN and i see the value in the IDOC when i view it in WE02.
    The problem is when i generate a file i don't see the value of E2EDP19001-MFRPN
    We are already using QUALF,IDTNR,KTEXT of E2EDP19001 and i see all the values of these fields being passed from IDOC to file generated .
    Let me know as i'm missing anything in here
    I quick note ,
    I see 3 version for E2EDP19 Segment for orders01
    Vesrion
    002     E2EDP19002                             8     242     02/14/2005
    001     E2EDP19001     40A                    5     160     08/19/1997
    000     E2EDP19             30A                     3     108     04/03/1995
    1)The version 000 and 001 are released but not 002 Version
    2)May be i 'm using version 000 and its out put length is only 108 and these fields(QUALF,IDTNR,KTEXT) together occupy 108 and there is no room for my new field but My IDOC dispalys E2EDP19001 and E2EDP19002 and also it displays my new field but its the output file generated that doesn't show the value
    Thanks

    Resolved Myself
    Thanks

  • Mandatory Fields for IDOC ORDERS01 for Pricing Condition EDI1 to trigger

    Hi ,
    I'm Testing an Inbound ORDRSP using we 19  for Pricing Conditions EDI1. What are the Mandatory Fields for IDOC ORDERS01
    Thanks

    hello,
    I think it's better to execute VA01 to create a sales order; in that way you should have an idea of mandatory fields.
    Thanks.

  • IDoc ORDERS01 with different shipping addresses

    Hi,
    we are using IDOC ORDERS01 to create customer orders in the ERP. Which is working fine as long as we are using just a partner number as ship-to-partner in the IDoc. Now it should be possible to also use different ship-to-partner addresses. So the idea was to use the same partner number for the ship-to-partner as before but add the different ship-to-partner address in the corresponding IDoc fields (IDoc segment E1EDKA1 for PARVW = WE). Which is also working fine except for the house number. Street name and house number are put together in IDoc field E1EDKA1-STRAS. And they also stay together in the street field of the resulting ERP sales order. But the address structure (for example in the partner deatails of the sales order) uses an own field for the house number. This field is not set with the house number from the street field in the ORDERS01 IDoc but with the house number of the default address of the used ship-to-partner number. Which means that the street line for the ship-to-partner has a street name and two house numbers which is of course not what we want to be displayed in sales orders. So how can we make the right house number from the ORDERS01 IDoc the one and only house number in the sales order? How can we overwrite the default house number of the default ship-to-partner address with the house number of the different shipping address from the ORDERS01 IDoc?
    Regards,
    Robert

    Hello Robert
    Check out the following OSS notes:
    1457805 - Fields not populating on inbound order through idocs.
    618476 - EDI: Field HAUSN is not filled- This is for older release and for INVOIC01, but may be you can borrow and develop the concept for   ORDERS01.
    Also did you consider leaving House Number blank in the customer master, i.e.
    in the street/house Number Filed, maintain like this:
    6201 W IMPERIAL HWY/ blank
    but not as
    W IMPERIAL HWY/6201
    That's how these fields are populated in my system.
    Hope this helps. Let me know.

  • Inbound IDOC - ORDERS01

    My scenario is to Create a Sales Order Using IDOC ORDERS01.  The problem I face is the condition value not populating in the sales order.  The condition type is correctly populating.
    I am doing Mapping in the E1EDK05 Segment as follow:
    KSCHL = 'ZOMN'
    KOBTR = variable1 for value
    KOEIN = variable2 for unit
    Am I doing the E1EDK05 mapping correctly?  How can I pass my header condition?

    I had the same problem with E1EDP05. For the value, I had to use the field 'KRATE'. Perhaps for the head conditions you should use the same field.
    Succes, Paul

  • Basic doubt in idoc: orders01 vs orders02/03/04/05

    hi all,
    when i check for orders idoc i have idocs from order01 to orders05....what is the need of having idocs ranging from order01 to order05? what is the difference in their functionality?
    thkx
    chaks

    ORDERS05 is the highest successor of the ORDERS01. You must use the ORDERS05.
    ORDERS01 was released in the basis release 30A.
    ORDERS05 was released in the basis release 46A.
    You can get this information from the IDOC Type header information. Use transaction WE30, enter your Idoc Type and check the Header Data (Shift+F7).
    Regards,
    Naimesh Patel

  • ORDERS01 Populating customer e-mail field in sales order E1EDKA1

    Hi,
    I can create orders using Inbound IDOC ORDERS01 and populate address data using E1EDKA1 with PARVW "WE" for ship to party.
    In the sales order under communication there is an e-mail field (field name) SMTP_ADDR
    Is it possible to populate into this field from the IDOC.
    Also under further attributes there is a VAT RegNo field (field anme STCEG), I would like to do the same thing with that field.
    Anybody got any suggestions?
    Thanks
    Rob

    hI,
    Please check IDoc Reduction (BD53) or Segment Filters (BD56) whether segment E1EDP05 was applied or not.IF not debugg the standard program RSNAST00 to debug the FM IDOC_OUTPUT_ORDERS.
    Please specify the output application 'V2', enter the object key with delivery number (i.e. 0080000325) which correspond with the IDoc and check the send again checkbox.
    Enter '/h' at command center and execute the above program.
    Then go to menu -> Breakpoints -> Breakpoints at -> Function module -> IDOC_OUTPUT_ORDERS -> Continue -> Click on 'Run' (F8) -> ....
    *Reward points
    Regards

  • Read of XML file and post to IDOC

    Hi
    I'm working on a <b>WAS620</b> and need to read an XML file from a customer, extract the fields needed and post these via IDOC ORDERS01. My problem is HOW to read the XML file? Can anyone give me the steps involved/links to examples etc - I have not processed XML files via ABAP before.
    The file is posted to a shared folder and the ABAP I am about to develop will pick up this file.
    The file is <b>NOT</b> in IDOC/XML format but the customers own format
    Hope someone can help me asap.
    Thanks all in advance
    /Bo

    Hi,
    I would like to extend this question for <b>WAS620</b> and <b>reading</b> a <b>proprietary customer specific XML</b> file/data that is <b>send via HTTP to SAP WAS</b>.
    <b>Q1</b>: What is the best way to read this HTTP sent XML data (as it is, without transformations) into ABAP?
    <b>Q2</b>: What is the appropriate handler to use in the ICF object?
    Thanks all in advance

  • IDOC configuration Issue

    HI All,
    I am getting the following error Unable to Convert Integration Process into ALE Logical System... Even though i defined LS in Business Landscape and also In Adapter Specifiers of Business System...
    I have gone through all the weblogs and threads in the forums related to this topic, but still I am confused with the steps to followed.
    I am workinng on a BPM Scenario where from Legacy system, I will be sending Order Details to XI and From XI (BPM) to R/3 through IDOC adapter...
    So Say XISERVER is the Client 600
    And SAP R/3 is         Client 800
    Please Can u tell me the steps to be followed i.e ,
    In which sys .to define Logical Systems, RFC and where to create Port..
    Actually i created a Logical System in Client 800 (IDS800) and also the same in Client 600
    Now please can any one provide me steps to be followed in detail....
    Points will be rewarded......
    Regards,
    Sridhar

    Hi Micheal,
    I have already done header mapping as mentioned by you. Our total scenario is as follows:
    We have a outbound-asynchronous interface, an abstract-asynchronous interface mapped to the IDOC ORDERS01. Our integration process has a simple recieve and send step. In the configuration part we have done Reciever Determination for file system to BPM and from BPM to R/3.
    we also imported Integration process from IR and here we have the same Abstract interface as sender and receiver .. Is this any prob..?
    After that we have followed all the steps given in the How to Document on IDOC adapter congfiguration. We have searched through lot of posts in form and tried all the suggestions.
    Pls help us by giving some sequence of steps or snap shots to my mail ID ([email protected])...
    Thanks and regards,
    Sridhar reddy
    Message was edited by: sridhar reddy kondam

  • IDOC - XI - post HTTP on .ASP?& DATA_CONTENT

    HI ALL !
    I have this scenario :
    1) R3 send IDOC ORDERS01 to XI (3.0) 
    2) XI elabs IDOC fields (in mapping step)
    3) XI with HTTP Adapter post data to a "page".asp on webserver using querystring (like page.asp?&ID_CUSTOMER=123&ORD_DOC=WE ...etc..)
    My ASP page use this stantments for get values:
    ID_CUSTOMER = Request.Form("ID_CUSTOMER");
    ORD_DOC = Request.Form("ORD_DOC");
    xml_content = Request.Form("xml_content");
    At the moment XI call the page but the query string is empty ! I think that the message type of interface will be automatically added on URL (as when flags Additional Query on Comm.Channel - Sender Party, Sender Service... are selected).... it's wrong ?!? If yes how it's possible complete the flow ?!
    Thks !!

    Hi Jari,
    Thanks for the reply,
    I have the asp file as below and plz suggest for any changes,
    <%
    Function BinToText(varBinData, intDataSizeInBytes)
                Const adFldLong = 128 '&H00000080
                Const adVarChar = 129
                Set objRS = Server.CreateObject("ADODB.Recordset")
                objRS.Fields.Append "txt", adVarChar, intDataSizeInBytes, adFldLong
                objRS.Open
                objRS.AddNew
                objRS.Fields("txt").AppendChunk varBinData
                BinToText = objRS("txt").Value
                objRS.Close
                Set objRS = Nothing
    End Function
    server.scripttimeout = 600
    dim binXML, strXML, outXML, objFundsDelete
    'if Request.TotalBytes > 0 then
    '           binXML=Request.BinaryRead(Request.TotalBytes)
    '           strXML=BinToText(binXML,lenb(binXML))
    'else
    '           strXML=""
    'end if
    strxml = Request("xmlData")
    'Response.ContentType="TEXT/XML"
    'Response.Write(strXML)
       'dim fs, LogFile
       'logFile = "c:\received.xml"
       'set fs = server.CreateObject("Scripting.FilesystemObject")
       'on error resume next
       'if fs.FileExists(LogFile) = false then
       '  set ts = fs.CreateTextFile(LogFile)
       'end if 
       'set ts = fs.OpenTextFile(LogFile,2)
       'ts.writeline strXML
       'ts.close
       'set fs = nothing
       'set ts = nothing
    set objFundsDelete=server.CreateObject("FundsDelete.CFundsTransfer")
    outXML=objFundsDelete.FundsProcess(strXML)
    set objFundsDelete=nothing
    Response.ContentType="TEXT/XML"
    Response.Write(outXML)
    %>
    Thanks,
    srini

  • IDOC segments for Orders04

    Hello Friends,
    I am creating IDOC for purchase order and the message class is orders01 and orders04
    Everything looks good for orders01. But for the same PO for message type orders04 some of the segments do not appear.
    The segmants containing the text for the item does not appear.
    E1EDKT1 and E1EDKT2.
    Whats the reason for this.
    Any Suggestions,
    Thanks in Advance.

    Hi,
    Both IDOCs orders01 and orders04 have segments E1EDKT1 and E1EDKT2. In fact orders04 has some more segments as it is higher version of idoc than orders01.
    Can you try one more thing? Create a new PO with text and first time create a IDOC ORDERS04 and then change the same PO and create a IDOC of type ORDERS01. Let me know if still you do not get the text on first IDOC ( orders04 ) and get it on second IDOC ( orders01). As far as i know, there is not difference between these two IDOCs. ( when you say message class orders01 and orders04, i think you mean IDOC orders01 and orders04 ).
    If still you have a issue then debug the code. The FM is <b>IDOC_OUTPUT_ORDERS</b>. These segments are filled in   <b>PERFORM FUELLEN_IDOC_INTTAB</b>. ( include <b>LEINMF11</b> ). Here search for 'E1EDKT1, you will get it on around line <b>647 (    perform fill_e1edkt1 ).</b>
    If you look at the code above,  you will see that the routine for populating  E1EDKT1 and E1EDKT2 only triggers if couple IF conditions meet. Here it read data from <b>internal table XT166k</b> ( database <b>table T166K</b> ) and there some other conditions too.
    Debug you code here and see why text is not getting populated. You will get your answer.
    Let me know if you have any question.
    Regards,
    RS

  • Create outbound delivery thru Idoc

    I am working on a sales return scenario in SAP as below :--
    01. Creating Return sales Order in SAP thru inbound  Idoc ( ORDERS01)
    02. Triggering outbound Idoc ( ORDRSP/ORDERS05) from return sales order to our return plant.
    03. Customer will send  returned goods to our return plant. Plant will send us an Idoc to create delivery in SAP.
    04. Once delivery is created thru Idoc , our batch job will do PGR.
    05. Billing batch job will generate credit memo for return.
    I am looking for advise on following points :--
    01. Can we create outbound delivery thru DESADV Idoc ?We are also planning to update delivery Item text thru this Idoc.
    02. SAP standard provides ( SHP_OBDLV_CREATE_SLS) this Idoc to create delivery with reference to Sales Order but not able to update delivery text thru this ?
    03.Any other way-out to create delivery and update delivery text thru inbound Idoc?
    Thanks in advance!!
    Best Regards/Rajesh

    Create your own and assign as processing the BAPI or a wrapper for it.
    Enjoy

  • Flat IDoc to Retail backend system

    Hello,
    I have a flat file, representing ORDERS01 IDoc transaction. Part of the file is listed below as an example. On the back-end I have a SAP Retail Management System, that should consume this purchase order and do something with it.
    Question: how to do that in the most easy way?
    From what I was told SAP Retail system can only receive data through RFC or IDoc channels. Is there any way to just pick up this file from the local system and send using IDoc or RFC adapter not defining any mapping, but just letting Retail system to parse and understand the data?
    If there is any example for such case, I'll appreciate the link.
    Thanks,
    Maxim.
    Example of the Flat IDoc ORDERS01 file -
    EDI_DC40                           2   ORDERS ...
    E2EDK01003                                                         USD   1.00000 ...
    E2EDK14                                                        008BIC...        
    E2EDK14                                                        00600  ...
    E2EDK14                                                        00702     ...
    E2EDK14                                                        012ZOR    ...
    E2EDKA1002                                                     AG 000024588        xxx              ...

    Hi Maxim,
    >>That's not exactly what I was looking for. The article shows how to translate Flat IDoc to XML. I'm looking for something different.
    I guess that is th blog you should refer. I will explain why...
    >>I have a Retail back-end system that can consume Flat IDoc, which I have. However, I'm curious how to transfer the IDoc file sitting on the filesystem to that remote Retail system through the IDoc adapter.
    Picking the flat IDOC from Retail can be done by File Adapter and then using the modules (as per the blog), the flat Idoc will be converted to XML Idoc so that XI can understand the structure.
    Now by using a Receiver IDoc adapter this XMLized Idoc is again send to the remote Retail system.
    Hope this is clear now
    Regards
    Suraj

  • Material Determination and IDOC/EDI

    Hi Gurus,
    I'm wonder if someone can help me on this:
    1) Material Determination is already configured.
    2) Master Data already there, to convert EAN codes into Material ones.
    3) If I execute VA01, everything is ok, and the EAN code will be substituted by corresponding Material.
    4) If I process an IDOC ORDERS01 wich has in E2EDP19 segment, the EAn code with qualifier "003", he gives me an error message, saying that there is no conversion for that material, ( EAN one ), and the process stops with status 51.
    What I'm doing wrong ?
    Thanks in advance,
    Cheers

    Try filling the EAN code as material in the IDOc with the Qualifier 003.
    Regards,
    Nagaraju Chidurupalli

  • Very Urgent: Populating E1EDP05 in ORDERS01

    Hi,
    I am using standard idoc ORDERS01 and cant seem to output any data in segment E1EDP05. I need this segment for the discounts and price conditions. I have looked into the function module IDOC_OUTPUT_ORDERS and it uses the FM RV_PRICE_PRINT_ITEM to get the data for this segment. Still I cant figure out whats missing with our configuration since every discounts and price conditions appear in PO Printouts but the IDOC program cannot pull the same data.
    Please help! I really need this badly. Ill appreacite any help from you guys.
    Thanks in advance.
    Regards,
    Kenny

    Hi Kenny,
    Sorry ... please use standard program RSNAST00 to debug the FM IDOC_OUTPUT_ORDERS.
    Please specify the output application 'V2', enter the object key with delivery number (i.e. 0080000325) which correspond with the IDoc and check the send again checkbox.
    Enter '/h' at command center and execute the above program.
    Then go to menu -> Breakpoints -> Breakpoints at -> Function module -> IDOC_OUTPUT_ORDERS -> Continue -> Click on 'Run' (F8) -> ....
    Regards,
    Ferry Lianto

Maybe you are looking for

  • How do I install an older version of an app from the Mac App Store?

    I have an older MacBook (OS X 10.6.8) and I can't install most apps. On iOS it will install the newest compatable app. Is there a way to do something like that on a Mac?

  • Is there a plug-in manager in LR 1.1?

    I am using Lightroom 1.1 and want to download/activate a plugin, but don't see the plugin manager in the File menu - is this feature available in 1.1? Or is there some other way to activate plugins?

  • F110 No Records Selected

    Dear Expert, When I run F110 for payment proposal, some vendor open items can be selected but some are missing from the list. When checks this in FBL1N, particular vendor is having open items. Why this is not picking up by F110 payment program? Can a

  • MB5S.

    Hi, when executing trx MB5S, system shows that: -received quantity = 67; -quantity invoiced = 67; -GR value  =2242,8; -Invoice amount 2242,8 Clicking on GR value (2242,8) shows that the column Amt.in loc.cur. for the GR is  = 2194,92 that is (32,76 (

  • System  -- XI -- HTTP Synchronous Scenario. Pls advice

    Hi All, I have 2 scenarios: 1. HTTP -- XI --- System A Synchronous Scenario 2. System B -- XI -- HTTP  Synchronous Scenario Can HTTP Receiver Adapter be used for both the above synchronous scenarios? a. In HTTP Receiver Adapter is RFC Destination is