on 06-04-2014 12:21 PM
hi all,
I need to validate Packaging status at delivery header whether its complete or not , after pressing PGI button i am displaying desired error message in user exit userexit_save_document_prepare for program MV50AFZ1 but after giving required error message it also shows an additional message Risk of posting several mat.documents for one delivery->long text
then it takes me out of vl02n
how can avoid this message and stay at vl02n
Thanks & Regards
Rahul
Hi ,
I found the solution for Risk of Posting several mat.documents for one delivery ->long text error message at PGI .
iam mentioning below some step by which you can validate and avoid aborting the transaction .
Solution
To define and check user conditions, user exits are available to you in incompleteness processing. To create a user-defined incompleteness check, proceed as follows:
a) Call Transaction SE11 for the dictionary maintenance.
b) Enter the name of the V50UC_USER structure and select 'Change'.
c) In the overview screen of the structure, select the function 'Edit ->New fields'.
d) Enter the name of the new field (here, for example CUSTOM) and assign the UCD_USER_EXAMPLE data element.
e) Activate the structure.
The aim of this field definition is to activate the user-defined check in Customizing of the incompleteness control. Furthermore, the field name of the structure for the creation of the name of the FORM routine in which the check is defined is used.
In our example, the form routine must therefore be called V50UC_CHECK_CUSTOM.
If the document or the item is checked as incomplete, fill the V50UC-CUSTOM field with SPACE. If the document or the item is checked as complete, fill the field with X or another symbol (also refer to the delivered example routines V50UC_CHECK_EXAMPLE),
a) Call Transaction OVA2 to maintain the incompleteness control.
b) Assign the V50UC-CUSTOM field to an error schema at header level or at item level of the delivery (Group G or H), depending on whether you want the check to refer to the entire document or only to individual items. If the check occurs at item level of the delivery only the respective item is regarded as incomplete when the check fails. Note that checks return undefined results when they are included in the item data, when they are assigned to an error schema at header level.
c) Assign a status group, which contains the follow-on functions that you want to stop in the incompleteness case, to the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Rahul,
I am stuck on step 1.3 what should insert on program include FV50UZXX subroutine FORM_V50UC_CHECK_CUSTOM, is it like this? :
FORM V50UC_CHECK_CUSTOM .
V50UC-CUSTOM = 'X'. "complete
V50UC-CUSTOM = ''. "uncomplete
ENDFORM.
and what should I add in my script that's in MV50AFZ1 ? and i don't really understand how in section 1.5, can you please explain and include a picture or is there a step in video format?
Regards,
Darma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Rahul Dubey,
Good informative thread.
Really very nice that you updated the forum too--every member has to learn this quality from you.
Normally structure will holds data only during transaction...so
can it be useful in Incompletion schema..???
Let me try this method with my Abaper...
Anyway thanksagain for sharing..
Phanikumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the following notes:-
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.