Create Credit Memo using B1if

Hello Experts,
Have anyone tried to create service Credit Memo using B1if when an AP Invoice is posted by a user for a specific vendor? or Any similar scenario?
I am new to B1if , looking into the recordings now. Can anyone advise steps or process to acheive this ?

Hi,
Please refer below link where PO2SO is generate, same manner you can use CM2AP.
[https://sap.emea.pgiconnect.com/p26689556/]
Thanks
Kevin

Similar Messages

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

  • Not able to Create Credit Memo During Return Sales Order

    Hi Guru's,
    Need your help in the below problem:-
    While Creating Return Sales Order it give us Order No with delivery no. and then finally I am able to do VL02N where I did Post Good Return sucessfully and also check using MB51 that goods got return.
    But when we try to create Credit Memo using VF01 I got the below message in log.
    Error Log
                 0060000799 000000 "Create billing document" not allowed (User Status LKD, object VB0060000799000000)
                LongText
                Technical data   ))))))))
    I have checked all copy control including Iteam Category etc etc all are in place.
    Looking for your help.
    Thanks
    Best Regards
    Bidhan Konar

    Thanks Krishna,
    Thanks for the solution. Find below the steps which i follow:-
    Go to Tcode VA02, Use the sale order reference and execute. From top menu bar, click on "Goto -- Header -- Status. Then again click on "Object Status" and when check I find that lock is there:- A radio button checked at -- 10 LKD Locked and change it to
    --20 REL Released and SAVE. Finally working.
    Thanks
    BR
    Bidhan
    Edited by: Bidhan Konar on Jun 3, 2010 8:35 PM

  • Problem while creating credit memo request using BAPI

    HI,
    I am trying to create credit memo request using the BAPI_SALESDOCU_CREATEFROMDATA1..
    I am getting the error as " No customer master data is available for the customer". But the customer exists in the KNA1 table. What is the mistake i hv done.. this s my code..
    REPORT  ZSV_CREDITMEMO_TEST1.
    Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead1.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapisditem  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    DATA: lt_schedules_ink    TYPE STANDARD TABLE OF bapisdhead1
                             WITH HEADER LINE.
    START-OF-SELECTION.
    Header data
    Sales document type
      header-doc_type = 'G2'. 
      headerx-doc_type = 'X'.
    Sales organization
      header-sales_org = '0001'.
      headerx-sales_org = 'X'.
    Distribution channel
      header-distr_chan  = ''.
      headerx-distr_chan = 'X'.
    Division
      header-division = ''.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    *Complete delivery
        header-COMPL_DLV = ''.
        header-COMPL_DLV = 'X'.
    Partner data
    Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = '0000C10130'.
      APPEND partner.
    Ship to
      partner-partn_role = 'WE'.
      partner-partn_numb = ''.
      APPEND partner.
    ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    Material
      item-material = 'C20011'.
      itemx-material = 'X'.
    Plant
      item-plant    = ''.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = '10000'. 
      itemx-target_qty = 'X'.
    item category
      itemx-ITEM_CATEG = 'X'.
      APPEND item.
      APPEND itemx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = '10000'.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
    Call the BAPI to create the sales order.
      CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
           EXPORTING
                sales_header_in     = header
                sales_header_inx    = headerx
           IMPORTING
                salesdocument_ex    = v_vbeln
           TABLES
                return              = return
                sales_items_in      = item
                sales_items_inx     = itemx
                sales_schedules_in  = lt_schedules_in
                sales_schedules_inx = lt_schedules_inx
                sales_partners      = partner.
    Check the return table.
      LOOP AT return WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE: / 'Error in creating document'.
      ELSE.
    Commit the work.
        COMMIT WORK AND WAIT.
        WRITE: / 'Document ', v_vbeln, ' created'.
      ENDIF.
    can anyone tell what the error is.?

    Hi
    please look at code below code this succefully creating credit memo may some help to you
    header-doc_type = 'ZS4'.
        PERFORM get_plant.
        headerx-doc_type    = 'X'.
        header-sales_org    = wa_temp1-vkorg.
        headerx-sales_org   = 'X'.
        header-purch_no     = wa_temp1-bstnk.
        header-distr_chan   = wa_temp1-vtweg.
        headerx-distr_chan  = 'X'.
        header-division     = wa_temp1-spart.
        header-purch_no_s   = wa_temp1-bstnk.
        headerx-division    = 'X'.
        wa_partner-partn_role = 'AG'.
        wa_partner-partn_numb = wa_temp1-kunnr.
        APPEND wa_partner TO it_partner.
        wa_partner-partn_role = 'WE'.
        wa_partner-partn_numb = wa_temp1-kunnr.
        APPEND wa_partner TO it_partner.
        CLEAR: wa_partner.
        LOOP AT lt_temp2 INTO wa_temp2 WHERE kunnr = wa_temp1-kunnr.
          "AND matnr = wa_temp1-matnr.
    *wa_item-itm_number = wa_temp2-posnr .
          wa_item-material   = wa_temp2-matnr.
          wa_item-plant      = wa_temp2-werks.
          wa_item-req_qty    = wa_temp2-fkimg * 1000.
          wa_item-target_qty = wa_temp2-fkimg * 1000.
          APPEND wa_item TO it_item.
        ENDLOOP.
        CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
          EXPORTING
            order_header_in       = header
    *   WITHOUT_COMMIT            = ' '
    *   CONVERT_PARVW_AUART       = ' '
         IMPORTING
           salesdocument          = v_vbeln
    *   SOLD_TO_PARTY             =
    *   SHIP_TO_PARTY             =
    *   BILLING_PARTY             =
           return                 = return
          TABLES
           order_items_in         = it_item
           order_partners         = it_partner.
        IF v_vbeln <> space.
          wa_vbeln-vbeln = v_vbeln.
          APPEND wa_vbeln TO lt_vbeln.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
          HIDE wa_vbeln-vbeln.
          CLEAR: wa_partner,header,v_vbeln, wa_temp2.
          REFRESH: it_partner,it_item.
        ELSE.
    *    LOOP AT return .
          it_error-srno = idx.
          it_error-err_msg = return-message.
          APPEND it_error.
    *    ENDLOOP.
        ENDIF.
        idx = idx + 1.
      ENDLOOP.
    Regards

  • Creating Vendor Credit Memo Using BAPI  BAPI_ACC_DOCUMENT_POST

    Hi,
    I want to create a vendor credit memo using the bapi BAPI_ACC_DOCUMENT_POST but with posting keys as 21 and 50.Is it possible to do so.I tested the bapi passing the data to the accountgl table.Do i have to pass data to another table ?

    hi Eric,
    I even tried passing the data to the accounts receivable and accounts payable tables passing the GL account no in these tables.Still teh document get posted with keys 40 and 50.Also the credit entries should be assigned to COPA segment of sales order/item.
    The vendor credit memo should look as follows look as follows:
    Dr Vendor (PK = 21) $ 35,000
    Cr Freight expense account (PK = 50) $ 10,000……….assigned to COPA segment of sales order/ item 20000397/10
    Cr Freight expense account (PK = 50) $ 5,000……….assigned to COPA segment of sales order/ item 20000397/20
    Cr Freight expense account (PK = 50) $ 20,000……….assigned to COPA segment of sales order/ item 20000398/10

  • Creating credit memo with two positions using Bapi

    Hi all, i are creating a credit memo using BAPI_BILLINGDOC_CREATEMULTIPLE with manual price condition for each position and have a problem.
    All the positions use the last condition value of the CONDITIONDATAIN table.
    Thes is an example code used.
    t_billing-salesorg    = 'SI01'.
    t_billing-DISTR_CHAN  = '05'.       
    t_billing-DIVISION    = '01'.
    t_billing-DOC_TYPE    = p_dtype.             " ZC07 o TA
    t_billing-ORDBILLTYP  = 'ZC06'.              " ZC06 o FX
    t_billing-SOLD_TO     = p_clie.              "'0000200002'.
    t_billing-ITEM_CATEG  = 'ZG2N'.              " ZG2N o TAN
    t_billing-PLANT       = '1100'.
    t_billing-BILL_TO     = p_clie.              "'0000200002'.
    t_billing-PAYER       = p_clie.              "'0000200002'.
    t_billing-SHIP_TO     = p_clie.              "'0000200002'.
    t_billing-MATERIAL    = '0000000000300003'.
    t_billing-REQ_QTY     = p_cant.              "'1.000'.
    t_billing-item        = '1'.
    APPEND t_billing.
    t_conditions-DATA_INDEX = '1'.
    t_conditions-COND_TYPE  = 'ZCON'.
    t_conditions-COND_VALUE =  '12.0000'.
    append t_conditions.
    t_billing-salesorg    = 'SI01'.
    t_billing-DISTR_CHAN  = '05'.               
    t_billing-DIVISION    = '01'.
    t_billing-DOC_TYPE    = p_dtype.             " ZC07 o TA
    t_billing-ORDBILLTYP  = 'ZC06'.              " ZC06 o FX
    t_billing-SOLD_TO     = p_clie.              "'0000200002'.
    t_billing-ITEM_CATEG  = 'ZG2N'.              " ZG2N o TAN
    t_billing-PLANT       = '1100'.
    t_billing-BILL_TO     = p_clie.              "'0000200002'.
    t_billing-PAYER       = p_clie.              "'0000200002'.
    t_billing-SHIP_TO     = p_clie.              "'0000200002'.
    t_billing-MATERIAL    = '0000000000300004'.
    t_billing-REQ_QTY     = p_cant.              "'1.000'.
    t_billing-item        = '2'.
    APPEND t_billing.
    t_conditions-DATA_INDEX = '2'.
    t_conditions-COND_TYPE  = 'ZCON'.
    t_conditions-COND_VALUE =  '24.0000'.
    append t_conditions.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
      EXPORTING
        CREATORDATAIN         = t_creator
      TABLES
        billingdatain   = t_billing
        CONDITIONDATAIN = t_conditions
        return          = t_return
        success         = t_success.
    In these example, the first position have a value of 12 and the seccond a value of 24.
    The generated document have a value of 24 for the two positions.
    Do you helpme??
    Regards
    Adrián Callejón
    Message was edited by:
            Adrian Callejon

    Thank you Jack. That's exactly what I needed to know.
    Now it works. As an example I attach some code that also uses the credit card functionality
    pos-salesorg  = 'EESP'.
    pos-distr_chan = 'ES'.
    pos-division  = 'TI'.
    pos-ref_doc    = '1'.
    pos-material  = mat10.
    pos-req_qty    = 1.
    pos-itm_number = 1.
    pos-ref_item  = 1.
    APPEND pos TO billdata.
    pos-material  = mat11.
    pos-req_qty    = 1.
    pos-itm_number = 2.
    pos-ref_item  = 2.
    APPEND pos TO billdata.
    lincond-data_index = '1'.
    lincond-cond_type  = 'PR01'.
    lincond-cond_value = '1.85'.
    lincond-cond_curr  = 'EUR'.
    APPEND lincond TO conddata.
    lincond-data_index = '2'.
    lincond-cond_type  = 'PR01'.
    lincond-cond_value = '1.70'.
    lincond-cond_curr  = 'EUR'.
    APPEND lincond TO conddata.
    lincard-cc_type    = 'VISA'.
    lincard-cc_number  = '4560000000000038'.
    lincard-cc_valid_t = sy-datum + 90.
    lincard-cc_name    = 'Pedro Pérez'.
    lincard-authamount = '1.85'.
    lincard-currency  = 'EUR'.
    lincard-auth_flag  = 'X'.
    lincard-auth_date  = sy-datum.
    lincard-cc_auth_no = 'autno10'.
    lincard-bill_value = '1.85'.
    APPEND lincard TO carddata.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    * EXPORTING
    *    CREATORDATAIN        =
    *    TESTRUN              =
    *    POSTING              =
      TABLES
        BILLINGDATAIN    = billdata
        CONDITIONDATAIN  = conddata
        CCARDDATAIN      = carddata
    *    TEXTDATAIN        =
        ERRORS            = t_errores
        RETURN            = t_bapiret
        SUCCESS          = t_success.

  • TO CREATE A CREDIT MEMO USING CREDIT MEMO REQUEST

    Hi,
          I have a credit memo request 60000150 and I need to create a credit memo using the above credit memo request.Can anyone suggest a BAPI or some other method to do this and also the parameters to be passed

    Hi,
          I have a credit memo request 60000150 and I need to create a credit memo using the above credit memo request.Can anyone suggest a BAPI or some other method to do this and also the parameters to be passed

  • Create credit memo request using inbound IDOC

    Hi Experts,
    I want to create credit memo request using inbound IDOC, currently I am using GSVERF03 basic type and process code GSVE, I am getting below error:
    No records exist in T661W for vendor XXXXX, plant, unloading point
    Anyone suggest me is this correct message type to create credit memo request or suggest me the correct one. because we are working with customer sales order and invoice not with vendor purchase order.
    Thanks for your help.

    ah, apologies i read outbound! I think you are using the correct message type i.e. GSVERF.
    Can you not simply create the missing entry in T661W? i.e. for the missing records?

  • How can we create credit memo with reference to INV

    Hi,
    Pls tell how can we post credit memo with reference to Invoice which is posted through SD.
    Is there any use with reference to field in T.Code FB75.
    Thanks in advance,
    Padmaja

    Hi Vijay,
    I could not found any field for Inv. reference in the Payment Tab of T.Code FB75.
    Is there any facility in SAP to create Credit Memo for a particular customer with reference to Invoice. All the details of that Invoice should get updated in the credit memo automatically.
    Thanks in advance,
    Padmaja

  • Creating credit memo request - V1 498 / missing order quantity

    Hi Experts,
    could any of You pls help me with a credit memo creation issue?
    I credit memo needed to be created based on invoice, so configuration  and copy control is done as usual, but I have a failure during CR order creation referring to an invoice F2.
    I got an error message: V1 498 - Credit  already exist for item... - and no qty is transferred to new document
    I have gone thought the threads on Forum, but none of the suggested solution was appropriate to solve the issue:
    - the document flow is updated in copy control ,
    - I can no remove the schedule line flag at VOV7 - the order qty will be missed but target qty is used, and end up incompletition (VU 019 error messge), so billing is faile
    - completition control set as B at VOV7,
    Still have the problem
    Could any of You pls help me - answers will be appreciated.

    V1 498 - Credit already exist for item...
    What the above message means is that lines items have already been used as reference for the creation of credit memo request(s).
    Create a new sales order, delivery and billing document. Then create credit memo request with reference to this new billing document and test.
    In VTAF copy control, at item level, field "Pos./neg. quantity" dictates how the quantity in the source document is affected by copy control.
    PS - I tried to create credit memo with reference to billing document (F2), there were no issues there. Therefore I am taking that the issue is with credit memo request (copied with ref to billing document F2)

  • Credit memo using BAPI

    Hi,
    In transaction VA01 we are able to create credit memo request (ZRCR order type) with order category K (credit memo). Is this possible to create this order using "BAPI_SALESORDER_CREATEFROMDAT2" and BAPI_SALESORDER_CREATEFROMDAT1 function module.?
    If we try to excute using this function module, following return message is appearing. "Unpermitted combination of business object BUS2032 and sales doc. category K". Any one please give me solution.
    Thanks in advance,
    Murali

    Hi,
    Using below FM we can create SD.
    BAPI_SALESDOCU_CREATEFROMDATA
    BAPI_SALESORDER_CREATEFROMDAT1
    BAPI_SALESORDER_CREATEFROMDAT2
    BAPI_SALESORDER_CREATEFROMDATA
    Regards
    Md.MahaboobKhan

  • Idocs to create credit memo and debit memo

    Hi,
      I need your expertise in creating credit memos and debit memos in sap using idocs.
    I am working on integration between third party system and sap using web methods.
    My requirement is to create credit memos and debit memos in sap using idocs.
    Could you please help me with the message types for the credit and debit memos.
    Thanks
    Raju

    Hi VJ,
    thank you very much.
    Is it possible to create credit memo without any reference to document in SAP.Because the third party system only sends very small amount of data
    (customer number, amount, paymentmethod, date).
    Can i be able to create the credit memo with the above information
    Please help me..
    Thanks
    Raju

  • Create Credit Memo referenced to Billing Document - Condition Types

    Hello,
    I need help on this particular situation, your help would be greatly appriciated.
    I try to create a Credit Memo(VA01) with reference to the Billing Document, but I don't want to see on my Credit Memo a particular Condition Type from the Billing Document. Configuration solution or ABAP solution? and how?
    What the system does now is, it copies all the Condition Types from the Billing Document to the newly created Credit Memo.
    Thank you all

    Hi,
    Create a new pricing procedure without the condition type you donot wish to appear in the credit note. create/ use a different document pricing procedure for the credit note, do the required assignments.. this will meet the requirements
    Regards,
    Ajit

  • Create credit memo automatically when creating returns to vendor...

    How can i create create "Credit Memo" automatically upon creating
    returns to vendor (Movement Type 122) considering right calculation of
    the sales tax & withholding tax.

    Hi,
    There is a special display variant in the item list for invoice reduction. You enter
    the invoice quantities or values that differ to the quantities or values suggested by
    the system separately into the item list. (You can only enter data in these fields
    when you have flagged the item as Vendor error: reduce invoice).
    When you post a reduced invoice, the system creates two accounting documents.
    The first document contains the invoice postings with the actual quantities and
    values. The second document contains a credit memo for the difference between
    the actual quantities and values and the default quantities and values.
    Therefore, with invoice reduction, you do not actually reduce an invoice. Instead,
    you also post a credit memo for the amount of the reduction. The amount payable
    to the vendor is the value of the invoice reduced by the credit memo amount.
    The PO history is updated with the unchanged default values.
    When you post an invoice reduction, the system creates a message record. You
    can use this to send a letter of complaint (notification of credit memo posting)
    to the vendor.
    Regards
    Ankur

  • Create Credit Memo Request

    Hi,
    Is there a bapi which i can use to create credit memo request with reference from a billing document?
    dyl

    Hi Rakesh,
    thank you for your reply. I am using 4.6B. i do not see that function

Maybe you are looking for

  • HP in Real Life - Tell us your story.

    Hi everyone, In support of the HP in Real Life program, I thought we would support it by not only talking about it, but also starting some stories here about how we use our HP products to make our life, and the lives of those around us, better.  Tell

  • Reader 9.0

    Help! every time I click on a webpage that is a pdf, I get a pop up saying I need reader 8 or 9, try again. I have reader 9.0 installed. what is preventing it from opening?

  • Hdv to compressor for web

    I am trying to put some footage on the web that i shot in hdv and compressor has many settings that are squeezing my image and not keeping it hdv. any suggestions? thanks, jim

  • Compatibility with Illustrator CS5 to CS6

    Anyone who can help me please leave a comment or a suggestion. I would gladly appreciate it!! I am starting a Digital Media class in college and CS5 is what is setup on the computers and textbooks are also about CS5 as well. They haven't upgraded to

  • HT201413 My iPhone turns off during the restore & comes up with error 1611 - help?

    My iPhone kept telling me I needed to update to the new iOS 5 software for some of my apps to update. So I plugged it in and started the update. But then my phone kept turning itself on and off. I put it into recovery mode & then tried to restore it.