Docnum of generated Idoc in File2Idoc scenario

Hi folks,
I have a file2Idoc scenario and I would like to see in PI the docnum of the Idoc generated in the target backend system.
In sxmb_moni I ve found an IdocOutbound entry in the soap header but that docnum does not exist in the target system (the Idoc is there but with a different docnum). Actually I dont know what docnum it is as I couldnt find it in the pi system as well.
Its easy to identify the Idoc by timestamp in our dev system however it is not an option in the prod system where we have 10000 msg an hour
So how can I find out in PI which Idoc has been created in the target system?
thx

Hi,
Go to idx5 transaction and check the idoc number for the respective message.
Please refer the below links
file to IDOC:how do i relate inbound idoc with generated idoc in the R/3
Monitoring the IDOC Adapter in XI/PI using IDX5
Regards,
Priyanka

Similar Messages

  • FIle Content Conversion Problem in IDOC-XI-File Scenario

    Dear All,
    I am doing IDOC-XI-FILE scenario.
    I am facing one problem related to File Content Coversion.My requirement was to generate a dynamic file like <b>%store_code%_%current_date%_sitemaster.xml</b> , I have completed the dynamic generation successfully .
    Now there is slight change in the requirement ,<b>we have to suppress the current_date node of the xml content</b> . i have tried to suppress the current_date using these <b>DATE.fieldFixedLengths 0 , Date.fixedLengthTooShortHandling Cut</b> , But I am unable to suppress it Can some body provide me the details on this .
    The output xml version generated by Reciever file adapter is as below :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
    - <SITE_DATA>
    <STORE_CODE>N002</STORE_CODE>
    <TITLE_MEDI>Company</TITLE_MEDI>
    <STORE_NAME>Mount Road</STORE_NAME>
    <STREET>Chennai</STREET>
    <COUNTRY>IN</COUNTRY>
    <SALES_TAX_NO>12345678910</SALES_TAX_NO>
    </SITE_DATA>
    </ns0:MT_SITE_MASTER>
    Plz provide me the code I have to write in the file content conversion .
    Thanks in advance
    Regards
    Prabhat

    If u see my earlier reply, I mentioned that u can not suppress the field from the one node.i.e Form SITE_DATA data type u can not suppress the field called CURRENT_DATE.
    My suggestion is that , modify the Data type in such a way that you will be having two nodes as I have mentioned earlier.  Then use the Suppress Logic for the Current Date.
    So it will look like this-
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
    - <SITE_DATA>
    <STORE_CODE>N002</STORE_CODE>
    <TITLE_MEDI>Company</TITLE_MEDI>
    <STORE_NAME>Mount Road</STORE_NAME>
    <STREET>Chennai</STREET>
    <COUNTRY>IN</COUNTRY>
    <SALES_TAX_NO>12345678910</SALES_TAX_NO>
    </SITE_DATA>
    <CURR_DATE>
       <CURRENT_DATE>20051105</CURRENT_DATE>
    </CURR_DATE>
    </ns0:MT_SITE_MASTER>
    So ur SITE_DATA is not having a field called CURRENT_DATE. This field is in separate node (segment ) called CURR_DATE. Now u can use the Suppress Logic for the same like this.
    CURR_DATE.fieldFixedLengths - 0
    CURR_DATE.fixedLengthTooShortHanling - Cut
    And in your Variable Substitution you can use the date from the other segment called CURR_DATE.
    Hope this solves ur problem.
    Regards,
    Moorthy

  • File to IDOC:how do i relate inbound idoc with generated idoc in the R/3

    hi experts;
    can any body tell me how can i relate the IDOC number genrated in the PI with the generated IDoc number in the SAP R/3 system for file to IDOC scenario?
    in SAP PI for tcade idx5, idoc no is:12002
    but in SAP R/3 in tcode WE05, idoc no is:846915
    how can i know a particular message (in SAP PI) created a particular idoc in the backend SAP R/3 System.
    thanks in advance,
    kumar

    Hi Kumar
    at the time of testing you have to note down a time at what ur file got picked up ok
    then go to we05
      -> give the date on CREATED ON field.
      -> then in BASIC TYPE field select your particular IDOC CREMAS05 or whatever, see the TIME field that you have noted down at the time of testing, if that is matching means that is ur latest IDOC you have tested.
      -> one more thing, tha last IDOC showing in the list means that is your latest IDOC you have tested.
    Hope i have helped you, points plz
    Warm Regards
    Dheeraj Kumar

  • Need an alert to be sent after succesful completion idoc to file scenario.

    Hi ,
    we have an idoc to file scenario, the user wants a email confirmation after the file is generated, can any body help how i can trigger an alert once  file is generated by xi(in a idoc to file scenario).
    regards
    sandeep

    Hi Sandeep,
    we have an idoc to file scenario, the user wants a email confirmation after the file is generated, can any body help how i can trigger an alert once  file is generated by xi(in a idoc to file scenario).
    Well, you can generate an email after your file has been sent (use BPM for this).
    But I believe your Client wants a confirmation of file delivery through email, which might be a problem. By using the above step, you will be able to send the email after file is sent, but it won't confirm whether the file has been successfully delivered.
    You need a synch message which file won't be supporting. So, the other way is to ask your Client if it is possible for them to send an acknowledgment to PI after receiving the file, and then you can trigger the email.
    Unfortunately, there is no straight way out for your problem.
    Hope this helps.
    Regards,
    Neetesh

  • XI: idoc 2 file scenario( Contain error in SM58)

    Hi experts,
    Here i am having one issue. i have done Idoc 2 file scenario...i have created material in R/3 successfully. when i have sent the material to legacy system..Idoc was generated Successfully in r/3 but i haven't seen that message in SXMB_MONI..
    i got the error message in SM58 i.e. IDX1 port SAPDE1, Client 220, RFc Destination Contain error.
    plz any one can u help me on this....
    Regards,
    Yadav

    Hi Yadav,
    The RFC port you defined is not correct in IDX1. The Port name must be in the form of u201CSAPxxxu201D, where xxx is the system ID of the backend SAP system.
    Just cross check it.
    Check this for more details:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
    Regards,
    Sachin

  • No message in found in XI in IDOC to FILE scenario

    Hi everybody,
              I am working on a scenario idoc to file. The idoc is sent sucessfully from R/3 , but I am not getting any message in message monitoring in XI.Can anybody help me on this?

    Hi Bhagyashree,
    Just see if the file is generated at the specified destination....
    Meanwhile please go through the info below and cross check with what you have done...
    i will just share a few basic thoughts that you need to take care while doing an IDOC to File Scenario. Just see if it helps you in anyways.
    While doing an IDOC -> XI -> File scenario, The Points to noted are:
    1. You don’t need a DT, MT or a message interface for the IDOC as it itself acts as the Message Interface.
    2. You import the IDOC and use the same in your mapping.
    3. In this configuration note that you don’t have a sender agreement as you don’t have a sender IDOC adapter.
    If it is that you wanted to send an IDOC from XI (File to IDOC) , then in this case:
    points 1 and 2 will remain, but the 3 will not. You will need a sender agreement for the file and a receiver agreement for the IDOC.
    IDOC -> File scenario ref:
    <a href="/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters scenario</a>
    File -> IDOC ref:
    <a href="/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping to IDOC</a>
    To be able to trigger your IDOC from the SAP ISU system, you will have to set the partner profile in we20. Select your Business System (mostly under Logical system) and then create Outbound entries for whichever IDOC you want to trigger.
    You define your basic type also in your partner profile settings, Please go thru the following links to get a better idea about partner profile:
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b833243d711d1893e0000e8323c4f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7cd343d711d1893e0000e8323c4f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/32/692037b1f10709e10000009b38f839/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5e/b8f8bf356dc84096e4fedc2cd71426/frameset.htm
    Also, I would suggest that you go through this blog by michal if any issue arises,
    /people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    I hope this answers your query.
    Regards,
    Abhy

  • IDOC to JDBC Scenario error

    Hi All,
    I am doing a IDOC to JDBC Scenario.I am done with IR and ID.
    The Table in the DB is TABLE1 with Field1 and Field2.
    Now when I run thescenario it throws an error ,
    2009-03-19 12:41:06 Success INSERT INTO  TABLE1 (Field1, Field2) VALUES (KM247850, FINJTIA)
    2009-03-19 12:41:06 Error Unable to execute statement for table or stored procedure. 'TABLE1' (Structure 'Statement') due to java.sql.SQLException: [EUDNT038]The name "KM247850" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.
    But it has successfully generated the SQL Query which I think is perfect.
    But whats the error which follows that?
    How do I resolve it?
    Thanks,
    Venu

    Hi,
    It could be due to wrong structure of JDBC, compare your target structure with this blog..
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Regards,
    Sarvesh

  • IDOC to JDBC scenario: Does INSERT command expect a result value?

    Hello,
    we have an IDoc-to-JDBC-scenario configured on our XI 3.0, which uses the INSERT command to put a dataset coming from R/3 into a SQL database. This works fine.
    Now a trigger has been activated on the database, which sets a flag to each dataset after inserting.
    Because of this a system error occurs in the Adapter Engine and I found in the AuditLog (logSQLStatement=true), that the INSERT command is processed correcty, but in the next step an error is shown up: 'SQLServerException. A result set was generated for update.'
    Could it be, that the trigger returns a result value, which can't be handled on the XI ?
    If yes, how can I solve this issue? I have read something about the different methods execute(), executeUpdate() and executeQuery(), but I don't know how and where this has to be configured...
    Thanks in advance,
    Juergen

    Hi Upendra,
    I got some more information from the database adminstrator:
    He used the following command 'exec xp_cmdshell @ExportCmd , no_output'
    whereas @ExportCmd contains the command.
    With the no_output option, the xp_cmdshell does not return a recordset.
    I hope this will be helpful to you.
    Grtz,
    Juergen

  • Message type for generating IDOC  for SUBCONTRACTING PURCHASE ORDER

    Hi All,
    I have to generate IDOC for PO creation or change .
    I am using IDOC_OUTPUT_ORDERS and IDOC_OUTPUT_ORDCHG.
    The messagetype.idoctype  I am using is  ORDERS. ORDERS05  and ORDCHG. ORDERS05.
    Now the confusion is regarding whether  this message type will work in case of SUBCONTRACTING PURCHASE ORDER as well ?
    As I have gone through some websites and came to know that I will have to use PORDCR1.PORDCR102 specially for subcontracting.
    And programs we need to use is BUS2012_ICH_R3 instead of  RSNASTED and Form Routine SEND_PORDCR1 instead of EDI_PROCESSING.
    Purchase Order Collaboration scenario - Not generating IDOC in ECC
    http://www.erpgenie.com/faq/edi_purchasing.htm    on this site question no  8.
    Subcontract PO IDOCs
    I hope your experience will help me .
    Please reply ASAP.
    Edited by: uttam27 on Dec 4, 2011 1:47 PM

    There is a generic function to create change pointers for all message typs - 'CHANGE_POINTERS_CREATE_DIRECT'.  This is triggered only if you configure your message type to create change pointers from BD50.
    Once you activate it do any change to orders you can see change pointer tables BDCPV filled. Then BD21 will read the changes and generated outbound idocs accordingly.

  • Problem in file2IDOC scenario

    Dear all,
    I am using File adapter on the receiver side and IDOC adapter on the sender side.
    I am using delete option for processing mode.
    The file is getting deleted in the source directory but i don't find the IDOC at all in the IDX5 (XI).
    I have even verified WE05 but i didn't find any inbound iDOC.
    I have checked the runtime workbench.
    Both the communication channels are error free.
    In such scenarios how can i find why the IDOC in not pushed to SAP.
    How to trace the iDOC?
    Thanks.

    Hello Durga......
    For Tracing Idoc.....
    ALE Error Messages:
    02 - Error passing data to port
    04 - Error within control information on EDI subsystem
    05 - Error during translation
    25 - Processing despite syntax errors (outbound)
    29 - Error in ALE service
    32 - Resubmit edited intermediate document (DO NOT USE)
    Syntax Error Messages:
    26 - Error during syntax check of IDoc (outbound)Inbound ALE Status Codes
    IDoc Processed Successfully:
    50 - IDoc added
    53 - Successful posting
    IDoc ready for processing:
    64 - IDoc ready to be passed to application. The IDoc will be passed to the application by program RBDAPP01.
    Errors in IDoc Processing:
    51 - Error - application document not posted
    56 - IDoc with errors added (You should never see this error code)
    60 - Error during syntax check of IDoc (inbound)
    61 - Processing despite syntax error (inbound)
    63 - Error passing IDoc to application
    65 - Error in ALE service - indicates partner profiles are incorrect
    69 - IDoc was edited
    Testing:
    Log in to Adaptor Monitor and check for the file adaptor. The status of the adaptor should be green and working.
    Check the ftp connection, it should connect to destination folder without any error.
    Log in to sender system, go to transaction WE19 (test tool to generate IDoc), generate Idoc of the required message type.
    Log in to Xi system and execute transaction SXMB_MONI and check for the XML messages. Use your source and destination system to filter messages, it should have chequered flag.
    Check the destination directory, it should have file with the name specified along with the time stamp. Check the file, it should have data for all segments. 
    Reward Points If is Useful...
    Thanks,
    Satya Kumar.....

  • Idoc to soap scenario - soap response error

    hi
    i am using pi 731 single stack.
    the scenario is idoc to soap. the message mapping is working fine and output is generated successfully.
    the message is failing in mesage monitor and communication channel monitor. error is -
    Exception caught by adapter framework: SOAP: Response message contains an errorXIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: VEN-OMI-1007:
    This scenario is async scenario. How to soap remove this response message error.
    rgds

    Dear,
    IDoc to Soap scenario we have to import wsdl at receiver end and map the field from the mapping document but some times receiver end some changes may happen. if it is correct only your mapping we have to conclude from the below points.
    1. Check the mapping in Message Mapping and Operation Mapping Test and conclude.
    2. you should check url from receiver that is correct or wrong.
    3. ask the wsdl from receiver end.
    the given ED and receiver side application is same this type of error will not come.
    Please check at receiver application or else what ever new fields are added in reciver may be miss mach of ED.
    Regards,
    Kiran Polani

  • Problem with IDOC TO FILE Scenario

    Hi Experts,
    I am doing IDOC TO FILE Scenario.
    I have done all the configuration.I have cretaed RFC,PORT,LS and Partner profile at both R/3 and
    XI Side.
    when I am trying to generate IDOC using we19 and I put the r/3 port,partner in sender and XI
    port and partner in receiver it gives me error as "Port 'SAPCU6_100' does not exist in the table
    of port descriptions.
    Please help me.....
    Regards

    HI Saras,
    Please go through the below weblog which has all the stpes which is required for ur scenario...I think screen by screen help u to debug ur problem and it will help u to find out the msitake which u have made.
    File To IDOC - Part1 (SLD and Design):
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&
    File To IDOC - Part2 (Configuration):
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&
    File To IDOC - Part3 (Steps required in XI and R3):
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&
    Thnx
    Chirag

  • Multiple target files - Idoc to File scenario - Simple question

    Hi,
       I have a simple IDOC to File scenario. However at the occurence of a node say node A I need to generate a file
    For example if the input IDOC has 3 Nodes for Node A I need to have 3 different files one for each node.
    Any help is appreicated.
    Thanks
    Joe

    Hi,
    Map your node A to the Target root node.
    it will generate the Flat files based on node A.
    Regards,
    sukarna.

  • Regarding IDOC 2 FILE Scenario

    Hi Friends,
                    please help on IDOC 2 File Scenario. I have done tha ALE settings in R3 system and the Idoc has been  generated out of r3 system. but how it wiil be sent to XI server can any body help me on this issue.make it as quick as possible.

    Hi,
    Goto We02 and take the IDOC number froom there.
    goto WE19, give the copied idoc number and click on execute.
    Check for Control records for that IDOC and say outbound processing
    ALE Settings
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    Check this for posting the IDOC From R/3 to XI
    /people/sameer.shadab/blog/2005/07/25/reposting-idocs-instead-of-recreating--for-testing-purpose-xi
    /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapR3%28Idocs%29ToXI+--
    StepsSummarized&
    Regards
    Seshagiri

  • Unable to do IDoc to File Scenario ; Please help me....

    Hi Experts!!!,
                     I am trying to convert an IDoc to an .Txt or .Xml file, But I am un able to do it. Whenever I m trying to configure the Idoc adapter , it's not allowing me to select as "sender" (default it will be on the recvr side). Please help me in this regard. 
    Do I need to use RFC adapet, or BAPI instead of IDoc or any other way..to complete IDoc to File scenario...
    THANKS IN ADVANCE!!!
    Sunil K Shetty.

    HI,
    No need to use Sender Idoc adapter , default , IDoc adapter resides on Integration Engine. No sender communication channel and sender agreement also
    see the below links
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    Idoc settings https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    Regards
    Chilla

Maybe you are looking for