Skip to Content

Auto Debit Note creation with only discount condition

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 27, 2017 at 07:02 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded

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

  • Oct 31, 2017 at 11:55 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 07 at 04:45 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded