File-to-File/RFC scenario with reading filename

Hi,
i have a File-to-File/RFC scenario which causes some problems in desining it correctly. Maybe some of you has an idea how to do this.
Scenario:
- A file is picked up by a File-Adapter. The files are different: pdf, doc, tiff, jpg, txt, ...
- The file must now go through a business process (not necessary the file, but i need the filename in the business process).
- The process has to contact several backend systems (SAP R/3) to collect some data. To achieve this the filename has to be send to this systems.
- The collected data are send via SOAP to a receiver system
- The file itself has to be stored in a directory via File-Adapter.
Here's my problem:
- Is it possible to transport the binary file content within a message which contains other elements (e.g. filename)?
- Is it possible to do graphical mappings with such a payload (only 1 to 1)? Or must i use Java Mappings only?
- How to generate a Message from the sender File Adapter which contains binary file content AND filename? Is this possible with a Module?
- Is it better to create 2 messages with an adapter module? One with the image the other with the filename. Or is it better to split them later in a Mapping?
Thanks in advance,
ms

If all that you need is the file name, use adapter specific settings in the sender file adapter. Then you can access the file name in mapping runtime in UDFs. If you want to have content of the pdf, jpg etc images, i do not think there are ready modules available except for reading pdfs ( you might have to research on this).
For look ups etc with R3 systems, you can use the file name that you got from the adapter and store it in mapping fields.
VJ

Similar Messages

  • File to RFC scenario with no BPM

    I want to create File to RFC scenario with no BPM. I want to invoke RFC synchronously to verify that I'm getting correct response back, but i dont wanna process the response. So, In SXMB_MONI i can check the response back from RFC right? Or do I need to have BPM if want to see the response back from RFC?
    What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK?
    Thanks,
    Deepesh

    Hi,
    I need to have BPM if want to see the response back from RFC? ... yes
    The BPM will help you find the response very comfortable.
    What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK? ..Yes you can .
    Regards
    Agasthuri Doss

  • Mapping error in file(FCC) to rfc scenario

    Hi,
    i am trying to implement mapping in file (fcc) to rfc scenario. the source file is getting picked up, but the problem is arising during mapping. i am unable to generate the target structure. i am attaching mapping structure as follows
    Source Structure                           Target Structure: RFC
    storesales                                     -POSDW-CREATE_TRANSACTIONS_EXT
         recordset                                      it_transaction
           gmd_site_101                                 item
          gmd_site_102
          gmd_site_103
          gmd_site_104
    here the recorset is mapped to item, and fields of subnode gmd_site_101 is mapped to fields of subnode item. similarly, for the other subnodes. but when testing with xml file, the target field is not getting generated. in FCC parameters, ignorerecordset name is set to "true".
    any help would be very helpful..thanks in advance.
    warm regards,
    kartz

    hi
    You can test the data using payload from SXMB_MONI in message mapping test tool so as you can get to know the reason of failure.
    It would be better if you paste the error you are getting over there.
    Check if you have maintained the namespace in CC or not. it should be same maintained if you have kept namespace in message type.
    Also check in FCC parameters you must have used ignoreRecordsetName = true
    Regards
    Raj

  • File-PI-RFC scenario with extraction of contents in the filename

    Hi All,
    I am working on File to RFC scenario.
    Here the file name is like 'ABCD_XYZ_1234_DATE' where the date is in yyyymmdd format.
    I have to read this filename & the date in the filename is to be mapped with one of the RFC parameter.
    Also how would I trigger the Interface if the file resides in PI server or on local mchine.
    How to configure the processing parameters in sender comm channel if I want to read the file after every 15 mins?
    Thanks,
    Amit Patil

    Hi,
    By writing simple UDF in your mapping you can Acheive this
    Try this Once
    DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    String MyFileName = dynamicconfiguration.get(key);
    String str[] = MyFileName.split("_");
    return str1[1];
    Map this to the date parameter(RFC) in the mapping .
    If the file resides on Local machine then you can use FTP and if it is on PI server then NFS as Transport protocol.
    If you want read the file for every 15 min there are 2 options
    1) Set the poll interval time to 900 sec
    2) Configure ATP in RWB
    Configuring ATP in RWB :
    http://www.dataxstream.com/2010/11/configuring-availability-time-planning-in-sap-pi/
    Thank & Regards,
    Deepthi

  • Step by step File to RFC Scenario with BPM

    hi
    for the following scenario i m following the webblog
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    i have successfully created the design phase
    in the configuration stage
    i need to create a business system or business service will do to create the communication channel
    i have not created the systems so i feel i should not create the business systems
    i would like to create the business service
    so in only one business service can i assign all the communication channel
    useful answers will be rewarded
    Regards
    JM

    There are 3 parts of communication: Sender service to Integration Process (Asynch.), Integration Process to RFC (Synch.), Integration Process to Receiver Service (Asynch.)
    The configurations should be like as follows:
    <b>Sender Service to IP</b>
    Receiver determination:
    Sender Service->Request Outbound Message Interface->Integration Processs.
    Interface Determination:
    Sender Service->request Outbound Message Interface->Integration Process->Request Outbound Abstract Interface. (No interface Mapping is required as the interfaces share the same structure.)
    Sender Agreement:
    Sender Service->request Outbound Message Interface->Integration Process->Request Outbound Abstract Interface>FileRFC_Send
    <b>IP to RFC</b>
    Receiver determination:
    Integration Process->Request Outbound Abstract Interface->Business service.
    Interface Determination:
    Integration Process->Request Outbound Abstract Interface->Business service->RFC Structure->Corresponding Interface Mapping between file structure and RFC structure.
    Receiver Agreement:
    Integration Process->Request Outbound Abstract Interface->Business service->RFC_Receiver
    <b>IP to Receiver Service:</b>
    Receiver determination:
    Integration Process->Response Inbound Abstract Interface->Business service.
    Interface Determination:
    Integration Process->Response Inbound Abstract Interface->Business service->Response Inbound Message Interface. (No interface Mapping is required as the interfaces share the same structure)
    Receiver Agreement:
    Integration Process->Response Inbound Abstract Interface->Business service->FileRFC_Receive.
    Hope you find this useful.
    Regards,
    Amitabha

  • Why Adobe Reader XI cannot open a pdf file that can be opened with Reader 9?

    Why Adobe Reader XI cannot open a pdf file within a browser that can be opened with Reader 9?

    Hi Steve,
    Sorry, I cannot post a URL to the file because it is for intenal use only.
    I noticed that the pdf file can be opened outside of IE browser if I disable the Adobe Reader add-on (active-X) in IE browser. If I enable the Reader add-on, the Reader cannot complete the file download. The progress bar goes in a half way, and stays there.
    Just FYI, the pdf file was created by Distiller 7. Do you think it is the issue of Reader add-on? Thanks.

  • Cannot view or download PDF files from secure web site with Reader X.

    Ran into a similar problem when Reader X first came out (Reader 9 had been working fine).  Only a blank window was displayed, but a work around was to "Save As" and use the view option to display and print the document. I recently had to replace my modem. Since then, that work around option is no longer available; it errors out saying that the file could not be downloaded.  We are using IE9 and Windows 7.  I tried another browser, Google Chrome, with the same negative results. Also, I got the same results on another secure website.  I have deleted and downloaded another copy of Reader X (10.1.1) and checked for updates, run the Repair program, and confirmed that Protected Mode and AdobePDF.dll are both enabled.  I looked at my Internet settings, too but found nothig that would obviously
    interfere with Reader.

    Usually, this message occurs with Windows. First time I've seen it with OS X. Looking into it.

  • HTTP to RFC scenario with URL parameters

    Hi All,
    I am working on HTTP to RFC scenario using an interface in SAP PI.
    The data will be pushed from API link via 4 URL parameters viz. UID, mobno, phone1, phone2.
    My query is what will be the UDF code for the same.
    Also how to design & configure the same scenario in SAP PI, since I'm working on this scenario for the first time.
    on SAP end, what will be more comfortable to have RFC or Proxy?
    Thanks & Regards,
    Amit S Patil

    Hi All,
    In case of RFC to HTTP scenario wherein we have to pass URL parameters as the request instead of XML/xsd(at the receiver end), there is no need of .xsd file to be imported in SAP PI as target end in request message mapping.
    Similarly in reverse case(HTTP to RFC scenario), if some data will be pushed from external system through URL parameters instead of XML/xsd(at the sender end), how the design & configuration is done in SAP PI?
    Is this reverse scenario possible without any XML/xsd scema at the sender end?
    Please suggest me at the earliest?
    Thanks & Regards,
    Amit S Patil

  • Mapping Issue(UDF) in HTTP-RFC scenario with URL parameters - Urgent

    Hi All,
    I am working out an HTTP-RFC scenarion wherein there is no xml data to be pushed.
    The data will be coming in the url parameters.
    Also we'll exposing our url(created by SAP PI) to 3rd party system to push data in terms of url parameters.
    So how do I do mapping? Also what UDF code will contain?
    Since I'm working on this kind of scenario for the first time, I need every help from you guys.
    Thanks & Regards,
    Amit Patil

    Hi All,
    I have worked on RFC to HTTP scenario wherein URL have to be passed. I used UDF in d same.
    But now the case is reverse, how shall I move ahead with what source message type(in the mapping) and how to do mapping.
    What kind of UDF will be useful here?
    I am completely blank in this kind of scenario where 3rd party system is going to pass four parameters on URL link craeted by us since its an HTTP to RFC scenario.
    Please guys help me! Give me some inputs.
    Thanks,
    Amit Patil

  • File Scenario with Dynamice Filename and Directory

    Hi All,
    we have a requirement that PI has to pickup the file from 2 FTP Server.
    First PI has to pickup an XML file from Server1 , this XML file has a details about the Filename and Directory of the second FTP server., then PI should login to the server2 and pickup the file form the directory.
    Regards,
    Mani

    Hi Mani,
    Can you try below approach ,
    Read file 1 from Server 1 using sender file Communication channel and read 2nd filename and directory details and pass these values to UDF/Java mapping to log in to server 2 and retrieve the data/file2 ?
    Thanks
    Hari.

  • Authentication prompt issue when opening an office file in a document library with read permission for domain users

    An user as part of the domain users tries to open an office file from a document library but he got an authentication prompt asking him to authenticate. Domain users has only access to this library and not to the whole site. This uses to work in SharePoint
    2007 without any problem but not in SharePoint 2013, we didn't have a workflow on SP2007.
    Domain users has read access to only this document library in the site, but he shouldn't get an authentication prompt since he is part of the domain users and he is not trying to modify the document, he can open the document but gets two prompts, he can't
    also see the list using explorer view since nothings appears using the explorer view.
    Now, when opening the file, we can see..Updating Workflow Status, but we don't have any workflow working on this site or library, event any feature related to workflow.
    If we go to the event viewer in the server, we find this information,
    I also checked this thread but I couldn't find this scenario.
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/91bc770b-bb70-4885-a4ad-a243edb88753/event-id-8026-workflow-soap-getworkflowdataforitem-failed-doc-library-no-workflow?forum=sharepointgeneralprevious
    I also created another list with the same permissions and using other office files but got the same behavior.
    Now, we have migrated this site from SP2007 to SP2013.
    Any ideas?

    OK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
    Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
    successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
    I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
    What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
    library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
    I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
    things that go through this evolution.

  • PI FTP get zip file and want to unzip with origin filenames

    Hello everybody,
    we get zip files from ftp and want to unzip this file in one target directory (file adapter). May be, there are more than one file in the zip file, for example test1.txt,test2.txt,test3.txt and zip file name is zipexample.zip. With adapter parameters it is possible to use the name of the zip file, but I've no idea to get the origin filenames (test1.txt, ...).
    I don't want to use the OS Commands to do this.
    I know that's not realy an workitem for PI.
    Is there anyone, who has an idea. Thanks
    Kind regards - Jochen

    Hi,
    Try out this blog
    Working with the PayloadZipBean module of the XI Adapter Framework
    regards,
    venkat.

  • File to multiple IDOCs scenario with the same receiver system

    Hi guys,
    I have to design and implement the following scenario:
    I will receive one file with many lines (Records) with data for materials, quantities, operations etc..
    Based on the values of some fields of each line, I will have to create an IDOC for each material.
    For example:
    if operation type = "INSERT", and Labor = 001 then create 3 Idocs of type MBGMCR with movement types=101, 261,311 that have to be posted one after the other to the same receiver system.
    else if operation type = "INSERT", and Labor <> 001 then create an Idoc MBGMCR with movement type=311 and plant = 1001.
    else if operation type = "Delete", and Labor = 001 the created 3 Idocs MBGMCR with movement type=312, 262 1002 and post them serially to the same receiver system.
    else if operation type = "Delete", and Labor <> 001 the created 1 Idoc MBGMCR with movement type=312.
    All IDOCS are posted to the same SAP R/3 system. We do not care about the sequence, except for the cases where 3 IDOCS are created.
    I am trying to think of a good design in performance terms.
    It is obvious that I will need BPM for sure.
    I am thinking of creating a mapping program that will produce 4 message types for the different cases from the initial file and then create a different message mapping for each case from the message type to the IDOC.
    I am asking you if I have to include everything (mappings) in BPM with a "fork" step?
    Or shall I produce only the 4 message types and then post them to R/3 and execute the mappings in R/3?
    Best Regards
    Evaggelos

    hi,
    >>I am thinking of creating a mapping program that will produce 4 message types for the different cases from the initial file and then create a different message mapping for each case from the message type to the IDOC.
    To me this seems to be the right solution.
    here u will create different message mappings and write them sequentially in interface determination. the multi mapping will then be utilised in transformation step in BPM.
    thus if this is the only requirement there is no need of using a fork step.
    [reward if helpful]
    regards,
    latika.

  • I have a pdf file received in email. With reader 9 can not open even though disabled norton security

    Can some one point me to a resolution No good info found on Adobe site and no problem openning other pdf files

    Save the PDF file to a local disc and open the file.

  • File to RFC/IDOC with a set of business rules applied on every record

    Hi experts,
    i have a scenario where the following happens
    checks need to be performed
    1. Technical validations on the file picked up (Can be done through java programs)
    2. Business rules to be applied on every record (Am not sure if this can be done in PI)  Sample business rules - record id already present in the SAP system, check if some manadatory fields are missing in the record etc..quite a lot to be applied
    I assume we use the File>PI>IDOC/RFC scenario for this..
    However am not sure on how we apply the complex business rules on every record in file using PI.
    Any suggestions??
    Regards,
    Kalyan

    Hi My requirement as follow,
    ELEMICA(CIDX)--->sap xi->SAP ECC,i receive CIDX Ordechange document from source system,when it is order change , the similr Order Chnage document available in DATA BASE,i need to retrive it from data base using some key fileds, i need to compare some of the fileds like PO Number,Buyer sequence number..like many fileds.if there is any change while validating then i need to send it SAP ECC Orders IDOC,IF TEH Values are same then i need to exit the process with mail to admin .
    How i done my requiremnet i already explained,if you looking for any info let me know,but i never faced any problems like perfromace issues ...but writing JAVA Maping code is bit tough.
    Regards,
    Raj

Maybe you are looking for

  • SOAP error in SL4 app

    I have a Silverlight 4 app that uses SOAP services to get data from a SQL db. It worked fine on a windows 2003 server with IIS 6. I am trying to move the app to a Windows 2008 Server with IIS 7. When I try to run the app on the 2008 server I get the

  • Service_name and servers pool with priority

    Hi, Is there a way to define a service name SVC1 on 8 nodes (n1,n2 ...n8) with priority on somes nodes and a second service name SVC2 on 4 nodes (n1,n2,n3,n4) ? In RAC, a server can not be declare in more than one server pool, but in Exadata is-it th

  • Adobe Reader X: TrustedFunction SaveAs

    Hello I installed the new Adobe Reader X, and placed my TrustedFunction in the folder: C:\Program Files\Adobe\Reader 10.0\Reader\Javascripts When i test it, i always get the following error: Error in savePdfFile(); NotAllowedError: Secutiry settings

  • How to make the IC_EMAIL work center working?

    Hi Gurus, I am testing the email funcation of SAP delivered business role UTIL_IC (Utilities IC Agent). The email profile is 'DEFAULT' with email provider as ICI. The work center is IC_EMAIL. After I clicked the email option under communication throu

  • An 'unknown error has occurred' HELP!

    It keeps saying this! please advise!