Skip to Content
avatar image
Former Member

Can Payer in billing document be derived from customer master

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Jan 18, 2014 at 02:31 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    Jan 17, 2014 at 06:41 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2014 at 05:26 AM


    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 18, 2014 at 06:14 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • avatar image
    Former Member
    Jan 18, 2014 at 10:27 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded