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

How to use RS_EXTERNAL_SELSCREEN_STATUS function

Former Member
0 Likes
1,432

Hi all,

Can any one post some examples here.

Hi all,

Can any one post some examples here.

6 REPLIES 6
Read only

Former Member
0 Likes
1,161

HI Narasimha,

This is the example given in the FM documentation.

Example

Example for calling RS_EXTERNAL_SELSCREEN_STATUS:

PROGRAM SAPDBxyz DEFINING DATABASE xyz.

...

FORM INIT.

CALL FUNCTION 'RS_EXTERNAL_SELSCREEN_STATUS'

EXPORTING P_FB = 'TEST_EXTERNAL_STATUS'.

ENDFORM.

...

Example for function module that sets the status:

FUNCTION TEST_EXTERNAL_STATUS.

*"----


""Local interface:

*" IMPORTING

*" P_SUBMIT_MODE

*" TABLES

*" P_EXCLUDE STRUCTURE RSEXFCODE

*" EXCEPTIONS

*" NO_ACTION

*"----


IF P_SUBMIT_MODE NE SPACE.

RAISE NO_ACTION.

ENDIF.

SET PF-STATUS 'TEST' EXCLUDING P_EXCLUDE.

SET TITLEBAR 'TST'.

ENDFUNCTION.

Is there any specific problem with this FM?

Regards,

Ravi

Read only

0 Likes
1,161

Hi ravi,

FUNCTION TEST_EXTERNAL_STATUS.
*"------------------------------------------------------
*"*"Local interface:
*" IMPORTING
*" P_SUBMIT_MODE
*" TABLES
*" P_EXCLUDE STRUCTURE RSEXFCODE
*" EXCEPTIONS
*" NO_ACTION

in this i found that there is an import parameter p_sumit_code how to declare it.

Read only

0 Likes
1,161

IMPORT parameter P_SUBMIT_MODE: Depending on the current program

execution, this should receive the

following values:

Blank: Normaler SUBMIT

'V': SUBMIT for variant maintenance

'J': SUBMIT VIA JOB:

Background job scheduling.

You can use this information to set the correct status for a given

situation (for example, noExecute in variant maintenance).

It is also possible to set no status at all in variant maintenance

and background job scheduling by triggering the exception NO_ACTION.

In this case, the standard status is set.

Read only

Former Member
0 Likes
1,161

Hi,

check this....

REPORT demo_sel_screen_status.

DATA itab TYPE TABLE OF sy-ucomm.

PARAMETERS test(10) TYPE c.

AT SELECTION-SCREEN OUTPUT.
  APPEND: 'PRIN' TO itab,
          'SPOS' TO itab.
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            p_status  = sy-pfkey
       TABLES
            p_exclude = itab.

regards,

venu.

Read only

Former Member
0 Likes
1,161

INITIALIZATION.

  • CUA *

IMPORT T185V FROM MEMORY

ID SD_COND_MEM_01. "JAY

RV13B-KVEWE = 'B'.

RV13B-KOTABNR = '001'.

CALL FUNCTION 'RS_SUBMIT_INFO'

IMPORTING

P_SUBMIT_INFO = RSSUBINFO.

IF NOT RSSUBINFO-MODE_NORML IS INITIAL.

TITEL = T185V-CTITEL.

CALL FUNCTION 'RV_CONDITION_GET_CUA_REPO'

EXPORTING

PFKEY_I = 'BSELE'

TITLE_I = TITEL

PAR1_I = T185V-PARA1

PAR2_I = T185V-PARA2

PAR3_I = T185V-PARA3

PAR4_I = T185V-PARA4

TABLES

EXCL_I = AUSSCHLUSS.

CALL FUNCTION 'RS_EXTERNAL_SELSCREEN_STATUS'

EXPORTING

P_FB = 'RV_CONDITION_SET_CUA_REPO'.

ENDIF.

Regards

Vijay

Read only

Former Member
0 Likes
1,161