‎2008 Apr 03 12:47 PM
Hi,
I am having a Z function module which is created by using SHDB (BDC recording). this FM creats an excel file and sends some data into it.
My question is : when I am excuting the program that is accessing this FM from other USER ID & PWD it is throughing sy-subrc =1,001. and it is not creating the excel file.
can you pls help me.
Ameen.
‎2008 Apr 03 1:20 PM
when you are running this function module, is that in foreground of background?
If in background, check your mode when calling CALL TRANSACTION 'XXX' MODE 'X'? Could cause the problem???
‎2008 Apr 03 1:57 PM
Hi micky,
Thanks for the reply,
it is a background job.
the MODE in CALL TRANSACTION is N,
I tried this will MODE as A, it is working fine but not with N Mode.
‎2008 Apr 03 2:10 PM
it is a background job.
the MODE in CALL TRANSACTION is N,
I tried this will MODE as A, it is working fine but not with N Mode.
In Background.
Are you creating the File on Frontend. If it is On Frontend then it will fail for obvious reasons.
In background frontend operations will fail.
In foreGround it will work, because Frontend is accessible here.
‎2008 Apr 03 2:17 PM
Sorry Micky & Yesh,
it is frontend job.
complete description of my problem.
My requirement is : Sending data from spool to excell sheet using spool request id.
I used SHDB on Tcode SP01 did the recording and saved the process as FM.
MODE = N, UPDATE = 'A'
When I am executing the FM in other USER ID area not on created area It's sy-subrc = 1,001 and it is not sending data to excell sheet .
so, this is my problam. can u please help me.
Ameen.
Edited by: Ameen Basha Md on Apr 4, 2008 11:52 AM