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: 

Regarding Contract Create Screen Validations [VA41]

Former Member
0 Kudos

Hi All,

In <b>VA41</b> in <b>Header data -> in Additional Data B</b> we have create some Z Fields through Exit.

IN those Z fields some fields we made mandatory[REQUIRED].

Now the issue is When we trying to create new Contract from VA41 first we will give Contract Type[XXXX] then Hit ENTER and get into initial screen then in initial screen we have given all the required fields in initial screen and hit SAVE Button though some of the fields in the HEADERDATA->Additional DAta B are REquired fields without prompting for those fields it is saving the CONTRACT.

How can i make them Prompted before Saving the CONTRACT.

In Second Case When we input all the entries into initial screen of CONTRACT and then goto ADDITIONAL DATAB of Header DEt then it is prompting to entrt those Z REquired Fields.

Can anybody tell me how can i solve the above issue!

Thanks in advance.

Thanks & Regards,

Prasad.

In secong

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos

HI Prasad,

Try to validate explicitly in the

FORM USEREXIT_SAVE_DOCUMENT_PREPARE in the include MV45AFZZ.

like

if xvbak-zzfield1 = space.

message e000 with 'Enter all required fields'.

endif.

Regards,

ravi

0 Kudos

Hi,

I should not give error message that is last option - It should Prompt me for that Z Field in Addition Data B screen. The cursor should go there and sit there.

Then we will enter mandatory fields there

Thanks,

prasad.

0 Kudos

Hi,

I tried in the follow way IN above mentioned exit

i had written follow code -

<b> IF ZDATA-RATE IS INITIAL.

IF sy-tcode EQ 'VA41'.

CALL SCREEN 8309.

ENDIF.

ENDIF.</b>

But it giving error message as

<b>Screen SAPMV45A 8309 must not be an include screen</b>.

My main idea is to when my zfield[REQUIRED]-RATE is balnk i want to make my cursor to go and sit in <b>ADDITIONAL DATAB</b> tab in that RATE field.

Can anybody give their sujjestions!

Thanks,

Prasad.

0 Kudos

HI,

Actually 8309 is a subscreen placed on 4002 main Screen of Header details.

so i need to call it some where in PBO.

Can anybody tell me is there a way out for this issue!

Thanks,

Prasad.

0 Kudos

Hi,

Can anybody give the solution for the above posted issue!

Thanks & Regards,

Prasad.