cancel
Showing results for 
Search instead for 
Did you mean: 

Can Payer in billing document be derived from customer master

Former Member
0 Kudos

We have the following scenario :

For Customer A, payer is A as well.

Today, we update the master data and make customer B as the payer to A.

However, there are several sales orders existing in the system where the payer and sold is customer A. When these orders are billled, the billing document derives the payer from the order instead of the master data. So... all the invoices are created on customer A but we get the payments from customer B.

Is there any configuration which will make the billing document look at the customer master data and determine the payer instead of copying it from the sales order?

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

It is not possible to change the partner functions in billing document but quite possible to change in existing sale orders via BAPI_BPCONTACT_CHANGE. 

G. Lakshmipathi

Former Member
0 Kudos

Dear sorry for involving  

i have tried in sa38 and se38 but not excuting

Former Member
0 Kudos

Hi,

The BAPI "BAPI_BPCONTACT_CHANGE"  can be executed from SE37 transaction code.

You can write upload programs which can internally call this function module and update the partner details as require.

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you everyone for your replies.

Here is the reason why I am trying to do this.

We have around four thousand open sales orders in the system where the sold to party and the payer are the same customer. A master data update was made to all the customers recently updating the payer information. But this change will come into effect for sales orders created after this change is made. As the existing sales orders in the system will not get automatically updated with the new payer number, the billing documents are getting created for the old customer number.

So, the only way to correct this either by updating all the 4k orders OR by creating an enhancement in the billing program where it will fetch the payer number from the customer master rather than from the sales order.

I know I can use LSMW or Winshuttle to update the existing open sales orders but it not an option at our client. I am trying to convince our business to take this route but I am also trying to explore other options. Any ideas are welcome.

Thanks again.

Former Member
0 Kudos

Azaz/Amit

Thanks for your replies. I know I can cancel the billing document and update the partner function in the sales order.

What we are trying to do here is to avoid the situation where a user accidentally enters a wrong payer in the sales order. In such scenarios, is there a way to derive the correct payer from the master data instead from the sales order at the time of billing.

former_member216765
Participant
0 Kudos

Hi

I don't think that could be possible as the billing documents are created with reference to SO/Del and the data is being refered and maintained in different Tables VBAK, VBAP, VBRK,VBRP etc.

Also in the SO user genrally enter Sold to Party and rest of the Partners are determined from the master data maintained for the same (Program- SAPMV60A).

What your trying to acheive require excisive program and data changes in the standard progrrams and Tables involved in the entire process which is not recomended SAP practice.

former_member216765
Participant
0 Kudos


Hi

As you already have generated the billing documents, any change in the master data will not effect the existing documents.

As rightly explained by Azaz you need to cancel the existing billing document and reprocess the same so that changes in the master data could take affect.

Former Member
0 Kudos

Hi Kranthi,

For all the generated Billing documents the Payer cannot be changed, If they are very few transactions you can try the below Solution after taking the confirmation from Client.

You need to cancel the existing Billing Document and then change the Payer in the transaction and then generate the Billing Document.

For the new Billing Documents the payer should be changed to B in the transaction before generating the Billing Document.

Best regards,

Azaz.