cancel
Showing results for 
Search instead for 
Did you mean: 

VF01 Invoice

Former Member
0 Kudos

Hi,

I need to validate profit centers/cost centers during invoice creation. If any of the validations fail, I should be able to save the invoice but block it from posting to accounting? How do I do this? Is there any standard function module available to block invoice from posting to accounting?

Any input will be greatly appreciated.

Regards,

Sarita.

Accepted Solutions (1)

Accepted Solutions (1)

rmazzali
Active Contributor
0 Kudos

You can use the FI validations (tcode OB28, ask a FI consultant for this).

In this way you can save the SD invoice without posting it if something is wrong.

You can also use SD enhancement SDVFX008 to check the invoice and block it during the posting.

pls. reward if helpful

regards

Roberto

Former Member
0 Kudos

Robert,

The requirement was driven by functional consultant. I did look at the user exit. After validating cost center and profit center in this user exit, should I issue a hard stop error to prevent from posting to invoice? Or is there a specific field that I need to set to block it from posting to accounting?

Regards,

Sarita

Answers (2)

Answers (2)

Former Member
0 Kudos

In SD, you cannot validate by saving the document alone. The accounting entries will be reflected only after document is released to accounts.

Incase if profit centre is maintained, then it is important to maintain profit centre in material master. If you do not maintain profit centre, then the process will go upto billing document & also save the same, but will not release to accounting. If such a situation is encountered, then there are 2 options to resolve:

1. reverse the whole cycle i.e cancel Billing --> Cancel Post Goods issue --> Cancel Delivery --> Cancel Order & then update the profit centre in material master.

2. with a help of Abaper, force the profit centre in billing document.

Regards,

Rajesh Banka

Former Member
0 Kudos

Hi Sarita,

In addition to transaction code <b>OB28</b>, you would have to build the Validation using transaction code <b>GGB0</b>.

I hope the above helps.

Do not forget to award the points please.

Regards,

Jacob