Validation required in File to File scenario

Hi Experts,
I have developed a file to file scenario. PI picks up a .csv file from an FTP server and delivers this file to another FTP server without any conversions. It's a simple passthrough mapping.
I wish to implement a validation to check the content of a particular field in the file. I have used no mapping in this case and cannot write any UDF for this. Please let me know how can I implement validation in this scenario?
Thanks,
Dhawal

Hi,
Plz refer below links for custom module development:
Where to get the libraries for XI development
http://wiki.sdn.sap.com/wiki/display/XI/Where%20to%20get%20the%20libraries%20for%20XI%20development
Adapter module development:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?quicklink=index&overridelayout=true
Thanks
Amit

Similar Messages

  • How to explain the business requirement of a file to rfc scenario

    Hello Experts,
                       How do i explain the business requirement of
        1. FILE TO IDOC.
        2. FILE TO RFC.
        3. FILE TO JDBC scenarios?
            Cud anybody explain me how to explain the requirement of these scenarios in an interview?Cud u pls send me the example for these and the systems involved and the documents involved...helpful answers will be rewarded...
                                                                                    cheers
                                                                                    Jay.
    my mail :  [email protected]

    <b>1. FILE TO IDOC</b>.
    When u have ur master data stored in a file thru a legacy system say in some xml format then u may need to have this scenario configured.
    <b>2. FILE TO RFC.</b>
    Consider pt1 but here for example consider delete scenario. when u have deleted the mater/transaction u may need to update another file...so in this case u will need to config this scenario...y we cannot use idoc is becoz sync scneario is not possible with idoc but yes with rfc
    <b>3. FILE TO JDBC scenarios?</b>
    u have some business data extracted from a file and before u update a r3 transaction u may need to refer a datbase table to read some data baed on keyfield...so u will take a jdbc response and based on that u may validate with the data for r3 updation.
    the scenario keeps varying in real life and the above are very few examples of the kind of scenario that would exists in the business world

  • 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

  • Clarification required in File to DB scenario

    Hi all,
    I have a requirement to insert flat file records to a Oracle database.
    Few fields in the database are of type nchar/nvarchar.Is there any special transformation required in PI for these fields, as my records are not getting inserted into DB when i pass a char value for these.If i pass numbers for the same,the records are getting inserted.As of now the datatype of these fields in PI is string.
    Please guide me on this.
    Thanks,
    Sowmya

    Hi,
    I think data type should be same in DB & PI, meanwhile valiables sequence in PI should be same as DB sequence names.
    Find below link for more help on configuration
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30

  • File to File Scenario. Help required

    Hi All,
    I have to make file to file scenario.
    XI will pick file from File Sender System and put file at
    File Receiver System. From there file will go to printer.
    File name has to be constant at receiveing system like "ABC.txt"
    There is one condition:
    Now suppose there is file at Receiver system and Printer gets jammed so file will not be picked from Receiver system.
    At that time XI should not send 2nd file and should wait till the
    receiving file directory is empty again.
    How to implement the above condition.
    Pls suggest.

    Hi ,
    I think in this case, you should not depend on retrial feature of File adapter. if we use it there will lot of uncertainities and sometime we might have to manual go and start the adapter if maximum retry no..is achieved. hence to tackle the situation in better way , I think on receiver side we should have two directory
    lets call it working directory and final directory.
    When we are send file from source, Xi should keep on putting created file on receiver side in working directory. I believe we should not disturb normal flow of XI here. Once files are created in working directory, there should be a scheduled program/code which should first check whether final directory ( from where printer reads the file) is empty or not. if the directory is emptry , it should copy files from working directory to final directory. In this way we won't interface with XI normal flow and we don't have to restart the adapter any time.
    Scheduled program can be in ABAP/or Java. This will be provide us more flexibility in implementing business logic on receiver as we can manipulate the files flow we want in the code.
    This is genreral mechanism has  the followed in different project. I hope this mechanis looks proper .
    Ranjeet Singh.

  • Using RFC in File to Idoc Scenario

    Hi all,
       I got a complex requirement in EDI to IDOC Scenario , I am getting EDI 850 file from Customer and posting IDOC to R3 . In this process i need to have some validations using RFC(Which connects to R3) at XI level, If these validations fails then we should not post Idoc to R3 and we need to send back a mail to customer. I am not expert at XI, So can you please suggest is there is any way to build this requirement.
    Thanks for looking into this. Your help is appreciable
    Thanks,
    Kishore

    HI Kishore,
    I got a complex requirement in EDI to IDOC Scenario , I am getting EDI 850 file from Customer and posting IDOC to R3 . In this process i need to have some validations using RFC(Which connects to R3) at XI level, If these validations fails then we should not post Idoc to R3 and we need to send back a mail to customer. I am not expert at XI, So can you please suggest is there is any way to build this requirement.
    Yes, u can achieve it by using multimappping.
    First write a functional module wich is remote enabelled(just change the parameter value).
    Then in message mapping u will have  a multimapping,with mail (0..1) occurence.
    If suppose the validation fails u will send a flag or a field which to PI, and based on this value the mail is sent to the recepients.
    In operation mapping make sure that Mail occurence is 0..1.
    If any prblm still.. pl do post.
    Babu

  • Step by Step Guide Details for RFC to File and File to RFC scenario

    Hi Guru's
    Good day to you. I am tyring to develop some scenarios based on RFC adaptor. so i want to start up with basic scenarios like RFC to File  scenario(Here i just want to pull some data from SAP using RFC and put it in destination folder as an text file) and FILE to RFC scenario (Here i just want to take some data from the file and update into SAP).
    For doing these scenarios i would like to request you people to send me the step by step guide which explains me about the complete steps of configurations required to do the RFC to FILE scenario and FILE to RFC scenario.
    I found some scenarios and i am in confused state. so i request you to please put your experience to help me out.
    thanks in advance.
    Regards
    Raj

    Hi Aaron,
    I don't know your scenario and your ECC and PI versions but I learned how to use ABAP Proxy more than 1 year ago with the following tutorial:
    Edit--> The forum doesn't allow me to post external link, just search "ABAP Proxy Communication Scenario" in google and visit the 1st result
    The way to develop ABAP Proxys has changed a little if your PI is 7.1. In the ECC side, the transaction SPROXY looks much better too if you have a recent version of the ECC.
    Edited by: Marshal on Oct 8, 2009 5:08 PM
    I've found that SDN Document. Maybe the scenario is not the most simple to start with ABAP Proxy but is very well documented and is for PI 7.1. The document also handles the inbound and outbound proxys
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f&overridelayout=true]
    Edited by: Marshal on Oct 8, 2009 5:22 PM

  • Regarding Background Job scheduling for file to file scenario

    Hi Guru's
    Good morining all of u
    I have one doubt on ...
    can we do background job scheduling for file to file scenario?
    Please give me response as early as possible.
    thanks and regards
    sai

    background jobscheduling for file adapter...
    you can schedule the file adapter according to your requirement as follows:
    In the  Communication Channel Monitoring Locate the link Availability Time Planning,  In Availability Time Planning, choose the Availability time as daily and say create, give the time details, select the communication channel in your case file adapter , goto the Communication Channels tab and filter and add the respective channel, save it
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-

  • Xml file to sap scenario

    Hi all,
    I have a requirement like ,i have one xml file ,now i want to integrate into sap.so plz help which scenario i have to follow.
    thanks & regards,
    subba reddy

    Hi! ,
    You can go for different ways depending upon the source data...
    Suppose if it is SO,PO,GR   (Sales Order from CRM System) and ( PO and GR from R3 System) means you neeed to prefer IDOC or also you can go for PROXY scenario I mean you can get the SO,PO,GR data by invoking the ABAPproxy.
    Suppose if you want to Integrate means sending File to BW system means you can go simply
    File To RFC Scenario.
    Suppose if you wants to send data via Web Methods or and other Web Applicationto R3 means you can go for
    SOAP-->RFC Sync scenario
    Suppose if you are generate FICO Details through PAYTEXT IDOC you can go for
    File to IDOC
    In SAP Technical there are so many scenarios with screenshtos so pelase check the above scenarios there.k
    Regards::
    Amar Srinivas Eli

  • Reg:file to idoc scenario

    In a file-xi-idoc scenario i created a business service for legacy
    system and a business system for R/3 receiver system
    i didn't assign logical system for the sender business service
    and assigned a logical system for the reciver business system
    so while maintaining partner profile in the R/3 system
    i have to give partner no:
                        partner type:
    here the problem is my sender business service i didn't assign any logical system,and it is not of LS type
    so then what do i need to give in the above two fields?
    answers required briefly

    Hello,
    you know this pdf:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09b775e-e56e-2910-1187-d8eba09c7a4a
    Could be helpful.
    Regards
    Patrick

  • PI 7.1 scenario -- File to File , File to IDOC  and IDoc to File Scenario

    Hi All,
    *I have PI 7.0 . I have in that File to File , File to IDOC  and IDoc to File Scenarios*
    File to File -- This scenario is working fine.
    File to IDOC   --  Setting done in PI 7.0 like SM59,  IDXI, IDX2  and in R/3 like SALE (logical system)---  This scenario is working fine.
    IDoc to File  --  Seeting done in R/3 like SALE (Logical system, Distrubtion Model (Port, Partner Profile)) -- This scenario is working fine.
    Now I need to move to PI 7.1  -- for File to File , File to IDOC  and IDoc to File Scenarios.
    Please let me know do I require to make any changes in Design and Configuration and settings in PI 7.1 and R/3 for above scenarios or it will work fine as it is already working for PI 7.0
    If changes are required please let me know what changes to do for each scaenario and pls also send blogs for that.
    Regards

    >
    Rickkk wrote:
    > Hi,
    >
    > Idoc metadeta is updated through idx2?
    >
    > Regards
    If there is no metadata maintained for an idoc type, the metadata for that idoc type gets loaded when an idoc of that type is received by PI for the first time. If you are looking at loading metadata of all idoc types before the first run, its really not required. Just make sure that the port is configured properly. Although, there is no harm in preloading the metadata using IDX2.
    You need to use IDX2 mandatorily when the the metadata changes and the metadata in ECC and PI is different. In that case, you need to delete metadata for the changed IDoc type and then either you can update the metada through IDX2 or let the system take care of.

  • Test cases for File to JDBC scenario?

    Hi Experts,
    I would like to know what are the things needs to be tested to ensure that the File to JDBC scenario holds good in the PI box. Your valuable inputs are required to verify /check my scenario configuration is free of errors.
    Thanks & Regards,
    Pcv.

    Hi,
    You can try the following:
    1) If the end systems require authentication and the same is not provided in PI then it should throw an error.
    2) Check what happens when you dont give a mandatory field.
    3) check what result you will get when you give a wrong input.
    4) Check whether all your restrictions (in mapping and/or in receiver determination) are working properly.
    5) Check what you need to do when the target system is down.
    6) If using any FCC then check whether the conversion is done properly.....
    7) See to it that you have defined a proper DB structure when you are communication with JDBC
    8) Check with the end system whether your statement (Insert/Update/Delete etc) is performed properly
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Dec 4, 2008 9:58 AM

  • Datatypes for File to File Scenario

    Dear all,
    i have a question concerning a file to file to file scenario in XI.
    I simply just want so send a RTF-file to XI via FTP adapter and store it on a different FTP server according to the file name. I do not need any information for the content of the file. So I do not want to perform a File Content Conversion.
    I know that it is it possible to implement this scenario without using the integration engine. But for monitoring purposes I'd like to do it anyway.
    My question ist, what kind of message types I will have to choose. From my understanding, the file adapter should just store the content of the file in the payload as a binary data. So does it matter what kind of data type for the message interfaces i choose in integration builder. Of course, a message mapping is not required,
    Best regards
    Florian

    HI,
    In File-XI-File scnearios, you need to have Sender File Communication Channel to pick the file and Receiver File Communication Channel to send the file.
    You can create a Data Type something like this
    <DataTypeFile>
    <Row> ...</Row>
    </DataTypeFile>
    Also look into this Blog-
    XI in the role of a FTP
    FTP  receiver adapter does not transfer (STORE) file
    Thanks
    swarup

  • Regarding RFC connection in File to IDOC Scenario

    Hi everyone,
               I was configuring file to Idoc Scenario, i have made all the required configurations in SLD, IR and ID, in XI system and in R/3 System. i have created RFC connection from XI to R/3 system, and its working fine. i have created an Partner profile in WE20 with sender file system name with inbound parameters. <i>But still i am getting error as EDI Partner Profile not defined in WE05- iDOC ADDED WITH ERRORS. </i><b>Do we need to create an RFC connection from R/3 system to XI for file to Idoc Scenario</b>
         <b>!!! Note:  RFC connection from R/3 system to XI is not working, will this be a problem for file to idoc scenario. !!!</b>
    Regards,
    Varun Reddy.K

    Hi Varun
    Follow these steps
    First - Maintain the Sender R/3 System:
    SM59 : Create a RFC destination to XI
    WE21 : Create a TRFC Port ->Specify the RFC Destination Created
    BD54 : Create a Logical System for the Idoc Receiver
    WE20 : Create Partner Profile ->Maintain Outbound and the Inbound Parameters
    Second - Log on to XI System:
    SM59 : RFC Destination for Sender System
    IDX1 : Create the port to get Idoc Metadata from Sender System ( The Port Name must match the port name in the idoc header - Usually in format SAP<System ID>. eg. SAPID1 [Optional Step. Not mandatory]
    IDX2 : Maintain the Idoc Metadata. This is needed only by XI, and not by other SAP systems. IDX2 is needed because XI needs to construct IDoc-XML from the IDoc. No other SAP system needs to do that.
    Regards,
    Santosh

  • Where to define third party logical system name in file to idoc scenario

    Hi Friends,
      I am shalini shah.
    I have one doubt, where I can define the logical system name in File to Idoc scenario.
    I created Logical system for R/3 system in SALE t.code, but where to define the Third party logical system ,
    In SALE or any where.
    Please give me solution.
    Warm Regards,
    Shalini Shah

    Hi Shalini,
    You need to create Business system in SLD and import the business system in ID.Then u will start with the configuration.
    Just refer the below link for configurations with step by step solution.
    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

Maybe you are looking for

  • Element not found when duplicating "Basic EFS" template

    I've been trying to duplicate the Basic EFS template as either a Windows 2003 or 2008 template and everytime I use the new template via GPO to encrypt (EFS) any files/folder, I keep getting the "Element Not Found" error.  I've looked all over event l

  • Grant Access on View

    Hi, I would like to know the appropriate and easy way of granting access (SELECT,INSERT,UPDATE..Etc) on newly created object (VIEWS/SYNONYMS) to all users at one go. I have created a public synonym so that I can grant the access on synonym. Appreciat

  • Catch an error in CFMAIL

    Hi guys, I have written a snippet of code <cffunction> <cftry> <cfmail to=[email protected] from=[email protected] subject="Hello" server="10.0.0.1"> #TheFileContents# </cfmail> <cfcatch type="any"> <cfreturn 6> </cfcatch> </cftry> <cfreturn 0> </cff

  • Officejet 5610v Power Off Problem

    New to the site, hoping someone can help me solve this problem. When I go to turn off the power, I press the power button and the display reads "shutting down."  It will stay this way and don't turn off.  I have to unplug it, plug it back in, press t

  • Save As Stationery - Does Not Work

    Anyone having problems saving files as stationery in Mail 3 ? I create a new message like help says and the save as stationery under the file menu is grayed out. Has anyone had any success altering and saving new stationery files? Thanks