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

standard status editing

Former Member
0 Likes
751

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
711

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

3 REPLIES 3
Read only

Former Member
0 Likes
712

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
711

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

Read only

0 Likes
711

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.