Calling transactions with pre-filled screen in background processing

Hi,
We are currently running the two standard SAP programs RVV50R10C and SDV03V02 in background mode with static variants. A new requirement has come up whereby we need to run these programs with changing selection criterions, i.e. depending on whether a certain material has had a movement during the day.
We are currently looking at the following options, all of which must be executeable in background mode:
1) Create a Z-program which identifies the materials for which RVV50R10C and SDV03V02 should process, and then at the end of the Z-program save variants containing the materials for each of the two standard programs. The standard programs will be scheduled as step #2 and #3 in the same batch job by using the variant which has been overwritten by the Z-program.
2) Create a Z-program which identifies the materials for which RVV50R10C and SDV03V02 should process, and then at the end of the Z-program call these programs by specifying the material numbers in addition to other relevant selection criterions by passing a batch input table.
3) Copy the standard programs into Z-versions and enhance the selection criterias according to our needs.
Of the options above we would prefer not to use 3) since we rather use the standard programs due to SAP support etc. The preferred option would be 1).
Anyone faced a similar requirement and have some ideas about standard SAP functions to save a variant and what issues we might face in option 1) and 2)?

Hi Geir,
2nd option is good. Create a Z program to identify the material numbers which you want to process & then in the Z Program itself use SUBMIT statement to call the standard programs RVV50R10C and SDV03V02. Using SUBMIT statement you can populate the selection screen parameters for the calling programs.
Please let us know if you need any additional details.
Thanks,
Best regards,
Prashant

Similar Messages

  • Calling transaction with different start screen

    Hello
    I have two transactions TRANSACTION 1 and TRANSACTION 2, made by myself.
    TRANSACTION 1 has screen 001 as initial. It also has another screens.
    I want to call TRANSACTION 1 from TRANSACTION 2 starting not with screen 001, but for example with screen 005. Is that possible?

    HI,
      As an alternative, you will have to do a partial BDC recording for the transaction and write the code to call the transaction in ERROR mode.
    Go to shdb transaction.
    Create a recording for the transaction.
    Enter the required data and when you reach the screen you want, just backout.
    This would create a recording.
    Using this recording, you have to create a BDC program which would call the transaction in Error mode.
    Regards,
    Ravi

  • Call tranasaction with skip first screen in ecc6

    Hi,
    We are doing upgrade from 4.7 to ecc 6. We are getting an error while running a report( The addition "AND SKIP FIRST SCREEN" can't be used with "CALL TRANSACTION .. USING".  ) in ecc6. This is not showing error in 4.7. Call transaction with skip first screen is fine in 4.7. But it is throwing an error in ecc6.
    Could anybody provide me the pointers to rectify this error.
    Regards,
    Ramesh

    Hi
    Did you pass all the mandatory field values to the calling transaction , Because when you use this addition you need to pass all the mandatory field values then only it works fine. Check out whether you are passing all the mandatory field values.
    Regards
    Pavan

  • Skip first screen of BD87 using call transaction with BDC_DATA option

    hello all,
    i am using call transaction with BDC_DATA option and i want to skip first screen, so can anyone please tell me how can i skip first screen of BD87 and get second screen that is output screen?
    regards.

    Hi
    Build a BDCDATA with following code..
                                                          T     BD87                                                                               
    RBDMON00     1100     X                                                                               
    BDC_CURSOR     SX_DOCNU-LOW
                                                                BDC_OKCODE     =CRET
                                                                SX_DOCNU-LOW                                                                               
    SX_CRETI-LOW     00:00:00
                                                                SX_CRETI-HIGH     00:00:00
                                                                SX_UPDDA-LOW     05.02.2010
                                                                SX_UPDDA-HIGH     05.02.2010
                                                                SX_UPDTI-LOW     00:00:00
                                                                SX_UPDTI-HIGH     00:00:00
    RBDMON00     0100     X                                                                               
    BDC_OKCODE     =BACK
    RBDMON00     1100     X                                                                               
    BDC_OKCODE     /ECBAC
                                                                BDC_CURSOR     SX_DOCNU-LOW

  • CALL TRANSACTION AND SKIP FIRST SCREEN to specified tab in TCODE 'IW32'

    Hi,
    I am using CALL TRANSACTION AND SKIP FIRST SCREEN in ALV Grid Report to call IW32 tcode and it goes to tcode skipping the first screen. But it goes to the default header tab in the tab control. Whereas I wish to go to the specified tab 'OPERATIONS'.
    Can any one help me, as to how to resolve this issue ?
    Thanks in advance.

    Sridher,
    I have the similar requirement. but in my case its COSTS tab. Could you please provide the code you have used for this to work?
    I used standard "call transaction with mode 'E' ". This seems to be working but I am not pleased by my effort. Is there any proper way that you might have followed ?
    Greatly appreciated your help.
    Regards,
    Reddy

  • Call transaction & leave the current screen

    Hi
    I have created two Table maintanence Generator one for master table & second for transaction table. In my master table i have written code for calling the second TMG
    ie, call transaction 'zhdms'.
    but my problem is from my first TMG when im clicking on one button it calling the second TMG. & im making new entries over der & when i click on BACK button it will call the first TMG  & again if i am clicking on Next button it will move on to second screen. but it is showing one information like DEveloper is locked. we can only display it. how to avoid this.
    Can we avoid this using leave screen . How to write code for that.

    Hi ,
    Try this
    CALL TRANSACTION AND SKIP FIRST SCREEN.
    Effect
    Skips the first screen in the transaction (provided all the required fields have been assigned values by the SPA/GPA mechanism).
    or
    LEAVE TO { {TRANSACTION tcod} | {CURRENT TRANSACTION} } AND SKIP FIRST SCREEN.
    Effect
    Ends current processing and starts the (new) transaction tcod. All previous internal sessions are deleted from the stack and one new internal session is opened for the program of the transaction that was called. When this session has finished, the system returns to the next higher area menu.
    If you specify CURRENT TRANSACTION (as of Release 6.20), the current transaction is called with exactly the same transaction code it was called with using CALL TRANSACTION or LEAVE TO TRANSACTION. With the exception of parameter or variant transactions, this is the transaction code that is also in the system field sy-tcode.. In the case of parameter or variant transactions, it is their transaction code, while sy-tcode contains the name of the implicitly-called dialog transaction.
    Regards,
    Chitra.

  • Call transaction in the popup screen

    hi friends . ı want to call transaction in the popup screen.
    what do ı do ?
    thanks.

    to call a transaction in the popup screen
    can u give me one scenerio
    because
    try this
    create a program of type report
    in that "call screen '100' starting 10 10 ending at 100 100.
    and u click on this 100  and make the layout what ever u want
    and just go to se93 create transaction for this report program
    thats it
    if it ok
    then ur problem is solved
    or else it is not solved

  • Call Transaction and skip first screen on workflow task

    Hello, I'm developing  a workflow with a user decison step, where the user should fill some data in transaction FD02.
    When the user presses the button in the workitem, the wf goes to a step where i should call transaction FD02.
    I'm using SET PARAMETER ID: 'KUN' FIELD customer.  to fill the customer field and CALL TRANSACTION 'FD02' AND SKIP FIRST SCREEN.
    But when I press the button in the workitem nothing happens. I tested the same in a report and it works. Can anybody help me?
    Thanks a lot.

    Hi,
    try below code
    data: fcode type FCODE value 'ANTRAGAEN',
           customer type kunner,
           bukrs type bukrs.
    SET PARAMETER ID  'KUN' FIELD customer. "  to fill the customer field
    SET PARAMETER ID  'BUK' FIELD companycoder. " to fill the company code
    SET PARAMETER ID  'TTC' FIELD fcoder.       " to fill Function code for enter " it may be other than TTC please check.
    CALL TRANSACTION 'FD02' AND SKIP FIRST SCREEN.

  • Call transaction and skip first screen

    Hi,
    I have a little but I think difficult problem
    I have a selection screen and after that I call my dnypro. In this dynpro I can open a dynpro which looks like a popup where I have the possibility to call the same transaction with other input paramters.
    the problem is when I make call transaction and want to go back I see the pop up dynpro which calls the transaction. so how can I close this popup dynpro by calling again transaction?

    I think I can't eyplain it.
    Following. I have:
    call transaction trans: selection screen calls dynpro 100, in dynpro 100 button with dynpro 200  with starting parameters.
    dynpro 200 calls again transaction trans with skip first screen.
    now I have displayed again dynpro 100 with new values. When I now want to go back I can see dynpro 200 which called the transaction. So how can I achieve this that dynpro 200 isn't shown when I go back ?

  • Call Transaction and skip first screen in SE37

    Hi All,
    I want call transaction SE37 and skip first screen of it. Is it possible through the statemen Call transaction 'SE37' and skip first screen ?.
    Of course I have populated the parameter id 'LIB' before this statement but it is not working. Though I have found several posts with this solution but it's not working for me. Could anyone please let me know if this can be done using this statement or there are any other additions required along with this statement or it is not at all possible to achieve this functionality.
    Thanks in advance !!.

    Solved! without a solution? very funny.
    In somewhere of second screen related bdcdata, intensionlly make a mistake to force the system throws the error and the call the trasnaction with mode 'E'. This will solve the issue.
    perform bdc_field       using 'BDC_CURSO'                   " I removed letter R in 'BDC_CURSO'
                                                 'ISEG-ERFMG(01)'.
    CALL TRANSACTION 'XXXX' USING BDCDATA MODE 'E'.
    Thanks.
    Suresh Yerra.

  • Calling transaction with webgui takes forever on some workstation

    Hi,
    I am calling transaction CV03N via webgui from webdynpro application. The problem is on some workstation it takes forever
    to load the screen with transaction details. For other it works fine.
    Did anyone come across this situation? Is there anything need to be set up on personal system to run the application as expected.
    Please help.
    Thanks.
    Trupti

    Hi,
    check that all the machines are using the same proxy server and have same browser settings.

  • Calling transaction with hotspot_click

    Hello everybody,
    I need to know if it is possible to call transaction within an ALV when clicking
    on a hotspotted field.
    In that case how can I handle it ?
    Thank you.
    Luca

    the  below  is the code for the  alv  double click
    *& Report  ZUS_SDN_TWO_ALV_GRIDS
    REPORT  zus_sdn_alvgrid_events_1.
    DATA:
      gd_okcode        TYPE ui_func,
      gt_fcat          TYPE lvc_t_fcat,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_docking2      TYPE REF TO cl_gui_docking_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid.
    DATA:
      gt_t001          TYPE STANDARD TABLE OF t001,
      gt_knb1          TYPE STANDARD TABLE OF knb1.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_t001     TYPE t001,
          ls_col_id   TYPE lvc_s_col.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_t001 INTO ls_t001 INDEX e_row-index.
        CHECK ( ls_t001-bukrs IS NOT INITIAL ).
        SELECT * FROM knb1 INTO TABLE gt_knb1
          WHERE bukrs = ls_t001-bukrs.
        IF ( syst-subrc NE 0 ).
          MESSAGE 'No customers found' TYPE 'S'.
        ELSE.
    *     Trigger PAI of dynpro '0100' and set new ok-code
          CALL METHOD cl_gui_cfw=>set_new_ok_code( 'CALL_SCREEN_0200' ).
        ENDIF.
      ENDMETHOD.                    "handle_hotspot_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      SELECT * FROM t001 INTO TABLE gt_t001.
      REFRESH: gt_knb1.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT go_docking2
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create ALV grid
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent          = go_docking
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT go_grid2
        EXPORTING
          i_parent          = go_docking2
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set event handler
      SET HANDLER:
        lcl_eventhandler=>handle_double_click FOR go_grid1.
    * Display data
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'T001'
        CHANGING
          it_outtab        = gt_t001
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNB1'
        CHANGING
          it_outtab        = gt_knb1
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL METHOD go_docking2->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0200'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * ok-code field = GD_OKCODE
      CALL SCREEN '0100'.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'CALL_SCREEN_0200'.
          go_grid2->refresh_table_display( ).  " necessary
          CALL SCREEN '0200'.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Girish

  • Call Transaction - both Skip first screen and USING in one

    Hi Experts,
    I have to call a Tcode which is for a report painter report and I have to fill the selection screen parameters for that report. Nothing is mandatory but it will be filled in select option field.
    My issue is I can only call this Tcode with all the parameters when I use USIING with BDC. but I also want to skip the selection screen so that only the final output gets displayed.
    I tried SET PARAMETER ID but I am filling the select-options range from a custom table so don't know how to achieve that.
    Any suggestions !!!

    See here: [sdn wiki - Batch input FAQ - Is it possible to simulate AND SKIP FIRST SCREEN using BDC?|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-IsitpossibletosimulateANDSKIPFIRSTSCREENusingBDC%3F]

  • Call transaction - not skipping first screen until browser window maximized

    I've had a search on the forum for this but have not been able to find an answer. I'm calling an SAP transaction from a Web Dynpro application, passing over a document number and asking it to skip the first screen, as follows:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?~transaction=MIR4  RBKP-BELNR=5105600751' '&DYNP_OKCODE=SHOW'
    into url.
    This pops up the transaction in the new window with the document number (hard-coded above while I'm testing this out) but doesn't immidiately skip the the first screen. The browser window opens at a reduced size and as soon as as I maximize it (not pressing enter or doing anything else), that's when it jumps through to the detail screen. A little strange.
    Does anyone have any ideas why it's doing this and what I can do to correct it ?
    thanks,
    Malcolm.

    this is now resolved. My call to the transaction was slightly incorrect. This is now the working code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?~transaction=*MIR4 RBKP-BELNR=5105600751' ';DYNP_OKCODE=SHOW'
    into url.

  • Calling Transaction with Paramters

    Hi
    I want to call a the transaction KSB1 from Web.
    I tried <a href="https://<hostname>/sap/bc/gui/sap/its/webgui?transaction=*KSB1%20KOSTL-LOW=123456%20R_BUDAT-LOW=20080101%20R_BUDAT-HIGH=20080131;DYNP_OKCODE=DOIT">https://<hostname>/sap/bc/gui/sap/its/webgui?transaction=*KSB1%20KOSTL-LOW=123456%20R_BUDAT-LOW=20080101%20R_BUDAT-HIGH=20080131;DYNP_OKCODE=DOIT</a>
    The only parameter which is working is KOSTL-LOW, R_BUDAT-LOW and R_BUDAT-HIGH does not work.
    Any idea?
    Greetings
    Marcus

    Hi Marcus,
    please read in the Wiki FAQ for the ITS forum the articel: "How to prefill fields and skip first screen with webgui?" https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375
    Best regards,
    Klaus

Maybe you are looking for