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
KRISH
Hi 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
Similar Messages
-
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 -
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 -
Need to suppress warning message while executing querywith conditions.
Hi,
I have created report in which I have two conditions in report I am showing report data only if keyfigure value is greator than 4. In characteristics I have calmonth and customer I want to suppress result row so supress result row is always but warning message comes while executing report.
Warning : There is a condition on Calmonth result row suppress active.
There is acondition on Customer result row suppress is active.
How to avoid this message permanantly.
Thanks & Regards
Deepak ChavanDear Deepak,
1. Open ur query in rsrt2.
2. When the warning message occurs, click on the mesage. u ll find the Notification number of it. Note it down.
3. come to rsrt2 screen again.
4. click on messages tab. search for ur message with notification number, in various tabs like generation, hierarchy etc..
5. click suppress message check box for ur message. Save. Come back.
6. Re-xecute the query.
Hope this solves the problem.
All the best.
-Guru -
FM not executing in background mode sometimes
Hi,
I'm using one Z function module for Production order confirmations which inturn calls 'BAPI_PRODORD_COMPLETE_TECH'.
There is 'BAPI_TRANSACTION_COMMIT' and 'BAPI_TRANSACTION_ROLLBACK' also present.
My issue is, this functionality works perfectly fine when I execute the program in foreground mode, but does not go through sometimes when I schedule it in background.
Note : Its not completely skiping the entries in background mode. It works sometimes and sometimes doesn't.
Can anyone comment if they have faced similar issues ?
Regards,
ShivaHi !
In my opinion it fails, when there is a popup coming from the BAPI.
We have the issue that when we process in background the orders where a popup should be shown (e.g. the popup asking if setting TECO is OK although reprocessing records exist).
When we reprocess our IDOC (which are calling that BAPI) in BD87, the popup is even shown in BD87 !
Any idea how to tell the BAPI to ignore such messages and still set the TECO ?
Any other way to set the TECO ?
thx a lot ! -
Field Symbol not writing the values while executing in background.
Hi,
In my program i am writing the values of a field symbol to list output.
write :/ <f_fs_up_excel_wa2>.
Its writing successfully when i am executing in foreground.
But when i am executing in background(Submitting the same program as a job)
its not displaying the values from field-symbol but all the other write statments are getting displayed in the spool.
Could anybody help me out in this situation and how to handle it?
Thanks,
SAM.Hmm. I think the problem is that the field-symbols is blank in background processing, rather than background process has some fault that prevents it being displayed...
On that basis - how is this field-symbol populated?
matt -
Not able to get data while executing in background for mb52
Dear all,
my requirement is i want to schedule the zreport for every 1 hour.but proble is when iam executing in fore ground iam able to get data.but when iam going to scheduling this iam not able to get data.
my code is
type-pools:slis.
data zbudat type RANGE OF budat.
data wab like line of zbudat.
data zmatkl type RANGE OF MATKL.
data waz like line of zMATKL.
data zwerks type RANGE OF werks.
data wax like line of zwerks.
waz-sign = 'I'.
waz-low = 'CRUDE'.
waz-option = 'EQ'.
append waz to zmatkl.
clear waz.
waz-sign = 'I'.
waz-low = 'SGO'.
waz-option = 'EQ'.
append waz to zmatkl.
clear waz.
*waz-sign = 'I'.
*waz-low = 'FINES'.
*waz-option = 'EQ'.
*append waz to zmatkl.
*clear waz.
*waz-sign = 'I'.
*waz-low = 'LUMPS'.
*waz-option = 'EQ'.
*append waz to zmatkl.
*clear waz.
*waz-sign = 'I'.
*waz-low = 'UFO'.
*waz-option = 'EQ'.
*append waz to zmatkl.
wax-sign = 'I'.
wax-low = 'BIMI'.
wax-option = 'EQ'.
append wax to zwerks.
clear wax.
wax-sign = 'I'.
wax-low = 'BIPL'.
wax-option = 'EQ'.
append wax to zwerks.
*waz-sign = 'I'.
waz-low = 'C'.
*waz-option = 'CP'.
*append waz to zmatnr.
*clear waz.
*waz-sign = 'I'.
waz-low = 'S'.
*waz-option = 'CP'.
*append waz to zmatnr.
*clear waz.
*waz-sign = 'I'.
waz-low = 'UC'.
*waz-option = 'CP'.
*append waz to zmatnr.
*waz-sign = 'I'.
waz-low = 'F'.
*waz-option = 'CP'.
*append waz to zmatnr.
*clear waz.
*waz-sign = 'I'.
waz-low = 'L'.
*waz-option = 'CP'.
*append waz to zmatnr.
types:begin of w_tab,
bwkey type werks_d,
matnr type matnr,
lgort type LGORT_D,
budat type budat,
labst type labst,
endmenge type p decimals 3,
end of w_tab.
DATA : IT_TAB TYPE STANDARD TABLE OF W_TAB WITH HEADER LINE .
FIELD-SYMBOLS: <gt_fieldcat> TYPE slis_fieldcat_alv,
<gt_report_list> TYPE w_tab .
field-symbols <lt_pay_data> type any table.
*FIELD-SYMBOLS : <LT_DATA> LIKE LINE OF IT_TAB .
FIELD-SYMBOLS : <LT_DATA> type any . " i have chaged it
data lr_pay_data type ref to data.
cl_salv_bs_runtime_info=>set( exporting display = abap_false
metadata = abap_false
data = abap_true ).
****SUBMIT ZQM_GR_BARGE_LOADING WITH S_date in zbudat with s_werks in zwerks with p_pend = ' ' AND RETURN .
submit RM07MLBS with MATKLA in zmatkl with werks in zwerks
"with XVBST = 'X'
using selection-SCREEN '1000' and return.
try.
cl_salv_bs_runtime_info=>get_data_ref( importing r_data = lr_pay_data ).
assign lr_pay_data->* to <lt_pay_data>.
catch cx_salv_bs_sc_runtime_info.
message `Unable to retrieve ALV data` type 'E'.
endtry.
cl_salv_bs_runtime_info=>clear_all( ).
data: obj_s type ref to ZKMINCO_MINESTOCKFROM_SAP_OUT.
create OBJECT obj_s.
data : output TYPE ZKMINMINESTOCKFROM_SAP1 ,
record type ZKMINMINESTOCKFROM_SAP_REC_TAB ,
wa_record like line of record.
LOOP AT <lt_pay_data> ASSIGNING <LT_DATA>.
MOVE-CORRESPONDING <LT_DATA> TO IT_TAB .
APPEND IT_TAB .
wa_record-STOCK_AS_ON_DATE = sy-datum .
wa_record-STOCK_AS_ON_TIME = sy-uzeit .
wa_record-PLANT_ID = it_tab-bwkey.
wa_record-STORAGE_LOC_ID = it_tab-lgort .
wa_record-MATERIAL = it_tab-matnr .
wa_record-STOCK_QTY = it_tab-labst.
append wa_record to record.
clear wa_record.
endloop.
output-MINESTOCKFROM_SAP-record = record .
CALL METHOD obj_s->MINESTOCKFROM_SAP_OUT
EXPORTING
output = output .
commit work.
Thanks in advance.Hi,
I assume that in your case you have two program lets say ZFOREGROUND and ZBACKGROUND (Called inside zforeground using submit statement)
zforeground has :
1. a input field to browse excel sheet or some file at the selection screen, and
2. button 'post all' to determine the background processing.
Now your requirement is such that you want zbackground to get scheduled as background job when post all button is clicked.
So, within the event AT USER-Command, check the sy-ucomm as that of post all button, if so write the following code to schedule the job:
DATA: jobname LIKE tbtcjob-jobname.
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.
DATA: gv_job_dt TYPE sy-datum,
gv_job_tm TYPE sy-uzeit.
jobname = 'EXCLUSION_LISTING'.
gv_job_dt = sy-datum.
gv_job_tm = sy-uzeit.
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 ZBACKGROUND AND RETURN
WITH p_file1 = gv_file_cust_exc "<----
Parameters which you want to pass to report zbackground from the report
WITH p_file2 = gv_file_win_deal "------zforeground
USER sy-uname
VIA JOB jobname
NUMBER jobcount.
IF sy-subrc ne 0.
"error processing
ENDIF.
Close job
starttime-sdlstrtdt = gv_job_dt.
starttime-sdlstrttm = gv_job_tm.
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.
WRITE:/1 'JOB' COLOR 3,
jobname COLOR COL_GROUP,
'Scheduled in Background' COLOR 3. "error processing
gv_time = starttime-sdlstrttm.
gv_date = starttime-sdlstrtdt.
ENDIF.
Above code will schedule the report zbackground in background.
Note:
the program schduled in background will not be able to access any data present on your presentation server. data should be provided either by the program schhedulling it in foreground or it has to be thr in application server.
Regards,
Ravi -
Getting short dump while executing a background job
Hi ,
I have a issue in which i am executing the report in background and the while the job executes it is going into dump stating that the error "TSV_TNEW_PAGE_ALLOC_FAILED" it is happening as the internal table where all the data is getting appended does not have enough memory size to hold the details the internal table refers to the type of a standard structure.
Is there to solve this issue so that the execution of the program does not go into dump or regulating the memory the size of the internal table by any kind of optimization.Hard to recommend without knowing the purpose of the program. The general approach would be to lower memory consumption by using block processing, i.e. read certain amount of data (block), do necessary processing, empty all tables, repeat with next block.
Thomas -
Problem in ws_download while executing in background
Hi,
I am downloading an excel file.
I have written a code like this.
If it is in foreground, it will display in ALV and download the data in an excel file in C:/ drive. IF i run in foreground i am getting the output and also the file is created in C:/ with the data.
If i run that program in background the file is not created. I am not able to see the file in C:/.
How to download a file in background..??
Kindly help meout plz..
KumarThere is a way to download to PC from background, but you really have to jump thru some hoops and there is some stuff to be done on the PC itself. Really its not worth it.
There are a couple ways to work around this, but it depends on the real requirement. For example, say you have a long running report and the user wants to have the report in excel. So you need to run in background, you can run your report in backgroun and update a custom table with the data(or just write to the application server as a file), then the user can run a transaction after the job is completed to download the data to the PC, either from the custom db, or the application server.
Here is a short program which shows how to download a file from the application server to the frontend PC.
report zrich_0001.
parameters: p_file type localfile
default '/usr/sap/trans/data/R903289.TST'.
data: begin of idata occurs 0,
rec type string,
end of idata.
data: xdata type string.
data: stripped type rlgrap-filename.
data: file_path type rlgrap-filename.
data: fe_path type string.
start-of-selection.
* Download Data Files
open dataset p_file for input in text mode.
if sy-subrc = 0.
do.
read dataset p_file into xdata.
if sy-subrc <> 0.
exit.
endif.
idata-rec = xdata.
append idata.
enddo.
endif.
call function 'SO_SPLIT_FILE_AND_PATH'
exporting
full_name = p_file
importing
stripped_name = stripped
file_path = file_path.
concatenate 'C:' stripped into fe_path.
call function 'GUI_DOWNLOAD'
exporting
filename = fe_path
tables
data_tab = idata
exceptions
others = 22.
Regards,
Rich Heilman -
Ipod nano 6th generation cuts off some songs while in the shuffle mode
When I'm listening to music in my playlist (shuffle mode) some of the same songs get cut off short. If I listen to the same song in the Artist folder, no problem. Anyone had this issue?
Is VoiceOver turned on? See here for more help on how to turn it off if need be.
http://support.apple.com/kb/HT4317
B-rock -
In OOPS ALV docking container gives error while execute in Background.
When i try to use Docking container to execute OOPS ALV in background the jobs still fails with Switch framework error.
Kindly let me know your inputs to resolve the same.
Thank you !!Hello Nalini,
Yes, it is possible to schedule background.
data: or_doc type ref to cl_gui_docking_container .
if cl_gui_alv_grid=>offline( ) is initial.
create object or_custom_container
exporting container_name = cust_container.
create object or_grid
exporting i_parent = or_custom_container.
else .
create object or_grid
exporting i_parent = or_doc .
endif .
Regards,
Vadamalai A.
Message was edited by: Matthew Billingham -
BDC Error while executing in background
Hello,
I am run a BDC to upload Assessable value in J1ID transaction. When I am running the program in background it gives "Runtime error SAPSQL_ARRAY_INSERT_DUPREC has occurred" But when I am running the same in foreground mode it is running perfectly. Since the data volume is huge I cannot run the program in foreground. can anyone guide me how to correct the program to prevent background errors.
Thanks,
Anil N.Hi, ref SAP NOTE 668466
When you load attributes or texts, data records are usually inserted in the master data tables of the characteristic using an array insert statement (P, Q, X, Y, T tables). This results in a SAPSQL_ARRAY_INSERT_DUPREC runtime error if data records that are to be inserted and that relate to the unique primary key of the relevant database table already exist in this table. The following possible reasons are currently known for the occurrence of the SAPSQL_ARRAY_INSERT_DUPREC runtime error:
1. Data inconsistencies in the master data tables of the characteristic
SAPSQL_ARRAY_INSERT_DUPREC runtime errors or RSDMD 199 may occur if the data appears in an inconsistent status in the master data tables of the characteristic before you load attributes or texts. Notes 323140, 566044, 592757 and 599269 describe this (among other things) in more detail.
2. Parallel loading of nondisjunct data packages
If master data attributes are loaded over several dialog processes that are running in parallel, you must guarantee that the data packages of the relevant request are strictly disjunct concerning the characteristic value. This means that all data records that belong to a certain characteristic value may only be contained in a single data package. If data records of a certain characteristic value are distributed over several data packages, this may cause conflicts during the parallel loading of these packages when the master data tables are accessed and this may result in SAPSQL_ARRAY_INSERT_DUPREC runtime errors.
The same conditions that apply to loading attributes also apply to loading language-independent master data texts. If language-dependent texts are loaded in parallel, the data packages must be disjunct in relation to the combination of characteristic value and language indicator.
Note 566044 also describes the problematic nature of nondisjunct data packages or duplicate or overlapping data records.
3. Parallel loading of time-dependent attributes or texts
When you load time-dependent attributes or texts, a data record that is to be loaded is assigned to a characteristic value and also specifically to a time interval within which the contained attribute values or texts are valid. For this reason, requests for loading time-dependent attributes or texts typically contain several data records for each characteristic value. If data records of a certain characteristic value or the combination of characteristic value and language indicator are distributed over several data packages, this may (as already explained) cause conflicts when the master data tables are accessed and may result in SAPSQL_ARRAY_INSERT_DUPREC runtime errors or error message RSDMD 199. -
Is it possible to ignore some events, while executing some code?
The problem is following: imagine the interface, consisting of three buttons - start, stop, save and one graph indicator. When one press start button some sequence of events is fired, and some data is shown on the graph (this sequence can be prolonged in time for a few hours). After completion of sequence one can save data. All is good except one thing: what will happen if start button have been pressed while execution? Start sequence will be fired again and previously acquired data will be lost. So the question is following: is it possible to erase (or ignore) some events from events stack?
Locking front panel is not good idea, because some other controls (for example stop) might be needed.
Making start
button disabled and grayed out is not good idea because user can click on that button (thus generate events) a lot of times before the disabling will occur.
Creation of data buffer for storing graphs is not good idea as well because it do not solves the problem.
www.xinstruments.com
Custom Software for Industrial Automation
www.hdrconverter.com
Picture processing made easyIn newer version of LabVIEW, you can use dynamic event registration. What is your version?
I would add e.g. a shift registers that keeps track of the state, then you can query it in each event case. Each event case will have a case structure inside wired to the state. States could be (0: new, 1: data has bee acquired, 2: all is saved, etc.). "Start" would only work if state is 0 or 2, "save" would only work if state is 1, etc.
LabVIEW Champion . Do more with less code and in less time . -
Error while executing file in Background
Hi All,
I need to schedule a job in background.where i need to read data from excel file.
while executing in background mode its saying 'Error while reading file'.
but in foreground i can able to execute it.can anybody help me out.
Thanks
Sudhahi Sudha,
I think the program tries to read from presentation server (with GUI_UPLOAD or something similary), which is not possible in background (because in background there is no presentation server).
hope this helps
ec -
Database Alert Macros issue while executing the macros in Background
Hi All,
I am facing some problems while executing the Database alert macros in Background/Process Chain.
There are two macros for which the problem exists.
1.Excess Projected Inventory above Max
The logic here is, the alert should work for Only Fixed Lot size Procedure.
If the Stock on hand (projected EA) > (Safety Stock (EA) + Full SOQ (EA)) then alert = "Projected inventory is XX% above MAX".
XX is the Percent above Max.
Note: SOQ => fixed lot size.
2.Excess Actual Days of Supply
The Logic here is, the alert should work for all Lot size Procedures except for "Fixed lot size".
Actual Days Supply >=180 days. (current -> future buckets)
- For every receipt cell check the Actual Days Supply - if >= 180 days.
The macros are working perfectly as expected.Hi Abhi,
Hope you are doing good.
Yes exactly, the macros are working in foreground/Interactively but not in the Background via Process chain. Let me send the details again.
Issue :
I am facing some problems while executing the Database alert macros in Background/Process Chain.
There are two macros for which the problem exists.
1.Excess Projected Inventory above Max
The logic here is, the alert should work for Only Fixed Lot size Procedure. But in Background the alerts are getting created for Lot for Lot and other Planning procedures..
If the Stock on hand (projected EA) > (Safety Stock (EA) + Full SOQ (EA)) then alert = "Projected inventory is XX% above MAX".
XX is the Percent above Max.
Note: SOQ => fixed lot size.
2.Excess Actual Days of Supply
The Logic here is, the alert should work for all Lot size Procedures except for "Fixed lot size". But in Background the alerts are getting created for the Fixed Lot size procedures too..
Actual Days Supply >=180 days. (current -> future buckets)
- For every receipt cell check the Actual Days Supply - if >= 180 days.
The macros are working perfectly as expected in Foreground/Interactively but the samething is not happening while executing the macro in Background/Process Chain.
I have tried running these macros in different sequences(Default/Start/Macro) but couldn't able to resolve the issue.
Thanks in Advance,
Jay.
Maybe you are looking for
-
Unable Logging in to Oracle Application Express Administration Services
I am new for DB. Installed Oracle XE, followed the instruction "Logging in to Oracle Application Express Administration Services", I can not find the login page: http://127.0.0.1:7777/pls/apex/apex_admin I work on the PC in which XE installed. Where
-
The first error message is: itunes.exe-System Error: the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix the problem. The second error message says: itunes: itunes was not installed correct
-
Many times i open power button of macbookpro but it alwatys same as like a freeze,white shaded
many times i open power button of macbookpro but it alwatys same as like a freeze,white shaded&untill there in apple mark can be shown then hang!what should i do?hoping for some advice or tips to teach for me & i really appreciate it sharing.A big
-
how do I replace the background of a picture
-
When using Adobe Photoshop CS5, print settings default within the same session.
Windows 7 Pro 64 bit. As mentioned after adjusting some settings and printing, the settings reset the next time we go to print the same file within the same session. (never closing the file)