‎2007 Sep 18 9:52 AM
Hi all,
I am using FM 'FILE_GET_NAME' to retrieve path from application server and then i read and write on that file.
Further my problem is this when i execute program in forground it is running fine but when i am scheduling it to background so it give dump with DATASET_NOT_OPEN.I have checked all varriant for foreground and background but still i face same problem.
Please help me in this regards
Thanks
Gagan
‎2007 Sep 18 10:00 AM
DATASET_NOT_OPEN error is bcz the file which you are trying to open using OPEN DATASET either doesnt exists on the specified path or you dont have necessary authorization to access the same.
‎2007 Sep 18 10:00 AM
DATASET_NOT_OPEN error is bcz the file which you are trying to open using OPEN DATASET either doesnt exists on the specified path or you dont have necessary authorization to access the same.
‎2007 Sep 18 10:05 AM
Hello prashant,
Thanks for reply,that i know but with same username i can run program in foreground without dump.
is there any additional authorization required for forground and background processing.
‎2007 Sep 18 10:06 AM
Hey, Gagan.
You canot activate FILE_GET_NAME in background mode, it requires user's interrupt.
Activate it according to sy-batch (eq X at background mode), meaning that if sy-batch is empty activate it and if it equals X initilize the file path with a default file without any user's interuction.
Best Regards,
Rebeka
‎2007 Sep 18 10:46 AM
hi Rebeka....
Thanks for the answer actually i am using tcode SM36 to schedule in background so in this case how i activate function module based on sy-batch.....please send steps...
Thanks
Gagan