cancel
Showing results for 
Search instead for 
Did you mean: 

Getting File name dynamically

Former Member
0 Kudos

Hi All,

IDOC ---> File   ---> Pass thru scenario.

File name should get dynamically.  Please help the same.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks all guys...

I have achieved using UDF and ESR objects. 

Harish
Active Contributor
0 Kudos

Hi Sreenivasa,

Please close the thread to make scn space clean. Please refer the below blog for more details

regards,

Harish

iaki_vila
Active Contributor
0 Kudos

Hi Sreenivasa,

If the file name depends on one idoc field i think you should create the Service Interfaces in the ESR and to use the variable substitution to do  the name ()

On the other hand you will need you own module as Praveen mentioned below or to do a batch OS file to rename the files.

Regards.

Harish
Active Contributor
0 Kudos

Hi Sreenivasa,

you can also use the variable substitution in receiver file adapter to get dynamic file name. In variable substitution the file name is contracted with the values of particular field is payload.

refer the below wiki and blog -

Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integr...

former_member182412
Active Contributor
0 Kudos

Hi Sreenivasa,

If you dont create any ESR objects then you can do it with adapter module.

Dynamic file name in a File to File pass through scenario - Code Gallery - SCN Wiki

Regards,

Praveen.

Former Member
0 Kudos

Hi Praveen,

Thanks for your quick rely.

     1.Do we have any standard adapter modules for that?

     2.If yes ESR object please suggest me how to achieve?

Regard,

Sreenivas

former_member182412
Active Contributor
0 Kudos

Hi

>>>>>1.Do we have any standard adapter modules for that?

No

>>>>2.If yes ESR object please suggest me how to achieve?


You can do it with java mapping like below wiki.

Dynamic file name for pass-through scenario - Process Integration - SCN Wiki

Regards,

Praveen.

iaki_vila
Active Contributor
0 Kudos

Hi,

If you are thinking to use ESR objects the better way, in my opinion, is to use ASMA configuration and UDF to set the file name:

http://www.saptechnical.com/Tips/XI/ASMA/Index.htm

Regards.