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.

Similar Messages

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

  • 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

  • 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

  • Error creating accounting document for a credit note

    Hi All,
    I am facing an issue while creating an accounting document for the credit note created.
    The scenario is as follows:
    Created a credit memo --> created credit note --> create accounting document
    While creating accounting document, i'm getting an error message as 'The G/L account XXXXXXXX requires an assignement to CO object'.
    Please let me know why i'm getting this error and how to overcome this issue.
    Thanks,
    Anil Kumar

    While creating accounting document,
      i'm getting an error message
    First of all, I am not clear on your above statement as in normal circumstances, once you generate a credit memo, in bacground an accounting document will also be generated.
    In your case, I believe while saving the credit memo, system throws the error to maintain CO object in which case, do the following:-
    Go to TCode KA02 enter the controlling area, give the G/L acoount No and click on Master data tab.  There  select  "Default Acc Assgmnt" tab  and enter Cost centr and save.
    Next Go to FS00, input the G/L Account and click on Edit Cost Element on top.  There click on Basic Data and for the field CElem category, maintain the required numeric value.  Now select the tab Default Acct Assgnmt and there maintain the required cost center and save.
    thanks
    G. Lakshmipathi

  • Dispute case for a credit note

    To get approvals for a customer refund, I want to use dispute cases. To make this work, I will have to create dispute cases for open credit notes from customer line items (FBL5N). However, I get an error message 'Dispute case cannot be created without receivable'
    Do I need to define a new case type to be able to create a dispute case for a credit note?
    Cheers

    Hi Vicky,
    A dispute can not only include a credit note.
    There has to be a debit accounting document in the dispute as well.
    If a customer wanted a refund you have two options:
    1 - You can dispute the original invoice or invoices, and then raise a credit note and attach that to the dispute. The customer will then pay the invoices and take the credit note.
    2 - You can create a customer disputed object. This allows you to create a dispute without reference to an invoice. You can then attach the credit note to the dispute.

  • Miro debit/credit note and subsequent debit/credit

    Dear all,
    May I know under what circumstances we use debit/credit note and
    under what circumstances we use subsequent debit/credit
    Need advice.
    Thanks

    Hi,
    A subsequent debit/credit arises if a transaction has already been settled, and a further invoice or credit memo is received afterwards.
    A subsequent debit/credit changes the total invoice value of a purchase order item; the total invoice quantity remains unchanged. Therefore, only a value-based update of the purchasing transaction takes place. There is no quantity-based
    update.
    1. Subsequent Debit :-You must enter an invoice as a subsequent debit if a purchase order item has already been invoiced and further costs are now incurred. (Example: A vendor has inadvertently invoiced you at too low a price and then sends a
    second invoice for the difference.)
    2. Subsequent Credit :- You must enter a credit memo as a subsequent credit if a purchase order item was invoiced at too high a price and you have now received a credit memo. (Example: A vendor has inadvertently invoiced you at too high a price and then sends a credit memo for the difference.)
    If you enter a subsequent debit/credit, the system suggests the entire invoiced quantity, but no value. The maximum quantity that you can subsequently debit or credit is the quantity that has already been invoiced. You can only enter a subsequent debit/credit for a purchase order item if an invoice has already been posted for this item.
    A subsequent debit/credit cannot refer to a particular invoice.
    Subsequent debits and credits are listed separately in the PO history.
    3. Credit Memo :- You usually receive a credit memo from a vendor if you were overcharged. As is the case for invoices, credit memos refer to purchase orders or goods receipts.
    You post a credit memo if too large an amount has been invoiced. When you post the credit memo, the total invoiced quantity in the PO history is reduced by the credit memo quantity. The maximum quantity you can make a credit for is the quantity that has already been invoiced.
    In the same way as the corresponding goods receipt is expected or posted for the invoice, in the case of a credit memo, the system assumes that the credit memo belongs to a return delivery or reversal of the goods receipt. This means that the credit memo is settled using the GR/IR clearing account.
    Regards,
    Pardeep Malik

  • Any BAPI for Infotype 0015(Additional Data)

    Hi,
    Can anyone provide information on BAPI for Infotypes 0015(Additional Data).
    Your help will be appreciated !!!
    Vijayanand.

    To upload data into infotype 0015
    Use HR_INFOTYPE_OPERATION to create your a wrapper BAPI. You would also have to use BAPI_EMPLOYEE_ENQUEUE and BAPI_EMPLOYEE_DEQUEUE for locking and unlocking of the record in your BAPI or program.
    Enqueue personnel number
    call function 'BAPI_EMPLOYEE_ENQUEUE'
    create 0015
    call function 'HR_INFOTYPE_OPERATION'
    Use FM :  HR_MAINTAIN_MASTERDATA to update IT 0015
    check bapi : BAPI_HRMASTER_SAVE_REPL_MULT
    Dequeue personnel number
    call function 'BAPI_EMPLOYEE_DEQUEUE'
    You could also use LSMW Tool to upload the data.
    Regards
    Vasu

  • BAPI for converting legacy case data

    Hello friends,
    I would like to know is there any BAPI for converting legacy case data to SAP CRM case.
    thanks in advance
    Rakesh

    Hi,
    use bapi 'BAPI_CUSTOMER_CREATE' to create customer and bapi
    'BAPI_VENDOR_CREATE' to create vendor.
    Regards,
    SuryaD.

  • Output for Vendor Credit Note / Debit Note / Invoice

    Dear Experts ,
    Is there a std o/p available for a vendor credit note / debit note & invoice posted through t code MIRO ?
    Regards ,
    Lakeer Bhatt

    yes there is standard output..
      go to spro > MM > logistic invoice verification >message dete > maintain message schema
         select mr0002 and double click on control data..
        here add condition type INS and save.
    while raising debit note/credit note, before saving click on goto > messages > item
    here enter condition type INS and save..
    then take print or view print preview in MR90

  • Data extraction for debit/credit indicator A & L

    Hello,
    In ECC there are certain records agains which Debit/Credit Indicators
    are A & L...How can we pull them into BW???
    Also we are getting Amount againt those records in BW but not Quantity..
    Thanks & Regards
    Shilpi Gupta

    Hi Shilpi,
                    Check your transformation / Transfer rules for quantity.
    if quanity is not mapped map quantity field from data source to your bw target field.
    hope this will help you.
    Thanks,
    Vijay.

  • Debit & credit note for vendors

    Hi,
    Please tell me how to post debit and credit note for vendors( T-code) and how to take a voucher print of debit note, Because we are not able to find  the particular  correspondence for debit note in OB78.Please assist.
    Regards,
    D

    Hi,
    Please any one help me where should I write the narration for cash journal scrren(FBCJ).If I write it in the addit text but it is not comming in the printing vouchar,
    Regards,
    D

  • Bapi for debit memo

    Hi,
       I have to create a sales order for  debit memo request.
    is there any BAPI to create debit memo.
    Thanks in advance,
    sudhakar.

    hi,
    *BUS2094    Credit memo request " OSS NOTE 93091
    *BUS2096    Debit memo request " OSS NOTE 93091
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA'
    EXPORTING
       ORDER_HEADER_IN           = l_order_header_in
       BUSINESS_OBJECT           = 'BUS2096'
       WITHOUT_COMMIT            = ' '
      CONVERT_PARVW_AUART       = ' '
    IMPORTING
       SALESDOCUMENT             = l_vbeln
       RETURN                    = li_return
    TABLES
       ORDER_ITEMS_IN            = li_order_items_in
       ORDER_PARTNERS            = li_order_partners
    in other case...........
    Use BAPI : BAPI_SALESORDER_CREATEFROMDAT2
    REPORT ZZBAPI_TEST1 .
    *===========================================================
    Start of selection
    *===========================================================
    START-OF-SELECTION.
    test of sales order with BAPI
    PERFORM SALES_ORDER_BAPI.
    *================ End of main program ======================
    *& Form SALES_ORDER_BAPI
    text
    FORM SALES_ORDER_BAPI.
    DATA : SD_HEADER LIKE BAPISDHEAD.
    DATA : BEGIN OF ITEMIN_IT OCCURS 1.
    INCLUDE STRUCTURE BAPIITEMIN.
    DATA : END OF ITEMIN_IT.
    DATA : BEGIN OF PARTNR_IT OCCURS 1.
    INCLUDE STRUCTURE BAPIPARTNR.
    DATA : END OF PARTNR_IT.
    DATA : WK_SD_DOCNO LIKE VBAK-VBELN.
    DATA: WK_RETURN LIKE BAPIRETURN.
    CLEAR : SD_HEADER , ITEMIN_IT , PARTNR_IT.
    SD_HEADER-DOC_TYPE = 'TA'.
    SD_HEADER-SALES_ORG = '1793'.
    SD_HEADER-DISTR_CHAN = '01'.
    SD_HEADER-DIVISION = '01'.
    SD_HEADER-PURCH_NO = 'Test'.
    itemin_it-hg_lv_item = '10'.
    ITEMIN_IT-MATERIAL = '000000000000001143'.
    ITEMIN_IT-PLANT = '3018'.
    ITEMIN_IT-REQ_QTY = '1'.
    ITEMIN_IT-SALES_UNIT = 'CS'.
    APPEND ITEMIN_IT.
    itemin_it-hg_lv_item = '20'.
    ITEMIN_IT-MATERIAL = '000000000000000848'.
    ITEMIN_IT-PLANT = '3018'.
    ITEMIN_IT-REQ_QTY = '1'.
    ITEMIN_IT-SALES_UNIT = 'KG'.
    APPEND ITEMIN_IT.
    itemin_it-hg_lv_item = '30'.
    ITEMIN_IT-MATERIAL = '000000000000000848'.
    ITEMIN_IT-PLANT = '3018'.
    ITEMIN_IT-REQ_QTY = '1'.
    ITEMIN_IT-SALES_UNIT = 'EA'.
    APPEND ITEMIN_IT.
    LOOP AT ITEMIN_IT.
    WRITE : / SY-TABIX , ITEMIN_IT-MATERIAL , ITEMIN_IT-PLANT
    , ITEMIN_IT-REQ_QTY , ITEMIN_IT-SALES_UNIT.
    ENDLOOP.
    CLEAR : PARTNR_IT.
    PARTNR_IT-PARTN_ROLE = TEXT-001.
    PARTNR_IT-PARTN_NUMB = '0000000004'.
    APPEND PARTNR_IT.
    CLEAR : PARTNR_IT.
    PARTNR_IT-PARTN_ROLE = 'WE'.
    PARTNR_IT-PARTN_NUMB = '0000000051'.
    APPEND PARTNR_IT.
    LOOP AT PARTNR_IT.
    WRITE : / SY-TABIX , PARTNR_IT-PARTN_ROLE , PARTNR_IT-PARTN_NUMB.
    ENDLOOP.
    CLEAR : ITEMIN_IT , PARTNR_IT , WK_RETURN..
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDATA'
    EXPORTING
    ORDER_HEADER_IN = SD_HEADER
    IMPORTING
    SALESDOCUMENT = WK_SD_DOCNO
    SOLD_TO_PARTY =
    SHIP_TO_PARTY =
    BILLING_PARTY =
    RETURN = WK_RETURN
    TABLES
    ORDER_ITEMS_IN = ITEMIN_IT
    ORDER_PARTNERS = PARTNR_IT
    ORDER_ITEMS_OUT =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CCARD =
    EXCEPTIONS
    OTHERS = 1.
    WRITE : / 'sy-subrc = ' , SY-SUBRC.
    IF NOT WK_SD_DOCNO IS INITIAL.
    WRITE : / WK_SD_DOCNO , 'registerd'.
    ELSE.
    WRITE : / 'incorrect'.
    WRITE : / WK_RETURN-TYPE , WK_RETURN-CODE , WK_RETURN-MESSAGE.
    WRITE : / WK_RETURN-LOG_NO, WK_RETURN-LOG_MSG_NO,
    WK_RETURN-MESSAGE_V1.
    ENDIF.
    ENDFORM. " SALES_ORDER_BAPI
    Message was edited by:
            Durgaprasad Kare

  • Check for duplicate Credit Note

    Hi All,
    Is there any way to block duplicate Credit note (Debit note) for Vendor just like we can block invoice by placing check on 1. Co. Code, 2. Invoice Date and 3. Reference check. 
    For my client, many times a credit note is getting processed twice or more. Is there any way we can block them by using say Credit note no. for example.
    Rg
    VK

    Hi Vijay,
    Credit Note dublicate check works in similar fashion as Invoice. You just needs to activate duplicate invoice check in Vendor Master data.
    An entry is created in table BSIP based on which this dublicate check is performed. In case Vendor Master Data is not updated then this table is not updted and checked for duplicacy.
    I hope it helps. Do revert back if there are still issues.
    Regards,
    Binay Agarwal

  • 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

Maybe you are looking for

  • Can't Reinstall OSX Lion on a new HD on my Mac Pro????

    I have a Mac Pro Desktop that i bough on ebay and just got a new HD500Gb so I want to use the 500GB HD as my primary HD and use my current 320GB as my secondary. I did the boot sequence by holdin the opt/alt key at start up picked recovery option wen

  • Table Updation (J_1IEXCDTL)

    Hi Experts, After creation of Excise Invoice by J1IIN, Excise duty amounts are getting updated in table J_1IEXCDTL but below fields are not updated. 1. BED percentage, ECS percentage and HEdCess Percentage. (BEDRATE, ECSRATE, EXADDRATE1) 2. Net Weigh

  • Setting source with a MediaContainer

    I agree with Jesse Warden in another thread where he complained about the removal of MediaPlayerSprite. That being said I was able to easily change my player to work with Sprint 10. The HelloWorld example is helpful, but the video source needs to be

  • Getting message for every  record while pressing the down arrow

    Hi, when i query the form and when I am going through the records by pressing the down arrow of the keyboard I am getting the message 'Do you want to Save the records' for every record. How to avoid the message? I developed the form in oracle applica

  • Issue with Slim and OpenBox

    Hi to everyone: I've installed Slim + OpenBox in one machine PIII-450 MHz., 256 MB RAM, HD 8.5 GB. I've one issue now: when the system is starting, I can see the login prompt at the console, after one black screen by 20 seconds and appears the screen