INVOICE or CREDIT MEMO in BAPI  'BAPI_ACC_INVOICE_RECEIPT_POST'

Hi,
I use BAPI   'BAPI_ACC_INVOICE_RECEIPT_POST' 
I search the parameters field in the BAPI ' BAPI_ACC_INVOICE_RECEIPT_POST'  to fill  the type of document   " INVOICE or CREDIT MEMO. "
best regard

Hi,
GOTO T-code VOFA and search for your valid document type,and give the suitable document type.
Please let me know if you still have any issues.
Thansk and regards,
Rajeshwar

Similar Messages

  • BAPI for Vendor Invoice and Credit memo - FB60

    Hi
    Iam using BAPI_ACC_DOCUMENT_POST for creating Vendor invoice and Credit memo ..Could you please tell me which fields to be populated on the below structures?
    what will be the value i should use for BAPIACHE09-BUS_ACT...RFBU or RMRP?
    ACCOUNTPAYABLE ( BAPIACAP09)
    ACCOUNTGL(BAPIACGL09)
    CURRENCYAMOUNT( BAPIACCR09)
    Only the fields which needs to be populated on these structures when we do FB60 invoice and credit memo using bapi..
    Thanks in advance
    Govi

    Hi,
    Populate in Document_header : (User name, Comp code, Doc DAte, Doc type, Ref Doc No)
                       Account GL : ItemNo_Acc, GL Accuont, REf Key1, Refkey2, Refkey3, Account Type = 'A', Doc Type, Comp code
                                              Account_number, Cost_center
                       Account Payable: ItemNo_Acc, Vendor_No, Rey_key1, Ref_key2, Ref_key3
                      Currency Amount: Item No_Acc = 2, 1
                                                    Curr = USD, USD
                       Amt_Doccur 
    At last use commit bapi.
    Thanks,
    Krishna

  • Reg: A/R Invoice and Credit Memo

    Hi Experts,
    While I'm trying to copy an A/R Invoice to credit memo, which status is open-printed, the 'Copy To' field of A/R Invoice is unavailable. Also it was possible for me to create A/R credit memo for that same A/R Invoice, using 'Copy From' option of Credit Memo....! What may be the reason? I'm using SAP BOne 2005B Version.

    If the Copy from worked and the Copy to did not, it seems like a product issue.
    Check to see if this is the case with all the Invoices and the frequency of its occurance.
    You might perhaps need to check if you are on the latest patch and if not has this issue been reporteed and fixed in any later pataches
    Suda

  • How to change the Quantity in the Credit Memo using BAPI

    Hi All,
    I have a requirement in which i need to change the Quantity Value field available in the Credit Memo using BAPI.
    Can anyone help me out to get any available BAPI to perform this action or any Solution to change the Quantity in the Credit Memo ?.
    Regards,
    Muruganand.K

    Hi,
    Try using BAPI_SALESORDER_CHANGE.
    DATA: s_order_header_in LIKE bapisdh1.
    DATA: s_order_header_inx LIKE bapisdh1x.
    DATA: BEGIN OF i_order_item_in OCCURS 0.
    INCLUDE STRUCTURE bapisditm.
    DATA: END OF i_order_item_in.
    DATA: BEGIN OF i_order_item_inx OCCURS 0.
    INCLUDE STRUCTURE bapisditmx.
    DATA: END OF i_order_item_inx.
    DATA: BEGIN OF it_return OCCURS 0.
    INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_return.
    DATA: BEGIN OF i_sched OCCURS 10.
    INCLUDE STRUCTURE bapischdl.
    DATA: END OF i_sched.
    DATA: BEGIN OF i_schedx OCCURS 10.
    INCLUDE STRUCTURE bapischdlx.
    DATA: END OF i_schedx.
    s_order_header_inx-updateflag = 'U'.
    i_order_item_in-itm_number = vbap-posnr.
    i_order_item_in-TARGET_QTY = rv45a-zzqty.
    i_order_item_inx-updateflag = 'U'.
    i_order_item_inx-itm_number = vbap-posnr.
    i_order_item_inx-TARGET_QTY = 'X'.
    APPEND: i_order_item_in, i_order_item_inx.
    i_sched-itm_number = vbap-posnr.
    i_sched-sched_line = '0002'.
    i_sched-req_qty = rv45a-zzqty.
    APPEND i_sched.
    i_schedx-itm_number = vbap-posnr.
    i_schedx-sched_line = '0002'.
    i_schedx-updateflag = 'U'.
    i_schedx-req_qty = 'X'.
    APPEND i_schedx.
    IF sy-subrc = 0.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = xvbap-vbeln
    order_header_in = s_order_header_in
    order_header_inx = s_order_header_inx
    behave_when_error = 'P'
    TABLES
    return = it_return
    order_item_in = i_order_item_in
    order_item_inx = i_order_item_inx
    schedule_lines = i_sched
    schedule_linesx = i_schedx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.
    Change the fields as per your logic before populating orders item and schedule line data.
    You have to pass the quantity in schedule line items as well in case you want to change quanity in order.
    KR Jaideep,
    Edited by: Jaideep Sharma on Jun 22, 2009 7:35 PM

  • Cancel invoice document(Credit Memo) - Reg.

    Dear Experts,
    I am trying to cancel Invoice document(Credit Memo) through MR8M transaction. While processing, system is issuing error message (M8 534) as Balance not Zero: & debits : & Credits. But being its saying in initial screen of MR8M, i dont know where to change the amount.
    Please help me out to cancel credit memo. Thanks in advance..
    Regards,
    Kumar

    Other way around to cancel an invoice is to issue credit memo, In MIRO click credit memo, then date, then reference to PO, put in the amount then hit post, your invoice will be cancelled by issuing credit memo
    MR8M also issues credit memo, by cancelling the invoice, and so does MIRO when you create credit memo against PO, the invoice is reversed
    Edited by: Afshad Irani on Apr 8, 2010 8:09 AM

  • Payment document  having invoices and credit memos

    How to identify when a payment document has both invoices and credit memos in it?Is there any criteria?

    Hi Savitha,
    This can be identified by document type.
    Ashven

  • Check Flag for Double Invoices or Credit Memos

    hello
    can i one please explain me the effect of
    "Check Flag for Double Invoices or Credit Memos"
    please explain with explain
    thanks
    vijay

    as terms itself says that u can post the same invoice twice it helps u in posting the same invoice twice
    suppose u have post invoice 1103#
    now by mistake user trys to enter the sam e invoice to release the payment then system dispalys a messge wrning or error
    but to activate it u need to do the settings in spro-mminvoice---incoming invoice
    and mark the check box in vendor master

  • FK02 - Check Flag for Double Invoices or Credit Memos

    Hi,
    What is the transaction in customizing to set the parameters for check flag for double invoices or credit memos ? (ex: date, reference number, etc.) (so that a warning message will pop-up if  user tries to do such a transaction 2 times)
    The check box check double inv. is already cheked in FK02, but I want to set the different parameters.
    Julien

    OMRDC

  • Netting Invoices and Credit Memos in Business One

    I found one thread related to invoices and credit memos, but the database was MAS not SAP. In creating and calculating sales commissions, the report must contain both invoices and credit memos. How do I get common and similar fields (e.g., doc#, document total) from the two tables (OINV, ORIN) to display in the same column?
    I am new to Crystal Reports and am self-taught at the moment (training TBD).

    make sure you join the tables with outter join to get both docs
    you can create a formula that will retreive either field based upon specific criteria,
    are the fields the same in the tables or are they different
    one table has doc# the other has docid?
    i gather they are different(if they are) by type of doc?\
    if so you can create a formula
    if doctype ='a' then else if doctype='B' the docid
    etc.

  • Create Credit Memo using BAPI

    Dear All,
    I have to create credit memo using XL file.In XL file there are following fields:
    1.order type
    2.sales organization/division/distribution
    3.sold to party
    4.order refrence
    5.Material code
    6.Quantity
    7.Price.
    Is it possible to create Credit memo using BAPI?If yes then please reccomend any BAPI.
    Regards,
    AMAR

    Hi,
    { Changing the Object Status to Approve
        CALL FUNCTION 'I_CHANGE_STATUS'
          EXPORTING
            objnr          = is_vbakch-objnr
            estat_inactive = c_e0001
            estat_active   = c_e0002
          EXCEPTIONS
            cannot_update  = 1
            OTHERS         = 2.
        IF sy-subrc EQ 0.
          is_billing-salesorg = is_vbakch-vkorg.
          is_billing-distr_chan = is_vbakch-vtweg.
          is_billing-division = is_vbakch-spart.
          is_billing-doc_type = is_vbakch-auart.
          is_billing-ref_doc = is_vbakch-vbeln.
          is_billing-bill_date = sy-datum.
          is_billing-sold_to = is_vbakch-kunnr.
          is_billing-ref_doc_ca = c_x.
          APPEND is_billing TO it_billing.
        ENDIF.
      ENDLOOP.
    BAPI To create Billing for the Credit Memo.
      CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
        TABLES
          billingdatain = it_billing
          return        = it_returncg
          success       = it_bilsuccess.
    Please use these for Credit memo creation using upload .. If u want i can send the coding also ..
    Regards,
    Srinivas.

  • Amount of the paid invoice after credit memo not correct

    Hi all
    I am using AP, CM and GL.
    I register an invoice in Payables with amount 10000.
    After two days the supplier send me a document with when he is telling that i have to pay only 8000.
    I register this document as credit memo with amount 2000 and apply on the invoice.
    But i pay in the bank only 8000 and i can not pay both documents because, it will not reflect correct actions in bank statements.
    Can you please tell me how to solve this situation?
    Thank you and best regards
    Edited by: user567002 on Nov 23, 2010 4:28 AM

    That depends on how you created the credit memo. Did you use the credit balance/line feature to create the credit memo or was that a standalone CM that you keyed in ? If it was the former, the previous_customer_trx_id field on the CM record will contain the customer_trx_id of the invoice. But if the CM was manually keyed in, that field would be blank.
    Either which way, you should be able to identify the link between the invoice and credit memo using the ar_receivable_applications_all table.

  • How to extract invoice and credit memo total by BP refernce number

    I am very new to the system and need to extract a report that lists all invoices and credit memos from my company for a specific client based on date and/or client po number(BP reference number)  I want to view all the line items by sku for each invoice and cm in one report for qty, dollar amount, issue date and remarks.  I also need the cm to be listed as negative for qty and dollars.  I tried to go through the query wizard but am unsure as to the data tables I need to pull this info from.  Any help would be much appreciated.
    ~Cheers
    Elizabeth

    Hi Elizabeth.......
    Try this..........
    Select T0.DocNum, T0.DocDate, T0.CardName, T1.Dscription, T1.Quantity, T0.DocTotal,
    T1.LineTotal From OINV T0 Inner Join INV1 t1 On T0.DocEntry=T1.DocEntry
    Where T0.DocDate>='[%0]' And T0.DocDate<='[%1]'
    Union All
    Select T0.DocNum, T0.DocDate, T0.CardName, T1.Dscription, T1.Quantity, T0.DocTotal,
    T1.LineTotal From ORIN T0 Inner Join RIN1 t1 On T0.DocEntry=T1.DocEntry
    Where T0.DocDate>='[%0]' And T0.DocDate<='[%1]'
    Regards,
    Rahul
    Edited by: RAHUL MOUNDEKAR on Aug 1, 2011 11:42 PM

  • STANDARD SMARTFORM FOR CUSTOMER INVOICE AND CREDIT MEMO

    GUD MORNING ,
    I WANT THE STANDARD SMART FORM FOR THE CUSTOMER INVOICE AND CREDIT MEMO RELATED TO FI FOR SALES.
    ARUN REDDY I

    Hi,
    Search For Standard or Customise Smartform
    *&  Report       : ZTEST_SEARCH_FORMNAME
    *&  This program will help you to search the SMARTFORM either Standard
      Or Customer created in your compatiable language.
    REPORT  ZTEST_SEARCH_FORMNAME  .
    TYPE-POOLS: SLIS.
      TABLES: STXFADM, STXFADMT.
      DATA:  BEGIN OF ITAB OCCURS 0,
           FORMNAME     LIKE STXFADM-FORMNAME,
           MASTERLANG   LIKE STXFADM-MASTERLANG,
           DEVCLASS     LIKE STXFADM-DEVCLASS,
           VERSION      LIKE STXFADM-VERSION,
           FIRSTUSER    LIKE STXFADM-FIRSTUSER,
           FIRSTDATE    LIKE STXFADM-FIRSTDATE,
           FIRSTTIME    LIKE STXFADM-FIRSTTIME,
           LASTUSER     LIKE STXFADM-LASTUSER,
           LASTDATE     LIKE STXFADM-LASTDATE,
           FORMTYPE     LIKE STXFADM-FORMTYPE,
           CAPTION      LIKE STXFADMT-CAPTION,
           END OF ITAB.
      DATA: IT_FIELDCAT TYPE  SLIS_T_FIELDCAT_ALV,
              WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
              WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_DEV  FOR STXFADM-DEVCLASS NO INTERVALS.
    SELECT-OPTIONS: S_FORM FOR STXFADM-FORMNAME NO INTERVALS.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: P_LANG LIKE T002-SPRAS DEFAULT 'EN'.
    SELECTION-SCREEN END OF BLOCK B1.
    PERFORM F_SELECT_DATA.
    PERFORM F_LAYOUT.
    PERFORM F_FIELDCAT.
    PERFORM DISPLAY.
    *&      Form  f_select_data
          text
    -->  p1        text
    <--  p2        text
    FORM F_SELECT_DATA .
      SELECT
             A~FORMNAME
             A~MASTERLANG
             A~DEVCLASS
             A~VERSION
             A~FIRSTUSER
             A~FIRSTDATE
             A~FIRSTTIME
             A~LASTUSER
             A~LASTDATE
             A~FORMTYPE
             B~CAPTION
             FROM STXFADM AS A INNER JOIN  STXFADMT AS B ON
             AFORMNAME = BFORMNAME INTO  TABLE ITAB  WHERE
             A~DEVCLASS IN S_DEV AND
             A~FORMNAME IN S_FORM AND
             B~LANGU = P_LANG.
        IF SY-SUBRC  = 0.
        SORT ITAB BY FORMNAME.
      ELSE.
        MESSAGE I398(00) WITH 'No Form Exits for this selection criteria'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " f_select_data
    *&      Form  display
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY .
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = SYST-CPROG
          IS_LAYOUT          = WA_LAYOUT
          IT_FIELDCAT        = IT_FIELDCAT
        TABLES
          T_OUTTAB           = ITAB.
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " display
    *&      Form  f_fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM F_FIELDCAT .
      DATA: WA_COL TYPE I VALUE 1.
      WA_FIELDCAT-COL_POS   =  WA_COL + 1.
      WA_FIELDCAT-SELTEXT_L =  TEXT-003.  " Form Name
      WA_FIELDCAT-FIELDNAME =  'FORMNAME'.
      WA_FIELDCAT-TABNAME   =  'ITAB'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-COL_POS   =  WA_COL + 1.
      WA_FIELDCAT-SELTEXT_L =  TEXT-004.  " Smart form Text
      WA_FIELDCAT-FIELDNAME =  'CAPTION'.
      WA_FIELDCAT-TABNAME   =  'ITAB'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-COL_POS   =  WA_COL + 1.
      WA_FIELDCAT-SELTEXT_L =  TEXT-005.  "Package
      WA_FIELDCAT-FIELDNAME =  'DEVCLASS'.
      WA_FIELDCAT-TABNAME   =  'ITAB'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-COL_POS   =  WA_COL + 1.
      WA_FIELDCAT-SELTEXT_L =  TEXT-006.  "First User
      WA_FIELDCAT-FIELDNAME =  'FIRSTUSER'.
      WA_FIELDCAT-TABNAME   =  'ITAB'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-COL_POS   =  WA_COL + 1.
      WA_FIELDCAT-SELTEXT_L =  TEXT-007.  "First Date
      WA_FIELDCAT-FIELDNAME =  'FIRSTDATE'.
      WA_FIELDCAT-TABNAME   =  'ITAB'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-COL_POS   =  WA_COL + 1.
      WA_FIELDCAT-SELTEXT_L =  TEXT-008.  "Version
      WA_FIELDCAT-FIELDNAME =  'VERSION'.
      WA_FIELDCAT-TABNAME   =  'ITAB'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-COL_POS   =  WA_COL + 1.
      WA_FIELDCAT-SELTEXT_L =  TEXT-009.  "Master Language
      WA_FIELDCAT-FIELDNAME =  'MASTERLANG'.
      WA_FIELDCAT-TABNAME   =  'ITAB'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-COL_POS   =  WA_COL + 1.
      WA_FIELDCAT-SELTEXT_L =  TEXT-010.  "Last User
      WA_FIELDCAT-FIELDNAME =  'LASTUSER'.
      WA_FIELDCAT-TABNAME   =  'ITAB'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      ENDFORM.                    " f_fieldcat
    *&      Form  f_layout
          text
    -->  p1        text
    <--  p2        text
    FORM F_LAYOUT .
        WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    ENDFORM.                    " f_layout
    Regards,
    Jagadish

  • AR Invoice and Credit memo re-printing?

    Hi Gurus
    is there a way or indicator you can use when a user is re-printing and invoice or credit memo?
    we want the system to print the invoice or credit meme as  a " copy" if its a re-print.
    is there a transaction code where you can indicate that the form is a reprint and not the original?
    Thanks for your answers in advance
    Admire

    Hi,
    There is a counter in the billing print program (RVADIN01) for Invoice Outputs (DNAST-KSCHL).
    You need to take the help of an ABAPer and make some code changes to achieve this.
    Regards,
    Kiron Kumar T.

  • Regarding invoice and credit memo of sales order

    Hi,
    I have invoice for sales order and also have credit memo for the same sales order. I can see invoice and credit memo differently through transaction VF03. I want to append credit memo details to the invoice ...is it possible ?..if yes then please tell me the procedure.
    Thanks.

    check in the documnet flow if you can see the invoice and the credit memo. Then you can see them both in the document flow of any of the document.
    When you say append, what does it mean? Please explain.
    Regards
    Sai

Maybe you are looking for

  • Animated GIF in MIAW not so animated

    My stage has a handler that executes a shell Ping command which unfortunately is not asynchronous, this means the stage has to wait for a response back from the remote computer before it can proceed and that response could take as long as 30 seconds.

  • Batch managment and back flush

    Dears Some of my raw material is batch managment activated now i want it to be as back flush so pleae tell me what will be the imapct of doing the same' How system automatically issue the raw material from the old date batches AF

  • What is the best way to ramp footage speed 'Green Wing style'?

    I have some 720P 60fps footage to show people walking in slow motion in a hospital. Looks great, however I would like to speed them up to 'real life' pace and then slow them back down. What the easiest way of doing this? Should I do it Motion or in F

  • File Scenario Confusion

    Hi Experts i am facing confusion in my scenario. my scenario/requirement is as follows A Text file ahs to be picked from soure directory xxxx/xxx/IN by PI and it has to be processed by PI, afetr that the file is being sent to the R/3 side , where the

  • Multi-Choice Pattern

    Hi, in my gp-process i want to insert the multi-choice pattern. Definition Multi-Choice: A point in the workflow process where, based on a decision or workflow control data, a number of branches are chosen. How can I do that, or isnt it possible? Bye