‎2007 Oct 11 11:35 AM
Hi guys,
I have 2 screens - 101 and 102 in transaction IL02.
101 - contains Manufacturer number
102 - contains Model number.
My requirement is:
When Model number is entered, but Manufacturer is blank  produce a hard error message: Please enter Manufacturer data
oThis error message can be released when pressing Enter standard SAP response
oSave is NOT allowed, until a Manufacturer is entered
Problem: When i display error message in PAI(in user command) of 102 screen - The screen does not allow me to change the Manufacturer number field.
It allows only model number field to be modified.
But i want all other fields to be modifiable.
Suitable solution will be rewarded points.
Regards,
GURU
‎2007 Oct 11 11:39 AM
Hi Guru...
Use all those fields that should be editable in CHAIN .. ENDCHAIN block of the PAI.
PROCESS AFTER INPUT.
CHAIN.
FIELD MANFNO.
FIELD MODELNO .
MODULE CHECK_DATA. "Validate and generate the Error message in this module
ENDCHAIN.
REWARD IF HELPFUL
‎2007 Oct 11 11:39 AM
Hi Guru...
Use all those fields that should be editable in CHAIN .. ENDCHAIN block of the PAI.
PROCESS AFTER INPUT.
CHAIN.
FIELD MANFNO.
FIELD MODELNO .
MODULE CHECK_DATA. "Validate and generate the Error message in this module
ENDCHAIN.
REWARD IF HELPFUL
‎2007 Oct 11 11:43 AM
Thanks for your response
Fields on the different subscreen of main screen.
So it is not possible to use Chain statement.
Regards,
GURU
‎2007 Oct 11 11:42 AM
Hi
Use Chain Endchain.
Also check the keyword 'Field' in SAP help.
Regards
Navneet
‎2007 Oct 11 11:49 AM
Hi,
1)Give field type as 'E' for Manufacturer number in 101 layout. and write module.
2) Write that field between chain and endchain.