05-26-2006 2:51 PM
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
05-26-2006 3:03 PM
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
05-26-2006 3:06 PM
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.
05-26-2006 3:54 PM
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.
05-26-2006 4:26 PM
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.
05-27-2006 12:44 PM
Hi,
Can anybody give the solution for the above posted issue!
Thanks & Regards,
Prasad.