‎2009 Feb 24 10:12 AM
Hi experts..
I am working inmodul pool programming.
I have 9 to 10 Input/output fields on one screen.
And i am gining error messages for their validations. but if i give error message, then those fields are getting disabled.
so i have to close that window and again have to execute thet program each and every time..
How is it possible, that after giving error message thode fields should be enabled.
plz help me out.
thanks in advance..
‎2009 Feb 24 10:13 AM
‎2009 Feb 24 10:16 AM
Hi,
Please do like in the following Code,
PROCESS AFTER INPUT.
CHAIN.
FIELD: tf_cust_id, " Your Fields Name here.
tf_cust_region,
tf_cust_s_name,
tf_cust_l_name,
rb_gotos1_g1,
rb_gotos2_g1,
tf_rb_2,
tf_rb_1.
MODULE user_command_0001.
ENDCHAIN.Hope will solve out , Please Use Meaningful Subject for you Quarry Next Time
Please Reply if any issue
Kind Regards,
Faisal
‎2009 Feb 24 10:17 AM
hi,
can you please check this link..it is very useful for your requirement
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/dbaa4735c111d1829f0000e829fbfe/frameset.htm
Thanksa nd regards
Durga.K
‎2009 Feb 24 10:47 AM
You can complete your requirement in two ways:
You can use Leave list-processing statement after your message statement.
LEAVE LIST-PROCESSING.You can also use the following syntax in messages.
Message <name> <type> <id> display like 'E'you can use the type as W and then it will go to the screen again.
Thanks & Regards,
Lalit Mohan Gupta.
‎2009 Feb 24 10:52 AM
Hi,
I am not sure if you can use events here, If you can use then try to write the Screen validations in
AT selection screen.
AT SELECTION-SCREEN.
PERFORM screen_valid.Else you can try with another method.
SELECT GUID_PRGEN "Primary Key as GUID in "RAW" Format
GUID_PR "Primary Key as GUID in "RAW" Format
ATTR20A "SUBSTANCE ID
ATTR05A "Materail Type
ATTR10A "Materail Group
ATTR05B "Sub-Family
ATTR05C "SPEC BUS + DG1K902190
FROM /SAPSLL/PRGEN
INTO TABLE T_PRGEN
WHERE ATTR20A IN S_AT20A
AND ATTR05A IN S_ATR5A " +DG1K902168
AND ATTR05C IN S_ATR5C. " + DG1K902190
IF T_PRGEN IS INITIAL.
MESSAGE : I007(ZMSSG) WITH 'Data not available for this entry'.
STOP.
ENDIF.Use STOP, this will surely work.
Regards,
Kittu
Edited by: Kittu on Feb 24, 2009 11:53 AM
‎2009 Feb 24 12:17 PM
Hi,
Use CHAIN....END CHAIN construct.
It will enable the fields which are in CHAIN....END CHAIN.
Regards,
Anil