Application Development 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: 

Dictionary field in screen

0 Kudos

Hi Abap Gurus,

I am using dictionary field vbak-vbeln in my screen with search help VMVA.

I am doing validation on that field by checking entered sale order number is correct or not, if so throwing my user defined error message.

What happening is instead of throwing my user defined message it is throwing message like

Entered 'XXXXXXXX' Sale order not found in VBUK Table. and not allowing me go further.

Can anybody tell me why it is happening and what to do?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

just

Deselect Forein-Key Check in attributes of screen-field

just double click on field,

Under Dictionary tab,

forein-key check box is selected,

just deselect it,

Because it is checking foreign key

thts why its giving such system generated error

Regards,

Alpesh

Edited by: Alpesh on Jun 10, 2009 11:42 AM

2 REPLIES 2

Former Member
0 Kudos

just

Deselect Forein-Key Check in attributes of screen-field

just double click on field,

Under Dictionary tab,

forein-key check box is selected,

just deselect it,

Because it is checking foreign key

thts why its giving such system generated error

Regards,

Alpesh

Edited by: Alpesh on Jun 10, 2009 11:42 AM

0 Kudos

Hi,

There is a join on the two tables VBAK, VBUK. If you open the VBAK table and check the Entry/Check Fields tab, you will find a check implemented on VBELN with VBUK-VBELN.

So, VBAK expects the VBELN value to be present in VBUK which might not be there in your case.

Go to VBAK -> Fields Tab -> Click on the mark field of VBELN -> Press the Foreign Key button -> A dialog opens -> In the Screen Check -> Uncheck 'Check Required'.

On doing this, the SAP does not auto check the VBELN value with VBUK.