‎2005 Aug 09 4:06 PM
Hi ,
I have a BDC program when it is executed online it works well , but on executing it in background the desired result is not obtained.
The basic requirement is to schedule a transaction , so i have written a BDC program which performs the desired operations .
Regards
Arun
‎2005 Aug 09 4:18 PM
‎2005 Aug 09 4:23 PM
Hi, compare to running on the foreground, the background case actually has some difference.
So can you figure out which screen action you wrote in the BDC code occur the problem? Please give a more details problem description.
thanks
‎2005 Aug 09 4:55 PM
Hi ,
The requirement was to shedule the transaction SM19 , this transaction is being called manually at a perticular time and all the audit classes are to be selected.
Regards
Arun
‎2005 Aug 09 5:00 PM
Arun,
I feel that there is problem in the LOCK established by the SAP.
Thanks
Kamesh
‎2005 Aug 09 5:02 PM
Arun,
Please provide information abt the Transaction for which you are creating BDC.
Thanks
Kamesh
‎2005 Aug 09 5:08 PM
Hi Kamesh ,
The transaction SM19 is a security audit transaction.
When executed it creates a log
Regards
Arun
‎2005 Aug 09 5:35 PM
Arun - what exactly is the problem? Are you getting error messages? If so, what message and what screen? Or, is the log incorrect? Or something else?
Rob
‎2005 Aug 10 3:29 PM
Hi,
Check any problem related with date format, and give the error message in detail
Cheers,
Sasi
‎2005 Aug 12 2:46 PM
Hi ,
My program works well when it is executed online , but when executed in the background the status of the process shows Finished , but the required operation is not done.
I am attaching my code below
-
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
PERFORM bdc_dynpro USING 'SAPMSM19' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ADMIN'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RSAUPROF-PROFNAME'.
PERFORM bdc_field USING 'RSAUPROF-PROFNAME'
'Z_AUDIT'.
PERFORM bdc_dynpro USING 'SAPMSM19' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=AUUPDA'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RSAUINFO-MANDT'.
PERFORM bdc_dynpro USING 'SAPMSM19' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=AUON'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RSAUINFO-LOGIN'.
PERFORM bdc_field USING 'RSAUINFO-MANDT'
'*'.
PERFORM bdc_field USING 'RSAUINFO-LOGIN'
'X'.
PERFORM bdc_field USING 'RSAUINFO-UNAME'
'*'.
PERFORM bdc_field USING 'RSAUINFO-RFCLOGIN'
'X'.
PERFORM bdc_field USING 'RSAUINFO-RFCSTART'
'X'.
PERFORM bdc_field USING 'RSAUINFO-TASTART'
'X'.
PERFORM bdc_field USING 'RSAUINFO-LOW_BUTTON'
'X'.
PERFORM bdc_field USING 'RSAUINFO-REPOSTART'
'X'.
PERFORM bdc_field USING 'RSAUINFO-USERSTAMM'
'X'.
PERFORM bdc_field USING 'RSAUINFO-SONST'
'X'.
PERFORM bdc_dynpro USING 'SAPMSM19' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BACK'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RSAUINFO-MANDT'.
PERFORM bdc_field USING 'RSAUINFO-MANDT'
'*'.
PERFORM bdc_field USING 'RSAUINFO-LOGIN'
'X'.
PERFORM bdc_field USING 'RSAUINFO-UNAME'
'*'.
PERFORM bdc_field USING 'RSAUINFO-RFCLOGIN'
'X'.
PERFORM bdc_field USING 'RSAUINFO-RFCSTART'
'X'.
PERFORM bdc_field USING 'RSAUINFO-TASTART'
'X'.
PERFORM bdc_field USING 'RSAUINFO-LOW_BUTTON'
'X'.
PERFORM bdc_field USING 'RSAUINFO-REPOSTART'
'X'.
PERFORM bdc_field USING 'RSAUINFO-USERSTAMM'
'X'.
PERFORM bdc_field USING 'RSAUINFO-SONST'
'X'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0500'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=OPT1'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0500'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=OPT1'.
PERFORM bdc_dynpro USING 'SAPMSM19' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EABBR'.
CALL TRANSACTION 'SM19' USING bdcdata MODE 'N' .
-
Please suggest a solution.
Regards
Arun
‎2005 Aug 12 2:55 PM
‎2005 Aug 12 3:13 PM
Hi ,
Yes i am running it for the same user , the program works well when executed online , the problem is when i schedule it.
Regards
Arun
‎2005 Aug 12 3:17 PM
Arun - what does OK code EABBR do? Try it with EABBR rather than /EABBR. It's a long shot.
Rob
‎2005 Aug 12 3:21 PM
Rob ,
SM19 is a security audit transaction , and the ok code EABBR activates the audit.
Regards
Arun
‎2005 Aug 12 3:24 PM
Rob ,
I tried the ok code EABBR insted of /EABBR , but the same problem persists.
Regards
Arun
‎2005 Aug 12 4:00 PM
When you run it in foreground, do you run it with mode = 'N'?
Rob
‎2005 Aug 12 4:05 PM
Rob ,
Yes i have tried running it in all the three modes in foreground and they all work fine .
Regards
Arun
‎2005 Aug 25 4:08 PM
I don't see ok-code eabbr in the program. What version of SAP are you using and can you point us to the program/include and line where it's being checked?
Rob
‎2005 Aug 25 4:15 PM
Hi Rob ,
I am using 4.6C Version .
The OK code EABBR is at the second last line in the program.
Regards
Arun
‎2005 Aug 25 4:40 PM
‎2005 Aug 25 5:48 PM
Arun,
There are some transactions that can only run On-line and cannot run in Background.
So check for that before investigating further!!!
Thanks
Kam
‎2005 Aug 12 4:22 PM
Hi Arun,
It may be worthwhile to debug the finished Job using 'JDBG'... In SM37: Select the job, type JDBG in the command window & it will take you into the debug mode...
Good luck,
Suresh Datti
‎2005 Aug 25 2:49 PM
Hi ,
I have still not been able to figure out why this BDC does not work in background .
Please help me out.
Regards
Arun
‎2005 Aug 25 3:26 PM
Hi,
Is anyting related with user name and authorization if it so try with SYCHMONTH user.
Cheers,
Sasi
‎2005 Aug 25 3:41 PM
Hi Sasi ,
I am able to execute the program correctly in the foreground.
Regards
Arun
‎2005 Aug 25 4:15 PM
hi ,
i have executed ur program. in that ,there is a popup window is appearing this was not handle by any ok code try to handle that popup window, i hope it will work on background also.and use bdcmsgcoll in the call transaction this may some times use full to check the error and where the transaction have stopped
‎2005 Aug 25 4:30 PM
Hi Arun,
Any BDC will not run in Background if you have messages coming up in the foreground, be it any message.
I wanted to know, whether you press enter key or something in foreground when the BDC stops/pops up messages in ur status bar at some point in the foreground. I think u should correct such errors first.
Anita