Skip to Content
author's profile photo Former Member
Former Member

Regarding RFC to FILE - Multi Mapping

Hii

I am doing BAPI/RFC to File Asynchronous Scenario. The data is being Pushed from SAP via BAPI/RFC. For testing, I am sending the data form Test tool of RWB.

I am sending single BAPI/RFC with 3 PO, in the target I should get 3 files generated. I am using Multi Mapping. I am using Dynamic configuration for Filename and created UDF. My target filename should be Process_Order_%y%y%y%y%M%M%d%d%H%H%m%m%s%s

I had Mapped the UDF to the root node.

In the SXMB_MONI, I am able to see 3 files getting created. But in the target folder I am getting onlly 1 file with the 3rd PO content and the file name is correct. The first 2 PO's are missing.

When I testted the same with out UDF using Add timestamp in the File Adapter, i am able to get 3 files generated.

Any Inputs would be appreciated.

Regards,

Varun

Edited by: Varun Reddy on Jul 2, 2009 10:20 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2009 at 06:22 AM

    Hi Varun,

    Use a dummy field in the target structure and with the help of UDF populate the field with the filename in the format that you have specified and use it as the variable for Variable Substitution and in Content convesrion parameters specify the length of the dummy files as zero.

    Regards,

    Ramkiran

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Varun K

      Hi Varun,

      just check what all filenames are created from ur UDF..so tht u will be clear whether file is getting overwrite or not...just check in RWB also.

      or else u can do one thing tht chosse append option and check if 1st and 2nd POs are getting appened or not 😊 just for troubleshooting. bcoz if file name is same then it will get appended.

      Regards,

      Manisha

  • Posted on Jul 02, 2009 at 04:54 AM
    But in the target folder I am getting onlly 1 file with the 3rd PO content and the file name is correct. The first 2 PO's are missing.
    When I testted the same with out UDF using Add timestamp in the File Adapter, i am able to get 3 files generated

    The files are not missing but the 1 and 2 files are getting overwritten by the 3 file........what is the name that is generated for the files by the UDF....i doubt it is the same name...and hence this is happening....

    Whereas when you are using the Timestamp option you are getting all the files since the names are different......so that means you have to make some change in the file names so that you get all the three files....else there doesn't seem to be any workaround...

    Regards,

    Abhishek.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2009 at 05:03 AM

    HI Varun,

    You cant use dynamic configuration when you are using Multimapping as the other files will be overwritten.

    So use Variable substitution instead of dynamic configuration.

    Thanks,

    Ramkiran

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 14, 2009 at 04:50 AM

    As the client is convinced, so I had used Add Time stamp only

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.