Skip to Content
author's profile photo Former Member
Former Member

very urjent how to validate filed in dialogprograming

hi experts this is very urjent reqirement.

i am doing dialog prg i have four fields in my screen like kunnr name1 etc.. this fields coming from (kna1) internal table is it_mat.

i have another table like knvv.

validation is.

when i click on save the reord shoud be update based on knvv-kunnr1.

for ex in knvv-kunnr1 having record 1234. if i go for my dialog prg kna1-kunnr inserting the same record 1234 wiill be accept and update table kna1 other vice eroor will be display like record does not exist in knvv-kunnr.

can u please provide logic

thanks in addvance

points will be awarded

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:31 PM

    Hi Maha,

    In the PAI of the concerned screen, create a module. In the module, check the kunnr from the screen field against the knw table using SELECT. If a record is found in the table, go ahead and save the entry in KNA1 else show the error message.

    Hope this helps.

    Sanjeev

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.