2005 Nov 09 3:59 PM
Hi developers,
I need to edit a standard status in transaction 'VF04' in order the "SAVE" button not to appear on the sceen, but whe I try to set the standard status excluding the button it does not work at aall.
The instruction I wrot is: "set status 'SELK' excluding 'SAMD'"
Thanks a lot to everyone.
Claudio
2005 Nov 09 4:04 PM
Are you editing the standard VF04 report by copying to a z report.
Just add the line in bold.
AT SELECTION-SCREEN OUTPUT.
DATA: exclude LIKE rsexfcode OCCURS 0 WITH HEADER LINE,
ls_submit_info TYPE rssubinfo.
IF sy-dynnr = 1000.
CALL FUNCTION 'RS_SUBMIT_INFO'
IMPORTING
p_submit_info = ls_submit_info.
CHECK ls_submit_info-mode_norml = 'X'.
<b>exclude-fcode = 'SAMD'.
append exclude. </b>
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = 'SELK'
TABLES
p_exclude = exclude
EXCEPTIONS
OTHERS = 1.
ENDIF.
Cheers.
Sanjay
Hi developers,
I need to edit a standard status in transaction 'VF04' in order the "SAVE" button not to appear on the sceen, but whe I try to set the standard status excluding the button it does not work at aall.
The instruction I wrot is: "set status 'SELK' excluding 'SAMD'"
Thanks a lot to everyone.
Claudio
2005 Nov 09 4:04 PM
Are you editing the standard VF04 report by copying to a z report.
Just add the line in bold.
AT SELECTION-SCREEN OUTPUT.
DATA: exclude LIKE rsexfcode OCCURS 0 WITH HEADER LINE,
ls_submit_info TYPE rssubinfo.
IF sy-dynnr = 1000.
CALL FUNCTION 'RS_SUBMIT_INFO'
IMPORTING
p_submit_info = ls_submit_info.
CHECK ls_submit_info-mode_norml = 'X'.
<b>exclude-fcode = 'SAMD'.
append exclude. </b>
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = 'SELK'
TABLES
p_exclude = exclude
EXCEPTIONS
OTHERS = 1.
ENDIF.
Cheers.
Sanjay
2005 Nov 09 4:04 PM
In my system, the code looks something like this.
AT SELECTION-SCREEN OUTPUT.
DATA EXCLUDE LIKE RSEXFCODE OCCURS 0 WITH HEADER LINE.
* IF SY-DYNNR = 1000 AND SY-CALLD IS INITIAL.
IF SY-DYNNR = 1000.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
P_STATUS = 'SELK'
TABLES
P_EXCLUDE = EXCLUDE
EXCEPTIONS
OTHERS = 1.
ENDIF.
I assume that you have made a copy of this program or are hacking the standard code. Does your program look like this, have you tried adding to the EXCLUDE table and passing to the function module.
I did the same Sanjay, worked good for me.
Regards,
Rich Heilman
Message was edited by: Rich Heilman
2007 Aug 14 12:24 PM
hello !!!!
Rich,
Yours asnwers have been help me in 95% .
Your are my GURU .rsrs
But I have a question for you.
Would you explain how I INCLUDE status instead EXCLUDE status ? it´s possible ?
Sorry for my english ... I´m learnig yet.
Thankful for all helps in yours posts.