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

report

Former Member
0 Likes
814

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?

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
775

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>

7 REPLIES 7
Read only

varma_narayana
Active Contributor
0 Likes
776

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>

Read only

0 Likes
775

Hi narayana,

tanq..

in the parameter if the material no is available in MARA i have to display the description for that material in the selection-screen.....

Read only

0 Likes
775
PARAMTERS : P_MATNR LIKE MARA-MATNR,
P_MAKTX LIKE MAKT-MAKTX.

AT SELECTION-SCREEN OUTPUT.

SELECT SINGLE maktx FROM makt INTO p_maktx WHERE matnr EQ p_matnr.
  IF sy-subrc NE 0.
    CLEAR p_maktx.
  ENDIF.

LOOP AT SCREEN .
IF SCREEN-NAME = 'P_MAKTX'.
SCREEN-INPUT = 0. "To disable input
MODIFY SCREEN.
EXIT.
ENDIF.
ENDLOOP.
Read only

0 Likes
775

Hi,

tanq..

sorry for disturbing again...

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

Read only

Former Member
0 Likes
775

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

Read only

messier31
Active Contributor
0 Likes
775

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.

Read only

Former Member
0 Likes
775

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