cancel
Showing results for 
Search instead for 
Did you mean: 

how can we give a name for multiple files in single Variable in SAP-BODS.

Former Member
0 Kudos
796

Hello everyone

I need a help from all, can anyone please tell me how can we give a name for multiple files in single Variable .

Actually am doing the work where if a file is exists it will move in to one folder and if not the job should not faille instated of it will send a SMPT as a mail function.

For this am done in I) declare 2 variable one is file path and 2nd one i have to give multiple file

II) after that am in a WF-->Conditional Block Declare if file is NOTNULL then enter in to if Block there am Declare My DF. in Else Block am Capt the one script.

Please Help me on this .

Thanks in adv.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can put the file name and path in a single variable. Is the file name of same type like txt, xls etc? Then you can use wild cards to check for the file name.

$Global_Variable = 'path/*.txt';

You can also use file_exists() function to check the file name in the folder. file_exists() do not accept wild cards but wait_for_file() accepts wildcards and can be used for searching the file.

Arun

Former Member
0 Kudos

Thanks arun,

Actually i need help from u r side  ... where am having 9 files if file is exists it will move in to one folder. if it is not then the job should not faille that file will enter in to another folder. i have multiple file for that how can decleare varables and how can i do this task

Former Member