RM07DOCS Layout for background execution

Hi,
I'm executing  RM07DOCS, in foreground execution, the layout can either be graphical(detailed) or List(overview list of mat docs). In background execution, the only display available is the graphical(detailed list of Matdocs).
Is there a way to setup the program to output in list (overview list of mat docs) view in background execution?
please advise if this can be done and how can it be done.
thanks,
NC

Dear expert
     this link might be help you
http://www.****************/Tutorials/ALV/ALVLayout/Variant.htm
http://help.sap.com/saphelp_470/helpdata/en/6b/2f13439c9f11d194da00a0c930328a/content.htm
Regards
  Ajeesh.s

Similar Messages

  • Implementation callable object for background execution

    Hi experts,
    I am Using NWDS 7.0
    while i am trying to create background execution callable object , i didnt find the DC :caf/eu/gp/api.
    so i followed the pdf "How to Get NW04s SP7 Guided Procedure APIs for Local Development" and added the required DC's.
    The problem is that while i am selecting the  dc "caf/eu/gp/api"   the following message is displaying
    "illegal dependency: Acess list does not allow use of sap.com/caf/eu/gp/api for sap.com/bckg_co(MyComponents
    Is there any other way to add DC's ?
    pls help me out
    Thanks in advance
    kiran

    Hi Kiran,
    1. go to development Infrastructure --> select ur Software component --> in the component properties Tab > select dependencies Tab->click on Add Button.
    2. in the pop up window , select the Software component (Gp - Core) which has the  caf/eu/gp/api component and give the dependency details and click Finish.
    3. Ensure that Unrestricted acesss is granted for this component. this u can check, by selecting  caf/eu/gp/api  and select permissions tab in component properties.
    hope it helps,
    Thanks and Regards

  • Excludes for Background Execution...?

    Hi All,
          What are the things that doesn't work in background mode of execution of a program and the
    reasons for this type of technical behaviour...?
          For example, the function module 'GUI_DOWNLOAD' can't run in background mode. One of the
    reason is 'Codepage can not be selected'.

    Anything that requires either User intervention or Presentation Server access will not be able to run in the background
    User Interaction - Since in background mode, the program cannot be stopped to ask for user input
    (this includes calling RFC FMs remotely using an RFC destination which doesn't have the password saved)
    Presentation Server access - since a background job runs on the application server and has no access to your presentation server

  • Change Layout For Background Report

    Hi,
    I have a report that when executed in background - the light in frontground report running is shown as number. I want to change number into light when executed in nackground. Can somebody help? when we r running the report in background - we want some other processing based on field values.
    Please Help......
    Thanks,
    Sheel

    if you are talking about Trafic  lighs then it is not possible , but you can interpretate the values from the back ground output.
    OXO " < yellow light
    OOX "< Green Light
    XOO  "<Red light

  • Way to get alv grid varients info during background execution

    I have used the function module 'REUSE_ALV_GRID_LAYOUT_INFO_GET' to get info alv grid varients i.e already created layout info. Is there any other way of getting this info as this is not giving the exact layout during background execution.

    Hi Vijaya,
    It should work. I am giving you a sample code. Try this and let me know.
    REPORT TEST.
    data gt_lfa1 type standard table of lfa1.
    data gt_kna1 type standard table of kna1.
    start-of-selection.
      select * from lfa1 into table gt_lfa1 up to 10 rows.
      select * from kna1 into table gt_kna1 up to 20 rows.
    end-of-selection.
      if sy-batch eq 'X'.
        perform display_lfa1.
        perform display_kna1.
      endif.
    form display_lfa1 .
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = sy-repid
          i_structure_name   = 'LFA1'
        tables
          t_outtab           = gt_lfa1
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " DISPLAY_LFA1
    form display_kna1 .
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = sy-repid
          i_structure_name   = 'KNA1'
        tables
          t_outtab           = gt_kna1
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " DISPLAY_KNA1
    copy and paste the code and create a program. Activate it and come back to SE38 screen.
    Now, in program name give the name of the report created and then
    select PROGRAM->EXECUTE->BACKGROUND from the MENU bar.
    This will generate two separate spools . One for KNA1 data & one for LFA1 data.
    Let me know how it goes.
    Thanks,
    Abhishek

  • Background execution

    Hi,
    i want to know the procedure for background execution for reports  with example ,
    Thank u,
    Regards,
    Sivaram.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Apr 20, 2011 2:26 PM

    Hello Ambichan,
    The normal Execute Button has the Function Code <b>ONLI</b>. you will just have to set this to <b>SJOB</b> in the PAI to make the same button trigger the Background job.
    Look at this code...
    tables sscrfields.
    parameters p_test.
    at selection-screen.
      if sscrfields-ucomm = 'ONLI'.
        sscrfields-ucomm = 'SJOB'.
      endif.
    start-of-selection.
      write p_test.
    Get back if you have any doubts.
    Regards,
    Anand Mandalika.

  • Default Layout for a report running in background

    Dear Friends,
    I have created a layout for report ME2L and set as default layout  (for every user)....
    Foreground execution picked the DEFAULT layout but when am trying to execute the same report in background, default layout is not picked but the STANDARD layout is shown in the spool
    Could you please suggest me how can i use same report layout for foreground as well as background
    Thanks in Advance
    Ana

    Atanu dey,
    If you wnat to download excel in back ground
    You have to download in application server only.
    EX:
    DATA :  v_filepath(80)     VALUE '/data/sapdata/inc/error_log/pme_br/',
      c_coma     VALUE ',' .
    OPEN DATASET v_filepath FOR OUTPUT IN TEXT MODE.
        IF sy-subrc EQ 0.
         LOOP AT i_errors_bat.
         CONCATENATE i_errors_bat-plant c_coma
                                 i_errors_bat-zzvendor c_coma
                           INTO v_string.
            TRANSFER v_string TO v_filepath.
          ENDLOOP.
       CLOSE DATASET v_filepath.
    Note : you can download in presentation server also.
    but it requires lot of authorizations and have to use
    FTP commands.
    Reason is Apllication server in back ground has to
    recognize the from which system request came.
    Better go for OPEN DATA sets.
    Don't forget to reward if useful.....

  • How to change layout for list display in background

    Hi All,
    I want to change layout for the list display of tcode fbl1n when i execute in background. is there anyway to select our own layout when i execute in background. When i execute in foreground we can change the layout by selecting change layout button, but how it possible when in backgroung, is there any way please let me know.
    Thanks in advance.
    Regards,
    Vishal

    Hi,
      Create a list variant by executing the program and changing the layout and saving..
      Then use the "Layout" parameter in the selection screen and give the variant you created earlier...
      Then while executing in background the list variant will be pickedup accordingly (given in the selection screen)..
    Hope this helps...
    THanks,
    Naren
    Message was edited by: Narendran Muthukumaran

  • Background Execution of Smartforms

    Hi Frineds,
    Here is a requirement to execute a smartforms Layout in background. Can you please provide the detail step for execution.
    Rgds, Krishan Raheja

    Hi,
    Please post your thread in right forum to get fast responce.
    There is no difference. Print preview is equivalent to foreground, actual print/fax is equivalent to background where a spool is generated. I am assuming that you are not directly executing the smartform FM.
    Please be clear on the question if you are not ok with the above answer.
    Thanks,
    Vinod.

  • Background Execution Problem-Docking Container with 2 ALV Grids in one scre

    Hi Friends,
    I have created 2 ALV Grids in one screen - one below another using DOCKING CONTAINER.
    The objects are 'g_dock_cont' and 'g_dock_cont1'.
    I am getting the foreground output as expected with 2 ALV Grids.
    While executing in background (F9), I am getting only output of first ALV grid. Second ALV is not getting displayed in BACKGROUND(F9) mode.
    How to solve this.
    FORM create_objects.
    * Materials with data
      IF   g_dock_cont IS INITIAL.
       IF sy-batch NE 'X'.
    *CREATE THE OBJECT FOR DOCKING CONTAINER
        CREATE OBJECT g_dock_cont
          EXPORTING
            side                  = cl_gui_docking_container=>dock_at_top
            extension             = 300.
        ENDIF.
    *CREATE THE OBJECT FOR ALV GRID
        CREATE OBJECT g_alvgrid
               EXPORTING i_parent = g_dock_cont.
        wa_layout-grid_title =
              'Materials with Data'.
      ENDIF.
    IF NOT I_DETAIL[] IS INITIAL.
    CALL METHOD g_alvgrid->set_table_for_first_display
      EXPORTING
        IS_VARIANT                    = WA_VARIANT_STX
        IS_LAYOUT                     = wa_layout
      CHANGING
        it_outtab                     = I_DETAIL
        IT_FIELDCATALOG               = LIT_FIELDCATALOG[]
      EXCEPTIONS
        INVALID_PARAMETER_COMBINATION = 1
        PROGRAM_ERROR                 = 2
        TOO_MANY_LINES                = 3
        others                        = 4
    IF sy-subrc <> 0.
    ENDIF.
    ENDIF.
    *MATERIALS WITHOUT DATA
      IF   g_dock_cont1 IS INITIAL.
       IF sy-batch NE 'X'.
    *CREATE THE OBJECT FOR DOCKING CONTAINER
        CREATE OBJECT g_dock_cont1
          EXPORTING
            side                  = cl_gui_docking_container=>dock_at_bottom
            extension             = 300.
       ENDIF.
    *CREATE THE OBJECT FOR ALV GRID
        CREATE OBJECT g_alvgrid1
               EXPORTING i_parent = g_dock_cont1.
        wa_layout1-grid_title =
              'Materials without Data'.
      ENDIF.
    IF NOT I_MARA[] IS INITIAL.
    CALL METHOD g_alvgrid1->set_table_for_first_display
      EXPORTING
        IS_LAYOUT                     = wa_layout1
      CHANGING
        it_outtab                     = I_MARA
        IT_FIELDCATALOG               = i_fieldcat[]
      EXCEPTIONS
        INVALID_PARAMETER_COMBINATION = 1
        PROGRAM_ERROR                 = 2
        TOO_MANY_LINES                = 3
        others                        = 4
    IF sy-subrc <> 0.
    ENDIF.
    ENDIF.
    ENDFORM.                    " create_objects
    Regards,
    Viji.

    Hi,
    What i was saying is that you need to code again for background mode of execution.
    AT END OF SELECTION.
    IF SY-BATCH EQ 'X'.
      PERFORM DISPLAY1.
      PERFORM DISPLAY2.
    In DISPLAY1 use REUSE_ALV_LIST_DISPLAY to display data from outtab1.
    In DISPLAY2 use REUSE_ALV_LIST_DISPLAY to display data from outtab2.
    For example : execute this report in background mode.this will not execute in online mode.
    After execution you will get two spools one for KNA1 and one for LFA1 data. Spool can be controlled via IS_PRINT structure.
    report  zrbackground.
    data gt_lfa1 type standard table of lfa1.
    data gt_kna1 type standard table of kna1.
    start-of-selection.
      select * from lfa1 into table gt_lfa1 up to 10 rows.
      select * from kna1 into table gt_kna1 up to 20 rows.
    end-of-selection.
      if sy-batch eq 'X'.
        perform display_lfa1.
        perform display_kna1.
      endif.
    *&      Form  DISPLAY_LFA1
          text
    -->  p1        text
    <--  p2        text
    form display_lfa1 .
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = sy-repid
          i_structure_name   = 'LFA1'
        tables
          t_outtab           = gt_lfa1
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " DISPLAY_LFA1
    *&      Form  DISPLAY_KNA1
          text
    -->  p1        text
    <--  p2        text
    form display_kna1 .
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = sy-repid
          i_structure_name   = 'KNA1'
        tables
          t_outtab           = gt_kna1
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " DISPLAY_KNA1
    Please let me know if its not clear or you need more info.
    Thanks,
    Abhishek
    Edited by: abhishek sinha on May 8, 2009 7:42 PM
    Edited by: abhishek sinha on May 8, 2009 8:45 PM

  • AIR 3.9 iOS - 3632886: [Background Execution][Mobile] - App crashes when suspend

    Hi guys,
    does anybody know what's going on with the bug described in the subject? The original notice was:
    3632886: [Background Execution][Mobile] Error 3768 is coming when executeInBackground is set to false with notification center pulled down, incoming call, double tab on Home button..
    I cannot find anything about a solution or something else. I cannot find it in the Adobe Bug database as well. I think the bug still exists in the latest AIR 3.9 SDK but, I'm not pretty sure. Maybe someone knows a workaround? 
    Thanks in advance

    Hi Nimit,
    thank you for your fast reply. I tested an empty app on iOS 7.0.2, compiled with the Air 3.9 release from 10.12.13 (yesterday). The app restarts, when I switch between Safari and the app. Is this a feature or a bug?

  • OBJECTS_OBJREF_NOT_ASSIGNED error in a background execution

    Hi,
    I have a problem at the background execution of my program. I have this error : "OBJECTS_OBJREF_NOT_ASSIGNED"
    Information on where terminated                                    
        Termination occurred in the ABAP program "SAPLCNDP" - in       
         "DP_CONTROL_ASSIGN_TABLE".                                    
        The main program was "ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ".                                                                               
    In the source code you have the termination point in line 1    
        of the (Include) program "LCNDPU10".                           
        The program "SAPLCNDP" was started as a background job.        
        Job Name....... "ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD"               
        Job Initiator.. "COULOUMIESXA"                                 
        Job Number..... 15580300                                                                               
    Source Code Extract                                                                               
    Line  SourceCde                                                                               
    >>>>> FUNCTION DP_CONTROL_ASSIGN_TABLE.                            
        2 *"----
        3 ""Lokale Schnittstelle:                                    
        4 *"  IMPORTING                                                
        5 *"     REFERENCE(H_DP) TYPE  CNTL_HANDLE OPTIONAL            
        6 *"     REFERENCE(H_CNTL) TYPE  CNTL_HANDLE                   
        7 *"     VALUE(TABNAME) LIKE  X030L-TABNAME OPTIONAL           
        8 *"     VALUE(MEDIUM) TYPE  C OPTIONAL                        
        9 *"     VALUE(PROPERTYNAME) TYPE  C                           
       10 *"     VALUE(DATE) LIKE  SY-DATUM OPTIONAL                   
       11 *"     VALUE(TIME) LIKE  SY-UZEIT OPTIONAL                   
       12 *"     VALUE(DESCRIPTION) TYPE  C OPTIONAL                   
       13 *"  TABLES                                                   
       14 *"      DATA                                                 
       15 *"      TABFIELDS STRUCTURE  RFC_FIELDS OPTIONAL             
       16 *"      COLUMNS_TO_STRETCH TYPE  TABLE_OF_STRINGS OPTIONAL   
       17 *"  EXCEPTIONS                                               
       18 *"      DP_ERROR_CREATE                                      
       19 *"      DP_ERROR_SEND_DATA                                   
       20 *"      DP_ERROR_ASSIGN                                      
    Active Calls/Events                                                                               
    No.   Ty.          Program                             Include                             Line 
          Name                                                                               
    6 FUNCTION     SAPLCNDP                            LCNDPU10                                1
          DP_CONTROL_ASSIGN_TABLE                                                                   
        5 METHOD       CL_GUI_FRONTEND_SERVICES======CP    CL_GUI_FRONTEND_SERVICES======CM007    63
          CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES                                            
        4 FORM         ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD      ZFI__SAPHIR_ES_SPLIT_INTERFACE        141
          DIRECTORY_LIST_FILES                                                                      
        3 FORM         ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD      ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD        165
          %_SEL_SCREEN                                                                               
    2 MODULE (PAI) ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD      ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD        805
          %_END_OF_SCREEN                                                                               
    1 EVENT        ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD      <SYSINI>                               20
          SYSTEM-EXIT                                                                               
    Thanks for help.

    How do I retrieve a file list in background without use directory_file_list method?? I try this code of the RSWATCH0 program:
    CALL 'C_DIR_READ_START' ID 'DIR'    FIELD a_dir_name
                              ID 'FILE'   FIELD a_generic_name
                              ID 'ERRNO'  FIELD file-errno
                              ID 'ERRMSG' FIELD file-errmsg.
    DO.
        CLEAR file.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD file-type
          ID 'NAME'   FIELD file-name
          ID 'LEN'    FIELD file-len
          ID 'OWNER'  FIELD file-owner
          ID 'MTIME'  FIELD file-mtime
          ID 'MODE'   FIELD file-mode
          ID 'ERRNO'  FIELD file-errno
          ID 'ERRMSG' FIELD file-errmsg.
    ENDDO.
    But, I retrieve files of SAP server random... I don't retrieve my files!

  • How to force sql developer to prompt for user input for every execution ?

    Hi Folks,
    Environment: Oracle 11g (on Windows 7)
    SQL Developer: *3.1.07*
    I am executing a PL/SQL code off Sql Developer. The code uses substitution variables to prompt user for input. However,I am only prompted for the user input for the very first run of the code. For the subsequent executions, the code simply picks up the user input from the very first run. This behavior persists for all subsequent runs of the code.
    I have executed the same piece of code from SQL*PLUS and the behavior seems normal (i.e. I am prompted for fresh input for every execution)
    How can flush out the old user input so I can be prompted for new user input for every run of the code in sql developer?
    Thanks in advance
    rogers42

    Hi Rogers42,
    1/try
    undefine
    undefine fred
    select '&&fred' from dual;
    [run this multiple times]
    [prompts gere]
    old:select '&&fred' from dual
    new:select 'a' from dual
    'A'
    a
    [prompts here]
    old:select '&&fred' from dual
    new:select 'b' from dual
    'B'
    b
    2/try
    exit (requires recent version of sql developer: tools->preferences->Database->worksheet->Re-initialize on script exit command)
    select '&&fred' from dual;
    exit
    run this multiple times
    [prompts here]
    old:select '&&fred' from dual
    new:select 'x' from dual
    'X'
    x
    Commit
    [prompts here]
    old:select '&&fred' from dual
    new:select 'y' from dual
    'Y'
    y
    Commit
    3/use &fred instead of &&fred
    For background see
    http://totierne.blogspot.co.uk/2010/04/substitution-and-bind-variables.html
    -Turloch
    SQLDeveloper team

  • Dynamic Actions: background execution

    Hi
    here below the Dynamic Action that I have customized:
    0000                   04     310     P     T001P-MOLGA='15'
    0000                   04     315     P     PSPAR-MASSN='Z1'/X
    0000                   04     316     P     PSPAR-MASSN='Z2'/X
    0000                   04     317     P     PSPAR-MASSN='Z3'/X
    0000                   04     318     P     PSPAR-MASSN='Z7'/X
    0000                   04     319     P     PSPAR-MASSN='ZC'/X
    0000                   04     320     I     INS,0016,,,(P0000-BEGDA),(P0000-ENDDA)/D
    0000                   04     325     W     P0016-EINDT=P0000-BEGDA
    The background execution works correctly for Action Types Z3 and Z7 which are not linked to Recruitment.
    The execution of Dynamic Action DOESN'T WORK in the background mode but it works in foreground (even if in the dynamic action I've wrote /D) for Z1-Z2-ZC: these actions are linked to Recruitment.
    Can you help me?
    Paola
    Edited by: Pizeta on Mar 2, 2012 10:59 AM

    All the Actions are for Personnel Administration.
    Actions:
    Z1-Z2-ZC in T529A-FUNCH are customized like "7 Initial hiring and transfer of data from Recruitment" --> the dynamic action works but in foreground
    Z3-Z7 in  T529A-FUNCH are customized like "0     Other actions"  or  "1     Initial hiring" --> the dynamic action works correctly in the background
    P.

  • Disable background execution

    Hi,
    We really appreciate the new execute in background function in direct mode, but we have gotten some unforeseen problems with it.
    Many things that didn't dispatch events in the background like Loader does that now, and in that event chain we have some OpenGL calls.
    We will fix that issue, but its a massive job and we need to submit a new version ASAP.
    Is it possible to disable background execution so it behaves like Air 3.8 ?
    -Simon

    Hi could you please share a few more details -
    1. What AIR version are you using. Could you please try the latest beta available here - http://labs.adobe.com/downloads/air.html
    2. Backround execution is 'off' by default for iOS, unless you opt-in using UIBackgroundModes or nativeApplication.executeInBackground. Did you use either of these? If yes, removing them would disable all background execution for iOS apps.
    Hope that helps.

Maybe you are looking for