‎2006 Dec 26 9:42 AM
Hi;
in my screen there are two fields for matnr and werks and 2 other fields for their text makt-maktx and t001w-name1. i take the texts in my screen PBO.
in PAI 'chain endchain' i check the entries from MARC if user enter the right entries.
when i press enter , before controlling the entries i want to write the text.
but it does not work. WHY?
thanks.
‎2006 Dec 26 9:52 AM
Hi ,
use <b>FIELD <fldname> MODULE <modulename> on chain-input</b> .
Hope it is helpful for u .
Regards ,
Senthil
‎2006 Dec 26 9:54 AM
hi,
chk this sample code.
For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.
CHAIN.
FIELD chk_connobj.
FIELD chk_inst.
FIELD chk_devloc.
FIELD ehaud-haus.
FIELD eanl-anlage.
MODULE modify_screenfields.
ENDCHAIN.
*&---------------------------------------------------------------------*
*& Module modify_screenfields INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE modify_screenfields INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.
IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
chk_devloc EQ c_x.
IF ehaud-haus IS INITIAL.
SET CURSOR FIELD 'EHAUD-HAUS'.
MESSAGE e000(zo_spa) WITH text-017. " Enter Connection obj
ELSE.
PERFORM conn_obj_check.
ENDIF.
ENDIF.
ENDMODULE. " modify_screenfields INPUTRegards
Anver