Application Development 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: 

HOW TO SET MY OWN PF-STATUS

Former Member
0 Kudos

HI ALL,

My requirement is i have to set my own pf-staus.

when i am using the function module RS_SET_SELSCREEN_STATUS it is not showing any pf-stus here.

i am sending code below. nay body can change the code and resend it to me.

selection-screen: begin of block b1.

parameters : p_appln type zuser_secobjects-appln.

parameters : p_user type zuser_secobjects-appln_user,

if sy-dynnr eq 1000.

call function 'RS_SET_SELSCREEN_STATUS'

exporting

p_status = 'SELK'

tables

p_exclude = exclude

exceptions

others = 1.

endif.

thanks,

maheedhar.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

Write code under <b>At selection-screen output</b> event.

selection-screen: begin of block b1.

parameters : p_appln type zuser_secobjects-appln.

parameters : p_user type zuser_secobjects-appln_user,

<b>At selection-screen output.</b>

call function 'RS_SET_SELSCREEN_STATUS'

exporting

p_status = 'SELK'

tables

p_exclude = exclude

exceptions

others = 1.

Regards

Sailaja.

6 REPLIES 6

Former Member
0 Kudos

hi

Write code under <b>At selection-screen output</b> event.

selection-screen: begin of block b1.

parameters : p_appln type zuser_secobjects-appln.

parameters : p_user type zuser_secobjects-appln_user,

<b>At selection-screen output.</b>

call function 'RS_SET_SELSCREEN_STATUS'

exporting

p_status = 'SELK'

tables

p_exclude = exclude

exceptions

others = 1.

Regards

Sailaja.

Former Member
0 Kudos

Hi ,

Plz also send the program id to the Fm where the status 'SELK' is exist.

call function 'RS_SET_SELSCREEN_STATUS'

exporting

p_status = 'SELK'

P_PROGRAM = sy-repid

tables

p_exclude = exclude

exceptions

others = 1.

endif.

regards,

Tanmay

0 Kudos

HI SAILAJA,

after executing this code also i am not getting my own pf-status.

can u please resend the code.

thanks,

maheedhar.t

0 Kudos

hi,

Try with the code below..

Ensure that you have activated the pf-status of the program.

report  z_13317_sdn.

selection-screen: begin of block b1.
parameters : p_appln type mara-matnr.
parameters : p_user type marc-werks.
selection-screen: end of block b1.

data: begin of exclude occurs 0,
        func(10) type c,
      end of exclude.

At selection-screen output.

*    set pf-status 'SELK'.      <-- Comment this line
if sy-dynnr eq '1000'.
call function 'RS_SET_SELSCREEN_STATUS'
exporting
p_status = 'SELK'
tables
p_exclude = exclude
exceptions
others = 1.
endif.

Regards

Sailaja.

0 Kudos

HI SAILAJA,

SAME PROBLEM. U can try with some other input you will get same problem.

thanks,

maheedhar.t

raymond_giuseppi
Active Contributor
0 Kudos

Put your code in AT SELECTION-SCREEN OUTPUT section.

Regards