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: 

Take Control from Sales Order item data to Additional Data B Tab At Item

Former Member
0 Kudos

Additional Data B TAB is activated with screen 8459 (SAPMV45A) in Sales Order for entering Minimum quantity field. Also made this field mandatory in above screen. I tried putting validation for minimum quantity field in SAPMV45A (8459) & working when user go top that TAB. I have two issues in this:

1) Is it possible to take cursor to Customized screen after entering required sales data. That will only help user by taking control of screen to Customized screen to enter proper minimum quantity. Because of this functioning this entry behave like optional.

2) Also It remains for input in display Sales Order transaction also.

can any on suggest me how to pass control from sap std screen (through Exit) to Customized screen.

thanks,

Abhay

5 REPLIES 5

former_member219399
Active Participant
0 Kudos

Hi,

1. After doing the validation check Fcode to PZKU.

2. In PBO of ur screen 8459, write as

if sy-tcode = 'VA03'.

loop at screen.

if screen-name = 'your field name like mara-matnr'.

screen-input = 0.

modify screen.

endloop.

endif.

Hope this will help you.

with regards,

Vamsi

0 Kudos

thanks lot ,Vamsi

W.r.t ur suggestion now mostly problem is almost gone on last stage.

Thanks once again.

0 Kudos

Hi Abhay,

Its not check Fcode, change Fcode to PZKU. Sorry for the confusion.

ie.

if menge some conditon.

else.

"if condition failed,

fcode ='PZKU'.

endif.

with regards,

Vamsi

Former Member
0 Kudos

All screen validation will work when user go on to Additional Data B Tab At Item level. If i gave message when user enter item data in normal screen after checking entry in customized field then it become users decision whether to enter it or not.

So it works like optional.

Control does not go directly to Customize screen to enter required minimum quantity after entering necessary Item data in normal screen.

Is there any way to pass my message into incompletion Log or take control to Additional Data B Tab after message?

0 Kudos

I am not sure if there is any exit available which forcefully takes the user to additional screen, but still you can validate the minimum qty field is filled or not.

Try putting the validation for the field of Minimum Qty in user exit USEREXIT_CHECK_VBAP of include MV45AFZB.

Hope this would resolve your problem.

Regards,

Sandip Kamdar