Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Hi, Sorry. I used this mechanism in my last project, I don't have it currently. Either you can share your code I will test it at my end and let you know or you can provide me access to your server.
| | | ---------------Original Message--------------- From: USER_2145927 Sent: Tuesday, October 04, 2011 1:09 AM Subject: FTP to Remote Server in Background Job I think easiest we to solve is to just debug your background scheduled job. You will directly get the issue You can debug batch jobs by going to 'SM37', type in 'JDBG' in the command line ( no '/' ), put the cursor on the job and press enter - will take you to the job in debug mode. You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job also sy-batch will set to 'X'. So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode. Steps 1. Create variant called BACKGROUND for program to be debugged. 2. Execute ZDEBUGBG (pgm code below) in background for immediate processing. 3. Execute transaction SM50. 4. Select process that runs ZDEBUGBG. 5. Goto 'Program/Session' 'Program' 'Debugging'. A se80 debug session will open. 6. Change variable W_EXIT to 'E'. 7. Step thru (F6) until ZWBTEST comes up. 1. Go to Transaction SM66 and find your work porocess. Select the line work process is on and click on the Debugging button. If this is a custom program, you can put a wait statement in the code to buy yourself sometime. 2. Go to Transaction SM50. From the tool bar "Program/session"->Program->Debugging. goto SM37 and from Program menu(not sure.. try other menu's) -->Catchjob . it will goto the active job in debugging mode. http://forums.sdn.sap.com/thread.jspa?threadID=185 784 let me know if it helps.Or you require any another inputs. Regards, Mehul | | __.____._ Copyright © 2011 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Popular White Papers In the Spotlight _.____.__ |