05-17-2011 7:37 AM
Hi Folks,
In VA01 we have a tab with Additional data B in this we are filling some customized fields(Checkboxes). If user is saving the sales order without filling customized fields in additional B, then may be from any of the tab(Sales, Accountings, Conditions shipping etc) it should bi-pass the screen to Additional data B with error message saying fill in all details.
Basically we want to call additional data B screen from any tab of sales order. is this possible ??
We have user-exit - MV45AFZZ.
Regards
VEnK@
05-17-2011 7:42 AM
Hi,
You can go to the screen exit. There you can put the check for error message.
vikas
05-18-2011 12:45 PM
Hi,
For that u have to code in PAI.
i.e For Header level Addition Data B : Screen No. 8309 and
for Item Level Additional Data B: Screen No. 8459.
in prgram SAPMV45A.
for both screen screen u have implement PAI in Include Program MV45AIZZ. In that validate u field containg data or not.
If fields are initial the raise error with message type E.
Hope ur problem is solved..
Regards
Dhiraj Dangore
05-18-2011 2:49 PM
Header level or item level? I'm assuming the requirement includes some logic with the checkbox analysis, otherwise you would simply populate the checkboxes during save? Or do you just need the user to check the box to prove they've been to the tab? From the header and item check user exits in MV45AFZB, you can trap the 'SICH' (Save) action and determine whether or not the document is complete with additional logic other than what's configured. You can add fields to the incompletion procedure table (XVBUV), control the messaging, and direct the user to the appropriate screen.
05-18-2011 3:20 PM
First answer is NO....
if you want to call additional data B from any tab, you would have to control the screen sequence which is not recommended.
As Brad said, you can add the fields into incomplete procedure. I am not sure about adding custom fields into incompletion procedure.
You can just display the error message by checking fcode 'SICH' from additional data B screen itself.
I would like to hear if there is an option of calling the additional data B upon error..... I tried it in ECC 5.0 but no luck without controlling SAP Screen sequence control.