How to run program without set back ground Job in production Server?
Hi,
I have developed 1smart forms which is takes so much time for execution and sometimes its time out.
I have used BSEG, BKPF, BSET, KONV, VBRK, VBAP, LIPS, LIKP these tables in smartform.
So give me proper solution for this issue?
Thanks
Yatin Mahetaliya.
Hi,
You could call from your program the function module called SXPG_COMMAND_EXECUTE where you will call a command already defined in SM59 transaction code. You will maybe control the return code with sy-subrc. Then it will possible for you to extract data...
Don't forget that every time you call GUI_UPLOAD or any method or function from the frontend function group or ABAP object by classes like cl_gui_frontend_services, it will be impossible to run in background.
Try it..
pherasath
Similar Messages
-
How to set Back ground job & get my desired output layout in sm36 & sm37 ?
Hai SAP ABAP/BASIS Gurus,
I am currently taking ME2N PO Pending value Report by setting variant in input screen & setting my own output layout ie only four field ie.Plant, Material,Currency,Still to be delivered value will be visible in output screen
I set Back ground in sm36 using my variant & i saw my output in sm37.. But I cant get output as my desired field..
This is my problem..
1) I Cant Get the Same output in shedule job [sm36 & sm37] like When i run in foreground for ME2n.
I am using ALV Scope of list..
2) If I use BEST Layout in Scope of list means i get the desired Output field layout as same as my foreground output field..
I want to get the output layout as desired & also in ALV format[ Useful for excel work]
Kindly guide me.
Thanks in advance..
swetha
Edited by: Swetha SAP Girl on Jul 2, 2009 5:06 PMHi Swetha,
To get the missed fields in the spool, while creating the background job(execute in background option) you can see the printer setting block at the end of the background job settings window, in that check the 'Spool Request Max. Width 255 char' check box and then continue. It will generate the spool list with maximum width and you can see all the fields in the spool output.
Thanks,
Muthu
Edited by: Muthu Prabakaran Selvam on Jul 3, 2009 2:35 PM -
How to download data which comes in back ground job to presentation server.
HI ,
I am creating one job which has to download data to presentation server.
for back ground jobs gui_download will not work..
plz sugest the alternative for this...
thakns in advance,
khasimsathere are so many posts in SCN , please search .
write data to application server in background and then download to presentation server online. -
How to run a report in back ground
how to run a report in background with out using job open, submit , close is there any other function module to run report in background.
Hi,
There are two ways for you to handle,
one manually setting up the job through SM36 which is better and convinient,
secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.
Find below steps in doing both:
Procedure 1:
1. Goto Trans -> SM36
2. Define a job with the program and variant if any
3. Click on start condition in application tool bar
4. In the pop-up window, click on Date/Time
5. Below you can see a check box "Periodic Job"
6. Next click on Period Values
7. Select "Other Period"
8. Now give '15' for Minutes
9. Save the job
Procedure 2 via Program:
Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.
DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
L_RELEASE(1) TYPE c.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = 'ZTEMP2'
IMPORTING
JOBCOUNT = P_JOBCNT
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
WITH DESTINATION = 'HPMISPRT'
WITH IMMEDIATELY = SPACE
WITH KEEP_IN_SPOOL = 'X' AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = P_JOBCNT
JOBNAME = 'ZTEMP2'
STRTIMMED = 'X'
PRDMINS = 15
IMPORTING
JOB_WAS_RELEASED = L_RELEASE
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hope the above helps you.
<b>Reward points</b>
REGARDS -
Hi Friends,
I wnat to set the background job with following conditions:
Monday to Friday
From 9AM to 6 PM
To run on every half an hour.
Can any one guide for the same.
Regards,
Sai KrishnaHi Friends,
In our Organization PR is created by user dept. & PR release is completed accordingly. In this process Purchase dept. is not in the release strategy. Now PR is completly released & while converting to make PR to PO, purchase dept. found there is some problem in PR. Is there any way Purchase dept. can reject PR & send to user dept. for correcting it.
One method is to have Purchase dept. also in release strategy loop. We are having nearly 400 release strategies. To change all these will take much time. Is there any other way.
Thanks & Regards
Sai Krishna -
How to run transaction MM12 in back ground?
Hi Masters ,
Can you help me out of this? the senario is :
If the validity stanrt date and end date of a contract is in future date then do not update the material master with PDT value from the contract but call the transaction MM12 (schedule changing of material) in the background on saving the contract.
The following values would be passed from contract to MM12 transaction:
Material No (EKPO u2013 MATNR) to Material Number
Validity Start (EKKO u2013 KDATB) to field Change scheduled for.
Planned Delivery Time (EKPO u2013 PLIFZ) to Planned delivery time in MRP2 view.
Plant (EKPO u2013 WERKS, if present) to Plant.
Please any one help me of this....
Regards
Anshuman
Edited by: Anshuman_Danda on Nov 7, 2011 9:55 AM
Moderator message : Spec dumping is not allowed, search for available information. Thread locked.
Edited by: Vinod Kumar on Nov 7, 2011 4:59 PMHi,
Search for the corresponding BAPI and use it for ur requirement.
Thanks & Regards,
Kiran -
Back Ground Job scedule (emergency)
Hi all ,
I have scheduled Back Ground Job in Production System at morning 11am, now the job is in running status,but i wonder that before the status come to completed the
LAST RUN Column is filled with Date and time same at 11:am.
Please find the below job log details i am pasting last few lines of job log
Jun 5, 2008 2:15:22 PM com.virsa.cc.xsys.riskanalysis.AnalysisEngine performActPermAnalysis
INFO: Job ID:6 : Before GC => memory usage: free=481M, total=1009M
Jun 5, 2008 2:15:22 PM com.virsa.cc.xsys.riskanalysis.AnalysisEngine performActPermAnalysis
INFO: Job ID:6 : Analysis starts: HTREMGMT2
I would like to know wheather job is running or terminated.
Wat is the sequence of JOB status in CC5.2.
Kindly do the needfull.Hi Amol,
Thank You very much for ur quick reponse,
please find the view job log details
(last few lines)
Jun 5, 2008 3:07:12 PM com.virsa.cc.xsys.riskanalysis.AnalysisEngine performActPermAnalysis
INFO: Job ID:6 : 464 out of 818 (56%) done
Jun 5, 2008 3:07:12 PM com.virsa.cc.xsys.bg.BgJob setStatus
INFO: Job ID: 6 Status: Running
Jun 5, 2008 3:07:12 PM com.virsa.cc.xsys.riskanalysis.AnalysisEngine performActPermAnalysis
INFO: Job ID:6 : Before GC => memory usage: free=347M, total=1009M
Jun 5, 2008 3:07:12 PM com.virsa.cc.xsys.riskanalysis.AnalysisEngine performActPermAnalysis
INFO: Job ID:6 : Analysis starts: MACTUSER17
Jun 5, 2008 3:07:21 PM com.virsa.cc.xsys.meng.ObjAuthMatcher <init>
FINEST: ObjAuthMatcher constructed: 0ms, #singles=970, #ranges=0, #super=0
Jun 5, 2008 3:07:22 PM com.virsa.cc.dataextractor.bo.DataExtractorSAP getObjPermissions
FINEST: getObjPermissions: elapsed time=891ms
can u tell me the job status sequence -
Error while using Back ground Job for Planning function in BPS
I have created FM and Program for scdualing Back ground Job for Planning function.
I have created Planning function with exit option and passed parameter Global seqence name.
Error is lot of Jobs are creating while exe in BPS0
Kindly help me the same
Regards
GRHi Rama,
It seems there are two diff. functional modules (UPC_BUNDLE_EXECUTE AND UPC_BUNDLE_EXECUTE_STEP). The second one divides the planning sequesces on the basis of something you specify (e.g. company code). Just make sure that you are using correct FM.
just a thought.......
Regards,
SK -
How to find the back ground job details
Hi All,
I have a back ground job running from many days, now we would like to know when this job was created on what date this job actvlly created and schuduled.
Please informe me how to check this.
Thanks & Regards,
MuralikrishnaOn SM37 screen there is plenty of options are there:
This is what i got from SAP help
Explanation for each selection field:
o Jobname: Name of the job as an identifier.
o Username: Name of the user who designed and planned the job.
o Start date: The start condition of the job, which could be a time
frame or an event that the job is waiting for. Specifying both will
yield jobs whose starting condition is either of the two
conditions.
ABAP program step: Name of an ABAP program that acts as a step in a
job.
Status selection: The current status of the job. By default, the
SCHEDULED option is not marked. To see the scheduled jobs, you must
explicitly check this.
also give the proper values in Job Satus also. -
Back ground job for automatic MRP run
Hi pp guru,
my client want for a particularly material no XXXXXX ,there should be automatic MRP rum daily at 8:00 pm.
kindly suggest me how i will map back ground job in sap..
regards
AqueelDear Aqueel,
1.Either make a copy of the MRP type say PD and assign the new MRP type to that paticular material.
2.Or else assign one MRP controller sepecifically for this material.
3.Activate the User Exit M61X0001 which allows to run the MRP in background based on MRP type or
a MRP controller.
4.Create the varaint for running MRP in MDBT.Schedule from here.
or else use SM36 select the program RMMRP000 and select the variant and go to scehduling and
select the time and execute.
Regards
Mangalraj.S -
How to keep break point in back ground scheduling Report
Hi,
how to keep break point in back ground scheduling Report?
Regards,Hai ,
One more way to debug in the back ground is , pur some infinite loop condition and execute the job and in SM50 you can see the job which is running place the cursor on the job and go to the program in the menu and go to debugging from there .
Example code for infinite loop .
i=1 .
loop at itab .
if i > 5 .
end loop .
Regards,
K.Vinaykumar -
I made a big mistake to change the setting of my Mac book pro to "me only". Now ofcourse It cannot open the login page, for how would the mac know it is me? How can I change the setting back to "everyone"? I have back up in the past but the last month I have not. I really want to keep the data.
So how can I go in and change the setting, It stays ofcourse at the apple screen with wheel. All info is there and the computer works fine, just cannot use it or have been able to log in.wjosten is spot on. If you really want iCloud, then you will need to acquire a new or second hand MBP that can run Lion.
Ciao. -
Set back ground color to a particular cell in table view
hi,
iam working on a jspDynpage and have a htmlb table view for which i need a way to set back ground color to a particular cell in table view, the color has to be set based on a value..is there a way to do it without using an iterator...well iam using a cellRenderer for the table but cant find a way to set the colors...if anyone does have a way please do reply...regardsYou can mention the color in <b>textview</b> as well as <b>Label as follows:</b>
<htmlb:textView text = "<span style='background-color: #00FF00'>My Textview</span>"
design = "EMPHASIZED" />
<htmlb:label for = "MyLabel"
text = "<span style='background-color: #00FF00'>Label </span>"
encode = "false"/>
Reward each helpful answer
Raja T
Message was edited by:
Raja Thangamani -
How to analyse Back Ground Jobs in BI
Hi,
How to analyse Back Ground Jobs in BI
RSDB2MA1 and RSDB2MA2
My requirment is to check the error logs for these job
How to navigate there
ThanksDear BW user,
Sm37 and sm50/51
1)Go to Sm37
2) Give the job name and in user give as *
3)press execute or f8
4) Press job log in the screen..keep refreshing it for update
5)Press job detaisl..get pid no and wp no..in it
6) go to sm50/51
check for given wp no... and pid no..job is running or waiting or not
sm66
1)go to sm66
2)in sm66 you can see only the central instance job running in
3)You cant find any application server in it
Hope it helps you,Revert me back if you have any queries
Assign points if helpful
Regards
Bala -
What is the back ground job when we run an Attribute Change run ?
Dear One´s,
What is the back ground job when we run an Attribute Change run ?
Thanks in advance,
RajHi Raj,
1. If the attribute change run is triggered through process chain the job name is 'BI_PROCESS_ATTRIBCHAN'
2. If the change run is triggered from RSA1> tools?Appl Heirarchy/Attribute changerun then the job name starts with BI_STRU*
3. If you trigger the program RSDDS_AGGREGATES_MAINTAIN from SE38 then the job name will be RSDDS_AGGREGATES_MAINTAIN
Hope this helps...
Maybe you are looking for
-
Open the xml file in a new tab with javascript??
Hello all, I have given Denes Kubicek example on Export to xml files straight from Reports http://htmldb.oracle.com/pls/otn/f?p=31517:118:651492651950833::NO . I am glad to say that with a few changes it also works on Interactive reports. However i a
-
My printer keeps printing things on only 1/4 of the page
I can not figure out how to print something correctly I guess. It keeps printing things only taking up 1/4 of the page..and it's driving me nuts! I can't figure out how to fix it. Help please?! =)
-
can I move all my photo that I can see on iPhoto from my Mac hardrive and put them on an external hard drive and still be able to see them as thumbnails in iPhoto? Thanks! The reason, I need to know if I can do this is b/c I am running out of HD spac
-
Aperture Metadata Custom Categories
Does anyone have any ideas on how to deal with what appears to be either a bug or a small glitch with Metadata info? Basically, I have a custom entry called, "Event Name". This entry was present in my Metadata custom fields from when I first opened t
-
Error #3: "memory.cpp", line 639; VI used to work, now it stopped
Hello, I am running LabVIEW 6.0.2. I have a rather complicated VI that used to work just fine. I have run it a bunch of times without any problems. I have not changed anything at all, and now it gives me Error #3: "memory.cpp", line 639 every time I