Skip to Content
author's profile photo Former Member
Former Member

selection screen default value maintain,user cant chage the default value

hi Friends

SELECTION-SCREEN BEGIN OF BLOCK SCLDBLOCK WITH FRAME.

SELECT-OPTIONS: S_WERKS FOR EBAN-WERKS DEFAULT 'IN01' NO INTERVALS NO-EXTENSION ,

S_MATNR FOR EBAN-MATNR,

S_BANFN FOR EBAN-BANFN,

S_EBELN FOR EBAN-EBELN,

S_LIFNR FOR EBAN-LIFNR,

S_BSART FOR EKKO-BSART DEFAULT 'IN03' OBLIGATORY NO INTERVALS NO-EXTENSION,

S_EINDT FOR EKET-EINDT OBLIGATORY.

SELECTION-SCREEN END OF BLOCK SCLDBLOCK.

here i need to maintain bsart in03 ,user cant able to chage anything instead of in03.what can i do for that one

Regards

ds

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 12:39 PM
    just execute this and checkout
    
    
    REPORT YCHATEST.
    
    TABLES : EBAN , EKKO,EKET.
    
    SELECTION-SCREEN BEGIN OF BLOCK SCLDBLOCK WITH FRAME.
    
    SELECT-OPTIONS: S_WERKS FOR EBAN-WERKS DEFAULT 'IN01' NO INTERVALS
    NO-EXTENSION ,
    S_MATNR FOR EBAN-MATNR,
    S_BANFN FOR EBAN-BANFN,
    S_EBELN FOR EBAN-EBELN,
    S_LIFNR FOR EBAN-LIFNR,
    S_BSART FOR EKKO-BSART DEFAULT 'IN03' OBLIGATORY NO INTERVALS
    NO-EXTENSION,
    S_EINDT FOR EKET-EINDT OBLIGATORY.
    
    SELECTION-SCREEN END OF BLOCK SCLDBLOCK.
    
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'S_BSART-LOW'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2007 at 12:45 PM

    Create a transaction with a system variant and lock the field in the variant. User wont be able to change it, execpt if they gain access to SE38/SA38

    regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 12:48 PM

    HI,

    REPORT ZETA LINE-SIZE 350.

    TABLES : EBAN , EKKO,EKET.

    SELECTION-SCREEN BEGIN OF BLOCK SCLDBLOCK WITH FRAME.

    SELECT-OPTIONS: S_WERKS FOR EBAN-WERKS DEFAULT 'IN01' NO INTERVALS

    NO-EXTENSION ,

    S_MATNR FOR EBAN-MATNR,

    S_BANFN FOR EBAN-BANFN,

    S_EBELN FOR EBAN-EBELN,

    S_LIFNR FOR EBAN-LIFNR,

    S_BSART FOR EKKO-BSART DEFAULT 'IN03' OBLIGATORY NO INTERVALS

    NO-EXTENSION,

    S_EINDT FOR EKET-EINDT OBLIGATORY.

    SELECTION-SCREEN END OF BLOCK SCLDBLOCK.

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF SCREEN-NAME = 'S_BSART-LOW'.

    SCREEN-INPUT = '0'.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    ELSE.

    LOOP AT SCREEN.

    IF SCREEN-NAME = 'S_BSART-HIGH'.

    SCREEN-INPUT = '1'.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 12:52 PM

    Hi,

    Plz use the following code AT SELECTION SCREEN ON OUTPUT.

    loop at screen.
    if screen-name = 'S_BSART-LOW'.
       screen-input = '0'.
       modify screen.
    endif.

    Regards

    Bhupal Reddy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 01:06 PM

    SELECTION-SCREEN BEGIN OF BLOCK SCLDBLOCK WITH FRAME.

    SELECT-OPTIONS: S_WERKS FOR EBAN-WERKS DEFAULT 'IN01' NO INTERVALS NO-EXTENSION ,

    S_MATNR FOR EBAN-MATNR,

    S_BANFN FOR EBAN-BANFN,

    S_EBELN FOR EBAN-EBELN,

    S_LIFNR FOR EBAN-LIFNR,

    <b>S_BSART FOR EKKO-BSART no-display,</b>

    S_EINDT FOR EKET-EINDT OBLIGATORY.

    SELECTION-SCREEN END OF BLOCK SCLDBLOCK.

    <b>initialization.

    S_BSART-low = 'in03'.

    apped S_BSART</b>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.