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

Correct field after error message

Former Member
0 Likes
683

Hi, i've an include to check conditions of a PO

FORM KOBED_930.

if KOMV-KSCHL eq 'PBXX'.

message e057(zmm) with KOMV-KSCHL .

endif.

ENDFORM.

FORM KOBEV_930.

ENDFORM.

but after error message i need that user can correct KOMV-KSCHL to a valid condition.

How can i do this ? I try with a type w message, but a realy need that condition be changed to a valid one...

Can somebody help me ? ...Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
611

Hi Ricardo,

Probably you can try message type I.

http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaaaf35c111d1829f0000e829fbfe/content.htm

Thanks and Regards

Srikanth.P

4 REPLIES 4
Read only

Former Member
0 Likes
611

Hi,

write your error message in at selection-screen on field event ..


at selection-screen on KOMV-KSCHL .
if KOMV-KSCHL eq 'PBXX'.
message e057(zmm) with KOMV-KSCHL .
endif.

Regards,

Prabhu

Read only

0 Likes
611

I try this but doesn't work...

I'm doing this in Requirements Pricing...

error message:

Include RV61A930

Incorrect nesting: Before the statement "AT", the structure introduced

by "FORM" must be concluded by "ENDFORM" . . . . . . . .

Read only

0 Likes
611

You must not trigger any kind of message from the Pricing Requriements. If you don't want the user to input any specific pricing condition you can remove it from the Pricing determination.

From the Pricing requirement, you can make the condition inactive by setting the SY-SUBRC = 4.

Like:


FORM KOBED_901.
  CHECK condition
  SY-SUBRC = 4.
ENDORM.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
612

Hi Ricardo,

Probably you can try message type I.

http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaaaf35c111d1829f0000e829fbfe/content.htm

Thanks and Regards

Srikanth.P