cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Debit Note creation with only discount condition

0 Kudos

Hi Experts,

I have searched the SCN and posting this requirement, Please help me...

I Want to create a Debit Memo request and Debit Memo automatically with reference to Invoice. I can automate it using 'BAPI_SALESDOCU_CREATEFROMDATA' or Function module for Create Sales Order.

Now the issue is In invoice there are somany condition types like Base price, Discount, Tax, Fright.

But I want to create the debit memo request only for the Discount amount or Value. which I want to do using BAPI of FM. But when I am passing the reference Invoice details in BAPI and FM executing. System is getting Pricing procedure which is standard process and creating the Debit Memo Request..

Please Help me How to create a Debit Memo request with reference only for discount value from the reference Invoice.

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

First of all, I am not sure, why a Debit Memo Request is needed for "Discount". May be you need to give a proper explanation here. Coming to your query, did you try by having a different pricing procedure for your debit memo request where you can have the desired condition type as non-statistical and rest are statistical?

0 Kudos

Hi Lakshimipathi,

I want to Create a Debit Memo for the Discount and Tax value which I have given to the customer in commercial Invoice . Like in invoice I have given Cash discount and charged Tax. And now due to non payment of the amount I have to debit the same. I want to create the Debit memo only for the Cash discount value and Tax value with reference to the Invoice.

Kindly suggest

Thank you for response.

0 Kudos

Hi Lakshmipathi,

As per the above we have created New pricing procedure for the Cash Discount by adding New condition type for Revers cash discount and adding the exciting GST conditions, System is asking for debit memo request costing while creating the debit memo invoice and issue the error invoice is not getting posted to Accounts.

Where as I have copied the existing debit memo request and created new debit memo request document for calling new pricing procedure with Revers cash discount value and GST value. System is not asking for the Costing for existing debit memo request where as it is asking for new debit memo request which I created using the existing debit memo request. Because of which the debit memo invoice is not getting posted to accounts.

Please help which setting I missed because of which this is happening.

Answers (2)

Answers (2)

0 Kudos

Hi Experts.

As per the above we have created New pricing procedure for the Cash Discount by adding New condition type for Revers cash discount and adding the exciting GST conditions, System is asking for debit memo request costing while creating the debit memo invoice and issue the error invoice is not getting posted to Accounts.

Where as I have copied the existing debit memo request and created new debit memo request document for calling new pricing procedure with Revers cash discount value and GST value. System is not asking for the Costing for existing debit memo request where as it is asking for new debit memo request which I created using the existing debit memo request. Because of which the debit memo invoice is not getting posted to accounts.

Please help which setting I missed because of which this is happening.

VeselinaPeykova
Active Contributor
0 Kudos

I think you chose the wrong BAPI for the task.

There are limitations to referencing SD documents with BAPI, which are described in note 370988 - BAPIs in SD: Creation with reference and it has been asked and answered many times already.

In short - you should be using a different BAPI (mentioned in the note) to copy the data 1:1 and then edit the document with a change BAPI.

Of course, to be able to modify conditions via a BAPI, you need to make sure that this is permitted by customizing. Make a test via VA01/VA02 - if you cannot perform what you need from there - most probably it won't work via the BAPI either.

On a side note - you should be probably using RK, not DR (if this is OK from legislation perspective).