Use "grid display" for background job of RM07DOCS / MB51
Hello experts,
When you execute program RM07DOCS with transaction MB51, it uses a "hierarchy display" for the output, a list of material documents. User can then use the menus for "Goto>Detail List" and the display changes to a "grid display".
If we define a background job for program RM07DOCS with a variant, the program uses the "hierarchy display". Is it possible to use "grid display" instead? do we need to call a different program?
Thanks.
Raul V
Hi Raul,
Copy standard program RM07DOCS to ZRM07DOCS
Then add this code "PERFORM detail_list."
before the code "CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' "
This will solve your problem.
Regards.
Similar Messages
-
Date and time for background job
Hi,
I am creating a program with out selection screen . This program runs based on date and time . so I need to create a table
with date and time fileds.
Program runs based on FROM DATE FROM TIME TO DATE TO TIME....... FROM DATE and FROM TIME will get it from ztable and TO DATE & TO TIME values as SY-DATUM & SY-UZEIT. In the end I will update sy-datum and sy-uzeit values in the custom table to get the values ( Use it for from date from time ) for next run of the program.
This program is mainly used for background job so how do we get the values of from date and from time for the first run of the program ? how do we update the latest date and time details by deleting old date and time details.
Thanks ,
Vinay.
Edited by: Vinay parakala on Apr 22, 2010 9:18 AMFirst of all, I'll suggest to maintain TVARVC instead of doing it in custom table unless you need a complete log.
As per my understanding, you are trying to fetch some records based on the time period(Delta loads).
So, you will do an initial run to load the complete data then you will run it for time periods. For example,
1st Load- 01/01/1991(earliest date possible) - today's date say 03/22/2010
2nd load- 03/22/2010 - today's date
so on............
You have to move the to date values to from date values and to date value needs to be updated by the latest one for each load.
Do you have any dependency on background job? Please let me know if my understanding is correct or specify your requirement in detail. -
You need to schedule and automate batch jobs in an organisation. There will be multiple variants and multiple steps within same batch jobs. The variants are date dependent and needs to change every day. You need to automatically change the variants every day and schedule the jobs. Also check for the failures in the jobs. Apart from that Once the jobs in one server example : R/3 server ends the jobs in BW servers should be triggered automatically. Explain all steps with proper T codes and also provide a dry run example. Also provide all the table used for the variants purpose.
Please help on this,thanks
NarendraHi Narendra,
The background jobs are scheduled depending on the requirement with specific variants which are both date specific and even specific sometimes. These variants are created for the programs or reports which are run in the background job ,These variants are stored in VARID table for client specific variants and
VARID_CI for client independent. For most of the times all these jobs are maintained in some job scheduling tools so that they automatically inform about job failures and processes can be automated.In our organisation we use UC4 for background job schedulign and it controls the process as you are looking for.
Please award points accordingly
With Regards,
Junaid
Message was edited by:
muhammed junaid -
Userexit or BADI for program *RMMRP000* for background job
Hi,
We are scheduling background job for MRP through SM36 using program RMMRP000 or Through Transaction MDBT (MDBT is calling program RMMRP000) which creates PR (through background job).
I want to default one field in PR (PO Price field in valuation tab in PR default to gross) using any userexit or BADI.
Can any body suggest me userexit or BADI for program RMMRP000 for background job
Regards.Hi,
1. The below are the List of Userexit for this MDBT t.CODE.
2. But i dont see any one helping to resolve your issue.
3. May be you should lookg at the Userexit for me21n or relevant Purhcase requisition creation transaction.
reg
dsk -
My iphone 4S wont allow me to restore a bckup of icloud it has just rebooted the os and for over 24 hours i have been trying to fix it i use this phone for my job so i need help. when i try to restore it says "Your iphone could not be activated becuase the activation server is unavailable, If the problom presests goto apple.com/support" It has done this for 27 hours now PLEASE HELP!!!!!!!!!
- Connect the iPod to the computer and see if iTunes sees it. If it sees it try to get the photos off the iPod.
- Next let the battery fully drain. It will likely take days. After charging for at least an hour try again
- Last, make an appointment at the Genius Bar of an Apple store. -
Job failure ( report RFFDKU00 scheduled for background job)
Hi Experts,
When iam scheduling the report RFFDKU00 for background job. Job is getting cancelled with status "ABAP/4 processor: DBIF_RSQL_SQL_ERROR" . when iam obesrving this job it is going to dump at this select query
" select ausbk belnr gjahr bzkey buzei
033370 from vbsegs into table t_vbsegsfields
033380 where bukrs in r_bukrs
033390 and not ( fdlev = space
033400 and fdgrp = space
033410 and fdtag = init_date
033420 and fdwbt = 0 )
033430 and not saknr in r_cm_sk "
Can anyone helpme to deal with this issues ,
thanks in advance,
Kranthinote 167301 might help.
-
Function module for background jobs email
hi abaper's
i hace to create a function module for background jobs this function module have to send an email automatically when a background job is assigned or processed in background.
thnks n regards
pardeep kumarhi dear
open this site
https://weblogs.sdn.sap.com/pub/wlg/781. [original link is broken] [original link is broken] [original link is broken]
<removed by moderator>
Edited by: Mike Pokraka on Aug 8, 2008 12:48 PM -
My thuderbolt display is 3 weeks old which I'm using as display for my mac mini. I no longer get the display on but can hear the sound. Please suggest.
Make sure the mini-displayport/TB plug is fully seated. It may look fully plugged in but isn't.
Make sure the Displays system preferences has an Arrangement tab. No Arrangement means the monitor is not being detected.
Do a smc reset.
If none of this works I suggest you take it back to apple (along with your mini). -
Displaying contents of two int. tables in same screen using grid display
Hello everyone,
Can anyone give me any idea how we can print contents of two internal tables of different structures in same screen while we are using GRID display fm. This is working fine in LIST display with fm's like REUSE_ALV_BLOCK_LIST_INIT , BLOCK_LIST_APPEND and BLOCK_LIST_DISPLAY. But what about the same in Grid display?Hi,
You have to define two containers in a single Screen.
Define two containers on a single screen
DATA: ok_code LIKE sy-ucomm,
g_container TYPE scrfname VALUE 'CUSTOM2',
grid1 TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container.
DATA: i_cat TYPE kkblo_t_fieldcat,
i_fieldcatalog TYPE lvc_t_fcat,
ws_fcat TYPE lvc_s_fcat,
wa_layout TYPE lvc_s_layo.
DATA:
g_container1 TYPE scrfname VALUE 'CUSTOM3',
grid2 TYPE REF TO cl_gui_alv_grid,
g_custom_container1 TYPE REF TO cl_gui_custom_container.
DATA: i_cat1 TYPE kkblo_t_fieldcat,
i_fieldcatalog1 TYPE lvc_t_fcat,
wa_layout1 TYPE lvc_s_layo.
Display firstALV
wa_layout-grid_title = text-029.
wa_layout-zebra = 'X'. "Output rows with alternating colors
wa_layout-no_author = 'X'. "Allow users to enter global layouts
wa_layout-sel_mode = 'A'.
wa_layout-cwidth_opt = 'X'.
ws_repid = sy-repid.
*Function module to get the field catalog in the kkblo_t_fieldcat format
CALL FUNCTION 'K_KKB_FIELDCAT_MERGE'
EXPORTING
i_callback_program = ws_repid
i_tabname = 'WS_OPEN_SUM'
i_inclname = ws_repid
CHANGING
ct_fieldcat = i_cat
EXCEPTIONS
inconsistent_interface = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000 WITH text-003.
ENDIF.
*Function module to get the field catalog in the lvc_t_fieldcat format
CALL FUNCTION 'LVC_TRANSFER_FROM_KKBLO'
EXPORTING
it_fieldcat_kkblo = i_cat
IMPORTING
et_fieldcat_lvc = i_fieldcatalog
EXCEPTIONS
it_data_missing = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000 WITH text-003.
ENDIF.
LOOP AT i_fieldcatalog INTO ws_fcat.
IF ws_fcat-fieldname = 'BALANCE'. "#CCE
#CCE - IF required
ws_fcat-do_sum = 'X'.
MODIFY i_fieldcatalog FROM ws_fcat.
ENDIF.
ENDLOOP.
IF g_custom_container IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
CREATE OBJECT grid1
EXPORTING i_parent = g_custom_container.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
is_layout = wa_layout
CHANGING
it_fieldcatalog = i_fieldcatalog
it_outtab = i_open_sum.
ENDIF.
Display second ALV
wa_layout1-grid_title = 'SAP R/3 (GLPCT) Totals'.
wa_layout1-zebra = 'X'. "Output rows with alternating colors
wa_layout1-no_author = 'X'. "Allow users to enter global layouts
wa_layout1-sel_mode = 'A'.
wa_layout1-cwidth_opt = 'X'.
ws_repid = sy-repid.
*Function module to get the field catalog in the kkblo_t_fieldcat format
CALL FUNCTION 'K_KKB_FIELDCAT_MERGE'
EXPORTING
i_callback_program = ws_repid
i_tabname = 'WS_GLPCT_CHK'
i_inclname = ws_repid
CHANGING
ct_fieldcat = i_cat1
EXCEPTIONS
inconsistent_interface = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000 WITH text-003.
ENDIF.
*Function module to get the field catalog in the lvc_t_fieldcat format
CALL FUNCTION 'LVC_TRANSFER_FROM_KKBLO'
EXPORTING
it_fieldcat_kkblo = i_cat1
IMPORTING
et_fieldcat_lvc = i_fieldcatalog1
EXCEPTIONS
it_data_missing = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000 WITH text-003.
ENDIF.
LOOP AT i_fieldcatalog1 INTO ws_fcat.
CASE ws_fcat-fieldname.
WHEN 'HSLVT'.
ws_fcat-do_sum = 'X'.
WHEN 'HSL01' OR 'HSL02' OR 'HSL03' OR 'HSL04' OR
'HSL05' OR 'HSL06' OR 'HSL07' OR 'HSL08' OR
'HSL09' OR 'HSL10' OR 'HSL11' OR 'HSL12' OR
'HSL13' OR 'HSL14' OR 'HSL15' OR 'HSL16' .
ws_fcat-no_out = 'X'.
WHEN 'RBUKRS' OR 'RACCT' OR 'RPRCTR' .
ws_fcat-key = 'X'.
ENDCASE.
MODIFY i_fieldcatalog1 FROM ws_fcat.
ENDLOOP.
IF g_custom_container1 IS INITIAL.
CREATE OBJECT g_custom_container1
EXPORTING container_name = g_container1.
CREATE OBJECT grid2
EXPORTING i_parent = g_custom_container1.
CALL METHOD grid2->set_table_for_first_display
EXPORTING
is_layout = wa_layout1
CHANGING
it_fieldcatalog = i_fieldcatalog1
it_outtab = i_glpct_chk.
ENDIF.
Then call the screen
Call Screen 9000.
Regards
Subramanian -
Hi
Can anyone suggest how to find the SQL trace for background jobs.
Thanks in advance.
Regards
D.VadivukkarasiHi
Check the transaction ST05.
Plz Reward Points if helpful -
Program for background jobs...
Hi
I know that when i create any info structure; a program is also created in background viz used while creating background jobs...<b>but i dont know where can i view them</b>? This program is used while creating a background jobs in SM36.......Please correct me if i am wrong
Suppose i have created info structure S999; then in that case from where to locate that program which must have been created in background?
RgdsHi,
While executing the info structure, in the initial screen, click <b>system</b> in the menu bar and click <b>status</b>. in the popping menu you can find the program associated with the info structure. -
Regarding Variants for Background jobs
Hi Folks
Can you please let me know the procedure how we can create the variants for Background jobs.
Points are assured for correct answers.
Regards,
kumarHi Sree Ram,
Check this info.
If you have any selection screen parameters for your program you need to enter the values for those fields in runtime. So, if you schedule your program in background to execute then there is no one to do this job. Here comes the concept of Variant.
With variant you define what are the selection field values in the runtime. During runtime the program picks this values and runs the program.
When you execute your program which has selection fields, you enter the values and then you click on 'GO TO ' tab and 'SAVE AS VARIANT'.
When you schedule your program in background, give this variant also. Then it will run automatically.
Hope this resolves your query.
Reward all the helpful answers.
Regards -
ALV Grid output in background Job
Hello everyone,
Can someonen plz tell me if I execute my report (with Grid ALV Display) in background (sy-batch not initial ) , will the ALV Grid be displayed ?
If no, then in order to show success do I have to 'WRITE' the success message ?
ThanksHello,
The grid will be generated as a list & spool will be generated. REUSEALVGRID* FM handles this explicitly no need to code for it.
You do not need to use WRITE for this
Also FYI for OO ALV you have to code for the batch handling: [CNTL_ERROR while running a report in background mode|CNTL_ERROR while running a report in background mode]
BR,
SUhas
Edited by: Suhas Saha on Jan 18, 2010 4:52 PM -
2 ALV grids display in background
Hello,
I am using 2 ALV grids in my report output. But while running this is background it shows only one in the spool.
Can somebody please suggest the possible solutions ?
Following is the code I am using:-
Create grid to display deleted entries
CREATE OBJECT go_alv_grid
EXPORTING
i_parent = go_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
Create grid to display completed entries
CREATE OBJECT go_alv_grid2
EXPORTING
i_parent = go_container2
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
Prepare fieldcatalog
PERFORM perpare_fieldcat.
Set layout
lv_layout-cwidth_opt = 'X'.
Call display for deleted entries
CALL METHOD go_alv_grid->set_table_for_first_display
EXPORTING
is_layout = lv_layout
CHANGING
it_outtab = gt_wflog
it_fieldcatalog = gt_fldcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
Call display for completed entries
CALL METHOD go_alv_grid2->set_table_for_first_display
EXPORTING
is_layout = lv_layout
CHANGING
it_outtab = gt_wflog_rec
it_fieldcatalog = gt_fldcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
Please suggest.yes it displays only one grid in the spool. the other will miss. For background run you have to proceed differently in this case.
-
Spool not generated for background job
Hi all!
I have a Zprogram that does some validation and submits the data to transaction ME59 using SUBMIT statement. The program is running fine in foreground.When it is scheduled for background, the spool is not getting generated. I know that if a program contains SUBMIT statement, the spool will not be generated when run in background. But is there a way to make it work? The client requires the exact output that we get in foreground.Hi,
All spool requests will be stored in TSP01 table
TSP01 - Spool Requests
field name for Spool request number is RQIDENT
Hi,
Take a look at OSS Note 422136 which states:
"2. You can only store one spool request even if a step generates several spool requests during processing. The application is responsible for a "spool overview" in this case. If a step generates several spool requests during processing, only one request can be stored. In this case, the application report should issue the number with a message when writing a spool request so that it is then displayed in the job log."
Also take a look at OSS Note 519059 which further supports the case that you must capture the individual spool numbers as they are being created (i.e. within the job step's program). The note contains the following:
8] Question: How are the spool requests assigned?
Answer: The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). If a step generates several spool requests during the processing, only one can be stored. In this case the application is responsible for a "spool overview
<b>Reward points</b>
Regards
Maybe you are looking for
-
My podcast that was released today was in fact added to my subscription but my iTunes link is not working anymore. Doe sit think there are two different podcasts? Can they be merged?
-
Printing was bad, contact info needed for reprinting
I just ordered two iPhoto books, normally I never have a problem, but this time the black and white photos were entirely washed out, but the color photos were good. This is the third time I've ordered the SAME book, the first two runs were perfect, b
-
When using Flex 2, I had my project folder in a separate location from the local "publish" folder (in Inetpub) - i.e. the mxml files etc were in my usual SVN repository, and the swf's got published to Inetpub. In Flex 3, it seems I can't do that when
-
Unable to open saved edited jpeg image
Not being the most techie type person, sorry if this is repeated in numerous place on the forum. I can see, and open, the images in thumbnail form in my 'Picture - Library'. I can then edit them in PE 10, but when I 'save as' (and I save as jpeg imag
-
Manual Updates for Forefront Security for Exchange server
Hello Team I have installed forefront security for exchange server 2007 in CCR and but there is no internet connectivity as it is in my test lab, I would like to enable the below scan engine and update the scan engine in weekly basis as i cannot d