Creation of credit memo requests through SD_SALESORDER_CREATE

Dear All,
We are using SD_SALESORDER_CREATE to create credit memo requests. However this FM only generates a document number and even gives a message that this document has been saved.
However there is no document saved to the database with that number. In effect this FM only advances the number range but doesn't commit.
Is there any other FM to save the document with the generated number.
Regards,
KC

Hi Guys - bang up to date I am, but just came across this old one by chance.
OSS Note 168124:
"To test BAPI BAPI_SALESORDER_CREATEFROMDAT2 and at the same time update the
created document, create a test sequence which calls BAPIs
BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT."
I believe BAPI_SALESORDER_CREATEFROMDAT2 calls SD_SALESORDER_CREATE so same issue and solution.
Stephan

Similar Messages

  • Create Credit Memo Request through txn. FB65

    Hi Experts,
    I want to create Credit Memo Request through txn. FB65.I am using Bapi 'BAPI_ACC_DOCUMENT_POST' to create it.
    Can anyone please tell the the minimum parameters which I will pass in this BAPI to create CreditMemo Request?
    Helpul answers will be rewarded by points.
    Thanks
    Naveen Rana

    Hi Naveen,
    You run this BAPI by giving input till you get the result and then use it in your code.
    Some of the structure to post credit memos are
    *--Populating Header strucuture
    *--To upload the Header Structure required By BAPI
      wa_docheader-bus_act     = c_bus_act.
      wa_docheader-username    = sy-uname.
      wa_docheader-header_txt  = wa_lineitem-header_text.
      wa_docheader-comp_code   = wa_lineitem-header_company.
      wa_docheader-doc_date    = wa_lineitem-invoice_date.
      wa_docheader-pstng_date  = sy-datum.
      wa_docheader-fis_period  = '00'.
      wa_docheader-ref_doc_no  = wa_lineitem-invoice_number.
      wa_docheader-doc_type = wa_lineitem-document_type.
    Document type is KR for Invoice and KG for Credit Memos.
    *--Populating Accounts Payable table
    *--Populating Currency Item Structure
    Thanks
    Sudharshan

  • 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

  • Creation of Credit Memo request from Invoice.

    Dear All,
    We have requirement for creation of CRM Credit Memo request from CRM Invoice.
    Please guide any one if you have clue on this requirement.
    Regards,
    Mallik Kosuru

    This can be achieved by creating  complaints . You create a complaint -credit memo request-credit memo  with reference to billing document, refer to C28 CRM complaints for more info.

  • Creation of Credit memo Request using FM SD_SALESDOCUMENT_CREATE

    Hi Guys,
    I am using FM SD_SALESDOCUMENT_CREATE to create credit memo request from flat file.
    we are using variant configuration and characteristic values for material are not being populated. Rest of the sales document is created but characteristic values are missing.
    can any one help me if u have some information or some piece of code.
    here is the code i am using.
    LOCAL DATA DECLARATION
      DATA: L_WA_ORDER_CFGS_VALUE   TYPE BAPICUVAL,
            L_WA_ORDER_CFGS_REF     TYPE BAPICUCFG,
            L_WA_ORDER_CFGS_INST    TYPE BAPICUINS,
            L_WA_ORDER_CFGS_PART_OF TYPE BAPICUPRT.
      CONSTANTS: C_MARA   TYPE CHAR10 VALUE 'MARA',
                 C_300    TYPE CHAR03 VALUE '300'.
      IF FP_L_WA_CHAR-ITM_NUMBER  <> FP_V_ITEM_OLD.
      Build internal tables for material configuration
      Configuration: Reference Data
        L_WA_ORDER_CFGS_REF-POSEX     = FP_L_WA_CHAR-ITM_NUMBER.
        L_WA_ORDER_CFGS_REF-CONFIG_ID = FP_L_WA_CHAR-ITM_NUMBER.
        L_WA_ORDER_CFGS_REF-ROOT_ID   = FP_L_WA_CHAR-ITM_NUMBER.
        APPEND L_WA_ORDER_CFGS_REF TO FP_I_ORDER_CFGS_REF.
      Build internal table BAPICUINS
      Configuration: Instances
        L_WA_ORDER_CFGS_INST-CONFIG_ID  = FP_L_WA_CHAR-ITM_NUMBER.
        L_WA_ORDER_CFGS_INST-INST_ID    = FP_L_WA_CHAR-ITM_NUMBER.
        L_WA_ORDER_CFGS_INST-CLASS_TYPE = C_300.
        L_WA_ORDER_CFGS_INST-OBJ_TYPE   = C_MARA.
        L_WA_ORDER_CFGS_INST-OBJ_KEY    = FP_L_WA_CHAR-MATERIAL.
        APPEND L_WA_ORDER_CFGS_INST TO FP_I_ORDER_CFGS_INST.
      Configuration: Part-of Specifications
        L_WA_ORDER_CFGS_PART_OF-OBJ_TYPE   = C_MARA.
        L_WA_ORDER_CFGS_PART_OF-CLASS_TYPE = C_300.
        L_WA_ORDER_CFGS_PART_OF-OBJ_KEY    = FP_L_WA_CHAR-MATERIAL.
        APPEND L_WA_ORDER_CFGS_PART_OF TO FP_I_ORDER_CFGS_PART_OF.
        FP_V_ITEM_OLD = FP_L_WA_CHAR-ITM_NUMBER.
      ENDIF.
    Configuration: Characteristic Values
    Sales Document Item
      L_WA_ORDER_CFGS_VALUE-CONFIG_ID = FP_L_WA_CHAR-ITM_NUMBER .
      L_WA_ORDER_CFGS_VALUE-INST_ID = FP_L_WA_CHAR-ITM_NUMBER.
    Characteristic Name
      L_WA_ORDER_CFGS_VALUE-CHARC = FP_L_WA_CHAR-CHARC .
    Characteristic Value
      L_WA_ORDER_CFGS_VALUE-VALUE = FP_L_WA_CHAR-VALUE .
      APPEND L_WA_ORDER_CFGS_VALUE TO FP_I_ORDER_CFGS_VALUE.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
      CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
        EXPORTING
          SALES_HEADER_IN      = FP_WA_ORDER_HEADER_IN
          SALES_HEADER_INX     = FP_WA_ORDER_HEADER_INX
          BEHAVE_WHEN_ERROR    = C_R
          BUSINESS_OBJECT      = 'BUS2094'
        IMPORTING
          SALESDOCUMENT_EX     = L_SALESDOCUMENT
        TABLES
          RETURN               = L_I_RETURN
          SALES_ITEMS_IN       = FP_I_ORDER_ITEMS_IN
          SALES_ITEMS_INX      = FP_I_ORDER_ITEMS_INX
          SALES_PARTNERS       = FP_I_ORDER_PARTNERS
          SALES_SCHEDULES_IN   = FP_I_ORDER_SCHEDULES
          SALES_SCHEDULES_INX  = FP_I_ORDER_SCHEDULESX
          SALES_CONDITIONS_IN  = FP_I_ORDER_CONDITIONS_IN
          SALES_CONDITIONS_INX = FP_I_ORDER_CONDITIONS_INX
          SALES_CFGS_REF       = FP_I_ORDER_CFGS_REF
          SALES_CFGS_INST      = FP_I_ORDER_CFGS_INST
          SALES_CFGS_PART_OF   = FP_I_ORDER_CFGS_PART_OF
          SALES_CFGS_VALUE     = FP_I_ORDER_CFGS_VALUE
          SALES_TEXT           = FP_I_ORDER_TEXT.

    Hi, has your question be answered? What was the outcome / result?

  • Credit Memo Request - Warning Message

    Hi,
    We need to have Warning message to be displayed when we have the credit value exceeds the invoice value during the Credit Memo request creation with reference to the invoice.
    Currently, as per SAP Standard the system is throwing an information message when the credit value exceeds the invoice value.
    In the same requirement, we need to have a report for which we have the credit value exceeds the invoice value.
    Please help !
    Regards

    Hi,
    You can control the quantity to be copied into Credit memo request through Copy Controls Quantity Update.
    The the same quantity will be copied from the reference document into target document.
    You are getting error as Credit Memo Request exists , because you have created the Credit Memo request for full Sales Order Qunatity.
    Regards
    Krishna

  • 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 Request already exists for item & 1 , & 2, etc

    Hi SD guru's,
    I am trying to create a credit memo request in reference to my sales order invoice and i am getiing this warning message "Credit Memo Request already exists for item ".
    How is this possible,when i am creating the credit memo request only for the 1st time. Message number displayed is V1498, can you please help me solve this issue.
    Also when i manage to enter into the credit memo request document by pressing enter to all those warning's, i am asked to enter the target quantity. How do i handle this? since i have maintained order quantity in my sales order and my sales invoice.
    Message number displayed is V1498, can you please help me solve this issue.
    Waiting for your kind help.
    Regards
    Ravi.D.Mansharamani

    Hi,
    You can control the quantity to be copied into Credit memo request through Copy Controls Quantity Update.
    The the same quantity will be copied from the reference document into target document.
    You are getting error as Credit Memo Request exists , because you have created the Credit Memo request for full Sales Order Qunatity.
    Regards
    Krishna

  • Return Delivery with a Credit  Memo Request.

    Hello Gurus. I have been working on this issue for quite some time. I will explain the process that was provided by our installers. It doesn't seem to be adding up. Here is the situation, Product that was sent incorrectly was returned. According to our procedures, we create a returns delivery thru VA01, with RE (returns) as the Order Type. We then create it with REFERENCE to the Invoice Number. We remove the items not being returned, enter the Billing Block and Order Reason. Then Save. It gives us a returns delivery number of 6000000, We then return the product back to our stock through MB1B. We clear it and put it back as normal. We then Create a Credit Memo Request through VA01, order type is CR (Credit Memo Request) Create with Reference, we again select the invoice number, delete the items not being returned, enter billing reason, then save. It gives us a number of 60000001. At this point, we enter VF01 and create a billing document. It says the order has billing blocks. We go back in and remove the blocks. We hit save. It now seems to ok, except that, under document flow, under the first delivery 6000000, it shows still being processed (the goods returns shows complete, but the line above shows being processed), and the document flow for 60000001 shows the invoice and the Accounting document as Not Cleared. My question is, should there be 2 seperate orders? A returns delivery and credit memo Request should be under the one delivery number 6000000 according to our procedures? Those were the steps given. Something seems out of place. Are my steps out of order?  Are the procedures wrong?  If anybody has any insight, I would much appreciate it.

    I would start fresh with a new sales order.  When you create with reference both the return delivery and credit memo are created with reference to the return sales order.  Here is an example document flow to clarify:
    Document                                      Date               Qty/value   UoM/Cur   Overall proc. status
                                                                                    Return 60000077 / 10                          08/25/05               10.000  EA      Completed                                 
    . Returns Delivery 500000016 / 10             08/25/05               10.000  EA      Completed                                 
    .. GD returns QI 4900030060 / 1               08/25/05               10.000  EA      complete                                  
    .. Credit for Returns1 10000017 / 10          08/25/05               10.000  EA      Completed                                 
    ... Accounting document 10000017              08/25/05               10.000  EA      Cleared

  • 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

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

  • Credit Memo Request creation in VA01 transaction Code

    Hi All,
    Thank You very much in advance for reading this Query.
    My Requirement is we have to create Credit memo Request in VA01 Transaction Code.But I tried to use the standard FM BAPI_SALESORDER_CREATEFROMDAT2 and It is throwing the Error "Unpermitted combination of Business Object BUS2032 and Sales doc.category K".
    So can any one advise me the correct FM to satisfy this requirement.
    Thanks and Regards,
    K.Krishna Chaitanya.

    Hi
    Try this....
    Pass the below data to the fm: SD_SALESDOCUMENT_CREATE.
    SALES_HEADER_IN:
    DOC_TYPE
    SALES_ORG
    DISTR_CHAN
    DIVISION
    STATUS_BUFFER_REFRESH = 'X'
    SALES_ITEMS_IN:
    ITM_NUMBER
    MATERIAL
    TARGET_QTY
    TARGET_QU
    PURCH_NO_C
    SALES_PARTNERS:
    PARTN_ROLE
    PARTN_NUMB
    SALES_CONDITIONS:
    ITM_NUMBER
    COND_TYPE
    COND_VALUE
    CURRENCY
    COND_UNIT
    Hope this helps....

  • Credit memo request creation problem

    Hello Guys,
      I try creating credit  memo request passing all related parameters in FM 'SD_SALESDOCUMENT_CREATE'.
    I get the error 'Document 9992222 doesn't have document category  but  '.
    Message is V2 068 .  It  space before and after but.
    I have passed the document category as 'M', in the header data.
    Please reply, if you know the problem or want more details from me.
    Thanks and Best Regards!
    Sandip

    Hi Guys,
    The Ref_doc_cat was not filled correctly in the BAPI. Hence the error.
    Its working now.
    Thanks!
    Sandip

  • Automatic billing document creation upon saving credit memo request.

    Hi,
    I have a requirment where in :
    When a Credit Memo Request is created(va01) and upon saving the credit memo request an automatic billing document needs to be genereated i.e Credit Memo.
    How can this be achieved.
    Thanks

    Hi Keni
    If a Credit Memo Request is created and after saving the Credit Memo Request  , automatic billing should happen means you should maintain a new sub-routine and assign in the copy control VTFA . In that sub-routine maintain a logic that once the Credit Memo Request is saved automatic billing should happen
    Regards
    Srinath

  • 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

  • Runtime casting problems

    The following code gives me runtime casting problems: package edu.columbia.law.markup.test; import java.util.*; public class A {    protected static Hashtable hash = null;    static {       hash = new Hashtable ();       hash.put ("one", "value 1");

  • 27" iMac video in

    Hi, again... I was seeing some older topics about the video in included in the 27" iMac. It seemed that many wanted to hook an Xbox or a Playstation 3 on that display, but it seems that there is no adaptor. Have you found any? What about HDMI-to-DVI

  • Error executing BPC test script

    Hi, We are on HANA. Our performance team is trying to execute a test script from HP Load Runner. We are seeing the below error HTTP/1.0 500 Internal Server Error\r\n <TITLE>500 SAP Internal Server Error</TITLE>\n ERROR: XSLT: No valid XML source (ter

  • Windows 8 start up sounds

    how do i activate windows 8 start up sounds it worked the first time i turned my pc on but not since,i have ticked the windows default checkbox but the apply area is shaded out?

  • Change reading order

       How do I change the reading order in INDD CS6 for processing Persian script?