Skip to Content
0
Former Member
Apr 20, 2007 at 05:53 AM

problem in the function module RS_SET_SELSCREEN_STATUS-urgent

229 Views

HI ALL,

my rewuirement is i need to display my own pf status in selection screen.

when i am using below code i getting two buttons only.anybody can tell me where i made a mistake.

i am sendingf my code below.

TABLES : ZUSER_SECOBJECTS, SSCRFIELDS.

DATA : IT_sECOBJECTS LIKE ZUSER_SECOBJECTS OCCURS 0 WITH HEADER LINE.

data: begin of exclude occurs 0,

func(10) type c,

end of exclude.

PARAMETER : P_KUNNR LIKE KNA1-KUNNR.

CASE sscrfields-ucomm.

WHEN 'BACK' or 'EXIT'.

SET SCREEN 0.

LEAVE SCREEN.

WHEN 'EXECUTE'.

LEAVE TO LIST-PROCESSING . "<--- RIGHT HERE

SELECT * FROM ZUSER_SECOBJECTS

INTO TABLE IT_SECOBJECTS.

*CHECK SY-SUBRC EQ 0.

*LOOP AT IT_SECOBJECTS.

*WRITE : IT_SECOBJECTS.

*ENDLOOP.

ENDCASE.

at selection-screen output.

if sy-dynnr eq '1000'.

call function 'RS_SET_SELSCREEN_STATUS'

exporting

p_status = 'SELK1'

tables

p_exclude = exclude

exceptions

others = 1.

ENDIF.

thanks,

maheedhar.t