Force Dialog in ATP when run in Background Job
Hi gurus,
Can we set the ATP to always show even if in Background Job? I have a requirement to run a program in background job and set the confirmed qty to 0. In foreground the process is ok (the ATP screen shows up so my BDC is correct). But when I run the program in background, I have an error in my BDC because the screen for the ATP does not show up.
Best regards,
Andre
Edited by: Andre Reforma on Jun 5, 2009 9:28 AM
chdir("..") Err#13 EACCES [file_dac_search]
I suspect that an underlying mount point has improper file access.
Unmount the ZFS filesystem (either /zones or /zones/test) and check the perms on the directory that it's mounted on.
Darren
Similar Messages
-
Report program when run in background job getting cancelled immediately
Hi
When i run a program in foreground i am able to see the output. But when run in background not able to run the job successfully. The job is getting cancelled immediately.
I am using the below function module for output display. Should i need to pass any parameters in the below function module so that i can run the program in background successfully.
CALL METHOD DETAIL_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = IS_LAYOUT
I_SAVE = 'A'
IS_VARIANT = GS_VARIANT
CHANGING
IT_FIELDCATALOG = IT_FIELDCATALOG
IT_OUTTAB = BLOCKED_STOCK_TAB_ALV[].
Please suggest.
Thanks and regards
Rajani YeluriHi Rajani.
ALV require the DRYPOR(screen) for display but incase you run in back ground which have to write to spool but in spool we can only write in format of LIST REPORT not inter-active report like ALV. That why
system cancelled your process immediately.
Hope it helps.
Sayan. -
Different result when running as background job
Hi,
We got a program which has a selection screen with a couple of select-options.
When we start this programm with a specified variant, it proceeds to a result screen. If we click back now (to the selection-screen) and run the programm with the exactly same settings again, one select-option is getting ignored and therefore we get incorrect results.
This happens only, if you go back from the result screen and excecute it again from the selection screen or if we start it as a background job.
If you exit the programm completely and restart it, the results are correct again.
It makes no sense to post any code snippets here, since the program is very complex. I just can't imagine any reason, why the select-option is sometimes getting ignored.
Does anyone have an idea?
Thanks in advance.
Regards,
Tobioh well it DOES explain it.
just think of following select:
Select *
from vbap
into ls_vbap
where vbeln not in lr_vbeln.
if lr_vbeln is not cleard you will run into problems maybe.
anyway, may it be that somewhere in coding you are manually modifying your select option?
It´s just an internal table of type range, so have a look there. -
ALV List only 80 Columns when runinning as background job
Hello Guys,
I have a Problem with an ALV List.
We use the FM REUSE_ALV_HIERSEQ_LIST_DISPLAY for a Document Journal.
When I run it in foreground it works fine. But when I view the spool in background the list makes a break at excactly 80 signs, but the line size should be about 120.
In the report the Line-Size is set correctly, even the print parameters seem to be ok. We are running it with X_65_255.
I saw that there are some SAP Notes to this topic, but on our release (SAP_BASIS 700) the notes are already implemented.
Has anyone a solution to this topic?
Thanks and regards
RolandTry this.
[ALV List only 80 Columns when running in background job|https://forums.sdn.sap.com/click.jspa?searchID=25735042&messageID=5686003] -
RMMR1MRS-When run in background cause update failure errors looking
hi,
RMMR1MRS report when run in background cause update failure errors .
There are few below reason for the error log.
1. for the PO invoice already generated - (its right if already invoice generated. should not happen again)
2. In MIGO, entire quantity has been reversed and also invoice generated with zero value - ( its right , should not happen invoice again )
3. Particular PO line item deleted - (its right if the PO line item deleted. ERS settlement not require)
For the all above reason, the update error occurs. But the mean time the program "RMMR1MRS" should not through the update error log.
Note: The job was not terminated due to this update error and also no harm because of the error log
can you please help on this update failure why it occurs.Have you found a solution already? If so, please, share it with the community and close this thread.
-
The number of rows per page is greyed out when running in background?
Hi,
For a customized transaction the number of rows per page cannot be set when running in background.
While a background job is created in SM36 after entering the report name and the selection variant name in the properties of Format the rows and columns field is greyed out.It was not editable.
Is there any settings to be done or in the custom program any code change needs to be done?
Thanks in advance.
Regards,
Sharon.Hi Gabriel,
After double clicking the format only the rows field is not set to edit.It was greyed out.Is it anything related to the printer settings that will be maintained for a user?
Regards,
Sharon. -
Error in BIM when running in background mode
Hi,
I am facing an error when running a BIM in sm35.
The BIM runs fine with my userid in all three modes( foreground,display error mode, background mode)....but fails when the functional person is testing in background mode. The BIM runs fine in all other modes.
It gives the message when running in background mode
"No batch input data for screen SAPLMGMW 4008"
What should I check or do to correct it.
Please help.
Regards
RashiThe BIM runs fine in Foreground mode and in Display error mode even for the functional..It is giving error only for Background mode.
I also did the following
1. Created the BIM in my id and tried running( in background) it using the other id ...it was successful
2. Created the BIM in other id and ran ( in background) using my id....it failed.
I will check again for authorisations also.
Regards,
Rashi -
ABAP program to run in Background job
Hi,
We have a custumized program (SO Creation) calling some functions (like: WS_QUERY, WS_UPLOAD, WS_DOWNLOAD, CREATE_TEXT and CALL TRANSACTION VA01) and can only run thru dialog process (foreground). Is it possible to convert it to something that can run thru background job?
Please help.
Thanks.Hi Deo ,
Unfortunately cl_gui_frontend_services will not work in background.
Please have a look at following information about cl_gui_frontend_services :
The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:
File functions
Directory functions
Registry
Environment
Write to / read from clipboard
Upload / download files
Execute programs / open documents
Query functions, such as Windows directory, Windows version, and so on
Standard dialogs (open, save, directory selection)
To Use this, you should be bit familier with OO ABAP Concepts. So I will suggest you to go through with OO concepts of ABAP. It will be of great help to you.
Regards,
Nikhil -
Regarding email attachement while running a background job
Dear Experts,
When i am running a background job for any ALV report (standard or custom report) <b>automatically</b> the output is going to an e-mail address as a HTML file attachment. I want to change it to EXCEL file attachment.
Please help me on this issue..
Kind Regards,
TomHi Prasanna,
Thank you for your reply. I am not using any code for sending the mail to the recipient E-mail address, system is taking care automatically.
Few settings were done in SCOT transaction from basis, but no where they mentioned file type is .HTM.
From my end i have done the following steps.
1. go to SM36, give a job name.
2. press on step push button , give the ABAP program name ( any ALV program, i mean standard report or Z report), give the variant and save.
3. Come back . press on Spool list recipient push button give the e-mail address, press copy button on the pop up window.
4. press on start condition button , press on Immediate option and save.
5. again press on Save button in the screen.
now here job will be scheduled immediately, go to SM37 check your job status, if it is completed, automatically system is sending an e-mail with the ".HTM" attachment file output to the recipient e-mail address.
i am not doing any coding part here.
my concern is system should send the e-mail with ".XLS" file output attachment.
please advise on this.
Regards,
Tom. -
Office intergration - run as background job
Hi,
I have a word template merged with data using "Desktop Office Integration".
Currently word template will be opened before data merging is done.
Is it possible to run as background job, which word template can merge with data in backend? If possible, how should i work on it?
Kindly advise.
Thanks,
GinnieHi,
Thanks for your prompt reply.
Is there any other methods which i can pull my data from table and merge to a word document?
Or is it possible to generate PDF in this case?
I need it to be a backend job.
Any suggestion? Kindly advise.
thanks,
ginnie -
Read Error logs after running the background jobs
Hi,
How to read the error logs after running the background jobs. In our scenarion we are running the COHV transaction to release the production orders in background. But we are not finding the error logs after background job. We would like to read the error logs and correct for further processing.
Kindly suggest.
Thanks & Regards,
N. LaxmanHi
you can check the back ground jobs defined by any user in SM37 and where you can see the spool and job logs as well.
plz check in your case and revert back
Regards
Anupam Sharma -
Reading hierarchies when running in background.
Currently we have an abap that captures the hierarchy information via the function K_HIERARCHY_TABLES_READ. We then use the results to collect additional data. The report works in the foreground but gets different results when running in the background. We traced the issue back to the function read. We checked with SAP and SAP's response is that the function K_HIERARCHY_TABLES_READ cannot be used in the background. Does anyone run any reports in the background which reads hierarchies? If so, how do you do it?
thanks,
LarryPaul,
Starting new task will start a new LUW in dialog process and not in background. This is the reason you are having a problem. While technically STARTING NEW TASK is used for parallel processing, you need to consider whether the program will be run in foreground or background mode.
In case of background, you need consider using multiple jobs via job open, submit, job close. This way you can initiate more than one process in your server group to do the work.
You will need to consider the # of background WP available and the # of WPs you can use for this program.
So if there are 100 WPs available and you can use only 10 at any give time, then you should schedule 10 jobs and then check the status of the 10 jobs before you can start scheduling the next jobs.
You can use the FM SPBT_INITIALIZE to check the # of WPs that are currently available in the server group.
Hope this helps.
Thanks,
Vikram.M -
Hi gurus,
Can we set the ATP to always show even if in Background Job? I have a requirement to run a program in background job and set the confirmed qty to 0. In foreground the process is ok (the ATP screen shows up so my BDC is correct). But when I run the program in background, I have an error in my BDC because the screen for the ATP does not show up.
Best regards,
Andre
Edited by: Andre Reforma on Jun 5, 2009 9:29 AMCheck this code:
if (!FacesContext.getCurrentInstance().getResponseComplete()){
GcotNotas gcotNotas = (GcotNotas) getModel().getRowData();
HttpServletResponse httpServletResponse = SessionHelper.getHttpServletResponse();
ServletOutputStream servletOutputStream = httpServletResponse.getOutputStream();
httpServletResponse.setHeader("Content-Disposition", "attachment;filename=\"" + gcotNotas.getNomeFicheiro() + "\"");
httpServletResponse.setContentType("text/plain");
servletOutputStream.write(gcotNotas.getDocumentAnexo());
servletOutputStream.flush();
FacesContext.getCurrentInstance().responseComplete();
} -
Parallel Processing when running in background
Hi
We have implemented a parallel processing solution using the Call Function Starting New Task Destination in Group format to split a large number of updates across an RFC Server Group.
This works well when running the ABAP in dialog, but when we schedule for background processing, the parallel processing does not seem to occur, we get a single background process.
Does anyone have any ideas why this may be occuring ?
Thanks
PaulPaul,
Starting new task will start a new LUW in dialog process and not in background. This is the reason you are having a problem. While technically STARTING NEW TASK is used for parallel processing, you need to consider whether the program will be run in foreground or background mode.
In case of background, you need consider using multiple jobs via job open, submit, job close. This way you can initiate more than one process in your server group to do the work.
You will need to consider the # of background WP available and the # of WPs you can use for this program.
So if there are 100 WPs available and you can use only 10 at any give time, then you should schedule 10 jobs and then check the status of the 10 jobs before you can start scheduling the next jobs.
You can use the FM SPBT_INITIALIZE to check the # of WPs that are currently available in the server group.
Hope this helps.
Thanks,
Vikram.M -
GUI_GET_DESKTOP_INFO is not worked when run in background
Dear all,
I want to retrieve the computer name using this function module. It is working fine in foreground but it returns no result when I run in background. Is there any other method to get the computer name in background? Thanks in advance.Problem solved using the following method:
DATA: BEGIN OF usr_tabl OCCURS 10.
INCLUDE STRUCTURE uinfo.
DATA: END OF usr_tabl.
DATA th_opcode(1) TYPE x.
data: size type i.
CONSTANTS: opcode_list LIKE th_opcode VALUE 2.
CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_list
ID 'TAB' FIELD usr_tabl-sys.
describe table usr_tabl lines size.
read table usr_tabl index size.
write usr_tabl-term.
while usr_tabl-term is the computer name. It works in background as well.
Edited by: Chiew Ngee Ho on Mar 12, 2009 9:36 AM
Maybe you are looking for
-
"Save As" dialog box is too large
Recently, while using Acrobat 9, the "Save As" dialog box began opening as a full-screen box. Is there a way to change it back to a small dialog box? Thanks for your help!
-
I have created a sheet that includes text on one of my columns. Column "A" has a heading of "Date" while column "B" is named "Description. I have also set the sheet so that when I type in a fraction (1 + / + 2) it automatically changes to a 1/2. Afte
-
Does anyone know how to? I am trying to find out if these two tables are hitting the primary or secondary indexes. /BIC/AZBDITM00 /BI0/ASD_O0600 Any help would be appreciated.
-
OC4J 9.0.4.1.0
I use Oc4J9.0.4.1.0 for my application. When i run my application on this server the tabs donot show of. What is the reason for tabs not to show of in my jsp pages? Also, if i run the same application on 9.0.4.0.0, the jsp is proper, i mean, the tabs
-
HT4859 how do i find backup of icloud on computer?
my iphone doesnt work anymore and is unfixable. i want to find the icloud backup on internet to what was backed up. how do i do that?