Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

background job

Former Member
0 Likes
476

Hi all,

I am created a back ground job for every day with varient.My file is coming from the legacy system and putting in to the sap application server.I am using the Logical file name .

My question every day file differ with time and date.How to process that file using that varient,any funtion module is there.

please help me

regards,

rakesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
450

Hi Rakesh,

I don;t know if we have any FM...

If the file is only once a day, then just have date stamp on your legacy file and in your Logical filepath, include the <sy-datum>. Then your variant will pick the correct file from the logical filepath.

Hope this helps.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
451

Hi Rakesh,

I don;t know if we have any FM...

If the file is only once a day, then just have date stamp on your legacy file and in your Logical filepath, include the <sy-datum>. Then your variant will pick the correct file from the logical filepath.

Hope this helps.

Thanks.

Read only

0 Likes
450

take help of your visual basic guy. he can create some executable files such that you will get all files in directory( in your case u will get only one file).

Using standard variant function module you can change the variants just before your actuall progra is run.

CALL 'C_DIR_READ_START'

ID 'DIR' FIELD dir_name

ID 'FILE' FIELD file_mask

ID 'ERRNO' FIELD file-errno

ID 'ERRMSG' FIELD file-errmsg.