Suggessions required for File----XI----Idoc Interface

Dear All,
I have developed File-XIIdoc Interface and works fine.
Query: When the Source application is trying to write the data into file, XI needs to wait until it completes
Once the writing is completed then only XI has to pickup the file from Source location.
If XI is not checking this check point, File adapter is picking up the file in the middle of the data writing itself.
Please suggest me your thoughts and experience on this
REgards
Suman

Hi Suman,
For writing a module please check the blog and articles in SDN.
The module logic should be as follows:
1. it should read and store intermeidiately the size & filenam of all files present in the folder.
2. do a wait of say 30 sec in the module (by sleep or any other such waiting command of java).
3. Then recheck the size of only those files read in step one (don;t read entire files present in folder now as some new files may have been created in this 30 seconds sleep time)
4. If the file size changes don't do anything else send the content to PI and /archivethe file (should be done inside the module code)
5. Keep the file sender channel in Test mode (as the module will do the necessary archival/deletion)
PS: This blog can be a starting point for you /people/sandeep.jaiswal/blog/2008/05/13/adapter-module-to-stop-processing-of-duplicate-file-ftp-location
Regards
Suraj

Similar Messages

  • Mapping Requirement for File to IDOC

    Hi All,
    I have a requirement related to Mapping and need your help on this. There is a financial posting Interface and the data is being fetched from database using strored procedure.
    The source file is having structure like as shown below
    <FIExport>
        <resultset>
             <row>
               <headerid>12345</header id>
                <field2>5</field2>
               <field3>1</field3>
               <field4>29</field4>
               <field5>3</field5>
              </row>
             <row>
               <headerid>12345</header id>
                <field2>5</field2>
               <field3>1</field3>
               <field4>48</field4>
               <field5>3</field5>
              </row>
             <row>
               <headerid>12345</header id>
                <field2>5</field2>
               <field3>1</field3>
               </field4>
               <field5>3</field5>
              </row>
              <row>
               <headerid>12346</header id>
                <field2>5</field2>
               <field3>1</field3>
               <field4>2</field4>
               <field5>3</field5>
              </row>
             <row>
               <headerid>12347</header id>
                <field2>5</field2>
               <field3>1</field3>
               <field4>2</field4>
               <field5>3</field5>
              </row>
          </resultset>
        </FIExport>
    Condition:
    For creating target structure follwoing conditions are required
    1) IDOC at receiver side will be created as per unique header id  therefore in the current source structure 3 Idocs will be created for 3 unique header id like 12345 , 12346 , 12347
    2) Target EIFISEG which is line item will be created based on per row per unique header id under each IDOC and there has to be 2 SEGMENTS (2A & 2B ) per row based on the VAT amount presence and also two additional E1FISEG has to be created statically per idoc for BSCHL = 34
    so for the above source structure the target should have number of EIFISEG as follows:
    As there are 3 rows for header id 12345, therefore under IDOC1 the number of EIFISEG will be
    since VAT Amount(field 4) is present therefore for 2rows of 12345 header id IDOC it will generate 2X2=4 , E1FISEG segments (each for 2A & 2B) and 1 E1FISEG for 3 row of header id IDOC 12345.
    In addition to this 2 additional segment will be created for BSCHL=34( it's duplicate segment of E1FISEG, so no issues in this)
    Total number of E1FISEG segments in IDOC for header id(12345) will be = 4 + 1 + 2 = 7 segments
    Similarly for IDOC  with header id (12346) the total number of EIFISEG will be = 2( 2A & 2B as vat amount (field 4) is present + 2(bschl =34) = 4 segments
    Similarly for IDOC with header id(12347) the total number of E1FISEG will be = 2( 2A & 2B as vat amount (field 4) is present + 2(bschl =34) = 4 segments
    So the target strcuture should look like:
    Target Structure
    IDOC1 for header id= 12345
        E1FIKPF
            field 1
              E1FISEG1
                field 2
              E1FISEG2
                field 2
              E1FISEG3
                field 2
              E1FISEG4
                 field 2
              E1FISEG5
                 field 2
              E1FISEG6
                  field 2      
              E1FISEG7
                  field 2
    IDOC1 for header id= 12346
        E1FIKPF
            field 1
              E1FISEG1
                field 2
              E1FISEG2
                field 2
              E1FISEG3
                field 2
              E1FISEG4
                 field 2
    IDOC1 for header id= 12347
        E1FIKPF
            field 1
              E1FISEG1
                field 2
              E1FISEG2
                field 2
              E1FISEG3
                field 2
              E1FISEG4
                 field 2
    Please help me to complete this mapping requirement as it seems to be complex.
    Thanks & Regards
    Prabhat

    Hi,
    There was one typo mistake, the TARGET structure will be
    Target Structure
    IDOC1 for header id= 12345
       E1FIKPF
         field 1
             E1FISEG1
               field 2
             E1FISEG2
               field 2
             E1FISEG3
               field 2
             E1FISEG4
                field 2
             E1FISEG5
                field 2
             E1FISEG6
                field 2
             E1FISEG7
                field 2
    IDOC2 for header id= 12346
          E1FIKPF
            field 1
               E1FISEG1
                  field 2
               E1FISEG2
                  field 2
               E1FISEG3
                  field 2
               E1FISEG4
                  field 2
    IDOC3 for header id= 12347
               E1FIKPF
                   field 1
                     E1FISEG1
                        field 2
                     E1FISEG2
                        field 2
                     E1FISEG3
                        field 2
                     E1FISEG4
                        field 2
    Thanks & Regards
    Prabhat

  • Alert Configuration for File to IDoc scenario

    I have followed Alerts : Step-by-Step /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    and configured Alerts for file to IDoc scenario.
    But the problem is, I did not notice any alerts being generated. I could notice the IDocs being posted to destination system. So I was going through Alerts-Troubleshoute Guide. In intension to maintain monitoring level, I clicked Configuration tab. But I did not notice my sender and receiver system there to maintain.
    Can any body help me to detail out the procedure to add sender and receiver systems to maintain the monitoring level?
    Regards,
    Suraj Kumar

    hi Suraj,
    WHich SP version are you on??
    If you are on Sp14 or above, then unfortunately, Michal's Trouble Shooting for Alerts will not help.
    From SP14 onwards, activation of end to end monitoring is not needed for Alerting. Refer to this note <b>870232</b> for this info.
    Next, to test if your Alerts have been defined correctly, go to SE38. In the program , type RSALERTTEST and then click on EXECUTE button ( F8 ). In the next window, it will ask you for your ALERTCATEGORY. Just give the name of your ALERT CATEGORY and click EXECUTE.
    If you have configured your alerts correctly, you will receive a message that tells ALERT IS GENERATED and will give the ALERT ID.
    Now, go to your Run TIme workbench and then select ALERT INBOX and see if you have got the ALERT message in your ALERT INBOX.
    If this is working fine, then the last step, implement the note 913858.
    Regards,
    Bhavesh

  • Namespace Creation for file to idoc scenario

    Hi ,
    while creating new  namespace in integration repository for file-> XI-> idoc scenario ( that is data is to be pushed from a file to R/3 using idoc ) we have to enter the connection data viz:
                                           system :..............
                                           Client .................
    Pl confirm the above system and client to be mentioned is of XI server or R/3 system.
    Further when we go for
                                   imported objetcs ->
                                                IDOCS -import of sap object-->
                                                Application server Name :....................
                                                System No:..............................
                                                User :.................
                                                Name :................
                                                Pwd:.................
    Pl confirm the above data to be mentioned is of XI server or R/3 system.
    pl help.

    Hi,
    <b>while creating new namespace in integration repository for file-> XI-> idoc scenario ( that is data is to be pushed from a file to R/3 using idoc ) we have to enter the connection data viz:
    system :..............
    Client .................
    Pl confirm the above system and client to be mentioned is of XI server or R/3 system.</b>
    Ans <b>R/3</b>
    <b>Further when we go for
    imported objetcs ->
    IDOCS -import of sap object-->
    Application server Name :....................
    System No:..............................
    User :.................
    Name :................
    Pwd:.................
    Pl confirm the above data to be mentioned is of XI server or R/3 system.</b>
    Ans: <b>R/3</b>
    Regards,

  • File to idoc interface

    Hi SAP-Xi guru,
    can u explain the purpose of FILE TO IDOC ,IDOC TO FILE scenario.

    Hi Kavitha,
    In addition to above...
    check my post in wiki for File to IDOc
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/fileToIDOC&
    and for IDOC to file check these:
    Introduction to IDoc-XI-File scenario and complete walk through for starters.
    ALE configuration for pushing idocs from SAP to XI
    Sachin

  • UDF for file to IDoc.

    Hi,
    I could like to create an UDF for file to IDoc secenario.
    Srouce:
    MTCashPosting_
    Header
    CashPosting
    PubDiv
    DocType
    DocDate
    PostDate
    RefDocNo
    HeaderTxt
    Customer
    Value
    Currency
    ExchangeRate
    Ledger
    Item
    Material
    TaxValue
    VAtValue
    Trailer
    Traget: (IDOC Type: FIDCCP02 Message Type: FIDCC2)
    FIDCCP02
    IDoc (Under FIDCCP02)
    Begin (Under IDoc)
    EDIDC40_:DISABLED
    E1FIKPF (Under IDoc)
    E1FISEG (Under E1FIKPF)
    Segment
    buzei
    bschl
    shkzg
    mwskz
    dmbtr
    hkont
    matnr
    "The secenario is the 'Value,TaxVAlue & VatValue' should be handled by replicating E1FISEG like (HAve used External definition for IDoc)"
    Value -> Line item 1
    IF TaxValue exists->Line Item 2
    IF VatValue exists-> Line item 3
    Finally Line item 4 for cerdit.All above are debit
    Value____________UDF______________E1FISEG
    TaxValue_________|
    VatValue_________|
    Value____________UDF______________DMBTR
    TaxValue_________|
    VatValue_________|
    How should I map?? Inputs plzzzzz

    Hi
    I am not sure whether my understanding is correct.
    As per my understanding
    You need to duplicate E1F1SEG segment 4 times as there are 4 conditions
    and those nodes need to be enabled or suppressed based on your condition .
    Regards
    sandeep

  • Pass through scenario in SAP PI with no mapping for File to IDoc and Idoc to file scenarios

    Hi Experts,
    Can i have step by step process in SAP PI for pass through scenario with no mapping in case of file to Idoc and Idoc to file both cases please.
    What objects i can skip.
    My PI system is 7.3 dual stack.
    I have seen below blogs, still its confusing to me.
    When and how to create an scenario in SAP PI without mapping objects.
    Pass Through Scenario with no Mapping in PI 7.1
    Appreciate your help on this.
    Regards,
    Mohan.

    Hi Mohan
    In pass thru interface you don't need to create any ESR objects, only ID objects are required.
    Just Create a Receiver Determination and Receiver Agreement for your scenario (no need for Interface Det. and Sender Agreement).
    Specify the IDOC in the Sender Interface and namespace as urn:sap-com:document:sap:idoc:messages
    Or instead of creating objects manually, Run the wizard with Idoc name/namespace in sender/receiver interface
    Regards
    Osman

  • Conceptual advice required for file receiver scenario

    Hi,
    My scenario is to read 3 sets of data from SAP ERP and write files on the receiver system, one per data set.
    I could create 3 service interfaces and set up Integration Builder configuration for each one but this seems messy.
    Alternatively, if I create one service interface with 3 operations to group them, it is not possible to create the required files unless I add mapping and use dynamic configuration to determine the filename from the payload and set this in the receiver communication channel.
    It seems to me that I would have benefited from the ability to define a rule in the receiver determination to define a different communication channel per operation where the specific filename could be specified.
    It is only possible to bind a service interface to one communication channel in the receiver agreement.
    What would you recommend as the cleanest and best approach to meet this requirement - 1 or 3 service interfaces, use of mapping or are there any alternatives?
    Thanks in advance.
    Alan
    Edited by: Alan Cecchini on Aug 4, 2011 7:02 PM
    Edited by: Alan Cecchini on Aug 4, 2011 7:02 PM

    Basically your requirement is many to many mapping.  Please decide based on the sender system requirement. If your sender system sends different message structure then you can break into three diff interfaces and keep the interface simple.
    You can route to three diff recievers based on the condition setting in the receiver determination or you can do in the mapping too. That is not the whole point. you need to think about how do pick the three different interfaces.  You might also consider using ccbpm for this. 
    Refer the pattern that comes in the PI standard installation under SAP BASIS  SWCV.
    BPMPatternSerializeMultipleTrigger or BPMPatternSerializeOneTrigger

  • Multiple Operations for File to IDoc scenario

    Hi all,
    I have a file to IDoc scenario where two IdocXML files (one for INSERT and one for CHANGE of Business Object) have to be picked up by file adapter and transfered to SAP System. In respect to the multiple operations PI 7.1 can handle I would like to create one Service Interface for the Business Object and two operations (INSERT and CHANGE).
    Unfortunately I am not able to use the operation in the sender agreement, so I can't specify the comm-channel for the operations, only for the interface.
    So, can I use multiple operations in a file scenario (respectively in a non Web Service scenario)??
    Thanks a bunch,
    Manfred

    The scenario is pretty easy. I just want two different files to be read by one Comm Channel with one Sender Agreement.
    They are both transferred to the same receiver. I just wanted to test one scenario using multiple operations.
    In your blog you described that you should not use two operations with the same set of messages (synchronous/asynchronous). In my case both are asynchronous but I already tried it with one being sync and the other one async. Where did you actually get this information, it puzzles me a little since SAP does the same in its preconfigured Enterprise Services as far as I know.
    In the Trace for pipeline step Interface determination in SXMB_MONI it says:
    <Trace level="1" type="T">...There is no Interface Determination configured for receiver party and receiver service BS_RECEIVER</Trace>
      <Trace level="2" type="T">Check conditions for (Inb: Party Srvc If) BS_RECEIVER SI_..._Out</Trace>
      <Trace level="2" type="T">...valid InbIf without Condition: SI_..._Out</Trace>
      <Trace level="2" type="T">Number of receiving Interfaces:1</Trace>
    So it finds the Outbound Interface in Receiver side which is wrong since I specified the Inbound Interface in the Interface determination. Did anyone of you already encounter such a behaviour? I already deleted and recreated all routing objects but without any success.
    Thanks,
    Manfred

  • Suggestions for File to IDOC Scenario

    Experts,
    Here is the requirement A Legacy System will Produce the Customer data file and we have to transform certain data and post it to DEBMAS.
    As Part of the information in the file there is a field Which could have a value Update,Amend or Delete.
    My Question is How do it handle this.
    Please give me your valuable thoughts.
    Is it Possible to go for File2IDOC here?
    Thanks
    Vasu.

    Hi Vasu,
      If Customer data file is of type xml then file to IDOC scenario is preferable.
    Else you have to convert Customer data file to xml first and then proceed for that you can use content converson feature of File Adapter.
    The information for Update,Amend or Delete will be provided by customer or you have to decide it based of data in table?
    if it is provided by customer then you can go for ABAP Proxy for that take help of ABAPers.
    If you have to decide the Update,Amend or Delete logic.
    Then fetch the data from table compare it with incoming data decide the Action and then perform the action this can also be handled in ABAP Proxy.
    Reward Points if HElpful
    Thanks
    Sunil Singh

  • Generate XSL for File to mail interface

    HI there,
    Can somebody please tell me how to write xsl for the file to mail interface.
    I am getting only payload in the file and I want to convert that payload into xml so that I can map in PI.
    I tried with FCC but it doesn't work so the only option is via XSL mapping or JAVA mapping but unfortunately I don't know any of them, so can somebody please help me and write XSL for me if possible.
    Source File
    ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS
    and I want the target file
    <ns0:ContentContainer xmlns:ns0="http://s.com/xi/10/lite">
       <payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
    </ns0:ContentContainer>
    Thanks,
    Iqbal

    Hi Iqbal,
    The below mentioned do not seems to be difficult using FCC.
    In FCC mention following parameters. And provide required structure as message type in content conversion paramter.
    Recordset Structure :  row,*
    row.fieldNames:   payload
    row.fieldSeparator: 'nl'
    row.endSeparator: 'nl'

  • Partner Profile for file to IDOC scenario

    Hi experts,
    I am doing file to Idoc scenario. I did the ALE configuration steps between XI and r/3. For sender (ThirdParty) system, I defined Business system. While defining partner profiles in WE20 I got confused, whether to Give XI logical system Name or Third party logical system name. Please clarify..........
    Thanks
    Manoj

    Hi,
    >>I defined Business system. While defining partner profiles in WE20 I got confused, whether to Give XI logical system Name or Third party logical system name. Please clarify..........
    in most cases you will only use one logical system in WE20
    this will be XI's logical system - and you can route all the traffic
    via this logicail system - this is the most popular case
    for more about IDOCs and XI have a look at my book:
    Mastering IDoc Business Scenarios with the SAP XI
    http://www.sap-press.com/product.cfm?account=&product=H1935
    Regards,
    Michal Krawczyk
    http://mypigenie.com - XI/PI FAQ

  • Steps required in File to Idoc Scenario

    Hey guys i m doin a file to Idoc scenario and just wanna make sure my steps r correct.
    steps done on the XI server
    1.Create RFC destination(test the destination by giving the target host as the R/3 server).
    2.Create port for the RFC destination.
    steps on the R/3 side
    1.Create/verify logical system name.
    and finally create business system for this logical system in SLD.
    now do i need to do partner profile as well or not? and if i have to do it how is it accomplished.
    thanx
    ahmad

    Hi,
    The following are needed for idoc to file scenario...
    In R3...
    RFC dest to XI (sm59)
    Logical system (bd54)
    Port to XI (we21)
    Partner profile for the logical system (we20)
    In XI...
    RFC dest to R3 (sm59)
    Port to R3 (idx1)
    create metadata for the idoc (idx2)
    In sld...
    create business system for R3.
    Regards,
    Uma

  • Generating partner profile for File to Idoc(CREMAS) scenario.

    Dear friend,
    Completed all the steps in SLD, IR and ID.
    I do not know how to create Partner profile and I skipped this step.
    While testing I got the error "Unable to convert sender service  to an ALE logical system".
    I think i got this error because I have not created partner profile.
    Could anybody tell step by step process of creating partner profile including logical system names( Sender and Receiver)?
    I have seen many blogs and i couldn't get clear picture on how to generate partner profile.
    My sender system is XI server and receiver is R/3.
    I have created RFC destination, Port also.
    Thanks in Advance
    Chiru

    generally u create partner profiles using transaction WE20.
    SAP Menu -> Tools -> IDoc Interface/ALE -> Administration -> Runtime Settings -> Partner Agreement (WE20).
    go through this link for step  by steps
    http://help.sap.com/saphelp_nw2004s/helpdata/en/dc/6b808e43d711d1893e0000e8323c4f/content.htm
    http://www.thespot4sap.com/Articles/SAP_ALE_Configuring.asp

  • Lookup issue for File to Idoc scenario-- Urgent Pls.

    Hi All,
    Iam doing File to IDoc scenario with one file --> any of 3 R/3 systems.
    Routing has to be done dynamically using a lookup file, based on the incoming GLN code and last character of the Order Reference number.
    The last character of the Order ref Num will have A,B or C.
    Where,  ' A'  for  R/3 152 Client
                 ' B' for  R/3 142 Client
                 'C'  for  R/3  132 Client.
    1. PlantGLN_Routing lookup file :
    DestinationSystem,   Plant GLNCode,       Partner Number,  
    A,                            5000243000473,         GDKDVRC152,     
    B,                            5000243000473,         GDKDVRC142,      
    C,                            5000243000473,         GDKDVRC132,      
    A                                 500034000487           GDKDVRC152,     
    B                                 500034000487           GDKDVRC142,     
    C                                 500034000487           GDKDVRC132,
    By Using DestinationSystem and Plant GLN Code as lookup key --> I need to get the value of partner system.
    2.  IdocCtrlLookup
    Purpose: To read the IdocCtrlLookup file to populate the Idoc control segment
    Now based on the partner system from previous table --> I need to get the details of Sender Port , Sender Partner Type , Sender Partner Function , Sender Partner Number , Rx Port , Rx Partner Type , Rx Partner Function , Rx Partner Number.
    Please help me how can acheive this scenario with the help of lookups.
    Its very urgent.
    Regards
    Krupakar.

    HI,
    Here you would have to use one mapping for dynamic routing , based on this create IM and use it in receiver determination.
    the another mapping is general to file to idoc.
    see the dynamic routing link here
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping -
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Also if you know the field name the context object can be defined for partner no that can be used in receiver determination in condition. to particular partner no in receiver determination.
    Regards
    Chilla

Maybe you are looking for

  • Browsing and playing by folders on zen style m300

    Hello Can I browse and play the music by folders on my ZEN Style M300? In menu i can only via playlist, artist, title and genre

  • Is this a sign my Hard Drive is failing?

    I was using my iBook today and thought I heard something a little different coming from the HD (just barely audible). So the first thing I did was go to the Disk Utility. Here is what it said: Volume Header needs minor repair_ The volume Macintosh HD

  • Three Problems

    I have InDesign CS3 (v. 5.0.4) installed on a Dell Latitude E6520 with i5 processor, 8 GB RAM,  Win 7 Pro 64 bit SP1. All of a sudden, I have encountered 3 problems: 1.  I created a paragraph style called Article Title:  Palatino Linotype 18 pt, bold

  • Adobe Form FaormCalc Scripting .....

    Hello all,          I am Creating <b>AdobeForms In ISR In transaction SFP</b>. As per my knowledge Any FlowLogic Related to that form is Written in the Predefined BADI's , we just need to implement them. <b>My Question is If we can write flow logic i

  • IOS 8 control center

    wish to know whether Apple plan to allowed customization within the control center ? As I has been using location service and Nagivation frequently. The enabling features at the control center will allow us to immediately switch on and off the servic