Creation of sales order(Credit memo request) w.r.t invoice

Hi want to create a Credit memo request (sales order) with respect to a invoice.
Can any body suggest me a bapi or Fm which will directly create a sales order with input as invoice number?
Also all mandatory import export parameters to be filled?
Thanks in Advance,
Rohan.

You should be able to use one of these BAPIs (depending on your release - the ...2 one is the lates and greatest, it seems):
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_SALESORDER_CREATEFROMDAT2
BAPI_SALESORDER_CREATEFROMDATA
You'll find a lot of information on them anywhere, please use search. There is also a decent documentation available for each one of them.
The invoice reference will have to be entered as follows (note that it's always at line level):
    order_items_in-ref_doc = <invoice number = VBRK-VBELN>.
    order_items_in-ref_doc_it = <<invoice line number = VBRP-POSNR.>.
    order_items_in-ref_doc_ca = 'M'.   " or whatever category is applicable
Keep in mind though that BAPIs do NOT always work the same way as VA01. If, for example, you have the requirements and copy routines (VOFM), they might get bypassed when creating an order with BAPI.
Any follow-up questions I'd suggest to post in ABAP forum. Good luck!

Similar Messages

  • Cost center in Sales Order/Credit memo request

    Hi SAP Gurus,
    There is a requirement from our client. They are processing Credit Memo from SD VF01 via Credit memo request. The want to assign Cost center in the line items which is greyed out at the time of processing in VF01.
    I also verified in the Credit memo request in VA02 even there is no field available for to maintain  Cost center in line item so that at the time of billing it can  derive.
    Please advice whether can we assign the Cost centers in Sales order/Credit memo request line items?.
    Regards
    NTH

    Hi NTH,
    In the standard system, the field cost center is only ready for input
    if the sales document category is VBAK-VBTYP= I (that is, order without
    charge). For all other order types, you can make it visible by entering
    an order reason provided that the combination of the sales area and the
    order reason has a cost center assigned in OVF3. To change this standard
    behaviour, USEREXIT_COBL_SEND_HEADER can be used. There you can find a
    short example on how to make a field visible and modificable in the
    account assignment screen.
    Moreover, please take into account that the account assignment to a cost
    center is possible only at header level. So it is not possible to
    insert the cost center at item level, you can only insert it at header
    level.
    The cost center determination takes place in
    FV45KF0V_VBAK-KOSTL_ERMITTELN and is reading from table TVAUK.
    This table can be maintained in transaction OVF3.
    If you wants to be able to enter the cost center manually in the
    account assignment screen (header level), you can use  the user exit
    FV45PF0C_COBL_SEND_PBO_VBAK (SAPMV45A) - there you can find a short ex
    ample on how to make a field visible and modifiable in the account
    assignment
    I hope that this information is of assistance to you. Thanks!
    Regards,
    Alex

  • Copy a sales order to creade a sales order credit memo request

    Hi,
    I copied a sales order from i.e. 100.000 (type ZMA) to another one i.e. 200.000 (type ZCMR), the last one is a Credit Memo Request.
    Now when I try to create the credit memo by VF01 for the sales order 200.000, I'm getting the error message: ZCMR ZPOS cannot be invoiced with billing type ZCM.
    I would create the credit memo from the sales order type ZCMR
    Is this possible ?
    Best Regards

    Hi,
    In general the Credit memo request would be created referncing the Invoice. 
    In your case, you have mentioned that credit memo request is created a Sale order. Not sure of the specific scenario if you have any,
    on point 2, yes,  you may create Credit memo referencing the Credit memo request.
    In all places, check for the copy controls from the preceding document to the successing one.
    If this helps,  Text Removed
    Regards,
    VBASHA.
    Edited by: Lakshmipathi on Feb 3, 2012 5:13 PM
    Dont add such comments and deviate the forum rules

  • Problem in Sales Order Credit Memo

    Hello All,
    The problem is related to item category ZTAN where we have changed the Completion Rule to B and in VTAF ( Bill to Order Copy Control) under Item details for Credit Memo Request for example from Domestic Invoice to Credit Memo we changed the positive/negative quantity updation to positive. Now after changing the completion rule we were facing a problem where after completion of Sales Process till generation of Invoice the document flow was showing the status as :Being Processed". Then after changing the Completion Rule again to 'blank' the problem of document flow status was solved as it showed the status as "Completed".
    Now after doing this change in Item Category for normal sales order we are facing a problem in Credit Memo where again after completion of Credit Memo the document flow status here is showing as 'Being Processed' instead of 'Completed'. Please suggest what configurations need to be done to get the desired result which is in Credit Memo after completion the status will show as "Completed".
    Thanks & Regards
    Priyanka Mitra

    Hello Mr. Shiva Ram,
    First of all thanks a lot for your help.The problem of credit memo is now solved but to resolve the status of the existing sales order documents as per your suggestion we have run the  program SDVBUK00 in SA38.Still we didn't get the desired result as the status of the completed normal sales orders are still showing "Being Processed" even after running the program.
    Please suggest what else need to be done to change the status of the completed sales documents till invoice.
    Regards
    Priyanka Mitra

  • Creation of  Credit Memo request from the contract invoice

    Hi all,
    I would like to know the relationship between the contract invoice (billing document type, ZULG) and the associated credit memo requests. I have the billing document no, and need to know all the associated credit memo requests.
    It is possible to find the reference billing document from the credit memo request, as it is created with respect to a billing document, but is it possible to find the credit memo requests from the billing document?
    Any info on this relationship would be really appreciated.
    Many thanks,
    Sruthy

    Hi!
    If the credit memo is created as a follow on order with respect to the contract, it is possibel to find the credit memo request through the doc flow.
    Thanks & Regards
    Birlabose

  • Error while creating Credit Memo Request for Milestone billing invoice

    Hi All,
    I have a scenario where i have Milestone billing(% based) at header level in Contracts. I create Invoice for that and then try to create Credit Memo Request with reference to the Invoice.
    Problem comes when we try to change the qty in the credit memo request. we are able to change the qty but the value is not changing. It remains the same constant value of that milestone.
    In my copy control from Invoice to Credit memo request for the item category i have maintained the pricing type as "C" because i want to copy and manual conditions.
    So kindly let me know which config setting should be done so that whenever i change the qty the value should also be changed.
    Please Note : This is happening only when my billing plan is at header level. For Billing plan at Item level its working fine.....
    Thanks.....

    Hiiii.....
    Can anyone please advise on the below issue of mine.....
    Thanks alot for the help.......in advance

  • Automatic creation of debit or credit memo

    Hi All,
    I have a requirement of automatic creation of credit note with reference to sales order when i click save at transaction VF01 after generating billing document against delivery number.
    I used the include ZXVVFU08  it is triggered when the save button is pressed in VF01. i have wriiten BDC code in this include. At the point when i click save, the billing number is getting generated but credit memo is not getting generate.It is giving an error 'No billing documents were generated'
    How do i ensure that the invoice number is already saved before the BDC starts?
    Need help. Thank you!

    Dear seetharamsapsd ,
    Create a new document type for both credit memo and debit memo requests.
    Copy control to the respective credit memo and debit memo should be there.
    Pricing procedure should contain provision to map the difference amount.
    Create  a Z program recording a BDC for the creation of Debit and credit memo request.
    It is better to keep have only one Z program.
    In the program write a logic to check the price change comparing the values of previous month created orders and
    this months condition record values.
    Based on whether there is increase or decrease , system should run the respective BDC for the debit or credit memo request.
    This program can be set in background maybe at midnight.
    Also save VF04 as a background job (so that the debit / credit memos as also created automatically)
    Set this VF04 background job to run after say 1 or 2 hours from the time our Z program is running.
    I hope you know the different tables/fields from where you can get the desired condition to run the program.
    Thanks & Regards,
    Hegal K Charles

  • Copy contrle billing to credit memo request

    Hi All,
    when am creating credit memo request with reference to invoice frieght is redetermining.
    As per my understanding when we keep Pricing type D at item level copy controle no element should change while copying the pricing data from invoice to credit memo request.
    can any one tell what could be the problem in this .... why the frieght is redetermining while creating credit memo request.
    Please let me know what exactly Pricing type D in copy controle.
    advance thanks for your quick replay..
    Thanks
    nath.

    SAP Definition for Pricing Type D
    copies the pricing elements unchanged with automatically determined or manually entered surcharges and discounts from the reference document (scales are not read again). This means that the value remains unchanged even if the billing quantity is different to the order quantity
    This means, definitely, the freight value should not change.  Try to create another credit memo and post the feedback.
    thanks
    G. Lakshmipathi

  • Regd creation of New Sales Order Type - Credit Memo Request

    Hello Gurus,
    I have created a New Sales Order Type as per the given requirements. This is a Credit Memo Request. I have done all that are needed from SD perspective.
    Can you please let me know what needs to be done from FI-CO perspective when a New Sales Order Type is created and this is a Credit Memo Request. If some one can let me know the customizations that needs to be done it will be very helpful for me.
    Thanks,
    SNK.

    Hi,
    As per my understanding, there is nothing to be required from FI-CO perspective, in case when you defined a document type in SD.
    During the sales order processing the SD-FI interface happenes for following activities
    1) Credit check (In case you use Credt management)
    2) Tax determination
    For more knowledge
    go through the link given below.
    http://www.sap-img.com/sap-sd/link-between-sap-sd-mm-and-fi.htm
    Hope it helps,
    Regards,
    MT

  • Credit memo request to correct Sales order after customer payment

    Hello all,
    Could you please give me any suggetion on this issue:
    We uploded sales orders  from legacy system into sap and create invoice but we made a mistake, we didn't take into account a discount in price conditions.
    The Customer payment is correct and also uploaded from legacy system.
    I'm required to correct the difference by doing a Credit memo request and credit memo with reference to sales sorder, so my questions :
    Do I create credit memo request with ref. to SO for all items, quantities and price or just for a discount amount (what i think) ?
    Any input will be appreciated.
    Thanks.

    Hello Farouk,
    If you know the discounted amount for each account then as per my view you directly can create  credit note from the FI side so manage the differences.
    Please wait for more suggestion from FORUM.
    Regards
    AG.

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

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

  • Saels Quotation,Contract, Order, Return, Debit/Credit Memo Request

    Hi,
      I have Saels Quotation,Contract, Order, Return, Debit/Credit Memo Request. Now I want to change the Sales office, Sales Group and sales District in the existing Quotation,Contract, Order, Return, Debit/Credit. But in all the these requests these 3 fields are not in editable mode. Plese suggest me what is the best way I can change these 3 fields in the existing Quotation,Contract, Order, Return, Debit/Credit.
    Thanks & Regards
    Venkat

    You can also use :
    SD_SALESDOCUMENT_CHANGE
    FYI
    call function 'SD_SALESDOCUMENT_CHANGE'
            exporting
               salesdocument         = salesdocument
               order_header_in       = da_order_header_in
               order_header_inx      = da_order_header_inx
               simulation            = simulation
               behave_when_error     = behave_when_error
               int_number_assignment = int_number_assignment
               logic_switch          = logic_switch
               business_object       = 'BUS2032'
               call_from_bapi        = 'X'
            tables
               return               = return
               item_in              = da_order_item_in
               item_inx             = da_order_item_inx
               schedule_in          = schedule_lines
               schedule_inx         = schedule_linesx
               partners             = partners
               partnerchanges       = partnerchanges
               partneraddresses     = partneraddresses
               conditions_in        = conditions_in
               conditions_inx       = conditions_inx
               sales_cfgs_ref       = order_cfgs_ref
               sales_cfgs_inst      = order_cfgs_inst
               sales_cfgs_part_of   = order_cfgs_part_of
               sales_cfgs_value     = order_cfgs_value
               sales_cfgs_blob      = order_cfgs_blob
               sales_cfgs_vk        = order_cfgs_vk
               sales_cfgs_refinst   = order_cfgs_refinst
               sales_text           = order_text
               sales_keys           = order_keys
               extensionin          = extensionin.
    Note:you can go SE80 and choose Function group = 'VBAK". you`ll find Fms.
    Hope this’ll give you idea!!
    <b>Pl... award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Credit Memo Request for intercompany sales process

    Hi Experts
    I try to find SAP notes regardsing the credit memo request for intercompany related issue but I can
    not find any nates. The customer return the goods with 2 different
    scenario :-
    -Return with credit
    -Return with replacement.
    Can anybody explain how this 2 scenario perform in the SAP
    intercompany sales process. Appreciate for your help. Thanks in advance.
    Regards,
    Jennie Tan

    Already answered
    Enter IG (internal credit memo) as the billing type for intercompany
    billing for order type RE.
    Cust-Sales/distrib-Transactions-Billing-Intercompany billing-Order types
    Intercompany billing always refers to a delivery
    Processing flow will be:
    1. Create returns request invoice receipt (with or w/out reference)
    2. Create returns delivery and goods receipt
    3. Create credit memo invoice receipt for customer for 1.
    4. Create internal credit memo for 2.
    Therefore you must make the following entries in the document flow
    for billing documents:
      Target BillType        DlvType              ItemCat
    a)    IG                  LR
    b)    IG                  LR                    REN
    Parameters for entries:
    For a) Copying requirement:  14  Dlv.-rel.header IV
          Copy item no.: x  (Check and decide yourself)
    For b)Copying requirement: 15 Dlv.rel. item IV
          Data VBRK/VBRP      : 1  Inv.split (sample)
          Billing quantity    : B
          Qty/itm val.pos/neg : +
          Pricing type        : G
    Also, refer following SAP Notes
    13160 - Returns with intercompany billing
    24756 - Credit memo requests with inter-company billing
    652007 - Reporting internal credit memos on arrival side
    11980 - Intercompany billing with order-related billing document
    164074 - Problems for internal invoices on returns
    Thanks & Regards
    JP

  • Multiple credit memo creation for single credit memo request

    Hello,
    The problem is that I am able to repeatedly create multiple credit memos for the same credit memo request.  The system is not stopping me by saying "This order is fully invoiced".
    I observed the following in the customizing:
    1. If the sales document category of the billing document (in VOFA transaction) is 6 (Intercompany credit memo), then I am able to create mulitiple credit memos against the same credit memo request.
    2.  When I change the sales document category of the billing document to O (credit memo), then the system stops me from creating multiple credit memos against the same credit memo request.
    If I want to maintain 6 (intercompany credit memo) in VOFA and still want the system to stop me from creating multiple credit memos for the same credit memo request, then is there is any other customizing to achieve this?
    Thanks,
    Shankar

    Shankar, most likely the billing status of your sales document is not updated. We have experienced the same (or similar?) issue with the intercompany documents and SAP refused to correct it. Here is a fragment of my message exchange with the SAP support:
    We have already read the notes 63459 and 308989. They both do not apply
    to our business process. The document flow mentioned in the notes is as
    follows:
    Sales order - customer billing document - intercompany billing document
    Our document flow is different:
    Contract - customer billing document - Intercompany sales order (could
    be more than one order per customer billing document) - intercompany
    billing document
    The order-related billing status is not being updated on the
    Intercompany sales order.
    The process described in the notes implies one-to-one relationship
    between the customer and inter-company billing documents and the sale
    from a Plant that is assigned to another company. We are in the service
    industry and sometimes the sale revenue has to be shared by 2-4
    companies within our enterprise.
    Good day. It is a standard system behaviour that if the billing document type has SD document cateogry '5' (field TVFK-VBTYP in transaction
    VOFA). So it is an intercompany billing.
    The order-related billing status VBUP-FKSAA is not affected by the
    intercompany billing.
    So its billing status remains opened, and can be billed more times.
    This doesn't seem right to me. Maybe if more customers complain, they will do something about it.
    To some extent this may be managed with copy requirements (VOFM), where you can prevent copying the credit memo line items that have been invoiced. However, this might still lead to the blank documents with 0 value, statuses won't be correct and in VF04 you would see the documents as not invoiced.
    I had to do a core modification to resolve this issue in our system. In LV45P011 include I did the following:
    * Faktura
    *{   REPLACE        DC6K903001                                        1
    *\  IF vbfa-vbtyp_n CA vbtyp_fakt AND vbfa-vbtyp_n NA vbtyp_fkiv.
      IF vbfa-vbtyp_n CA vbtyp_fakt.
    *}   REPLACE
    Hope this helps.
    Edited by: Jelena Perfiljeva on Nov 14, 2008 11:09 PM

Maybe you are looking for

  • Column name length exceeds maximum allowed

    Hello, I get this error when am trying to create a table. ERROR: Column name length exceeds maximum allowed length(30). Is it able to extend this length to be more than 30 ? By the way I am using Oracle 11g Regards, Moussa El Tayeb about.me/MoussaElt

  • Change print driver settings on canon printer to select one or two sided printing

    My Canon print driver prints double sided by default. I want to change to single sided, or be able to select single or double on a per document basis. How do I change my print driver settings?

  • Output becomes muted automatically when track is played

    Strange problem. I play my track in Logic, it runs smoothly for three or four bars then the volume is completely muted. The output goes to zero (there is no signal), but the rest of the tracks on the mixer have the appropriate signal, as if the song

  • E4200 : DHCP Reservation not showing anything !?!

    Hello, When I'm in Setup -> Basic Setup -> click on DHCP Reservation, I don't see all entries I've created earlier but computers that connect still have the correct IP address on the network; I don't know if I can create additional entries if nothing

  • HELP! Ovi Suite "Packet Data Access Point Not Vali...

    So i downloaded Ovi suite to get internet from my phone i have a Nokia 3711 and when i try to connect i get this message on my phone "Packet data access point not valid" what does this mean? and how can i fix it? I have unlimited internet data thing.