08-17-2007 10:01 AM
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?
08-17-2007 10: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>
08-17-2007 10: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>
08-17-2007 2:07 PM
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.....
08-17-2007 2:22 PM
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.
08-17-2007 2:56 PM
Hi,
tanq..
sorry for disturbing again...
along with it i want to display language field in selection screen default is EN in disable mode?
08-17-2007 10: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
08-17-2007 10: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.
08-17-2007 10: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