Bapi for debit/credit memo creation

Dear all,
I am using the BAPI_SALESORDER_CREATEFROMDAT2 for creating a credit/debit memo, the following error is displayed.
"Unpermitted Combination of Business object BUS2032 & Sales Doc Category type K"
Could you please provide me a solution and let me know if there are any BAPIs to create credit/debit memos.
Thanks in Advance.
Regards,
Raj

Raj you can try with these also:
use...
'BAPI_CRED_MEMO_CREATEFROMDAT2'
data: con_cr_memo_bus_obj like BAPIUSW01-OBJTYPE value 'BUS2094'.
CALL FUNCTION 'ZBAPI_CRED_MEMO_CREATEFROMDAT2'
EXPORTING
ORDER_HEADER_IN = bapi_hdr
business_object = con_cr_memo_bus_obj
convert = 'X'
IMPORTING
SALESDOCUMENT = bapi_salesdoc
TABLES
return = bapi_ret_tbl
ORDER_ITEMS_IN = bapi_itm
ORDER_PARTNERS = bapi_prtnr
ORDER_ITEMS_inx = bapi_itm_out
order_schedules_in = bapi_schd_lin
order_text = bapi_text.
AND in the cloned ZBAPI above in SE37/80, add this Importing parameter: BUSINESS_OBJECT LIKE BAPIUSW01-OBJTYPE
Please have a look in older topics:
<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="95866"></a>
<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="82006"></a>
Also:
Did you try BAPI_INCOMING_INVOICE_CREATE with DOC_TYPE (CREDIT MEMO) field in BAPI_INCINV_CREATE_HEADER.
Amit.

Similar Messages

  • BAPI for subsequent credit memo in MIRO transaction

    hi,
    i need to upload the data for subsequent credit memo in MIRO transaction using BAPI.
    Is there any BAPI for subsequent credit memo in MIRO transaction?
    Thanks & regards
    Prajwala

    Hi,
    I am not 100 percent sure but try this BAPI:
    BAPI_INCOMINGINVOICE_CREATE.
    Regards,
    Rahul

  • BAPI for  Invoice Credit Memo

    Hi Guys,
    Can you plz help me which BAPI is used  for Invoice credit memo.
    Thanks and regards
    Praveen

    use...
    'BAPI_CRED_MEMO_CREATEFROMDAT2'
    data: con_cr_memo_bus_obj like BAPIUSW01-OBJTYPE value 'BUS2094'.
    CALL FUNCTION 'ZBAPI_CRED_MEMO_CREATEFROMDAT2'
    EXPORTING
    ORDER_HEADER_IN = bapi_hdr
    business_object = con_cr_memo_bus_obj
    convert = 'X'
    IMPORTING
    SALESDOCUMENT = bapi_salesdoc
    TABLES
    return = bapi_ret_tbl
    ORDER_ITEMS_IN = bapi_itm
    ORDER_PARTNERS = bapi_prtnr
    ORDER_ITEMS_inx = bapi_itm_out
    order_schedules_in = bapi_schd_lin
    order_text = bapi_text.
    AND in the cloned ZBAPI above in SE37/80, add this Importing parameter: BUSINESS_OBJECT LIKE BAPIUSW01-OBJTYPE
    Please have a look in older topics:
    MWST taxcondition missing bapi_salesorder_createfromdat2
    sales order with reference to quotation
    Message was edited by: kishan negi

  • Bapi for Debit/Credit Note data

    Hi All,
    Can someone help me finding an standard BAPI for getting the Debit/Credit note history of a customer.
    Thanks in Advance,
    Abhi.......

    Raj you can try with these also:
    use...
    'BAPI_CRED_MEMO_CREATEFROMDAT2'
    data: con_cr_memo_bus_obj like BAPIUSW01-OBJTYPE value 'BUS2094'.
    CALL FUNCTION 'ZBAPI_CRED_MEMO_CREATEFROMDAT2'
    EXPORTING
    ORDER_HEADER_IN = bapi_hdr
    business_object = con_cr_memo_bus_obj
    convert = 'X'
    IMPORTING
    SALESDOCUMENT = bapi_salesdoc
    TABLES
    return = bapi_ret_tbl
    ORDER_ITEMS_IN = bapi_itm
    ORDER_PARTNERS = bapi_prtnr
    ORDER_ITEMS_inx = bapi_itm_out
    order_schedules_in = bapi_schd_lin
    order_text = bapi_text.
    AND in the cloned ZBAPI above in SE37/80, add this Importing parameter: BUSINESS_OBJECT LIKE BAPIUSW01-OBJTYPE
    Please have a look in older topics:
    <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="95866"></a>
    <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="82006"></a>
    Also:
    Did you try BAPI_INCOMING_INVOICE_CREATE with DOC_TYPE (CREDIT MEMO) field in BAPI_INCINV_CREATE_HEADER.
    Amit.

  • BAPI for vendor credit memo posting by FB65

    Hi guys,
    I need a BAPI to post vendor credit note by FB65.
    I am trying BAPI_ACC_DOCUMENT_POST, but I cannot find the fields to fill with the information we input at FB65 Payment tab, such as: Inv. Ref (document, year and item ).
    Could anybody help me?
    Cheers,
    Karla.

    HI ,
    Please Find below the relevant code to Fill the Fields while calling the BAPI for FB65
    step1.
    First of all fill the wa_bapiheader.
    *header data
        wa_bapiheader-username = sy-uname.
        wa_bapiheader-comp_code = wa_final-bukrs.
        wa_bapiheader-doc_date = sy-datum.
        wa_bapiheader-pstng_date = sy-datum.
        wa_bapiheader-doc_type = c_blart.
        wa_bapiheader-ref_doc_no = 'GROWPAY'.   "Can be the refrence text
        w_waers = wa_final-waers.
    Step2.
    Fill this internal table. i_currencyamount  and i_accountgl.
    i_final will be the Internal table conating all the Relevant data for Posting the Document.
    Loop at  i_final into wa_final.
    ADD 1 TO w_acc_lno.
        wa_accountgl-itemno_acc = w_acc_lno.        
        wa_accountgl-gl_account = wa_final-saknr.    "G/L Account
        wa_accountgl-plant = wa_final-werks.             " Plant
        wa_accountgl-costcenter = wa_final-kostl.       " Cost Center
        wa_accountgl-cond_type = wa_final-knumv.    "From EKKO for the Purchase Order
        wa_accountgl-po_number = wa_final-ebeln.    " Purchase Order no
        wa_accountgl-po_item = wa_final-ebelp.         " Line item in PO
        APPEND wa_accountgl TO i_accountgl.
        CLEAR : wa_accountgl.
        wa_currencyamount-itemno_acc = w_acc_lno.
        wa_currencyamount-currency = wa_final-waers.
        wa_currencyamount-amt_doccur = wa_final-kbetr.
        w_sum = w_sum + wa_final-kbetr.
        APPEND wa_currencyamount TO i_currencyamount.     " G/L line item
        CLEAR : wa_currencyamount.
    *item  data
          wa_accountpayable-itemno_acc = 1.
          wa_accountpayable-vendor_no = wa_final-lifnr.
          APPEND wa_accountpayable TO i_accountpayable.
    *Amount for the vendor line item.
          CLEAR : wa_currencyamount.
          wa_currencyamount-itemno_acc = 1.
          wa_currencyamount-currency = w_waers.
          wa_currencyamount-amt_doccur = 0 - w_sum.
          INSERT  wa_currencyamount INTO i_currencyamount INDEX 1.
    Step 3.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
              EXPORTING
                documentheader = wa_bapiheader
              TABLES
                accountgl           = i_accountgl
                currencyamount = i_currencyamount
                accountpayable = i_accountpayable
                return                 = i_result_out.
    i_result_out will conatin the messages returned by the BAPI.
        based on i_resuklt_out that is if the posting is Successful....call commit
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
                     Wait = X.
    Endloop.
    I hope the above code may solve your problem....Thanks
    Regards ,
    Sonu Krishna.
    Edited by: Sonu Krishna PV on Aug 6, 2009 11:03 AM

  • Bapi for cuatomer credit memo  f-27

    which bapi i should use in order to create cuatomer credit memo. F-27
    and how.

    Try to use this BAPI : BAPI_SALESDOCU_CREATEFROMDATA1 with sales order type 'CR'.
    Hope this link [Create credit memo request]helps you.Please check..
    Thanks,
    Manjula

  • Allow manual price entry in Debit/Credit memo request but not in STD Order

    The same pricing procedure is used for Standard order and Debit/Credit say ZRVA01.
    All condition types in ZRVA01 is set to "D" - not possible to process manually in V/06 since business requirement is not allow for manual pricing in sales order creation.
    When the Debit/Credit note is created(despite of create w/ or w/o reference to billing document), we need to have the user be able to overwrite the price value, able to delete condition type Surcharge, Discount since in some cases for the credit note, the original price might be too high and we only need to credit the customer for the wrong price.
    Question is how to allow 'no limitation'  (change with can be made, field Manaual entries in V/06) for all condtion types in pricing procedure but only for Debit/Credit memo request ?

    Thank you all, but if I create new condition to allow manual, how could I overwrite or delete some non relevant condition type in credit note
    i.e. in STD order we have ZPR0 (base price), ZD01(discount), ZS01(surcharge)  and we found out  that the ZPR0 and ZS01 was over charged, hence, we need to issue the Credit note to the customer, when create a credit memo request, the user will be able to change the value in ZPR0 and ZS01 and be able to delete ZD01 (as it is non relevant for credit note). How such the new condition type would applied?

  • Vendor Credit Memo creation in SAP via IDOC Interface (Inbound)

    Hello Team,
    I have a client requirement to create Vendor Invoices & Credit memo via Idoc Interface. Iam using INVOIC02 idoc type for posting Invoices and could able to create the invoice successfully. For credit memo , I'm aware that we can use the same idoc type (INVOIC02) and need to pass CRME value for the segment field BSART.
    What i need is a sample Inbound INVOIC02 idoc file for credit memo to identify the required fields for successful credit memo creation.
    Regards,
    Vijay

    Hello Team,
    I have a client requirement to create Vendor Invoices & Credit memo via Idoc Interface. Iam using INVOIC02 idoc type for posting Invoices and could able to create the invoice successfully. For credit memo , I'm aware that we can use the same idoc type (INVOIC02) and need to pass CRME value for the segment field BSART.
    What i need is a sample Inbound INVOIC02 idoc file for credit memo to identify the required fields for successful credit memo creation.
    Regards,
    Vijay

  • Need API for Credit Memo creation-R12

    Hi All,
    I am working on R12 Implementation process.  I have a requirement for creating the "Credit Memo" using API.
    Could you please any one provide the API for Credit Memo creation process.
    Thanks,
    LSP

    Hi,
    Please refer the following links:
    http://www.betteroracle.com/2012/08/ar-api-create-credit-memo-r12.html
    http://easyoracleapps.blogspot.com/2011/08/creating-credit-memos-and-appling-these.html
    http://prasanthapps.blogspot.com/2011/05/credit-memo-creation-via-api.html
    Googling will help you indeed
    Rgds,

  • Help - Debit & credit note creation scenarios.

    can anyone help me learning Debit & credit note creation scenarios.any online manual can be of much helpful.immediately required.
    thanks in advance.
    Sincerely
    Ajith.

    Hi Ajith,
    Check this out
    Re: Need to know a BAPI for Debit Note Creation
    BAPI for credit/debit memo?
    Regards,
    Santosh

  • Credit Memo Creation - Sold-to-party / Ship-to-party fields

    I am trying to create a SD Credit memo document.
    From the thread Credit Memo Creation I understand that  the BAPI BAPI_SALESORDER_CREATEFROMDAT2  cant be used and instead I gotta use the FM SD_SALESDOCUMENT_CREATE for this purpose.
    On this backdrop, I am trying to pass sold-to-party / ship-to-party values into this FM.
    But, in the structure SALES_HEADER_IN type BAPISDHD1, I couldnt find the fields to pass these values.
    Please advise the name of the fileds/structure where I should pass shiptoparty and soldtoparty values.
    In VA01 screen, you could see these fields.
    Thanks,
    Message was edited by:
            Jay
    Message was edited by:
            Jay

    jay,
    check the below link for couple of sample codes...
    Re: BAPI_SALESDOCU_CREATEFROMDATA, create credit memo request
    May be helpful for you
    ~~Guduri

  • BAPI to create credit memo requests in SAP

    Hi All,
    I have a requirement to create Credit memo request in SAP SD. I'm trying to use the BAPI which is used for Sales order creation - BAPI_SALESORDER_CREATEFROMDAT2 since credit memos are also sales orders of diff. sales document type. However, the BAPI throws an error as follows
    "Unpermitted combination of business object BUS2032 and sales doc. category K". 
    Does this mean that the business object BUS2032 does not support creation of cerdit memo request ? If yes, can anyone suggest an alternate BAPI  to be used to address this requirement ?
    Thanks,
    Venkat.

    Hi Venkatesh,
    Thanks you for your post, your post has helped me a ton in my work, Infact I was working on BAPI to
    Create Credit Memo request i.e BAPI_SALESORDER_CREATEFROMDAT2 as expected i got the same error as "Unpermitted combination of business object BUS2032 and sales doc. category K" and i tried on  other BAPI it worked, Just i need to know BUS2032 doesn't support Credit Memo Request, How we can find it
    to what Sales document it support?

  • Due date calculation for the credit memo with invoice reference.

    Hi,
    When we create the credit memo with reference to invoice, the due date for the credit memo is getting copied from Invoice. In this case if the invoice is due on 31.12.2008 and the credit memo is created on 10.09.2009, then the credit memo due date is appearing as 31.12.2008. It should be 10.09.2009 as per the setting in VOFA billing type customisation in "Credit Memo w/vldt".
    I would like to know how to customise the below requirement.
    If the reference invoice is due after the credit memo creation, the the credit memo should due as per the invoice date.
    If the invoice due is past & then the credit memo due date should be Immediate i.e. Due Immediately.
    Thanks in advance for help.
    Regards,
    Nithin

    I doubt there is such option. From the past projects I do remember that we made a change in the form to print the document date as 'Due Date' for credit memos. Credit memos were paid at once when they were processed and I think that payment term was copied from the original invoice, which made their due date far in future.

  • You cannot supply payment terms for your credit memo

    Hi,
    My req is as per below,
    1) I would like to apply payment terms on credit memo screen throgu auto invoice creation.
    When i tried to update ra_interface_lines_all.term_id then i got error message : You cannot supply payment terms for your credit memo
    Can someone gudie me.How is it possible?
    Thaks,
    Raj
    Edited by: RajPatel on Sep 23, 2009 8:33 AM

    Hi octavio,
    Thanks for your valuable input.
    You are right and also I found from metalink...
    Subject: 11.5-AR-How Can You Enter Payment Terms For Credit Memos
    Doc ID: 249547.1 Type: HOWTO
    Modified Date: 16-DEC-2003 Status: PUBLISHED
    goal: How can you enter payment terms for Credit memos
    fact: Oracle Receivables 11.5
    fix:
    Payment terms cannot be used in Credit memos. This is standard functionality.
    The trx_date/gl_date of the credit memo transaction is the date which is
    considered as the due date of the credit memos. This is the current
    functionality.
    Thanks,
    Raj

  • Debit/Credit memo

    I am confused whenever i come across the term Debit/credit.... here in MM point of view where we use this Debit memo and credit memo..
    I am new to this pls tell me the following steps how to do that debit/credit memo..

    Hi
    DEBIT MEMO
    The Debit Memo process is used for applying a debit to a customer account once a determination has been made that a customer has been undercharged as a result of a pricing or sales tax rate error. A Debit Memo Request is then created with the amount to be Debited, and placed on a billing block for review. It must then be released to become billing relevant, and appear on the billing due list. Periodic billing process creates a Debit memo to be sent to the customer, and posts an accounting document.
    .CREDIT MEMO
    You post a credit memo if too large an amout has been invoiced ,the total invoice quantity in the p.o history is reduced by the credit memo quantity
    A transaction that reduces Amounts Receivable from a customer is a credit memo. For eg. The customer could return damaged goods. A debit memo is a transaction that reduces Amounts Payable to a vendor because, you send damaged goods back to your vendor.
    Credit memo request is a sales document used in complaints processing to request a credit memo for a customer. If the price calculated for the customer is too high, for example, because the wrong scale prices were used or a discount was forgotten, you can create a credit memo request. The credit memo request is blocked for further processing so that it can be checked. If the request is approved, you can remove the block. The system uses the credit memo request to create a credit memo.
    Thanks

Maybe you are looking for

  • Free space issue! Help!

    Hello there, I am having a little bit of an issue with free space on my start-up disk. For some reason, the free space keeps going away day after day. Now, this is what we have done: Deleted files on desktop, deleted emails, deleted iTunes art-work,

  • Batch input messages

    hi experts how can i find out what is the meaning of the message numbers in batch input operation, and what is the meaning of the message type. thanks amit

  • How to disable edit qury in Query Manager.

    Hi, We written query and normal user don't want to edit query only they have to execute the query. in authorization setup under Extension Tools  we have only Define Formatted Search and Manage User Fields and Execute Commands.how we can disable to ed

  • Why are blue questions marks coming up where images should be in Mail, and in Safari.

    I have reset safari and my wifi? I have a iMac if that helps. IF you have any idea please help me.

  • Create OS directory and write file from BLOB

    Hi, i want to create via a stored PL/SQL procedure a directory in an OS filesystem (Windows NTFS) and afterwards write a file (Type: DOC, PDF, ...) from a BLOB table to that directory. The filesystem is one to the node (where the database instance 10