cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for Credit Management - VF01 Billing document

former_member377333
Participant
0 Kudos

Hi Experts,



We have a credit check control at Sales Order level and Its working fine.

Our pricing structure is at Sales Order level. And some of material having Batches based MRP.


So that our Sales Order price is getting change(increase) at the time of Billing creation (after the Delivery process).


For example:


Sales Order Value     : 1000 (credit check released automatically)

Invoice Value             : 1100 (after batch picking MRP changed) ---- here we need to check the credit control again

                                ---------------

difference Value        :  100     

                               ---------------


How to handle this, pl help us.


Regards,

Sarran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Saran,

Can you elaborate

1. Why do we need to put a credit block when the goods are delivered?

2. If the credit block is applied at invoice level and additional amount is not approved by credit rep then....?

Thanks,

Ram

former_member377333
Participant
0 Kudos

Hi Ram,

In our company practice/procedure, we are delivering the goods along with Billing Document only.

So that we need credit block at Billing level.

Hi Ravin NK,

Can you tell me the User exit name.

Regards,

Sarran

former_member212707
Active Participant
0 Kudos

Sarran,

You should be able to do the price check in one of the following exits

1, SDVFX010- User exit item table for the customer lines

2. SDVFX011-  Userexit for the komkcv- and kompcv-structures

However you might want to note that there is no "Credit Block" provided by SAP for billing documents. You can only put posting blocks on the billing document or not let the billing document create at all based on the code.

These could potentially cause issues in A/R reporting.

Thanks,
Ravin

former_member377333
Participant
0 Kudos

Dear All,

We have solved this scenario by  developed the logic in INCLUDE: RV60AFZZ as

SELECT SINGLE SKFOR

          INTO LV_SKFOR

       FROM KNKK

       WHERE KUNNR = XVBRK-KUNAG

       AND KKBER = '1000'.

      IF SY-SUBRC = 0.

          LV_TOTAL = LV_SKFOR + XVBRK-NETWR.

          IF LV_TOTAL > 0.

             MESSAGE 'Delivery blocked for Billing as a result of Credit Check' TYPE 'E'.

          ENDIF.

      ENDIF.

Thanks for your support,

Regards,
Sarran

Answers (3)

Answers (3)

former_member212707
Active Participant
0 Kudos

Sarran,

In standard SAP credit check can be controlled at the Order, Delivery and PGI levels and not at the time of billing. This is because at this stage the goods have most likely already been shipped to the customer and it does not make sense to block the creation of invoice.

For your case, i would think Userexit route is the way to go. The credit price is captured for each line item at VBAP- CMPRE field. In the user exit you will have to compare the net value of the invoice to that of the sum of all the credit prices in the sales order or the net value (whatever suits your req best) and proceed to write your code to control the creation of billing document.

Thanks,
Ravin

venu_ch8
Active Contributor
0 Kudos

Dear

At billing level it is not possible bz we can control blocks in ORDER LEVEL---Delivery ---P.G.I

So we cant control in billing level ,

if you want to maintain maintain billing blocks in order level  -- or Order type level ( vov8)

But it will apply to all documents either price increased or not

Legends comment plz i am wrong ..

former_member187610
Active Participant
0 Kudos

Hi Sarran,

This is not a standard practice in SAP.

But we can achieve this through copy control option (T.Code VTFL). In item category select the Pricing Type as "C".

Regards,

Sharan

former_member377333
Participant
0 Kudos

Hi Sharan,

Thanks for your reply.

Already we have a Pricing Type as "C"

Regards,

Sarran