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

Problem with Error message

Former Member
0 Likes
607

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

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
572

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

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
573

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

Read only

0 Likes
572

Thanks for your response

Fields on the different subscreen of main screen.

So it is not possible to use Chain statement.

Regards,

GURU

Read only

Former Member
0 Likes
572

Hi

Use Chain Endchain.

Also check the keyword 'Field' in SAP help.

Regards

Navneet

Read only

Former Member
0 Likes
572

Hi,

1)Give field type as 'E' for Manufacturer number in 101 layout. and write module.

2) Write that field between chain and endchain.