SUBMIT Zxx VIA SELECTION-SCREEN AND RETURN

SUBMIT Zxx VIA SELECTION-SCREEN AND RETURN
and it's dont make f8 why

wa_rspar-selname = 'P_DEALNO'.
wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'.
wa_rspar-option = 'EQ'.
wa_rspar-low  = T_FORDER-DEAL_No.
   APPEND wa_rspar TO rspar.
Submit ZSDR_SALESORDER_DISPLAY
     using Selection-screen '1000'
           WITH SELECTION-TABLE rspar.
orelse
*submit RSEIDOC2 with docnum-low = docnum with
                   credat-low = credat
                           and return.

Similar Messages

  • SUBMIT via selection screen and return gives dump

    Hi Guys,
    When i have used SUBMIT via SELECTION SCREEN and RETURN, it gave me the selection screen and subsequent report is executed properly without an error and when i pressed back button, it went to selection screen without any issues but the problem is when i press back from the selection screen it gives me a dump. Could you guys think of what would be the probelm.
    Thanks in Advance.
    Santosh.

    Hi Santhosh,
    What is the dump u r getting? I tried like this and is working file.
    Report1
    REPORT  Z75694TEST1.
    PARAMETERS po_1 TYPE c.
    WRITE po_1.
    SUBMIT Z75694_TEST VIA SELECTION-SCREEN AND RETURN.
    Report2
    REPORT Z75694_TEST .
    PARAMETERS: po_2 TYPE c.
    WRITE po_2.
    Thanks,
    Vinod.

  • Prob in Submit Report via Selection screen.

    Hi,
    I have to submit a report via selection screen.
    The report name is detemined at run time.
    This i am able to handle easily as we can use SUBMIT (V_PROG)...
                                   WHERE V_PROG contains the name of the report that i get at runtime...
    Now the issue :::::::
    I have to also populate a select-options on the called report on submit.
    usually this is done by :
                                                SUBMIT (V_PROG)
                                                name of select-option in itab...
    However in my case the name of the <name of select-option> is also detemined at runtime say PNPPERNR.
    Now if i use any variable / field symbol for the name of the select - option (like for the called program), it does not work (the called report does not have the values i populate in ITAB for the particular select-option)
    I have also tried Macro but cant find solution...
    ANY IDEAS ??

    Hi Anuj,
    When you are getting the report name in runtime, you can also get the report selection screen information during runtime.
    Now how are you going to decide which values you will move to which selection screen variables of which report? If you have a way to determine this, then here is a program that works on that assumption.
    REPORT ztest1 .
    DATA: i_seltab          TYPE TABLE OF rsparams WITH HEADER LINE,
          i_selections_info TYPE TABLE OF selinfo WITH HEADER LINE.
    DATA: v_report LIKE sy-repid,
          v_matnr  LIKE mara-matnr.
    PARAMETERS: p_rep1 RADIOBUTTON GROUP rad DEFAULT 'X',
                p_rep2 RADIOBUTTON GROUP rad.
    SELECT-OPTIONS: s_matnr FOR v_matnr.
    START-OF-SELECTION.
      IF p_rep1 = 'X'.
    *-- some criteria to determine the name of the report
        v_report = 'ZTEST2'.
      ELSE.
        v_report = 'ZTEST4'.
      ENDIF.
    *-- get the parameters for the report
      CALL FUNCTION 'RS_SELECTIONS_DESCRIPTION'
           EXPORTING
                report              = v_report
           TABLES
                selections_info     = i_selections_info
           EXCEPTIONS
                no_selections       = 1
                report_not_existent = 2
                subroutine_pool     = 3
                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.
      LOOP AT i_selections_info WHERE name = 'S_MATNR'.
    *-- some criteria based on which, move the values from this program
    *   to the called program
        CLEAR i_seltab.
        i_seltab-selname = i_selections_info-name.
        i_seltab-kind    = i_selections_info-kind.
        i_seltab-sign    = 'I'.
        i_seltab-option  = 'EQ'.
        i_seltab-low     = s_matnr-low.
        i_seltab-high    = s_matnr-high.
        APPEND i_seltab.
      ENDLOOP.
      IF NOT i_seltab[] IS INITIAL.
        SUBMIT (v_report) VIA SELECTION-SCREEN
                WITH SELECTION-TABLE i_seltab .
      ENDIF.
    If this works for you, please reward and close the post.
    Regards,
    Srinivas

  • SUBMIT  RPCDTCU0_CE VIA SELECTION-SCREEN just wont work

    Hi all,
    I use SUBMIT  RPCDTCU0_CE VIA SELECTION-SCREEN
    with PNPTIMED = '1'
    with PNPXABKR = 'US'
    with PNPPABRP = '8'
    with PNPPABRJ = '2009'
    with PNPPERNR-LOW = '73265'
    with PNPABKRS-LOW = 'US'
    with ZLSCH-LOW = 'C'
    with TEST = 'X'
    with UPD_PCL2 = 'X'
    with SW_ADV1 = 'X'
    with NEWLOG_D = 'X'.
    The moment I run the progrm, it receive "program terminated message"
    Any other idea on how I should run the program and get to pass the value into the program?

    Hi,
    Try using extension of selection table instead of wtih parameters..
       [WITH SELECTION-TABLE rspar]
    Nag

  • Submit program with selection screen parameters - getting blank values

    Hi, I'm submitting a program with selection screen parameters. when I pass '000' (I_TPLSCN  )value for Planning Scenario and when this goes to selection screen then I don't see value for Planning scenario as '000'(I_TPLSCN  ) but the value is blank in selection screen. I'm using the below code for this.
    SUBMIT RMCPAMRP WITH MATNR_GL EQ I_MATNR   SIGN 'I'
                      WITH WERKS_GL EQ I_WERKS   SIGN 'I'
                      WITH PLSCN    EQ I_TPLSCN  SIGN 'I'
        via selection-screen        AND RETURN.
    Could anyone please help me how to display value '000' rather than blanks.
    thanks in advance.

    If I_MATNR, I_TPLSCN and I_WERKS are variable then try with
    SUBMIT rmcpamrp
      WITH matnr_gl = i_matnr
      WITH plscn    = i_tplscn
      WITH werks_gl = i_werks
      via selection-screen       
       AND RETURN .
    If I_MATNR, I_TPLSCN and I_WERKS are of type range then try  with
    SUBMIT rmcpamrp
      WITH matnr_gl IN i_matnr
      WITH plscn    IN i_tplscn
      WITH werks_gl IN i_werks
    via selection-screen       
       AND RETURN
    Edited by: Pawan Kesari on Dec 24, 2009 3:33 PM

  • Submit via selection-screen - Return automatically

    Hello so far I have a code ....
    <b> SUBMIT (p_pname) EXPORTING LIST TO MEMORY AND RETURN
                         USING SELECTION-SET p_vname.</b>
    Now what this does is self explanatory. Afterwards I just write the list to the program with the submit statment.
    However, instead of using a variant. I would like to have an option that it goes to the selection-screen where the user can input the parameters and return back to the original program afterwards.
    When I tried this ...
    <b>SUBMIT (p_pname) VIA SELECTION-SCREEN
                       EXPORTING LIST TO MEMORY AND RETUR</b>
    What happens is that it goes to the selection-screen, but stays in that program which I submitted and sends the report there. Its only when I press the back button is when it Exports list to memory.
    As mentioned my desired process is that after the selection-screen process is done. You return back and the report is generated there. Thank you every one and good day.

    Chad,
    As you need the selection screen of the calling program, unless you exit out of the report, its not going to come out of the program. Once the program is displayed, you will hav explicity come out of it.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Problem in Submit via selection screen statement

    Dear Experts,
    I have designed selection screen and a dialog screen 100. I am passing the selection screen values to dialog screen using Selection screen via selection screen statement. When i tried to change the values in dialog screen, it is not allowing me to do so and the values are not refreshed.
    I have searched the SDN Forum, but not able to find the suitable thread.
    Regards,
    Ramesh Manoharan
    Edited by: ramesh.manoharan on Mar 17, 2010 1:03 PM

    Hi,
    I have used the below statement to pass values the values from selection screen to dialog screen (Created as an Executable program)
    Submit <pgm> via selection screen
      with ...... .
    Dialog screen is created as an executable program where i have created two subscreen area and populating the Selection Screen as subscreen by using the below statement:
    selection-screen begin of screen <subscreen no.> as subscreen.
    selection-screen end of screen <subscreen no.>.
    The problem i am facing is that the values of selection screen are getting populated in the dialog screen. But when i tried to change the input values in the dialog selection screen. I am unable to do that and it is not showing the new entered values. Only the previous values are shown (got from selection screen from Submit via selection screen statement).
    Kindly let me know where i am going wrong ? Kindly help me to overcome the problem .
    Regards,
    Ramesh Manoharan

  • How to set cursor after submit via selection-screen

    hi guys,
    i would like to set cursor to certain field, after submit via selection-screen.
    eg.
    SUBMIT   z_mm_kbr_gr_label_01
                VIA SELECTION-SCREEN
                WITH p_mblnr = p_mblnr
                WITH p_zeile = p_zeile
                WITH p_gjahr = p_gjahr
                WITH p_ccode = p_ccode
                WITH p_dcode = p_dcode
                WITH p_crt = p_crt
                WITH p_print = p_print.
    i want to set cursor field 'p_ccode' after going back to
    z_mm_kbr_gr_label_01. the program always go to the first field on the screen whatever i do.
    may i know how to do this?
    thanks.

    Hi,
    Please try like below .
    at selection-screen output.
    SET CURSOR FIELD  'P_CCODE' .

  • How can i do submit to 2 selection screen  ?

    i try to do submit for program RKAEP000 ,
    this program have few selection screen  ,
    how can i send parameters to prarameters in
    more than one selection screen ,
    i add exmple for what i need :
    SUBMIT RKAEP000
        USING SELECTION-SCREEN '100'
        VIA SELECTION-SCREEN
            WITH P_TCODE = 'KOB1'
            WITH  AUFNR IN SO_AUFNR
            WITH KSTAR IN SO_KSTAR
            WITH  R_BUDAT IN SO_BUDAT
            WITH BUKRS IN SO_BUKRS
          USING SELECTION-SCREEN '110'
            WITH  P_DISVAR   EQ 'DBW' sign 'I'

    Please check the following code
    TABLES : aufk,
             rkpln,
             cskb,
             cobk,
             t001.
    DATA: wa_rsparams TYPE rsparams,
           i_rsparams TYPE STANDARD TABLE OF rsparams.
    DATA: wa_cskb TYPE cskb,
           i_cskb TYPE STANDARD TABLE OF cskb.
    DATA: wa_cobk TYPE cobk,
           i_cobk TYPE STANDARD TABLE OF cobk.
    DATA: wa_t001 TYPE t001,
           i_t001 TYPE STANDARD TABLE OF t001.
    DATA: wa_aufk TYPE aufk,
           i_aufk TYPE STANDARD TABLE OF aufk.
    PARAMETERS : p_code   TYPE sytcode,
                 p_disvar TYPE slis_vari.
    SELECT-OPTIONS: s_aufnr FOR rkpln-aufnr,
                    s_kstar FOR cskb-kstar,
                    r_budat FOR cobk-budat,
                    s_bukrs   FOR t001-bukrs.
    wa_rsparams-selname  = 'P_TCODE'.
    wa_rsparams-kind     = 'P'.
    wa_rsparams-sign     = 'I'.
    wa_rsparams-option   = 'EQ'.
    wa_rsparams-low      =  p_code.
    APPEND wa_rsparams TO i_rsparams.
    CLEAR  wa_rsparams.
    wa_rsparams-selname  = 'P_DISVAR'.
    wa_rsparams-kind     = 'P'.
    wa_rsparams-sign     = 'I'.
    wa_rsparams-option   = 'EQ'.
    wa_rsparams-low      =  p_disvar.
    APPEND wa_rsparams TO i_rsparams.
    CLEAR  wa_rsparams.
    wa_rsparams-selname  = 'AUFNR'.
    wa_rsparams-kind     = 'S'.
    wa_rsparams-sign     = 'I'.
    wa_rsparams-option   = 'BT'.
    wa_rsparams-low      =  s_aufnr-low.
    wa_rsparams-high      =  s_aufnr-high.
    APPEND wa_rsparams TO i_rsparams.
    CLEAR  wa_rsparams.
    wa_rsparams-selname  = 'KSTAR'.
    wa_rsparams-kind     = 'S'.
    wa_rsparams-sign     = 'I'.
    wa_rsparams-option   = 'BT'.
    wa_rsparams-low      =  s_kstar-low.
    wa_rsparams-high     =  s_kstar-high.
    APPEND wa_rsparams TO i_rsparams.
    CLEAR  wa_rsparams.
    wa_rsparams-selname  = 'R_BUDAT'.
    wa_rsparams-kind     = 'S'.
    wa_rsparams-sign     = 'I'.
    wa_rsparams-option   = 'BT'.
    wa_rsparams-low      =  r_budat-low.
    wa_rsparams-high     =  r_budat-high.
    APPEND wa_rsparams TO i_rsparams.
    CLEAR  wa_rsparams.
    wa_rsparams-selname  = 'BUKRS'.
    wa_rsparams-kind     = 'S'.
    wa_rsparams-sign     = 'I'.
    wa_rsparams-option   = 'BT'.
    wa_rsparams-low      =  s_bukrs-low.
    wa_rsparams-high     =  s_bukrs-high.
    APPEND wa_rsparams TO i_rsparams.
    CLEAR  wa_rsparams.
    SUBMIT rkaep000 WITH SELECTION-TABLE i_rsparams AND RETURN.

  • Submit Program without Selection-Screen

    Hi,
        I am submitting the SAP Standard program, which contains selections screen.
        i am passing values to standard program using via-selection screen.
        Is there any way to suppress / skip the selection-screen what is appearing after submit
    Thanks
    Uma

    Hi,
    use like this...
    call transacton 'Tcode' and skip first screen.
    Regards
    kiran

  • Selection screen and smartforms

    Hi,
    Can somebody share with me simple eg to
    enter data via the selection screens and then pass those values to smartform.
    i have used the following code.But whenever i execute it the smartform opens first. i want to open the selection screen first.Then after entering the data there ,the smartorm must open up with the entered values.
    PARAMETER P_PARAM1 TYPE MYTABLE-COL1.
    PARAMETER P_PARAM2 TYPE MYTABLE-COL2.
    AT SELECTION-SCREEN OUTPUT.
    CALL FUNCTION '........................................'
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
       PARAM1                    =  P_PARAM1
       PARAM2                     = P_PARAM2
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      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.
    Thanks & Regards
    Jay

    Hi,
    As asked I am sending this piece of a code so that you can get a clear idea for the same.If you face the difficulty again please let me know.
    selection-screen begin of block b1 with frame title text-001.
    parameters :
       p_carrid type spfli-carrid.          " Carrier Id.
    selection-screen end of block b1.
    Working variable
    data:
      f_name      type rs38l_fnam.         " function module name
    start-of-selection.
    perform open_smartforms.
    form open_smartforms .
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 = '<formname>''
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       importing
         fm_name                         = f_name
       exceptions
         no_form                          = 1
         no_function_module       = 2
         others                            = 3
      if sy-subrc <> 0.
        message id sy-msgid type 'S' number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.                               " IF sy-subrc ne 0
      call function f_name
        exporting
      ARCHIVE_INDEX                  =
      ARCHIVE_INDEX_TAB         =
      ARCHIVE_PARAMETERS    =
      CONTROL_PARAMETERS   =
      MAIL_APPL_OBJ                =
      MAIL_RECIPIENT                 =
      MAIL_SENDER                    =
      OUTPUT_OPTIONS             =
      USER_SETTINGS               = 'X'
        p_carr                                = p_carrid
    exceptions
       formatting_error         = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled           = 4
       others                         = 5
      if sy-subrc ne 0.
        message id sy-msgid type 'S' number sy-msgno
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.                               " IF sy-subrc ne 0
    endform.                               " OPEN_SMARTFORMS
    Regards,
    Suvajit.

  • Need to have pop up window in selection screen and capture the user action.

    Hello Friends,
                         I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
    I create a selection screen and a sub screen as window.
    After user execute from the selection screen, I am popping up this window.
    Window contains some input values to be entered and push button to identify the user action.
    I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
    How to overcome this issue.
    Here is the definition of the window.
    Pop Up Window for getting values
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
    PARAMETER : p_vdate LIKE t9aa01-validfrom,
                p_dcggt LIKE t9aa01-hkont,
                p_dcgst1 LIKE t9aa01-hkont,
                p_dcgst2 LIKE t9aa01-hkont,
                p_na LIKE t9aa01-hkont.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 20.
    SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 500.
    Cheers,
    Senthil
    Edited by: Senthil on Jan 7, 2008 11:03 AM

    Hi,
    Try using the below code.
           data : w_var type string.
           CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
              DEFAULTOPTION        = 'Y'
               textline1            = 'test '
             TEXTLINE2            = ' '
               titel                = 'check'
             START_COLUMN         = 25
             START_ROW            = 6
             CANCEL_DISPLAY       = 'X'
            IMPORTING
              ANSWER               = w_var.
                     if w_var = 'J'.
                     else.
                     endif.
    Comments : J indicates Yes and N indicates No
    Regards,
    Jeswanth

  • Background Processing, Selection Screens and Variants

    Hi All,
    I am having a little trouble Background Processing with Selection Screens and Variants.
    When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
    FORM START_BACKGROUND_PROCESSING.
      CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
        EXPORTING
          TITLE_NAME            = 'End Customer Report '
          JOB_NAME              = 'customer_report'
          PROG_NAME             = 'ZSE_SD_SALES'
      EXCEPTIONS
        NO_SUCH_PROGRAM       = 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.                    "START_BACKGROUND_PROCESSING
    After the background process is started, all teh data is collated then written to the app server. this is the order
      ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
        PERFORM INITIALIZE_DATA.
        PERFORM SELECT_DATA.
        PERFORM PROCESS_DATA.
        PERFORM GET_END_CUSTOMER_DATA.
        PERFORM WRITE_TO_APP_SERVER.
    Any ideas? Points given to those who are helpful

    done myeslf

  • Selection-screen and GET

    Hi all,
    in my program i use PNP logical database, so system create automatically selection screen. Nice.
    When user fill selection screen event start-of-selection is launched and i do GET PERNR for read data from PNP.
    But my customer want to add field in selection screen. Ok, i did that. Well, now he want that when a user fills new fields the PNP is not read i.e GET PERNR shouldn't be launched, so i my program i write this :
    if myfield is initial.
    GET PERNR.
    else.
    PERFORM get_data.
    endif.
    But when i compile program i can't do that and i don't know how to make this and if it's possible.
    Regards,

    Hi tafkap,
    1. u have created a z report and
       u are using PNP logical database.
    2.  u say,
    , now he want that when a user fills new fields the PNP is not read i.e GET PERNR shouldn't be launched
    suppose this is achieved, then how
    are u going to fetch the data
    and show the report ?
    3. If u already have the logic for
       getting information from database and showing
       to the user,
       then do  not use GET event.
      (It is not compulsory in a ldb)
    4. Instead use START-OF-SELECTION
       event
       and do the normal programming.
    5. In such case,
       the selection screen (and ur extra field(s))
       will be displayed as usual
       and your own code will get triggered
       at start-of-selection.
    I hope it helps.
    regards,
    amit m.

  • What is a Selection Screen and how to make it ?

    What is a Selection Screen and how to make it ? Please explain the process.
    Best regards,
    Ryan

    Selection Screen are used for the program reports. These allows you to input some values that are required to show the desired output.
    for example : you want to show the list of sales orders between 1000 to 1999, you would write a select query as this (to make u understand better)
    select vbeln from vbak into it_vbeln
                 where vbeln GE 1000 " greater than or equal to
                   and vbeln LE 1999. " less than or equal to
    now if you wnat to do it dynamically, you need a selection screen
    tables : vbak. " declaration
    selection-screen : begin of block block1 with frame title text-003.
    select-options : so_vbeln for vbak-vbeln. " selection range from __ to __
    selection-screen : end of block block1.
    now you can write the same select query as
    select vbeln from vbak into it_vbeln
                 where vbeln in so_vbeln.
    Hope this is clear now
    Regards
    Gopi

Maybe you are looking for

  • .BridgeSort Files No Longer Showing Up In Bridge

    Hello, my <.BridgeSort> bridgesort files are no longer showing up in bridge? I also get an error "Bridge encountered an error and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation." I have

  • Uploading iWeb site to godaddy host

    Greetings, I am trying to publish one of my iWeb generate sites to a godaddy account. When I publish to a folder it publishes all of my sites to the folder - I am just interested in this one site. So I move that site folder out of the published folde

  • Exporting single tracks of video

    what is the command for selecting to export a single video track? I want to export each track separately to send to another editor so they will have to be synched up when he gets them. thamks

  • Mailbfr - rsync issue too many files??

    hey so basically we have an imap server with around 350 mail accounts, we use mailbrf to backup the mail database and the users email but the mailbfr is not completing successfully the error i get in the log that gets email to me is this rsync: conne

  • Camera raw does not read D7100 nef files [was:Ernied]

    Camera raw does not read d7100 nef files. did update...still no success.