BSEG: Issue in executing in Background
Hi,
I am trying to pull out data for 2 months from BSEG table. I selected Settings --> List Format --> Choose Fields and selected the required firelds along with Amount and Customer Field.
I execute it in Background. In SM37, I got the spool. But the spool is not including amount field and Customer field. I don't have any options in the spool to add those fields. Please advise me how to add the fields for background processing.
Quick response will be appreciated.
Thanks & Regards
My queston has been answered.
Thanks.
Similar Messages
-
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. -
F.28 error while executing in background
Hi All,
F.28 -Reset Credit Limit, while executing in Background it is showing an error message Internal Error with Background job Scheduling. can any one helpme in this case what is that internal error.
Regards
HarshaHi
Credit Control Basics
There are only three places where a credit check can occuru2014the sales order, the delivery,
and at goods issue.
The system executes the credit check on the sales order or delivery based on the
configuration settings. If the credit check fails, the system then either stops the user from
saving the document, or it allows the document to be saved but it blocks the document with
a credit block.
Documents blocked for credit must be released by an authorized person before they can
be processed further. For example, a delivery for an order cannot be created if the order has
a credit block on it.
You can view documents blocked for credit by selecting Logistics | Sales and
Distribution | Credit Management | Sales and Distribution Documents | All (transaction
code VKM3). You can also use this transaction to release a blocked document.
Once a document is released, you can continue processing it even though the credit
limit check failed.
Every time a user changes a sales document, the credit limit check is executed again.
For example, if a document was released with a value of $10,000, and the value is changed to
$11,000 and the customer is still over his limit, the document will be blocked for credit again.
This is because the new value exceeds the released value.
You can use program RVKRED08 to recheck all documents blocked for credit. For example,
if a customer pays his account, you want to recheck all his documents. Some documents can
now be released because of the payment received. It is a good idea to schedule a background
job using this program so that blocked documents are checked on a regular basis. This will
keep the blocked documents up to date with any changes to the account or to sales documents,
such as a payment being made. If a large sales order that was holding up the credit limit is
cancelled, other blocked documents can use the value that is freed up by the cancellation.
Regards from Pakistan -
MMBE Execute in Background - Spool Request Missing Header Information
Greetings,
While reviewing differences between MMBE and MMBE_OLD in ECC 6.0 upgrade test environment it was discovered that when MMBE (RMMMBESTN) is executed in background the spool request does not display the material number, description, material type , UoM and Base UoM. I created a message to SAP.
Has anyone else had this issue?That you can execute transactions in background is just a standard functionality, which certainly makes sense for reports that have something to do, that run long, need a lot performance etc.
But MMBE..........I really never had the idea to run MMBE in background. to get the result online I just have to click the execute button, to run in background I habe to click the menu, click the run in background, click the run immediatly, click okay .....
and then I would need to open the job to find the spool etc etc.
all for just the stock overview of one single material.
I really would never had spend a thought that somebody would do this effort.
Why do YOU need to do this?
I am really curious what SAP answers you -
Regarding Spool issue while running in background
Hi All ,
i am getting some issue i am executing one report in background so the report output of the spool format is disturbed but while i am executing same report in foreground everything is printing perfectly.
So please suggest me where i missed the scenarios.
Thanks,
Venkata Pradeep.Have you tried to set the format properties?
Execute in Background->Properties Button->Format.
Regards. -
PDF document first page is blank when executing in background
Hi,
I am creating spool before displyaing report output by using GET_PRINT_PARAMETERS and NEW PAGE PRINT ON option and displaying report header and report final internal table. calling NEW PAGE PRINT OFF
finally i am sending mail, by using SO_NEW_DOCUMENT_SEND_API1 function module in foreground executing and background execution.
When we execute in foreground i am recieveing mail and pdf is perfect.
when we execute in background i am recieveing mail. But when i opend the pdf document in mail, PDF doucment first page is balnk and second page onwards i am able to see the report output
why the PDF first page is blank when i execute the same report with same variant in back ground.
Please help me in this issue.
Thanks in advance
RajuHi Raju,
<li> Call ABAP4_COMMIT_WORK function module after NEW-PAGE PRINT OFF command.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
Thanks
Venkat.O -
Suppressed some coloum while executing in Background mode
Hi All
As I am trying to execute report in foreground mode I am getting ALV output properly with all coloum while I am executing the same report in background mode I am getting same output with some of the coloum is not coming properly.
Please guide me to resolve the above issue.
Thanks
KRISHHi All
I am executing the custom report in foreground mode ALV output showing all columns for that same report I am executing in background mode some of the ALV output columns are missed out
For example:
Standard report output showing 10 columns, but I am executing the same report in background some of the columns are suppressed only I am able to view 5 columns remaining I am not able to view.
Please help me to resolve the above issue.
Thanks
KRISH -
Program won't execute in background
Moderator message: duplicate deleted. Subject changed. Please use a meaningful subject in future
i have one report that name is zsd012 ,that is not execute in the 'Execute in Background'.
why it is not execute in 'Execute in Background'?
report is to DISPLAY OF SALES REGISTER.
module is SD.
using tables :
TABLES : VBRK,
VBRP,
BKPF,
BSEG,
BSET,
ADRC,
TVKT,
LIKP,
KONV.
Edited by: Matt on Jan 13, 2009 9:26 AMr u using any EXPORT/IMPORT or throwing any ERROR messages or popping-up any user decision pop-ups or using any LEAVE or some times problems with normal custom container too!!
thanq -
How to extract the column width in ALv report if its executed in background
I am executing an ALV report in background , in front end i am getting data properly, in back end for some columns some of the digits are missing.For example if PO no is of 10 digits it will display only 8 becos column size is like that , how to extract coulmns in back ground.
I have executed in background and checked the spool and for some of the columns width is not sufficient to display comeplete data so please suggest how to extract the columns sizes if executed inj background for an ALVHi Deepthi,
you can try with the above mentioned suggestions ,if its worked its fine ,
If not use Docking container instead of custom container, For ALV in back ground jobs, its suggest to use docking container instead of custom container , below you can find the declaration for docking container and code to use docking and custom container in your program for fore and back ground.
or you can use docking container alone for both operations.
Data : G_DOCK1 TYPE REF TO CL_GUI_DOCKING_CONTAINER,
IF CCON IS INITIAL. (ccon is container name )
*Check whether the program is run in batch or foreground
IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
*Run in foreground
CREATE OBJECT CCON
EXPORTING
CONTAINER_NAME = 'CON1'.
CREATE OBJECT GRID1
EXPORTING
I_PARENT = parent_1.
ELSE.
*Run in background
CREATE OBJECT GRID1
EXPORTING
I_PARENT = G_DOCK1.
ENDIF.
ENDIF.
B&R,
Saravana.S -
Report is executing in background and need data(output) in excel format
Report is executing in background and need data(output) to get downloaded in excel format in my PC from an internal table;;in any drive i.e. C: or D: .When executing in backround it prompt to user with which location excel file to be saved and the name of file.How to download in background in excel format?
Edited by: PRASHANT BHATNAGAR on Aug 26, 2008 6:24 AMHi
Download a report to excel with format (border, color cell, etc)
Try this program...it may help you to change the font ..etc.
Code:
REPORT ZSIRI NO STANDARD PAGE HEADING.
this report demonstrates how to send some ABAP data to an
EXCEL sheet using OLE automation.
INCLUDE OLE2INCL.
handles for OLE objects
DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT. " font
TABLES: SPFLI.
DATA H TYPE I.
table of flights
DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
*& Event START-OF-SELECTION
START-OF-SELECTION.
read flights
SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
display header
ULINE (61).
WRITE: / SY-VLINE NO-GAP,
(3) 'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(4) 'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(8) 'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
ULINE /(61).
display flights
LOOP AT IT_SPFLI.
WRITE: / SY-VLINE NO-GAP,
IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
ENDLOOP.
ULINE /(61).
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-007
EXCEPTIONS
OTHERS = 1.
start Excel
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
PERFORM ERR_HDL.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-008
EXCEPTIONS
OTHERS = 1.
get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
PERFORM ERR_HDL.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-009
EXCEPTIONS
OTHERS = 1.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL USING 1 3 1 'Von'(003).
PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
changes by Kishore - start
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2.
PERFORM ERR_HDL.
tell user what is going on
SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-009
EXCEPTIONS
OTHERS = 1.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL USING 1 3 1 'Von'(003).
PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
changes by Kishore - end
disconnect from Excel
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'C:\SKV.XLS'.
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL.
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL USING I J BOLD VAL.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL.
ENDFORM.
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM ERR_HDL.
IF SY-SUBRC <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
Regards
Murali Papana -
Submit a program to execute in background.
Hi Everyone,
Is there a way to submit a program to execute in background. So that the runtine is fast. Any help on this will be great.
Thanks,
Prabhu.Hi,
Check this code -
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
' TRANSFER TRANSLATION'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
Insert process into job
SUBMIT zreport and return
with p_param1 = 'value'
with p_param2 = 'value'
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
"error processing
endif.
Close job
starttime-sdlstrtdt = sy-datum + 1.
starttime-sdlstrttm = '220000'.
call function 'JOB_CLOSE'
exporting
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif.
URL: http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
Hope this code snippet helps you! -
Authorization issue while executing a Web Template in SAP BI
Hello All,
I am facing an issue while executing a webtemplate .
I have a webtemplate which is being executed by end user, upon execution user must be able to fill in the value for data and submit. The query uses a characteristic KPI identifier ,SBU,BU,product, Region,Affiliate etc . All the mentioned charcaterisitics in Analysis authorization have * value except KPI identifier and SBU. And Activity 02,03 is provided for the infoprovider.
When a single value (Ex:KPI01) is provided in KPI identifier the webtemplate works fine in change mode. But when additonal value (Ex KPI02) is being added to the characterstic KPI identifier the webtemplate opens only in display mode. There is no authorization failure as well in the RSEC trace.
Actually we created two separate roles for each KPI identifier earlier but when two roles provided to a user in combination it was behaving the way i mentioned above. So we tried to create a single role with two values of KPI Identifier in single analysis authorization and it is still the same.
Please suggest what might be the reason for this behavior. Thank you
Regards,
Mohammed GhouseHi Brian,
Thanks for your reply
RSECADMIN does not show any missing authorizations when checked , but what is observed is that the check happens only on display
These are the characteristics being checked by the query
Characteristic Content in SQL format
OTCACTVT GRI_IC005 IN ('KPI054','KPI055')
GRI_IC005 AND GRI_IC007 = 'MFE'
AND 0TCAACTVT = '02'
GRI_IC007
Comparison with Following Authorized Set
Characteristic Content in SQL format
0TCAACTVT I CP *
GRI_IC005 I EQ KPI054
I EQ KPI055
GRI_IC007 I EQ MFE
And it says its authorized. But still the screen is in display mode. What might be the reason for this behavior. -
Hello people,
I have a program that when running on line, the files are saved in a local Folder or in a Folder in the server but when try to execute in Background saving in the same Folders, a error occurs.
Anybody knows what can I do to resolve this problem, please ?
tks
regards
Flavio FerreiraIf you are not scheduling it in Backgroung you can use that FM .
you cannot download to the frontend in a background job simply because the GUI isn't available. You will have to use OPEN DATASET and put the file on the Application server in the background and then use the transaction CG3Y in the foreground to download the file to the pc from the application server.
Rhea.
Edited by: rhea on Nov 27, 2008 3:31 PM -
Issue While executing the Query for Pagination using ROWNUM with like
Issue While executing the Query for Pagination using ROWNUM with like.
Database is Oracle11G.
Oracle Database Table contains 8-9 lakh records
1) SQL equal (=)
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE A.REFERENCE = 'KMF22600920'
Execution Time:- 0.00869245 seconds
Returns 2 resultsets
2) SQL like (one %)
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE A.REFERENCE = 'KMF22600920%'
Execution Time:- 0.01094301 seconds
Returns 2 resultsets
3) SQL like (two%)
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE A.REFERENCE like '%KMF22600920%'
Execution Time:- 6.43989658 seconds
Returns 2 resultsets
In Pagination, we are using Modified version of SQL Query 3) with ROWNUM as mentioned below :-
4) SELECT * FROM (
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) WHERE RNUM > 0
Execution Time:- Infinite
ResultSets:- No as execution time is infinite
a) Instead of like if we use = in the above query it is returning the 2 resultsets (execution time 0.02699282 seconds)
b) Instead of two % in the above query, if use one example REFERENCE like 'KMF22600920%' it is returning the 2 resultsets (execution time 0.03313019 seconds)
Issue:- When using two % in like in the above query i.e. REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) , it is going to infinite.
Could you please let us know what is the issue with two % used in like and rownum
5) Modified version of Option1 query (move out the RNUM condition AND RNUM <= 20)
SELECT * FROM (
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE REFERENCE like '%KMF22600920%' ) WHERE RNUM > 0 AND RNUM <= 20
Execution Time:- 7.41368914 seconds
Returns 2 resultsets
Is the above query is best optimized query which should be used for the Pagination or still can improve on this ?This would be easier to diagnose if there was an explain plan posted for the 'good' and 'bad' queries. Generally speaking using '%' on both sides precludes the use of any indexes.
-
How to restrict user at selection screen while executing in background mode
hi all,
how to restrict user at selection screen while executing in background mode
Regards
DeepakHi,
We can get the Program whether this is running in background or not then we need to use SY-BATCH, if the SY-BATCH is set to X then the program is running in Background,
so in the INITIALIZATION event, you can use this SY-BATCH and check the User names, and give the error messsage which you want to restrict
Regards
Sudheer
Maybe you are looking for
-
IMac won't boot OsX Partition after Bootcamp install/uninstall.
Hello, I have bought 2 late 2012 21.5 iMacs last year and have used both the same way. Here is what happened with one of them recently. Fisrt af all I've installed bootcamp 1 year ago in both iMacs without issues and was ok so far, and was using excl
-
OnAsyncFailure event + buffered WebService
Hi, From a JPD, we call an external WebService using WLI (8.1 SP4) WebService control. The WebService control was generated from the WSDL. The WebService control method has the Message Buffer property enabled (this is required by the application). It
-
My itunes library is currently on a mac. My ipod is formatted to the mac. I have enabled disc use and copied my itunes folder to the ipod ready for transfer. How do I transfer this to my windows pc?
-
Its so frustrating. Every time I create a page in DW MX 04 for Mac OS, and save it, I can no longer see or edit it in the Design View option - only code view. While I do like to work in the Split view option I am forced to start from the begining on
-
When I have a Word document opened that contains around 10 text boxes, I get..."A file error has occurred. Check your network connections or make sure the disk is properly inserted and not defective" causing the program to either quit automatically o