Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic File Name

Hi,

There is a requirement to generate file name dynamically in the receiver end.

Ex: 1) x0000u_test (File Naming convention where 0000 is incremented either sequence or randomly

*any one of them **preferred random *) .

2) x0001u_test

3) x0002u_test

Rules: None of these values are there in the payload.

File name scheme is alphanumeric.

Points to be noted ** Cannot be done in the standard adapter using ADD COUNTER as it has suffix elements attached.

Assumption: Variable substitution will not work either as values are not being generated from payload.

Blogs referred. /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Can anyone else throw in some more ideas Or a bit of code for lil more clarity.

User defined function is the only way out ?

Thanking in adv.

Regards,

***Raj***

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question