Skip to Content
avatar image
Former Member

report

In the report i have one parameter like material number ...and now i want to add one more field i.e description from MAKT table language should be in english...how to do it?

and that field should be in disable mode?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Aug 17, 2007 at 09:10 AM

    Hi..

    PARAMTERS : P_MATNR LIKE MARA-MATNR,

    P_MAKTX LIKE MAKT-MAKTX.

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN .

    IF SCREEN-NAME = 'P_MAKTX'.

    SCREEN-INPUT = 0. "To disable input

    MODIFY SCREEN.

    EXIT.

    ENDIF.

    ENDLOOP.

    <b>Reward if Helpful</b>

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      tanq..

      sorry for disturbing again...

      along with it i want to display language field in selection screen default is EN in disable mode?

  • avatar image
    Former Member
    Aug 17, 2007 at 09:10 AM

    Hi Balu

    select-option: s_maktx for makt-maktx modif id mod1.

    at seletion-screen output.

    loop at screen.

    if screen-group1 = 'mod1'.

    screen-input = 0.

    endif.

    modify screen.

    endloop.

    reward points to all helpful answers

    kiran.M

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 09:23 AM

    hi,

    In at selection-screen output event add following code:-

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF screen-name = 'parameter_name'.

    screen-input = ' '.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    Enjoy SAP.

    Pankaj Singh.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 09:25 AM

    Hello,

    For screen element modification you can use

    <b>LOOP AT SCREEN</b>.

    All fields of the current screen are stored in the system table SCREEN with their attributes. The LOOP AT SCREEN statement places this information in the header line of the system table. If you want to change the attributes, you must put back the changed header line with <b>MODIFY SCREEN</b>. This Changes the attributes belonging to the current screen field whilst processing with LOOP AT SCREEN ...

    eg.

    at seletion-screen output.

    <b>loop at screen</b>.

    if screen-name = 'p_x'.

    <b>screen-input = 0.</b>

    endif.

    <b>modify screen.</b>endloop.

    reward if helpful

    regards,

    LIJO

    Add comment
    10|10000 characters needed characters exceeded