04-09-2007 10:28 AM
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.
04-09-2007 10:33 AM
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.
04-09-2007 10:33 AM
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.
04-09-2007 10:34 AM
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
04-09-2007 11:00 AM
HI SAILAJA,
after executing this code also i am not getting my own pf-status.
can u please resend the code.
thanks,
maheedhar.t
04-09-2007 3:16 PM
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.
04-09-2007 3:41 PM
HI SAILAJA,
SAME PROBLEM. U can try with some other input you will get same problem.
thanks,
maheedhar.t
04-09-2007 10:35 AM