Retain background jobs and its variants before system refresh activity
Hello All,
I am going to perform system refresh activity on quaity system on monday. Customer wants to retain the background jobs and its variants in the quality system. Please guide me and let me know the steps to retain the background jobs and its variants before starting the system refresh activity.
Regards
Subbu
Dear Subbu,
You have to export the TBT* Tables to retain the jobs. You can do this with R3trans:
1. Make Export file
2. Make Import file
3. Make Export in Q System before Systemcopy
4. Start Database and not SAP
5. Make Import in Q after Systemcopy
6. Start sap
1. Make Export file /tmp/export_cmd
export
file='/tmp/export_Q.dmp'
client=<your client>
delete from TBTCA
delete from TBTCB
delete from TBTCCNTXT
delete from TBTCCTXTT
delete from TBTCCTXTTP
delete from TBTCI
delete from TBTCJCNTXT
delete from TBTCJSTEP
delete from TBTCO
delete from TBTCO_V01
delete from TBTCP
delete from TBTCPV
delete from TBTCR
delete from TBTCS
delete from TBTC_SPOOLID
delete from BTCEVTJOB
select * from TBTCA
select * from TBTCB
select * from TBTCCNTXT
select * from TBTCCTXTT
select * from TBTCCTXTTP
select * from TBTCI
select * from TBTCJCNTXT
select * from TBTCJSTEP
select * from TBTCO
select * from TBTCO_V01
select * from TBTCP
select * from TBTCPV
select * from TBTCR
select * from TBTCS
select * from TBTC_SPOOLID
select * from BTCEVTJOB
2. Make Import file /tmp/import_cmd
import
file='/tmp/export_Q.dmp'
3. Make Export in Q System before Systemcopy
R3trans -w /tmp/Q_export.log /tmp/export_cmd
4. Start Database and not SAP
sqlplus "/as sysdba"
SQL> startup
or
startsap
stopsap r3
5. Make Import in Q after Systemcopy
R3trans -w /tmp/Q_import.log /tmp/import_cmd
If you want to undo this, start the export script in P system and the Import script in Q system.
Don't be afraid of the delete statement but without delete it doesn't work!
6. Start sap
startsap
Best regards
Willi Eimler
Similar Messages
-
Export partner profiles and SM59 Entries before system refresh
Hello All,
How to Export partner profiles and SM59 Entries before system refresh in Netweaver
thanks
ShyamIn SDN search with name RFC export ..you will get so many answers ..
Once again please find the below prcoess for RFC export/import during system refresh.
RFC Export --
go to trans dir.. and then create .ctl file as below
#cd /usr/sap/trans/bin
#vi export_rfc_<sid>_<date>.ctl
#Please create the data file as u201Cexport_<SID>_rfc_<Date>.datu201D
Export
Client=<XXX>
file '/usr/sap/trans/data/export_<SID>_rfc_<Date>.datu2019
delete from rfcattrib
select * from rfcattrib
delete from rfcdes
select * from rfcdes
delete from rfcdoc
select * from rfcdoc
delete from rzllitab
select * from rzllitab
delete from ZTCA_USER_LANG
select * from ZTCA_USER_LANG
delete from rfcsysacl
select * from rfcsysacl
delete from rzllitab
select * from rzllitab
#After that excute export command as below.
R3trans u2013w <export_rfc_<targetSID>_date.log> export_rfc_<targetSID>_date.ctl>
(Format is: R3trans u2013w <logfile> <controlfile>)
Export is finished....
Import
Example:
#cd /usr/sap/trans/bin
#vi import_rfc_pta_11042004.ctl
#Please enter the exported RFC data file in the import control as follows:
import
file '/usr/sap/trans/data/export_pta_rfc_11042004.dat'
(Enter the file name, which is created during the export process)
Regards,
Srinivas Chapa. -
Background job canceled in Solution Manager system
Dear all expert ,
Two background jobs canceled in solution manager system before some time.
details-
Background jobs :
1 - LANDSCAPE FETCH
Program name : RSGET_SMSY
Job log : Job started
Step 001 started (program RSGET_SMSY, variant ,
The SLD server connection is inactive
Job cancelled after system exception ERROR_MESSAGE
2 - SEND_SYSTEM_RELATIONSHIP_TO_SUP
Program name : AI_SC_SEND_SYSTEM_RELATIONSHIP
Job log :
Job started
Step 001 started (program AI_SC_SEND_SYSTEM_RELATIONSHIP, variant ,
SOL determined as monitoring Solution Manager system
SAP customer number unknown for installation number 0020606335
Job cancelled after system exception ERROR_MESSAGE
please help me , what should i do ?
I am waiting for your positive response.
Regards
Shubhhi,
You can try following ....
For the job SEND_SYSTEM_RELATIONSHIP_TO_SUP
Program : AI_SC_SEND_SYSTEM_RELATIONSHIP
1. Up to Support Package 09:
a) Start transaction SMSY.
b) Choose Shft+F5.
c) Select the system named in the message.
d) Choose F6.
e) Select the "System Data in SAP Support Portal" tab.
f) Using the input help, fill the system number field with the correct system.
g) Save the data.
2. Up to and including Support Package 08:
a) Start transaction SOLMAN_CONNECT.
b) Select the system in question in the ID field and choose the filter pushbutton.
c) Select the system and select "Create configuration".
d) Fill the system number field using the input help with the correct system.
e) For example, select the "BW GUI Connection" service type.
f) Carry out all of the subsequent steps of the Configuration Assistant until you see the "Finish" pushbutton.
This establishes a unique relationship between your system in the Solution Manager and the system number in the SAP Support Portal. Problems no longer occur with this system when the SEND_SYSTEM_RELATIONSHIP_TO_SUPP job is next run. However, the problem may still exist for other systems (in these cases, you should follow the same steps).
Hope this will help to solve your issue..
Regards
Bhuban
RKFL -
Run the Report as a Background job and Get the Output in Excel in Local PC
Hello Gurus,
I have one following requirement.
One should be able to run the report as a background job and it should be possible to get the report in Excel format, also when running the report in background. The excel report should have the same information and look as the current SAPreport.
Please provide some solution.
Any helpful answer get surely awarded.
Thanks a lot,
VarlanirGUI_* WS_* Function In Background, CSV Upload
GUI_* and WS_* function modules do not work in background
When scheduling a job in the background the appropriate statement to read in your file is OPEN DATASET, and the file must be on the file system that the SAP server can see.
At anytime, a user can switch of the Personal Computers even though the job is still running in the background. Therefore GUI_* and WS_* function modules are not designed to work in that way, as they need to access your personal computer file.
To choose the correct download method to used, you can check the value of SY-BATCH in your code,
if it is 'X' use OPEN DATASET and if it is ' ' use WS_UPLOAD.
*-- Open dataset for reading
DATA:
dsn(20) VALUE '/usr/test.dat',
rec(80).
OPEN DATASET dsn FOR INPUT IN TEXT MODE.
IF sy-subrc = 0.
DO.
READ DATASET dsn INTO rec.
IF sy-subrc <> 0.
EXIT.
ELSE.
WRITE / rec.
ENDIF.
ENDDO.
ENDIF.
CLOSE DATASET dsn.
*-- Open dataset for writing
DATA rec(80).
OPEN DATASET dsn FOR OUTPUT IN TEXT MODE.
TRANSFER rec TO '/usr/test.dat'.
CLOSE DATASET dsn.
What is the difference when we use upload, ws_upload, gui_upload function modules?
UPLOAD, WS_UPLOAD, GUI_UPLOAD, are used in BDC concepts. ie., Batch Data Communication.
Batch Data Conversion is a concept where user can transfer the Data from non SAP to SAP R/3. So , in these various Function Modules are used.
UPLOAD--- upload a file to the presentation server (PC)
WS_UPLOAD---- Load Files from the Presentation Server to Internal ABAP Tables.
WS means Work Station.
This is used upto SAP 4.6 version.
GUI_UPLOAD------- Replaces WS_UPLOAD. Upoad file from presentation server to the app server. From 4.7 SAP version it is replaced.
How to Upload csv file to SAP?
Common File Download Upload Questions:
How you upload the data from text file to sap internal table? From my knowledge its by upload or gui_upload.
How you download the data from sap internal table to text file?
How you upload the data from xls (excel) file to sap internal table how you download the data from sap internal table to xls(excel) file.
You can upload data from presentation server to an internal table using gui_upload. Use gui_download to download from internal table to flat file.
Use fm ALSM_EXCEL_TO_INTERNAL_TABLE to upload data frm excel.
Use function module GUI_UPLOAD
The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\test.csv'
FILETYPE = 'ASC'
TABLES
DATA_TAB = itab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17. -
How to create a background job without a variant ?
How to create a background job without a variant ?
Hi,
Go to se38.. specify the program name and execute Or use Tcode
On the selection screen specify the variant...
Then from the menu options choose program->excute in background...
In this way we can crate a backgroup job with out crateing any varinat for the report...
Satya. -
Differences in Background jobs and Dialog jobs
Hi everyone,
I am new to SAP and would like a little clarification regarding what is meant by Background jobs and Dialog jobs/processes. We had a situation at our client location where the system got completely bogged down to the point that it almost froze and many of the process chains were failing in BI. As per the basis team, the jobs were triggered as "dialog jobs" instead of "background" jobs which caused a heavy load on the system.
What is the difference? What happens when the jobs are run in the background or as dialog? Can both be checked in SM37?
Points will be awarded
Thanks.**Dialog Work process:** The Dialog work process fulfill all requests for the execution of dialog steps triggered by an active user. The dialog work process are not used for request which take long time and which use more cpu. Every dispatcher requires at least two dialog work processes. The dialog work process default time is 300 secs. If the dialog work process does not respond in this time, it will be terminated. Also dialog work process are multiplexed to handle large no of user request.
**Background Work process:** The background work processes execute programs that run without user interaction. At least two background work processes are required per SAP system. More than one background work processes can be configured per dispatcher. Usually the background work process are used for carrying jobs that take long time to finish, like client copy, client transport etc.., . There are two types of background work process. They are A type and B type. A type background work process are used for mission critical jobs. Background jobs of priority a have high priority than B type back ground jobs.
you can check your job using tcode SM50.
Thanks
Dhiraj -
Different Subroutines in Background jobs and Dialog jobs
Hi guys,
I want to execute some subroutines when the program is running using a background job , and some other subroutines completely different when the user use dialog job ( program -> execute in background ) . I know that sy-batch = 'X' in both cases , but, there is something else to identify them ? , any ideas .
thank you .It will be - he meant that they start the background job from SE38/SA38 not run it online.
SY-SLSET is a starter point for checking the variant used - dynamic variants are used when you don't pick one from the list. However, this would not help if the user picked a variant and then scheduled the job dynamically. Another option is to use function GET_JOB_RUNTIME_INFO in your program. Assuming your scheduled jobs are named differently, you can check for the condition by checking the name of the running job. Dynamically created jobs will have the program name as the job name. -
Is it possible to create a background job without a variant
Hi all,
Is it possible to create a background job without a variant ?
If Yes ..How ?
Thanks in advance
KRHi KR,
if you have any selection-screen in your programm it is not possible otherwise it is possible.
Plzz Reward if it is useful,
Mahi. -
Divide the billing due list into multiple background jobs and start them si
Hello Gurus,
How to divide the billing due list into multiple background jobs and start them simultaneously?
Many thanks,
FrankHello Frank,
Check this:
http://help.sap.com/erp2005ehp_03/helpdata/EN/dd/561076545a11d1a7020000e829fd11/frameset.htm_
plz assign suitable points, if this helps.
Rgds,
Raghu. -
What is the difference between background job and foreground job
Hi Experts,
Could you pls tell me
What is the difference between background job and foreground job
and where exactly used background jobs...
ThanksHello,
Background jobs - without user interaction, scheduled via SM37.
Foreground jobs - with user interaction (transactions).
For more information, please read these: [http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbda449911d1949c0000e8353423/frameset.htm], [http://help.sap.com/saphelp_nw04/helpdata/en/73/69ef5755bb11d189680000e829fbbd/frameset.htm] and [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20cb0b44-8f0b-2a10-2381-ca8162bcb5b2].
Regards, -
Retrieve cancelled background job and display it user on the selection scre
Hi all,
i am executing a background job and if successful it sends an email to the user .
if the job gets cancelled i want to display the job status to the user or email the user .
can anyone share your experiences on this .
thanks in advance.
regards,
RyU can use the FM 'BP_JOBLOG_READ' for the aborted jog to get their status log..then u can send this log to the user via mail.
pl. check this sample code..
REPORT ZEXAMPLE.
DATA: JOBLIST LIKE TBTCJOB OCCURS 0 WITH HEADER LINE,
JOBDETS LIKE BTCSELECT,
JOBLOG LIKE TBTC5 OCCURS 0 WITH HEADER LINE,
V_ANS.
PARAMETERS P_UNAME LIKE SY-UNAME DEFAULT SY-UNAME OBLIGATORY.
IF NOT P_UNAME IS INITIAL.
JOBDETS-JOBNAME = '*'.
JOBDETS-USERNAME = P_UNAME.
JOBDETS-FROM_DATE = SY-DATUM.
JOBDETS-TO_DATE = SY-DATUM.
JOBDETS-NO_DATE = 'X'.
JOBDETS-WITH_PRED = 'X'.
JOBDETS-PRELIM = 'X'.
JOBDETS-SCHEDUL = 'X'.
JOBDETS-READY = 'X'.
JOBDETS-RUNNING = 'X'.
JOBDETS-FINISHED = 'X'.
JOBDETS-ABORTED = 'X'.
ENDIF.
CALL FUNCTION 'BP_JOB_SELECT'
EXPORTING
JOBSELECT_DIALOG = 'Y'
JOBSEL_PARAM_IN = JOBDETS
TABLES
JOBSELECT_JOBLIST = JOBLIST
EXCEPTIONS
INVALID_DIALOG_TYPE = 1
JOBNAME_MISSING = 2
NO_JOBS_FOUND = 3
SELECTION_CANCELED = 4
USERNAME_MISSING = 5
OTHERS = 6.
IF SY-SUBRC EQ 0.
IF NOT JOBLIST[] IS INITIAL.
READ TABLE JOBLIST INDEX 1.
CALL FUNCTION 'BP_JOBLOG_READ'
EXPORTING
JOBCOUNT = JOBLIST-JOBCOUNT
JOBNAME = JOBLIST-JOBNAME
TABLES
JOBLOGTBL = JOBLOG
EXCEPTIONS
CANT_READ_JOBLOG = 1
JOBCOUNT_MISSING = 2
JOBLOG_DOES_NOT_EXIST = 3
JOBLOG_IS_EMPTY = 4
JOBLOG_NAME_MISSING = 5
JOBNAME_MISSING = 6
JOB_DOES_NOT_EXIST = 7
OTHERS = 8.
IF JOBLOG[] IS INITIAL.
WRITE:/ 'NO JOB LOG FOUND'.
ELSE.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'DELETE JOB LOGS'
TEXT_QUESTION = 'JOB LOGS FOUND. DELETE?'
POPUP_TYPE = 'W'
IMPORTING
ANSWER = V_ANS.
ENDIF.
IF V_ANS EQ '1'.
CALL FUNCTION 'BP_JOB_DELETE'
EXPORTING
JOBCOUNT = JOBLIST-JOBCOUNT
JOBNAME = JOBLIST-JOBNAME
EXCEPTIONS
CANT_DELETE_EVENT_ENTRY = 1
CANT_DELETE_JOB = 2
CANT_DELETE_JOBLOG = 3
CANT_DELETE_STEPS = 4
CANT_DELETE_TIME_ENTRY = 5
CANT_DERELEASE_SUCCESSOR = 6
CANT_ENQ_PREDECESSOR = 7
CANT_ENQ_SUCCESSOR = 8
CANT_ENQ_TBTCO_ENTRY = 9
CANT_UPDATE_PREDECESSOR = 10
CANT_UPDATE_SUCCESSOR = 11
COMMIT_FAILED = 12
JOBCOUNT_MISSING = 13
JOBNAME_MISSING = 14
JOB_DOES_NOT_EXIST = 15
JOB_IS_ALREADY_RUNNING = 16
NO_DELETE_AUTHORITY = 17
OTHERS = 18.
IF SY-SUBRC EQ 0.
WRITE:/ JOBLIST-JOBCOUNT, JOBLIST-JOBNAME, 'LOG DELETED'.
EXIT.
ELSE.
WRITE:/ JOBLIST-JOBCOUNT, JOBLIST-JOBNAME, 'LOG NOT DELETED'.
ENDIF.
ELSE.
CALL FUNCTION 'BP_JOBLOG_SHOW'
EXPORTING
JOBCOUNT = JOBLIST-JOBCOUNT
JOBNAME = JOBLIST-JOBNAME
EXCEPTIONS
ERROR_READING_JOBDATA = 1
ERROR_READING_JOBLOG_DATA = 2
JOBCOUNT_MISSING = 3
JOBLOG_DOES_NOT_EXIST = 4
JOBLOG_IS_EMPTY = 5
JOBLOG_SHOW_CANCELED = 6
JOBNAME_MISSING = 7
JOB_DOES_NOT_EXIST = 8
NO_JOBLOG_THERE_YET = 9
NO_SHOW_PRIVILEGE_GIVEN = 10
OTHERS = 11.
ENDIF.
ELSE.
WRITE:/ 'NO JOBS FOR', P_UNAME.
EXIT.
ENDIF.
ENDIF.
Regards,
Joy. -
Error in background job for program RSGET_SMSY error message No active job
Hello!
I would like to set up the Change Request Management functionality in SAP Solution Manager.
The only red warning by executing Test-button in Tcode SOLAR_ADMIN_PROJECT is:
<b>Error in background job for program RSGET_SMSY error message No active job found</b>
Can someone please tell me how to solve this problem?
(tcodes, technical steps)
Thank you very much!
regards
ThomThank you very much!
Can you also help me with the warning "Errors occurred during synchronization of the system landscape" in tcode SOLAR_PROJECT_ADMIN" --> System landscape --> Change requests --> "Refresh"?
The second issue I cannot see any projects in Tcode "/TMWFLOW/CMSCONF"
according to the SPRO-step "Set Project Assignment of Requests as Mandatory"
Thank you!
regards -
System refresh activity in Development Box
Hi Guru's
I have requirement for system refresh activity in development system and i would like to know what are pre-activity required for this other than when compared to normal system refresh and also please share me any link or snote related to this
Regard
Mohammed SayeedHi,
This is SAP business one system administration forum. Please find correct forum and repost your question to get quick reply.
Please close this thread here with helpful answer.
Thanks & Regards,
Nagarajan -
Does any body have a clear explanation for the system refresh activity.
and is System copy and refresh one and the same
if some one has steps please send them to me
thank uPavan ,
when you are performing the client copy you are coping the tables and indexes.
if your system have different patch level i way cause inconsistancy while client copy.
Please check this forun to clear the situation
Re: Error in Remote Client Copy
thanks
Rishi Abrol -
Table name for background job with report, variant and step user id list.
Hello All,
I need to generate the list of scheduled backgroung job with the list of Report Name, Variant, Step User Id called. Please any one tell the SAP Table name from which I can get these data.
Thanks in Advance,
AmitHi Rohit,
Thanks for your reply. But from TBTCO, i can't find program/report name and variant. Just the list of background job i can see.
Regards,
Amit
Maybe you are looking for
-
Installed flash disk does not boot (Solaris 10 on Fore CPU-50 VME cpu-card)
Greetings, After installation of Solaris on a system with a flask disk as system disk, the disk is not bootable. Configuration: System: Fore CPU-50 VME cpu-card (sparc50) OS: Solaris 10 (Sparc version, CD-media) System-disk: ADTRON S35FA-8GC20N Smart
-
Error While trying to Get XML element(tag) Values
We are trying to get XML element (TAG) value from the XML pay load. Example. Getting XML String from a web service and then converting into XML payload. ora:parseEscapedXML(bpws:getVariableData('signOn_Out','signOnReturn')) From this XML payload we a
-
Hi, Transaction is not rolled back if a stored procedure is called from BMP. The flow is as follows: Stateless Session Bean --> BMP Bean --> DAO -->method 1, method 2 method 1 has a call to Stored Procedure which does update operations on DB. method
-
XSLT and non-well formed XML file
All, I am getting some "XML" feeds from some old lab equipment, however the XML isn't well formed. Really it isn't even XML it is just a formatted text file. So I will get a feed like the following: <SampleSet Label="Sample Set"> <Name Label="Name"
-
Facebook wont load pages in firefox
Its loading apps but not messages or friends profiles and it wont open facebook itself I have to go through emails from facebook to get there. firefox error console is coming up with: Error: Permission denied for (document.domain=) to call method Unn