Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding SUBMIT key word

Former Member
0 Likes
916

Hi All,

I have generated a new selection screen similar to the screen which we will get by executing the transaction S_PL0_09000447. Now according to my requirment this screen is not sufficeient,so i have created a new selection screen.

Now the values entered to my newly created selection screen should be submitted to the standard screen.

I used submit like the way shown bwlow:

SUBMIT RFKQST00 USING SELECTION-SCREEN '1000'

with selection-table rspar.

and i have filled the table rspar.But this didn't work

so can any body help me ASAP.

Regards

Sagar

8 REPLIES 8
Read only

Former Member
0 Likes
880

Try the following code.



SUBMIT RFKQST00 USING SELECTION-SCREEN '1000'
with selection-table rspar AND RETURN.

Check the below documentation for more details.

... WITH SELECTION-TABLE rspar

Effect

If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:

SELNAME (length 8),

KIND (length 1),

SIGN (length 1),

OPTION (length 2),

LOW (length 45),

HIGH (length 45).

To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:

SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals

KIND must contain the type of selection screen component (P for parameters, S for selection criteria)

SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.

If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.

The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.

Note

In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.

Thanks,

Balaji

Reward points if helpful.

Read only

0 Likes
880

Hi Balagi,

I have done using the same document.But i didn't get values.

So is there any other way.Can u please tell me ASAP.

Thanks

Read only

Former Member
0 Likes
880

HI,

canu try

SUBMIT RFKQST00 via selection-screen.

Regards,

Brown.

Read only

0 Likes
880

Hi brown,

I have tried that but i didn't get the values.

thanks

Read only

Former Member
0 Likes
880

Hi,

When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself. When you start

an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:

SUBMIT... [VIA SELECTION-SCREEN]

[USING SELECTION-SET <var>]

[WITH <sel> <criterion>]

[WITH FREE SELECTIONS <freesel>]

[WITH SELECTION-TABLE <rspar>].

Ex.

The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:

REPORT REP1.

DATA NUMBER TYPE I.

PARAMETERS PARAMET(14).

SELECT-OPTIONS SELECTO FOR NUMBER.

The program REP1 is called by the following program using various parameters:

REPORT REP2 NO STANDARD PAGE HEADING.

DATA: INT TYPE I,

RSPAR LIKE RSPARAMS OCCURS 10 WITH HEADER LINE.

RANGES SELTAB FOR INT.

WRITE: 'Select a Selection!',

/ '----


'.

SKIP.

FORMAT HOTSPOT COLOR 5 INVERSE ON.

WRITE: 'Selection 1',

/ 'Selection 2'.

AT LINE-SELECTION.

CASE SY-LILLI.

WHEN 4.

SELTAB-SIGN = 'I'. SELTAB-OPTION = 'BT'.

SELTAB-LOW = 1. SELTAB-HIGH = 5.

APPEND SELTAB.

SUBMIT REP1 VIA SELECTION-SCREEN

WITH PARAMET EQ 'Selection 1'

WITH SELECTO IN SELTAB

WITH SELECTO NE 3

AND RETURN.

WHEN 5.

RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.

RSPAR-SIGN = 'E'. RSPAR-OPTION = 'BT'.

RSPAR-LOW = 14. RSPAR-HIGH = 17.

APPEND RSPAR.

RSPAR-SELNAME = 'PARAMET'. RSPAR-KIND = 'P'.

RSPAR-LOW = 'Selection 2'.

APPEND RSPAR.

RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.

RSPAR-SIGN = 'I'. RSPAR-OPTION = 'GT'.

RSPAR-LOW = 10.

APPEND RSPAR.

SUBMIT REP1 VIA SELECTION-SCREEN

WITH SELECTION-TABLE RSPAR

AND RETURN.

ENDCASE.

Regards,

Bhaskar

Read only

0 Likes
880

Hi Baskhar,

REPORT y_form10.

TABLES:bsik,lfa1,with_item,bset,t074u,t001.

DATA:rspar TYPE TABLE OF rsparams,

wa_rspar TYPE rsparams.

SELECTION-SCREEN BEGIN OF BLOCK vendor WITH FRAME TITLE text-001.

SELECT-OPTIONS:s_lifnr FOR lfa1-lifnr ,"OBLIGATORY,

s_bukrs FOR t001-bukrs ."OBLIGATORY.

SELECTION-SCREEN END OF BLOCK vendor.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

PARAMETERS:p_bldat1 LIKE rfpdo-allgedat DEFAULT sy-datum.

SELECT-OPTIONS:s_augdt FOR bsik-augdt.

SELECTION-SCREEN END OF BLOCK b2.

SELECTION-SCREEN BEGIN OF BLOCK varia WITH FRAME TITLE text-003.

PARAMETERS: p_varia LIKE rfpdo-kqstvar01 DEFAULT 'CZ'.

SELECTION-SCREEN END OF BLOCK varia.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-004.

  • Additional parameters

SELECT-OPTIONS: s_belart FOR bsik-blart,

s_belnum FOR bsik-belnr NO DATABASE SELECTION,

s_budat FOR bsik-budat,

s_witht FOR with_item-witht,

s_qstkz FOR bsik-qsskz NO DATABASE SELECTION.

PARAMETERS: p_kaniva LIKE bset-hkont,

p_qssako LIKE bset-hkont .

SELECT-OPTIONS: s_mwskz FOR bset-mwskz .

PARAMETERS: p_unsgeg LIKE rfpdo-kqstxfel6 .

PARAMETERS: p_selec LIKE rfpdo-kqstxfel6 .

SELECT-OPTIONS: s_budat1 FOR bsik-budat NO-EXTENSION

NO DATABASE SELECTION.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK waers WITH FRAME TITLE text-005.

PARAMETERS: p_rechn LIKE rfpdo2-kqstxfl8 ,

p_altcur LIKE t001-waers,

p_condat LIKE syst-datum.

SELECTION-SCREEN END OF BLOCK waers.

SELECTION-SCREEN BEGIN OF BLOCK 2 WITH FRAME TITLE text-006.

  • Output control

PARAMETERS: p_fomlar LIKE rfpdo-kqsuformrp DEFAULT 'X',

p_test LIKE rfpdo-kqsttestd ,

p_forid LIKE rfpdo1-allgevfo ,

p_adrid LIKE rfpdo1-allgevst ,

p_print LIKE rfpdo-fordpriz ,

p_immea LIKE rfpdo1-allgsofz .

SELECTION-SCREEN ULINE .

PARAMETERS: p_prokol LIKE rfpdo-kqstxfeld DEFAULT 'X',

p_zaehl LIKE rfpdo-kqstcount DEFAULT '1' ,

p_eilpo LIKE rfpdo-kqstxfel1 DEFAULT 'X' ,

p_detail LIKE rfpdo2-wt_detail ,

p_qstsu LIKE rfpdo-kqstxfel2 DEFAULT 'X' ,

p_ktosu LIKE rfpdo-kqstxfel3 DEFAULT 'X' ,

p_fnzsu LIKE rfpdo-kqstxfel8 DEFAULT 'X' ,

p_bkrsu LIKE rfpdo-kqstxfel4 DEFAULT 'X' ,

p_witht LIKE rfpdo2-wt_witht ,

p_lists LIKE rfpdo-kqstxfel7.

SELECTION-SCREEN ULINE.

PARAMETERS: p_dtatab LIKE rfpdo-wedfdta1.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 5(20) text-fdt .

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 10(20) text-zah .

SELECTION-SCREEN POSITION 30.

PARAMETERS: p_augdt RADIOBUTTON GROUP g3 DEFAULT 'X' .

SELECTION-SCREEN COMMENT 32(20) text-cdt

FOR FIELD p_augdt.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION 30.

PARAMETERS: p_budat RADIOBUTTON GROUP g3.

SELECTION-SCREEN COMMENT 32(20) text-pdt

FOR FIELD p_budat.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION 30.

PARAMETERS p_bldat RADIOBUTTON GROUP g3 .

SELECTION-SCREEN COMMENT 32(20) text-ddt

FOR FIELD p_bldat.

SELECTION-SCREEN END OF LINE.

  • Invoice document

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 10(20) text-inv.

SELECTION-SCREEN POSITION 30.

PARAMETERS: p_invbu RADIOBUTTON GROUP g4 DEFAULT 'X' .

SELECTION-SCREEN COMMENT 32(20) text-pdt

FOR FIELD p_invbu.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION 30.

PARAMETERS p_invbl RADIOBUTTON GROUP g4 .

SELECTION-SCREEN COMMENT 32(20) text-ddt

FOR FIELD p_invbl.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN ULINE .

PARAMETERS: p_altcty LIKE rfpdo-kqsttitle DEFAULT 'HUNGARY' ,

p_heding LIKE rfpdo-allgline DEFAULT 'HUNGARY',

p_exptab(1) TYPE c NO-DISPLAY. "for call of Rfkqst90

SELECTION-SCREEN END OF BLOCK 2.

MOVE 'S_LIFNR' TO wa_rspar-selname.

MOVE 'S' TO wa_rspar-kind.

MOVE 'I' TO wa_rspar-sign.

MOVE 'EQ' TO wa_rspar-option.

MOVE s_lifnr-low TO wa_rspar-low.

MOVE s_lifnr-high TO wa_rspar-high.

APPEND wa_rspar TO rspar.

MOVE 'S_BUKRS' TO wa_rspar-selname.

MOVE 'S' TO wa_rspar-kind.

MOVE 'I' TO wa_rspar-sign.

MOVE 'EQ' TO wa_rspar-option.

MOVE s_bukrs-low TO wa_rspar-low.

MOVE s_bukrs-high TO wa_rspar-high.

APPEND wa_rspar TO rspar.

MOVE 'P_VARIA' TO wa_rspar-selname.

MOVE 'P' TO wa_rspar-kind.

MOVE 'I' TO wa_rspar-sign.

MOVE 'EQ' TO wa_rspar-option.

MOVE 'CZ' TO wa_rspar-low .

APPEND wa_rspar TO rspar.

MOVE 'P_ALTCTY' TO wa_rspar-selname.

MOVE 'P' TO wa_rspar-kind.

MOVE 'I' TO wa_rspar-sign.

MOVE 'EQ' TO wa_rspar-option.

MOVE 'HUNGARY' TO wa_rspar-low .

APPEND wa_rspar TO rspar.

MOVE 'P_HEDING' TO wa_rspar-selname.

MOVE 'P' TO wa_rspar-kind.

MOVE 'I' TO wa_rspar-sign.

MOVE 'EQ' TO wa_rspar-option.

MOVE 'HUNGARY' TO wa_rspar-low .

APPEND wa_rspar TO rspar.

SUBMIT rfkqst00 USING SELECTION-SCREEN '1000'

WITH SELECTION-TABLE rspar.

I have written like this.I am getting country variant

but iam not getting bukrs and lifnr and please suggest me whats the wrong.

Regards,sagar

Read only

Former Member
0 Likes
880

HI,

Try This

SUBMIT RFKQST00 via selection-screen and return.

Regards,

Balaji

Read only

0 Likes
880

Hi balaji,

I am not getting the values.

Regards,

sagar