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: 

add the field in the incompletion logic ( VA01)

Former Member
0 Kudos

Hi All,

I have create a new field on the VA01(Sales Order) application.

I want to add the field in the incompletion logic.

How to proceed,Please help me out.

Regards

9 REPLIES 9

krzysztof_konitz4
Contributor
0 Kudos

Hi,

Try to use user exit forms in MV45AFZB INCLUDE:

USEREXIT_CHECK_VBAK,

USEREXIT_CHECK_VBAP and so on...

Krzys

Former Member
0 Kudos

Krzys,

What code do you use to trigger something as incomplete? I read somewhere that you just "clear the field". I cleared US_DIALOG but that didn't work.

Thanks for your suggestion.

Joy

Former Member
0 Kudos

You have to add the field to the Incompletion Procedure (transaction OVA2) that you want to change.

Thanks,

Brian

0 Kudos

Thanks, Brian.

I don't want to add it to the incompletion procedure because it only applies to one customer. Can you suggest anything else?

Joy

0 Kudos

As Krzys has suggested, MV45AFZB is the most common way of handling such things.

Sridhar

0 Kudos

Yes, I've been told it can be done in MV45AFZB but can anyone tell me specifically what field in what itab I have to update to trigger incompletion?

Joy

0 Kudos

Hi Joy,

Add or modify or delete the lines with the internal table XVBUV in the program MV45AFZB.

This would solve your issue.

Thank you.

Regards,

Karun.M

0 Kudos

Karen,

thanks for your help!

Joy

0 Kudos

Karen,

This is the code I've put into MV45AFZB->FORM USEREXIT_CHECK_VBAK. I'm trying to trigger incompletion if the purchase order date is initial. I've created a new incompletion procedure, Z2, which only contains purchase order date. This is still not working. My colleague suggested I just issue an error message instead of trying to get it into the incompletion log. Any suggestions?

data: wa_xvbuv like line of xvbuv.

if vbkd-bstdk is initial.

clear: xvbuv, wa_xvbuv.

wa_xvbuv-mandt = '010'.

wa_xvbuv-tbnam = 'VBKD'.

wa_xvbuv-fdnam = 'BSTDK'.

wa_xvbuv-fehgr = 'Z2'.

wa_xvbuv-statg = '01'.

wa_xvbuv-msgkz = 'X'.

wa_xvbuv-updkz = 'X'.

wa_xvbuv-fcode = 'KBES'.

wa_xvbuv-sortf = '9999'.

append wa_xvbuv to xvbuv.

clear wa_xvbuv.

endif.

Thanks,

Joy