Skip to Content
0

Billing / delivery document should not processed further without attach pdf file in VA02.

Jan 16 at 04:43 AM

81

avatar image
Former Member

we have a requirement to attach .pdf file in VA02 through service for objects for sales order.

Billing / delivery document should not processed further without attach pdf file in VA02.

Please help to how to achieve above requirement using user exit / BADI.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Veselina Peykova
Jan 16 at 09:01 AM
1

Speaking without looking in a system, I would consider making use of user statuses in SD documents (setting the status allowing delivery creation should be via custom code) and manual setting of this status by end users would be restricted via authorizations.

Edit: I hope that the business is aware that checking for teh existence of a pdf attachment is not the same as ensuring that the correct document is attached. :)

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Exactly. Rather silly requirement that can be worked around too easily.

0
Rajkumar Narasimman Jan 16 at 12:15 PM
0

Hi Sunil,

During sales order creation or change operation, hope we can assign delivery block(VBAK-LIFSK) and billing block(VBAK-FAKSK) in above exit MV45AFZZ based on the condition whether the document is attached or not. By doing so, the system won't allow delivery(VL01N) and billing(VF01) process.

Delivery and BIlling Block in Sales Order(VA02) under Sales Tab:

Regards

Rajkumar Narasimman


Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Jan 16 at 07:01 AM
0

Did you try to use the classic user exit USEREXIT_SAVE_DOCUMENT_PREPARE (MV45AFZZ) to check for attachment(s) using some method like CL_BINARY_RELATION=>READ_LINKS (not bypassing buffer)

  • Setting some status in the VA02
  • Checking it in VF01/VL01N/etc.
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 16 at 08:15 AM
0

User Exit MV45AFZZ is used only for sales order creation but we need at time of Billing / delivery document save.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 23 at 02:34 AM
0

Yes but in MV45AFZZ how to know document is attached or not. so that we can assign delivery block(VBAK-LIFSK) and billing block(VBAK-FAKSK).

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Sunil,

Check the internal table XDRAD inside exit USEREXIT_SAVE_DOCUMENT_PREPARE (MV45AFZZ) whether the attachment is available or not.

If the document record is available inside XDRAD, as told before set the delivery block(VBAK-LIFSK) and billing block(VBAK-FAKSK).

Regards

Rajkumar Narasimman

drad-debug.png (50.6 kB)
0