Issue in scheduling /sapsrm/offlineapprovalsend in background
Hello Guys,
My requirement is to send Email to Approver once workitem is send to him in UWL after creation/change of contract. This is not offline approval but just an email specifying to check UWL.
In SRM 7.0 SAP has provided standard program /SAPSRM/OFFLINEAPPROVALSEND. This program sends email correctly to Approvers if correct date and time is mentioned on the screen.
But if I call this program in background through another program, it does not work. Program unables to find workitem in mentioned period since doesnot accept date and time parameters passed in the submit statement. It considers those blank and then internally assign system date and time to it.
Below is the sample code: ( we have also implemented BADI BBP_OFFLINE_APP_BADI to change text )
START-OF-SELECTION.
gv_time = sy-uzeit.
gv_datum = sy-datum.
to identify workitems which are generated in last 1 hour only
gv_time = gv_time - 3600.
SUBMIT /sapsrm/offlineapprovalsend WITH : p_jobsuf = '2',
p_bo_ty = 'BUS2000113',
x_n14all = c_x,
x_o_html = c_x,
x_o_dec = c_x,
x_wi_txt = c_x,
p_fromd = gv_datum,
p_fromt = gv_time,
x_alw_tr = c_x,
x_prio_2 = c_x .
Kindly help.
Regards,
Hema
Hello,
Reason is I need to change Value of the parameter Date and time on the screen. Contract( workitem) created in last 1 hour need to be executed only.
Date and time on screen work in a way that.. After that particular date and time whatever items are created mail is being send for all those items. Hence I can not keep those constant and should vary at each execution.
Regards,
Hema
Similar Messages
-
/SAPSRM/OFFLINEAPPROVALSEND as background-job
Dear All,
We would like to send offline-approval mails for our workitems with the report "SAPSRM/OFFLINEAPPROVALSEND".
This works very well in foreground, but not as batchJob.
If we start this report in background (with the same variant that works in foreground) we receive the following spool-message:
A total of 0 work items scanned
No work items found that required forwarding
Do you know this problem and do you know how to resolve it?
Best regards,
ThomasHi,
Check next:
In the Customizing activity Change Organizational Plan (transaction PPOMA_BBP), you have set the attribute FORWARD_WI to 'X' for all users that are to use the offline approval function.
Thanks and Regards,
Ab. -
List of Issues in Scheduling agreement ??
Hii experts
Cam somebody explain me about the crictical issue in scheduling agreements in MM .
What kind of issues will occur in SAP SA scenario.
Can somebody share their exp on this ...
ThanksPlease check the SA issues in these links:
Scheduling Agreement
Scheduling Agreement
scheduling agreement
Scheduling Agreement -
How to schedule a report in background
could anybody inform me
how to schedule a report in background
if possible plz send the entire step by step process
thanx
regards
kals.HI,
Use transaction SM36
For step by step process refer this link...
http://help.sap.com/saphelp_bw30b/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
Hope this helps!!
Cheers
Alfred -
Scheduling a report in background and passing data for processing
Hi all,
Using code (in a report1) ...i want to execute a report (report2) in background.....but at the same time i want to pass data (an internal table and a variable) to that report2.
is it possible to pass data like internal table to a executable report and at the same time pass the data to that report.
Thanks in advance.
Thanks and Regards,
Sushil.hi
regarding Scheduling a report in background check the below thread
SCHEDULE THE ZREPORT IN BACKGROUND DYNAMICALLY
regards
chandra -
Issue while posting the invoice in background using the WF-BATCH user
Hi Friends,
I am facing an issue while posting the invoice in background using the WF-BATCH user. I am using a invoice approval workflow where in when the approver approvers the invoice the invoice document get posted using a background method, which uses BO FIPP and Method POST and i am returning the Message Text to my workflow container from this method. When i see the log an exception is rasied from this method with an error message "V004: You are not authorized to change this document", but WF-BATCH is having SAP_ALL and SAP_NEW authorizations. If i try to post the invoice using the method from my user id it is getting posted. What could be the issue. Please advice.Hi Sapient,
The Parameter, Roles would be different for the LOGIN USER and WF-BATCH.. So ask your administrator
to set the Roles & Parameters similar to that of LOGIN USER to WF-BATCH.
For further refrence check in SU01 giving the LOGIN USER and then check with WF-BATCH... you would
find the difference...
Hope this would help you..
Good luck
Narin -
Wrong hyperlink in /SAPSRM/OFFLINEAPPROVALSEND mail
Dear All,
We use the program /SAPSRM/OFFLINEAPPROVALSEND to send offline approval mails.
There are Hyperlinks In these mails to access directly the portal and to approve the workitem in the portal.
But theses links are not correct, the first part is missing:
Hyperlink in mail ==> :///irj/portal/?NavigationTarget=OBN://BOSystemAlias=SAP_SRM/BOT...
Correct hyperlink to our portal ==> http://xx2srmdev.xxx.local:50000/irj/portal?navigationtarget=obn://BOSystemAlia...
As you can see, the first part (the principal address of our server) and u2018httpu2019 are missing in the link of the mail.
Do you know this problem and how we can correct it?
Thanks,
ThomasHi Iftekhar,
Even i have the same scenerio, Following is the link which i see in the email notification.
<:///irj/portal/?NavigationTarget=OBN://BOSystemAlias=SAP_SRM/BOTechnicalName=qte/Operation=displayrfx&NavMode=3&SAPSRM_BOID=4FEAD52FA9C905B9E10000000A45528C>
we have the parameters set in the thread mentioned.
Port of the SAP Portal(Internal)
Protocol(Internal)
Full Qualified DomainName(Internal).
Root Path of iView/Application
still i dont get the link right. was there anything else you did which made the link come up properly?
your help will be very much appreciated.
Regards
Manu -
How to schedule BDC program in background when we use GUI_UPLOAD
Hi,
I need to run the BDC program in the back ground. But my flat file is in presentation server and i am using GUI_UPLOAD F.M to upload data into I.T. How to schedule BDC program in background.
Will anybody help me in this regards.
Thanks in advance,
MythilyYou will either have to put your data file on the application server or make the directory of the presentation server available as part of the file system so that the background job will have access to it via OPEN DATASET... TRANSFER... CLOSE DATASET.
-
Write a program that would schedule another program in background multipul
Hi All,
I need to write a program that would schedule another program in background multipul times according to input we provided on different application servers.
For ex:- In table FKKVKP, i am having 2.1 millons contract accounts. I need to write a program(A) that should take 5000 contract accounts at a time as a input and schedule another program(B) in background with input of 5000 contract accounts. And program A ,again schedule program B on differrent application servers , till 2.1 millions contract accounts get used.
Thanx in advance.
Regards,
Dilip Kushwahhi,
1) Carry out the recording for the required transaction using SHDB.
2) Use batch input method to create session this is done by three FMs
bdc: open_group, bdc_insert, close_group.
3) A session is created , which can be seen in transaction SM 35.
4) Use the standard program RSBDCSUB to configure the session created in SM35.
This way you can achieve your requirement.
Check this links too for more information
Batch input [http://help.sap.com/saphelp_nw04/helpdata/en/fa/097015543b11d1898e0000e8322d00/frameset.htm]
[http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/frameset.htm]
[http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/content.htm]
Thanks
Sharath -
Process Steps to schedule the job in background
What are the process Steps to schedule the job in background?
Sai.You can set up the different step while schedule the back ground job. Each step will have the program name, variant.
You can do his using transaction SM36 -> JOB WIZARD.
Thanks,
Srinivas -
How will you schedule the job in background?
How will you schedule the job in background?
Pls go to this link
http://help.sap.com/saphelp_bw33/helpdata/en/4c/89dc37c7f2d67ae10000009b38f889/frameset.htm
Step by Step
http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/content.htm
An example of a complex process:
http://help.sap.com/saphelp_nw04/helpdata/en/3c/63073c52619459e10000000a114084/frameset.htm
process chains
process chains
Process chains
http://help.sap.com/saphelp_bw30b/helpdata/en/ad/6b023b6069d22ee10000000a11402f/frameset.htm
Re: Ho to make a variable mandatory or optional?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
Thanks & regards
nath.......... -
Issue in Foreground Report executing as background
I have developed a Report in ABAP which has a selection screen and 2 radiobuttons
Foreground
Background
The report basically reads a TXT file from Desktop and calls a standard BAPI.
In foreground, I have no issues i.e. I browse the call from desktop and call GUI_UPLOAD and so on
However, in background, I am confused how to proceed??
Please note: Report is still running in foreground mode i.e. i am browsing the file. Its just that i have selected background Radiobutton
Can anyone tell me how to proceed i.e. to execute in background.
Do I need to submit the same program via JOB_OPEN JOB_CLOSE in background and then exit??
Please adviceHi Razdan,
If want to schedule the background job through the program, then you can try method explained in below links. Here you might have to create a separate program to submit.
https://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm
http://scn.sap.com/thread/590077
Another approach would be like below
Add an additional field apart from the radio button, say “ip_file” in the selection screen. This you can show while selecting the radio button “background”
Suppose if you have updated the file in app. Server(AL11 ) , in a location , say ( “home/myfile/test.txt” ) .
Save a variant with the radio button “background” selected and input field ip_file value as “home/myfile/test.txt”.
Now from the SM36 you can schedule the background job to run the report with the same variant.
Please note that , here you need to upload the file separately to app. Server using , tcode - CG3Z or any other FM. And in the program you can use open dataset to access the file in the app. Server. -
Schedule report MM60 as background job and send out in Excel format
Hi there,
I would like to schedule a background job for report MM60, then send to the user in Excel format.
I know that we can enter the recipient in the job setting(SM36) but the report is send in HMTL format.
Is it possible to send in Excel format?
Thanks,
JaniceHi,
I think it's not possible from SM36 you better get help from ABAPer to get the require output.
Also visit below thread for same issue:
mail, output of spool as an excel attachment
Regards; -
Scheduling a program in background with after job condition
Hi experts,
Is there a way to schedule a background job wherein it will be run every after another job? I've tried defining it on sm36 > start condition> After job> I stated the job name >check start status dependent. But it only run once even if the job which it is dependent on is scheduled everyday.
Thank you in advance!This is (or was) a well known issue, the option "after job" cannot be set to periodic. Theres lots of threads about this and several alternatives solutions.
Please search before posting
Regards
Juan -
Issues with PDF files having BLACK backgrounds
I am having issues with scans and pdf files opening with BLACK backgrounds and the files not being useable. Any hints on how to prevent this. I have Windows 8 and the latest version of Acrobat Reader.
the change was made in firefox 25 - that's why you're currently seeing this behaviour only in firefox beta. the general release for firefox 25 is scheduled for next week. <br>i originally also thought to recommend the pdf.js-addon as an alternative but i found it to be very slow on my android too. unfortunately i don't know of any other solution currently.
Maybe you are looking for
-
OTC ssl.conf file does not have ssl wallet file location details
Hi B2B Gurus, While doing the HTTPS configuration in OTC we observed that some of lines were missing in ssl.conf file located at <Oracle_Home>\Apache\Apache\conf. The below mentioned lines are missing in OTC’s ssl.conf but present in OracleB2B’s ssl.
-
Server can't receive anymore after receiving a file
Hello i'm new here :) I'm making a peer to peer program but I have a problem client connects with server server sends welcome message cleint sends filelist (File which contains a list with shared files) the server receives the file and saves it, all
-
View the content of the z-table!!
Hi Whats the way out to view the contents of the z-table entered value using some transaction...? Regards Gunjan
-
Hey all, Newcomer to Lenovo here. Considering I'm waiting on a W520 (i7-2760QM, 4GB, 2000M, 500GB 7200RPM) and have indeed read back quite a bit on these forums, some of you are surely questioning "what's wrong with this guy?" Simply put, Dell Preci
-
I don't know how to watch iTunes Trailers in iTunes on the iPad?!
Hi there! I'm trying to watch the iTunes movie trailers directly in iTunes on the iPad2... Is it even possible? And if it is, how do I watch them??