Creating a credit memo by referring Billing document

Hi All,
      I am creating a Credit memo Say <b>CM</b> by reffering a Billing document say <b>B</b>.The Billing document has been created from a Contract say <b>C</b>.
      Now while creating the CM the contract dates need to be copied from C to the contract data screen of CM.
      I have used <b>Copying control Billing Document to Sales Document</b> for achieving this.
     I have edited the VEDA(Contract data) in the routines 302,303,402 etc. but its not reflecting in Contract data of CM screen.
     Please help me in resolving this.
Thanks and Regards,
Siva

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

Similar Messages

  • 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

  • Credit Memo from Retro Billing

    Hello Gurus!!
    Can anyone please help me
    Scenario:
    I have created a credit memo from retro-billing due to price drop, and released the credit memo to accounting.
    Problem:
    When we look at the accounting document of the credit memo it doesn't have a controlling document and profitability analysis.
    I have simulated the document at KE4ST, and here is the error message I got
    Document is not profit-related and thus could not be transferred
    Message no. KF755
    Diagnosis
    Sales document was not transferred to Profitability Analysis (CO-PA) because it is not relevant for the analyses in CO-PA. This can be due to one of the following reasons (among others):
    The document type is not profit-related, such as an inquiry
    The sales document shows zero for the quantity
    The sales document has been denied
    The sales document is locked due to credit reasons
    Please anyone give me an idea on how can I resolve this..
    Thank You!!!!

    Hi Carla,
    I saw your the issue you posted on SDN.
    We are facing exactly the same problem. We could not see the solution how you resolved this problem.
    Can you tell us how have you resolved this ??
    Would be great help to us.
    Thanks,
    Apte C.M.

  • How to create a Credit Memo Req by changing the value of the material price

    Hello,
    We have a requirement where we are want to change the value while creating a credit memo request wrt Billing doc.  Is there a way to change the price of the material rather then the qty on the credit memo request?  The system allows only Qty change and not the price change.
    Pelase help!
    Arpita Rani

    Update the price condition record first. Then in the credit memo - go to conditions and click on update button, select option - copy manula elements and redetermine others.
    ALso you can check the copy controls from your Invoice to CM Reqest (VTAF) @ item level - check price Type B. If the condition record is diferent from the one on billing, thenyou will get updated price in your cmr.
    Regards
    Sai

  • Creating a Credit memo with reference to Billing document

    Hi All,
    I am creating a Credit memo say CM by with reference to a Billing document say B.The Billing document has been created from a Contract say C.
    Now while creating the CM the contract dates need to be copied from C to the contract data screen of CM.
    I have used Copying control Billing Document to Sales Document for achieving this.
    I have edited the VEDA(Contract data) in the routines 302,303,402 etc. but its not reflecting in Contract data of CM screen neither at header level nor item level.
    Please help me in resolving this.
    Replies appreciated.
    Thanks and Regards,
    Blessy

    Dear Rupak,
    Your price / Quantity is copying correctly from Billing means your Copy Control settings are proper.
    Now while creating Credit Memo Request, after you change Quantity you are currently selecting Update & "B" - i.e. Carry out new pricing.
    Here instead of "B" select "A".
    A means - Copy price components and redetermine scales.
    Here the system:
    1. does not determine any new condition types
    2. and only redetermines the scale prices for changed quantities
    I guess this will definitely solve your problem.
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • Error while creating a credit memo with reference to invoice

    HI aLL,
    I am facing one issue while creating a credit memo request in VA01 with reference to invoice.
    Our project stock is valuated stock.
    When we try top copy the error pops up" Valuated project stock not allowed with customer stock." and the line item is not copied in the credit memo.
    Diagnosis:The entered wbs manages a valuated project stock,at the same time sales order stock is maintained on sales order line item.this combo is not allowed as different valuation methods within a project is not allowed.
    Tarun Kapur

    Dear Tarun!
    1.Within a project we can get stock only in PROJECT or in SALES ORDER STOCK.....a single material can not be a both place at particular time ..so keep only one
    Project Stock or Sales Order Stock..
    2.Check DIP PRofile (ODP1) in usage BILLING AND RESULT ANALYSIS -Charectiristic -SDOC TYPE CMR.....are you selecting right document to which you want to copy .....
    Rewards Points if usefull
    Regards
    SMITH

  • BAPI to create a credit memo request

    Is there a standard BAPI that can create a credit memo request?
    If not, then can we copy a standard BAPI to a Z-version and amend that?
    Sample code appreciated.
    Thanks,
    John

    The suggestion to use SD_SALESDOCUMENT_CREATE proved fruitful.
    For creating with reference to an invoice:
    Setting ref_doc and ref_doc_ca for each line-item in sales_item_in seems necessary for the creation of the document flow.  Maybe it also brought through other data from the invoice?
    Setting ref_doc and refdoc_cat for sales_header_in caused header text (and maybe other stuff?) to be brought through from the invoice.
    It looks like it will do bills of materials - there's hg_lv_item in sales_items_in - but I've yet to try that.
    Here's the code of a demo program for a one-line CMR.
    REPORT  YJNM_CREATE_CMR5                        .
    Uses SD_SALESDOCUMENT_CREATE
    parameters:
      p_vgbel like vbrk-vbeln  default '90175587', "reference invoice
      p_fkdat like vbkd-fkdat  default sy-datum,   "billing date
      p_auart like tvak-auart  default 'Z002',     "sales document type
      p_vkorg like tvko-vkorg  default '3',        "sales org.
      p_vtweg like tvtw-vtweg  default '01',       "distr. chan.
      p_spart like tspa-spart  default '06',       "division
      p_vkbur like tvbur-vkbur default '034',      "sales office
      p_kunnr like kna1-kunnr  default '16797',    "sold-to
      p_bstnk like vbak-bstnk  default 'pono00000017',
                                                   "PO number
      p_bname like vbak-bname  default 'Bartholomew Snodgrass',
                                                   "name of orderer
      p_augru like tvau-augru  default '002'.      "order reason
    selection-screen skip.
    selection-screen begin of block i1 with frame title text-001.
      parameters:
        p_matnr like mara-matnr default '27585',   "material number
        p_zmeng type dzmengc    default '65',      "target quantity
        p_netwr like vbap-netwr default '1.20',    "net amount
        p_arktx like vbap-arktx default 'Afternoon tea',
                                                   "short text
        p_fbuda like vbkd-fbuda default '20060109'."service-rendered date
    selection-screen end of block i1.
    data:
      return              like bapiret2,
      returns             like table of return,
      salesdocument_ex    like bapivbeln-vbeln,
      sales_header_in     like bapisdhd1,
      sales_item_in       like bapisditm,
      sales_items_in      like table of sales_item_in,
      sales_condition_in  like bapicond,
      sales_conditions_in like table of sales_condition_in,
      sales_partner       like bapiparnr,
      sales_partners      like table of sales_partner,
      incomplete_log      like bapiincomp,
      incomplete_logs     like table of incomplete_log.
    perform:
      fill_sales_header_in,
      fill_sales_items_in,
      fill_sales_partners,
      fill_sales_conditions_in,
      call_bapi.
    FORM call_bapi .
    CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
      EXPORTING
      SALESDOCUMENT                 =
        SALES_HEADER_IN               = sales_header_in
      SALES_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       = ' '
      INT_NUMBER_ASSIGNMENT         = ' '
      BEHAVE_WHEN_ERROR             = ' '
      LOGIC_SWITCH                  = ' '
        BUSINESS_OBJECT               = 'BUS2094' "cred. mem. req.
      TESTRUN                       =
      CONVERT_PARVW_AUART           = ' '
      STATUS_BUFFER_REFRESH         = 'X'
      IMPORTING
        SALESDOCUMENT_EX              = salesdocument_ex
      SALES_HEADER_OUT              =
      SALES_HEADER_STATUS           =
      TABLES
        RETURN                        = returns
        SALES_ITEMS_IN                = sales_items_in
      SALES_ITEMS_INX               =
        SALES_PARTNERS                = sales_partners
      SALES_SCHEDULES_IN            =
      SALES_SCHEDULES_INX           =
        SALES_CONDITIONS_IN           = sales_conditions_in
      SALES_CONDITIONS_INX          =
      SALES_CFGS_REF                =
      SALES_CFGS_INST               =
      SALES_CFGS_PART_OF            =
      SALES_CFGS_VALUE              =
      SALES_CFGS_BLOB               =
      SALES_CFGS_VK                 =
      SALES_CFGS_REFINST            =
      SALES_CCARD                   =
      SALES_TEXT                    =
      SALES_KEYS                    =
      SALES_CONTRACT_IN             =
      SALES_CONTRACT_INX            =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
      SALES_SCHED_CONF_IN           =
      ITEMS_EX                      =
      SCHEDULE_EX                   =
      BUSINESS_EX                   =
        INCOMPLETE_LOG                = incomplete_logs
      EXTENSIONEX                   =
      CONDITIONS_EX                 =
      PARTNERS_EX                   =
      TEXTHEADERS_EX                =
      TEXTLINES_EX                  =
      BATCH_CHARC                   =
    perform imcompletion_log.
    loop at returns into return where type ne 'S'.
      message id return-id type 'I' number return-number
        with
          return-message_v1
          return-message_v2
          return-message_v3
          return-message_v4.
      endloop.
    if salesdocument_ex is initial.
      write: / 'Document not created'.
    else.
      commit work.
      write: / 'Sales document number:', salesdocument_ex.
      endif.
    ENDFORM.                    " call_bapi
    FORM fill_sales_header_in .
    clear sales_header_in.
    move:
      p_fkdat to sales_header_in-bill_date,
      p_vgbel to sales_header_in-ref_doc,    "invoice number
      'M'     to sales_header_in-refdoc_cat, "invoice
      p_auart to sales_header_in-doc_type,
      p_vkorg to sales_header_in-sales_org,
      p_vtweg to sales_header_in-distr_chan,
      p_spart to sales_header_in-division,
      p_vkbur to sales_header_in-sales_off,
      p_bstnk to sales_header_in-purch_no_c,
      p_bname to sales_header_in-name,
      p_augru to sales_header_in-ord_reason.
    ENDFORM.                    " fill_sales_header_in
    FORM fill_sales_partners .
    clear sales_partner.
    sales_partner-partn_role = 'AG'.
    sales_partner-partn_numb = p_kunnr.
    append sales_partner to sales_partners.
    ENDFORM.                    " fill_sales_partners
    FORM fill_sales_items_in .
    perform one_item_in using:
      10
      p_matnr
      p_zmeng
      p_netwr
      'GBP'
      p_arktx
      p_fbuda.
    ENDFORM.                    " fill_sales_items_in
    FORM one_item_in  using    value(p_itm_number)
                               value(p_p_matnr)
                               value(p_p_zmeng)
                               value(p_p_netwr)
                               value(p_p_waerk)
                               value(p_p_arktx)
                               value(p_p_fbuda).
    clear sales_item_in.
    move:
      p_itm_number to sales_item_in-itm_number,
      p_fkdat      to sales_item_in-bill_date,
      p_vgbel      to sales_item_in-ref_doc,    "invoice number
      'M'          to sales_item_in-ref_doc_ca, "invoice
      p_p_matnr    to sales_item_in-material,
      p_p_zmeng    to sales_item_in-target_qty,
      p_p_netwr    to sales_item_in-target_val,
      p_p_waerk    to sales_item_in-currency,
      p_p_arktx    to sales_item_in-short_text,
      p_p_fbuda    to sales_item_in-serv_date.
    append sales_item_in to sales_items_in.
    ENDFORM.                    " one_item_in
    FORM fill_sales_conditions_in .
    refresh sales_conditions_in.
    perform one_sales_condition_in using:
      10
      p_netwr
      'GBP'.
    ENDFORM.                    " fill_sales_conditions_in
    FORM one_sales_condition_in  using    value(p_itm_number)
                                          value(p_p_netwr)
                                          value(p_p_waerk).
    clear sales_condition_in.
    move:
      p_itm_number to sales_condition_in-itm_number,
      'PR00'       to sales_condition_in-cond_type,
      p_p_netwr    to sales_condition_in-cond_value,
      p_p_waerk    to sales_condition_in-currency.
    append sales_condition_in to sales_conditions_in.
    ENDFORM.                    " one_sales_condition_in
    FORM imcompletion_log .
    loop at incomplete_logs into incomplete_log.
      write: / incomplete_log-itm_number,
               incomplete_log-field_text,
               incomplete_log-table_name,
               incomplete_log-field_name.
      endloop.
    ENDFORM.                    " imcompletion_log

  • Create a Credit Memo from invoice

    Hi,
    When I Create a Credit Memo from invoice, I get the next error : -5002 , "-"
    What is that?
    regards

    Hi Joe,
    I have tested your code and it seems to me that it is working fine. Make sure that the numbers of the document that you are using is correct and that you are doing it for the same business partner. Try doing the exact same thing in SBO. Please remember that you can have different document numbers and document entries for every document. The BaseEntry refers to the DocEntry field in the OINV table and not the DocNum field. The DocNum field is the one you see on screen in top right corner of AR Invoice screen.
    Hope it helps,
    Adele
    PS: Sorry for previous text that was in this message. I had it all wrong
    Message was edited by: Adele le Roux

  • Credit Memo Generating even Billing Block

    Dear Friends
    We have created one Credit Memo Request as Like "CR".  Sales document Type. and Credit Memo As Like "G2".
    after that we created all copy control as like standard.
    we are facing problem that when we create Credit Memo with reference to Credit Memo Request it  generating even there is Billing Block still not released.
    but when we are using standard CR and G2. We have to release Billing Block then only we are able to generate Credit Memo.
    Please give solutions where is our mistake.
    Regards
    Arun

    hi,
    this is the standard business process
    the credit memo should not created until the higher authority approve the credit request,because the money goes out of the company, so some higher authority has to approve.
    the settings is maintained in VOV8 (CR)-billing - billing block- 08 (check credit memo)
    regards
    senya

  • What is tcode to create a credit memo ?

    What is tcode to create a credit memo ? please tell me the steps ?

    Hello,
    <b>Credit memo: Document type - G2</b>
    1.     Credit memo is generally issued in two cases - either when customer returns goods previously purchased and requires a credit or customer is credited without reference to any return of goods when goods sent to him are found to be defective and a return delivery or a repair would exceed the cost. in this case the customer is requested to scrap the material sent and is given an account credit.
    2.     Another case is when the customer is over charged for goods he purchased and we only realise that after billing.
    3.     when configuring the sales document type “credit memo request” G2 – you can automatically set a billing block that can be released by an authorised person during processing prior to billing.
    4.     It is the billing in the finance dept, which in turn is the actual creation of a credit note that is sent to the customer.
    5.     It is suggested to make the rejection reason, reference to billing document (invoice) and billing block in credit memo a mandatory field to ensure the traceability.
    6.     standard item category used is G2N; order related billing type – G2 (invoice)
    7.     Items in contracts and credit memo requests do not have schedule lines as there is no movement of material involved.
    8.     Update document flow is activated when using copy control rules for copying from an invoice to a credit memo request.
    <b>REWARD POINTS IF HELPFUL.</b>
    Regards
    Sai

  • Is it possible to create a Credit memo without reference doc

    Hi,
    I need to create a billing document (VF01) without passing the refernce document number. Is there any way to create this? While creating the billing document i just want to pass only items.
    Thanks In Advance,
    Regards,
    Raj

    the answer is that you can create a Credit Memo request (sales document) without a reference to a billing document. The settings for this are maintained in
    SPRO>Sales and Distribution>Sales>Sales Documents>Sales Document Header>Define Sales Document Types
    In the sales document type, the field that controls whether a reference document is necessary is in the General Control pane and is called "Reference Mandatory" - BEZOB
    If that field is blank you don't need a reference number. You can also generate the actual Credit Note (billing document) without any problems. All accounting entries are carried out as normal.
    SAP help says:
    Reference mandatory
    Indicates whether, when you create a sales document, a reference document is mandatory. If so, the indicator also specifies which type ofreference document you should use.
    Use
    When you try to create a sales document that has a mandatory reference document, the system automatically prompts you for the number of the reference document.

  • Create a Credit Memo from purchase invoice

    Hi everyone,
    I am trying to create a credit memo from a purchase invoice, but it retuns the following error:
    "RFC is missing"
    I am using the JCO classes to develop this application. this is a sample of my code:
    IDocuments document = SBOCOMUtil.newDocuments(company,new Integer(19));
    document.setCardCode("P00055");
    document.setDocDate(new java.util.Date());
    document.getLines().setBaseEntry(new Integer(2852));
    document.getLines().setBaseLine(new Integer(0));
    document.getLines().setBaseType(new Integer(18));
    int lRetCode = document.add();
    if(lRetCode != 0){
        System.out.println(company.getLastError().getErrorMessage() );
    Do you have any idea about what is the problem?
    Many Thanks.

    Hi everyone,
    the problem was solve. I had to specified the FederalTaxID field on the document.
    just added the following field:
    document.setFederalTaxID("000000000000");
    Thanks.

  • Credit memo request from Billing Doc.

    Hi All,
    I am creating Credit memo request from Billing Doc.(both having Same Pricing procedure)
    Now i dont want JVAT condiion in Credit emo Request.I have created one user exit.
    But now, JVAT is mandatory condition in Pricing Procedure, which is giving error of incompletion.
    How to Proceed.
    Regards,
    Antaa21

    Hi Ajit,
    I have assigned new pricing procedure for Credit memo request,which is not getting determined when you create credit memo request with reference to Billing doc.
    Reg,
    Amol

  • Cancel credit memo genarating wrong accounting document

    Hello,
    We are facing when we Cancel sales credit memo credit memo genarating wrong accounting document entry in production system.
    I have checked the billing type for credit memo s1 and cancel credit memo in production system configuration
    Cancel credit memo is hitting document type RV instead of AB in production system
    I have checked the oba7,vofa.
    Please provide the clarification.

    Hi,
    In Billing type defination, VOFA, if the document type is left blank, then system by default picks up RV.
    Please check your billing document type and check if document type is left blank, this could be a reason why system picks up RV instead of AB.
    If you want system to pick up AB then in Cancellation billing type document, enter document type as AB, this should work.
    Regards,
    Malini

  • Internal Error -5000 when creating AP Credit Memo

    hi all, i've some problem when trying to create AP Credit Memo  using VB.Net via SAP B1 SDK.
    My application keep throwing error "Internal Error -5000 Occured"
    My friend suggest me to create AP Credit Memo using SAP B1 application first, then try using the same parameter that i inputed into the system to create AP Credit Memo using SDK, he said it ussualy works.
    I already try my friend suggestion to create AP Memo using SAP B1 Screen and it
    was worked.
    The information that i input when creating AP Memo via SAP screen are :
    - Vendor
    - Item/Service Type ="Service"
    - Item/Service Description
    - G/L Account
    - Tax Code ="VNC"
    - WTaxLiable =No
    But when I try to create AP Memo using VB.NET using SAP SDK, it still
    throwing the same exception as before (Internal Error -5000 Occured) even
    I passing the same parameter.
    Bellow is my code :
    For the master :
                            vAPmemo.DocObjectCode =
    SAPbobsCOM.BoObjectTypes.oPurchaseCreditNotes
                            vAPmemo.DocType =
    SAPbobsCOM.BoDocumentTypes.dDocument_Service
                            vAPmemo.CardCode = "V001" ' txtCcode.Text
                            vAPmemo.DocDate = Now 'DatePosting.Value
                            vAPmemo.DocDueDate = Now ' DateDue.Value
                            vAPmemo.DocCurrency = "IDR"
                            vAPmemo.Comments = "Based On Tagihan  No. " &
    dtTable.Rows(j)("JurnalMemo").ToString.Trim & "."
    For The Detail :
                       vAPmemo.Lines.AccountCode =
    dtTable.Rows(j)("AccountCode").ToString.Trim
                            vAPmemo.Lines.BaseType = 18 'basetype = 19 (a/p
    credit memo)
                            vAPmemo.Lines.ItemDescription = "Test"
                            vAPmemo.Lines.WTLiable = SAPbobsCOM.BoYesNoEnum.tNO
                            vAPmemo.Lines.TaxCode = "VNC"
    vAPmemo.RowTotalFC= CDbl(dtTable.Rows(j)("Credit").ToString.Trim)
    Is there anything wrong in my code ?
    or missing parameter?
    Regards,
    Herfin
    Edited by: Herfin Jodana on Aug 28, 2008 3:29 AM
    Edited by: Herfin Jodana on Aug 28, 2008 3:30 AM

    HI,
    if you want ot create a A/P Credit memo, you do not have to give the basetype/BaseLine/BaseEntry fields between document lines.
    the correct is:
    vAPmemo.Lines.AccountCode =
    dtTable.Rows(j)("AccountCode").ToString.Trim
    vAPmemo.Lines.ItemDescription = "Test"
    vAPmemo.Lines.WTLiable = SAPbobsCOM.BoYesNoEnum.tNO
    vAPmemo.Lines.TaxCode = "VNC"
    vAPmemo.RowTotalFC= CDbl(dtTable.Rows(j)("Credit").ToString.Trim)
    if you want to create a A/P Credit memo based on Existing Invoice, you must have to provide the basetype/BaseLine/BaseEntry  which means:
    vAPmemo.Lines.BaseType = 18 'APInvoice
    vAPmemo.Lines.BaseEntry = 'Refrence docentry for A/P Invoice
    vAPmemo.Lines.BaseLine = 'reference to A/P Invoice linenumber
    Try this, it is now working.
    Best Regards,
    J.

Maybe you are looking for