Sales Return: credit memo Should generate automatically with goods reversal

DEAR SD GURUS N EXPERTS,
Currently we are using following system of Sales return.
VA01: (Order Type: RE) --> VL01N (Return Delivery) --> VL09 (Goods Reversal) --> VA01 (Request 4 Credit Memo or remove billing bloc) --> VF01 (Credit Memo)
But, now my client want a such configuration that entry of Credit memo should happen along with Goods Reversal (VL09) - Automatically. They don't want to carry out VF01 separately.
Reason behind it: Customers has credit Limit, Suppose a customer has a Credit limit of 5,00,000 and we have delivered the Material of same amount. It means all the credit limit has been used. But now He has returned the material of 2,00,000. But it will not affect the credit limit until we pass Credit memo.
Please suggest the required configuration and what we can do in such scenario. Thanks in Advance.
DSC

Again I can tell you that the process what you were following (reversing the goods receipt) is totally wrong and it will have a serious negative impact on inventory.  Either you should not create a return delivery or take the stocks into parent plant.  If you dont want to show in inventory, then scrap it which is a standard process.
Coming to the requirement, there is no standard way to achieve this.  Check these threads where the same topic was discussed
[Re: How to set up in SAP to have automatic billing after PGI |Re: How to set up in SAP to have automatic billing after PGI]
[automatic billing|automatic billing]
You have to apply the same logic for credit note also.
thanks
G. Lakshmipathi

Similar Messages

  • Depo sales returns --Credit memo issue

    1.Sales Order (Return Order)
    2. Delivery (Return Delive PGR)
    3.Incoming Excise Invoice using Transaction J1IG with referenc to return Material Document then RG23D  will update.
    4. Credit memo -- here only excise values are not copying from return sales order.
    can any one give the inputs where i am doing mistake i have check the VTFA copy control also

    Hi
    Customer receives the goods in his factory premises and returns back to us due to quality problem. Now in this case user has to create the return order to credit memo.
    Maintain a vendor
    Maintain vendor as u201CCustomer Returnu201D in XK01 for the company code, purchase organization and account group combination
    Maintain finished material as input material
    Transaction: J1ID
    Select radio button namely CENVAT Determination
    Maintain plant, input material and output material combination. The input as well as output material will be same ,
    Now go to transaction J1IEX for capturing the excise invoice sent by customer with returned material
    Select Capture excise invoice without Purchase order reference
    Enter Customeru2019s excise invoice number, excise group, document date, Vendor (Customer Return) and posting date as shown below
    Now at item details, maintain material code, material type u2013 Raw Material, plant, quantity, unit of measure, duty rates and duty values, excise base etc.

  • Credit memo to be created with reference to return delivery

    Dear Gurus,
    We have a requirement for mapping return process
    Credit memo to be created with reference to return delivery (instead of with reference to return order)
    Following issue faced in mapping the same:
    Billing document No. 1234 dated 25.03.2010 where there is 4% VAT.
    when we are creating return order with reference to billing document 1234
    4% VAT is calculated since the Service Rendered date is 25.03.2010 (Copied form Billing document)
    return delivery is created today 08.04.2010. (VAT revised to 5%)
    when credit memo is created with reference to delivery document
    VAT is calculated 5% which is applicable from 01.04.2010
    since the service rendered date is appearing in billing document
    08.04.2010 (the date of Post Goods Receipt).
    The VAT should be actually 4% in Credit Memo.
    regards,
    Rajesh T

    In the copy controls from delivery to Invoice, at the item level try to use pricing type C and Pricing source Blank ( Blank is order).
    If it doesnt work , then you might have to go for a requirement routine for this Tax , based on the document category that is being processed, read the tax from the originating order.Assign the routine to tax condition in the pricing procedure.
    Regards
    Sai

  • Credit Memo should NOT be allowed before PGR is done in returns

    HI,
    Currently i am able to post Credit Memo even if the PGR has not beeen done for the Returns, but i dont want this. I want that Credit Memo should be allowed only if PGR has been done.
    Kindly advise how this can be done.
    Thanks,

    Hi,
    Delete the copy control between your order and credit memo in VTFA T.code.
    And maintainthe copy control between your Returns delivery and credit memo so that it will allow to create a creditmemo after doing the PGR.
    In VOV8 T.Code maintain only delivery related billing billing type by removing order related billing type in billing tab.
    Hope this helps you.
    Regards,
    Krishna.

  • Define key figures -incoming order, invoiced sales and credit memo in BW

    Hi everyone,
    I combined two ODS into one ODS from 2LIS_11_VAITM & 2LIS_13_VDITM. I want to generate reports that contain net value, cost of incoming order, invoiced sales, and credit memo'(SD module).
    I tried to create some calculated key figures in BW that contain the net value and cost of incoming order, invoiced sales and credit memo. However, i couldn't find relative fields to define them.
    Can anyone provide help regarding how to create those key figures in BW? Thank you.

    Hello John,
    I think the best way to check it out is by looking at the business content. There might be mapping already defined for the fields you are looking for. The one standing out is perhaps the net value 'ONET_VALUE'.
    Please try to use as much of content KF as possible. A good approach to finding the right info-objects is by searching the business content by info-sources and marking the grouping as 'Collect before and afterwords', it should list down all the dependent info-objects.
    Hope that helps.
    Cheers, Ashu

  • Returns, Credit Memo, Credit Memo Request

    Hi All,
    Can anybody clear my doubts for the below mentioned and i would require the process flow please with Transactions and Order Type, Billing Type etc.
    •Booking goods returned
    •Credit note with stock receipt
    •Credit note without stock receipt
    •Value credit note
    Thanks & Rgds
    Naveen

    Hi Naveen,
    Booking goods reciept - returns order with document type RE ,can be created with or without reference to the sales document no. OR Credit memo request.
    Credit note with stock reciept - Creating credit note (billing document type) with reference to inbound delivery document. Items relevant to delivery in returns order.
    Credit note without stock reciept - Credit note ( Credit memo - Billing document type) with reference to Returns documnent ( without reference to Inbound delivery, Item not relevent to delivery)
    Value credit note - Credit memo
    Regards,
    Praveen.

  • Return Credit Memo Transaction (ZSD_RETCRMEMO)

    Hi gurus,
    Could you help on…
    Return Credit Memo Transaction (ZSD_RETCRMEMO)
    Client unable to tie back to ledgers so needs to know where information is being pulled from
    Thanks in advance
    Regards,
    Kumar

    Incase of Return Sales Order:
    T.Code for copy control: VTAF
    Source Document: F2
    Target Document: RE
    Item category REN
    Considering the above settings are done:
    Create return sales order RE (with Reference to Billing Document) & the data will be copied as it is in Return Sales Order - RE. For Eg: here you require to change to quantity from 10 to 2, as you want to take back into Inventory of only 2.
    Incase of Return Delivery:
    T.Code for copy control: VTLA
    Source Document: RE
    Target Document: LR
    Item category REN
    Considering the above settings are done:
    Create Return Delivery through T.Code VL01N & do PGR (Post Goods Receipt). This will add the stock to blocked stock. This will take care of Inventory.
    To address the issue of how to take Credit for Excise, use T.Code: J1IH --> other Adjustment & based on the credit to be taken, make the necessary entry.
    Incase of Credit Memo:
    T.Code for copy control: VTFA
    Source Document: RE
    Target Document: Credit Memo
    Item category G2N (Check in System)
    First in VA02, remove the Billing Block in Return Sales Order - RE & save the document. Now in T.Code: VF01, enter Return Sales Order Number & select the appropriate Billing Type (Credit Memo) & Enter& Save. This will create Credit Memo.
    Hope this helps you.
    Regards,
    Rajesh Banka

  • Create IDOC when the credit memo is generated

    I want to create an IDOC.
    The IDOC will be created when the credit memo is generated.
    Please help me to create the segments.
    Title was edited by:
            Alvaro Tejada Galindo

    Hi
    First you find the relative Idoc Type and Message type for that credit memo in the tables EDBAS and EDMSG
    Then go to WE31 and create the additional segments as per your requirements apart from doing lot of other related settings
    see the doc
    Data Creation in Idoc
    IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an
    asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
    While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
    IDoc is a intermediate document to exchange data between two SAP Systems.
    *IDocs are structured ASCII files (or a virtual equivalent).
    *Electronic Interchange Document
    *They are the file format used by SAP R/3 to exchange data with foreign systems.
    *Data Is transmitted in ASCII format, i.e. human readable form
    *IDocs exchange messages
    *IDocs are used like classical interface files
    IDOC types are templates for specific message types depending on what is the business document, you want to exchange.
    WE30 - you can create a IDOC type.
    An IDOC with data, will have to be triggered by the application that is trying to send out the data.
    FOr testing you can use WE19.
    How to create idoc?
    *WE30 - you can create a IDOC type
    For more information in details on the same along with the examples can be viewed on:
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappoint.com/presentation.html
    http://www.allsaplinks.com/idoc_search.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.erpgenie.com/sapedi/idoc_abap.htm
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30 )
    Create Message Type ( WE81 )
    Assign Idoc Type to Message Type ( WE82 )
    Creating a Segment
    Go to transaction code WE31
    Enter the name for your segment type and click on the Create icon
    Type the short text
    Enter the variable names and data elements
    Save it and go back
    Go to Edit -> Set Release
    Follow steps to create more number of segments
    Create IDOC Type
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    Create Message Type
    Go to transaction code WE81
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter
    Click New Entries to create new Message Type
    Fill details
    Save it and go back
    Assign Message Type to IDoc Type
    Go to transaction code WE82
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    Check these out..
    Re: How to create IDOC
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    go trough these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data...
    1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.
    2.IDOCs are independent of the sending and receiving systems.
    3.IDOCs are independent of the direction of data exchange.
    The two available process for IDOCs are
    Outbound Process
    Inbound Process
    AND There are basically two types of IDOCs.
    Basic IDOCs
    Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
    Extended IDOCs
    Extending the functionality by adding more segments to existing Basic IDOCs.
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30)
    Create Message Type ( WE81)
    Assign Idoc Type to Message Type ( WE82)
    imp links
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    www.sappoint.com
    --here u can find the ppts and basic seetings for ALE
    http://sappoint.com/presentation.html
    www.sapgenie.com
    http://www.sapgenie.com/ale/index.htm
    WE30 - you can create a IDOC type.
    An IDOC with data, will have to be triggered by the application that is trying to send out the data.
    Try this..Hope this will help.
    >>>> SAP ALE & IDOC<<<<
    Steps to configuration(Basis) >>
    1. Create Logical System (LS) for each applicable ALE-enabled client
    2. Link client to Logical System on the respective servers
    3. Create background user, to be used by ALE(with authorizaton for ALE postings)
    4. Create RFC Destinations(SM59)
    5. Ports in Idoc processing(WE21)
    6. Generate partner profiles for sending system
    The functional configuration(Tcode: SALE)
    • Create a Customer Distribution Model (CDM);
    • Add appropriate message types and filters to the CDM;
    • Generate outbound partner profiles;
    • Distribute the CDM to the receiving systems; and
    • Generate inbound partner profiles on each of the clients.
    Steps to customize a new IDoc >>>
    1. Define IDoc Segment (WE31)
    2. Convert Segments into an IDoc type (WE30)
    3. Create a Message Type (WE81)
    4. Create valid Combination of Message & IDoc type(WE82)
    5. Define Processing Code(WE41 for OUT / WE42 for IN)
    6. Define Partner Profile(WE20)
    Important Transaction Codes:
    SALE - IMG ALE Configuration root
    WE20 - Manually maintain partner profiles
    BD64 - Maintain customer distribution model
    BD71 - Distribute customer distribution model
    SM59 - Create RFC Destinations
    BDM5 - Consistency check (Transaction scenarios)
    BD82 - Generate Partner Profiles
    BD61 - Activate Change Pointers - Globally
    BD50 - Activate Change Pointer for Msg Type
    BD52 - Activate change pointer per change.doc object
    BD59 - Allocation object type -> IDOC type
    BD56 - Maintain IDOC Segment Filters
    BD53 - Reduction of Message Types
    BD21 - Select Change Pointer
    BD87 - Status Monitor for ALE Messages
    BDM5 - Consistency check (Transaction scenarios)
    BD62 - Define rules
    BD79 - Maintain rules
    BD55 - Defining settings for IDoc conversion
    WEDI - ALE IDoc Administration
    WE21 - Ports in Idoc processing
    WE60 - IDoc documentation
    SARA - IDoc archiving (Object type IDOC)
    WE47 - IDoc status maintenance
    WE07 - IDoc statistics
    BALE - ALE Distribution Administration
    WE05 - IDoc overview
    BD87 - Inbound IDoc reprocessing
    BD88 - Outbound IDoc reprocessing
    BDM2 - IDoc Trace
    BDM7 - IDoc Audit Analysis
    BD21 - Create IDocs from change pointers
    SM58 - Schedule RFC Failures
    Basic config for Distributed data:
    BD64: Maintain a Distributed Model
    BD82: Generate Partner Profile
    BD64: Distribute the distribution Model
    Programs
    RBDMIDOC – Creating IDoc Type from Change Pointers
    RSEOUT00 – Process all selected IDocs (EDI)
    RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
    RSARFCEX - Execute Calls Not Yet Executed
    RBDMOIND - Status Conversion with Successful tRFC Execution
    RBDMANIN - Start error handling for non-posted IDocs
    RBDSTATE - Send Audit Confirmations
    FOr testing you can use WE19.
    Regards
    Anji

  • Adding Return Credit Memo

    Hi All,
    I would like to add Return Credit Memos to processed RA’s on this report.  Currently when an order is shipped, it will give the Invoice number, so on the returns side, I would like the return credit memo to appear as well.  In the delivery number field 2 types of delivery numbers are coming one with 5* and other with 6*.
    5’s has billing num starts with 7 (which is displaying now)
    6’s has billing num blank (which have to be filled with 8 - Return Credit Memos).
    VBTYP_N = 'Q' is WMS transfer order
    ‘M’ Invoice
    ‘O’ Credit memo
    I want to get data for VBRP-VBELN = ‘O’ also.
    I tried this, but nothing is coming.
    SELECT VBELV POSNV VBELN POSNN FROM VBFA INTO TABLE
    ITAB_VBFA FOR ALL ENTRIES IN ITAB_LIPS
    WHERE VBELV = ITAB_LIPS-VBELN
    AND POSNV = ITAB_LIPS-POSNR
    AND VBTYP_N = 'M' OR VBTYP_N = 'O'.
    Please help me resolve this.
    Thanks
    Veni.
        SELECT VBELV POSNV VBELN ERDAT FROM VBFA INTO TABLE ITAB_VBFA1
                                               FOR ALL ENTRIES IN ITAB_LIPS
                                              WHERE VBELV = ITAB_LIPS-VBELN
                                                AND POSNV = ITAB_LIPS-POSNR
                                                      AND VBTYP_N = 'Q'.
        SELECT VBELV POSNV VBELN POSNN FROM VBFA INTO TABLE ITAB_VBFA
                                               FOR ALL ENTRIES IN ITAB_LIPS
                                              WHERE VBELV = ITAB_LIPS-VBELN
                                                AND POSNV = ITAB_LIPS-POSNR
                                                    AND VBTYP_N = 'M'.
        DESCRIBE TABLE ITAB_VBFA LINES LIN.
        IF LIN NE 0.
          SELECT VBELN POSNR KZWI1 NETWR FROM VBRP INTO TABLE ITAB_VBRP
                                  FOR ALL ENTRIES IN ITAB_VBFA
                                  WHERE VBELN = ITAB_VBFA-VBELN
                                    AND POSNR = ITAB_VBFA-POSNN.
          SELECT VBELN FKDAT FROM VBRK INTO TABLE ITAB_VBRK
                                  FOR ALL ENTRIES IN ITAB_VBRP
                                  WHERE VBELN = ITAB_VBRP-VBELN.
          SORT ITAB_VBRK BY VBELN FKDAT.
          DELETE ADJACENT DUPLICATES FROM ITAB_VBRK.
          SORT ITAB_VBFA BY VBELV POSNV.
          ULINE /(289).
          LOOP AT ITAB_LIPS.
        READ TABLE ITAB_LIKP WITH KEY VBELN = ITAB_LIPS-VBELN BINARY SEARCH.
        READ TABLE ITAB_VBAK WITH KEY VBELN = ITAB_LIPS-VBELN BINARY SEARCH.
            READ TABLE ITAB_VBFA WITH KEY VBELV = ITAB_LIPS-VBELN
                                                  POSNV = ITAB_LIPS-POSNR.
            READ TABLE ITAB_VBFA1 WITH KEY VBELV = ITAB_LIPS-VBELN
                                                    POSNV = ITAB_LIPS-POSNR.
            READ TABLE ITAB_KNA1 WITH KEY KUNNR = ITAB_LIKP-KUNNR.
            IF SY-SUBRC EQ 0.
              READ TABLE ITAB_VBRP WITH KEY VBELN = ITAB_VBFA-VBELN
                                            POSNR = ITAB_VBFA-POSNN.
        READ TABLE ITAB_VBRK WITH KEY VBELN = ITAB_VBRP-VBELN BINARY SEARCH.
              WRITE: /01 SY-VLINE,
                      02 ITAB_LIPS-VBELN,
                205 ITAB_VBRP-VBELN,

    Hi, you must be careful with the OR, make sure to wrap with parenthesis.
    SELECT VBELV POSNV VBELN POSNN FROM VBFA INTO TABLE
    ITAB_VBFA FOR ALL ENTRIES IN ITAB_LIPS
    WHERE VBELV = ITAB_LIPS-VBELN
    AND POSNV = ITAB_LIPS-POSNR
    AND <b>( VBTYP_N = 'M' OR VBTYP_N = 'O' ).</b>
    Regards,
    Rich Heilman

  • Return credit memo

    Hi All,
    I have Billing num in my report and I was displaying Invoice num VBTYP_N = 'M'in it. In the same column only I have to display Return credit memo VBTYP_N = 'O', if invoice munber is not there.
    I am attaching some code. Please help me.
    Thanks,
    Veni.
    SELECT VBELV POSNV VBELN POSNN FROM VBFA INTO TABLE ITAB_VBFA
                                               FOR ALL ENTRIES IN ITAB_LIPS
                                              WHERE VBELV = ITAB_LIPS-VBELN
                                                AND POSNV = ITAB_LIPS-POSNR
                                                    AND VBTYP_N = 'M'.
        DESCRIBE TABLE ITAB_VBFA LINES LIN.
        IF LIN NE 0.
          SELECT VBELN POSNR KZWI1 NETWR FROM VBRP INTO TABLE ITAB_VBRP
                                  FOR ALL ENTRIES IN ITAB_VBFA
                                  WHERE VBELN = ITAB_VBFA-VBELN
                                    AND POSNR = ITAB_VBFA-POSNN.
          SELECT VBELN FKDAT FROM VBRK INTO TABLE ITAB_VBRK
                                  FOR ALL ENTRIES IN ITAB_VBRP
                                  WHERE VBELN = ITAB_VBRP-VBELN.
          SORT ITAB_VBRK BY VBELN FKDAT.
          DELETE ADJACENT DUPLICATES FROM ITAB_VBRK.
          SORT ITAB_VBFA BY VBELV POSNV.
          ULINE /(289).
          LOOP AT ITAB_LIPS.
        READ TABLE ITAB_LIKP WITH KEY VBELN = ITAB_LIPS-VBELN BINARY SEARCH.
        READ TABLE ITAB_VBAK WITH KEY VBELN = ITAB_LIPS-VBELN BINARY SEARCH.
            READ TABLE ITAB_VBFA WITH KEY VBELV = ITAB_LIPS-VBELN
                                                  POSNV = ITAB_LIPS-POSNR.
            READ TABLE ITAB_VBFA1 WITH KEY VBELV = ITAB_LIPS-VBELN
                                                    POSNV = ITAB_LIPS-POSNR.
            READ TABLE ITAB_KNA1 WITH KEY KUNNR = ITAB_LIKP-KUNNR.
            IF SY-SUBRC EQ 0.
              READ TABLE ITAB_VBRP WITH KEY VBELN = ITAB_VBFA-VBELN
                                            POSNR = ITAB_VBFA-POSNN.
        READ TABLE ITAB_VBRK WITH KEY VBELN = ITAB_VBRP-VBELN BINARY SEARCH.
              WRITE: /01 SY-VLINE,

    Hi,
    If there is a returns delivery for the credit memo request and then then credit memo will be created with respect to the returns delivery..Then try changing the SQL in the following way..
    SELECT VBELV POSNV VBELN POSNN FROM VBFA INTO TABLE 
              ITAB_VBFA FOR ALL ENTRIES IN ITAB_LIPS
              WHERE VBELV = ITAB_LIPS-VBELN
              AND POSNV = ITAB_LIPS-POSNR
              AND VBTYP_N = 'M' <b>OR VBTYP_N = 'O'</b>.
    Thanks,
    Naren

  • Credit memo not generated for RMA Receipt

    Hi,
    i created RMA receipt but for this credit memo not generated in AR, Manually i have run the Workflow Background Process  & Receiving transaction processor concurrent also. even though CM not generated(In AR Interface lines table also data is not available)..or else is there any possibility for cancel or return the RMA Receipt quantity?
    regards
    Balaji
    Edited by: user9122706 on May 15, 2012 9:22 PM
    Edited by: user9122706 on May 15, 2012 9:51 PM

    Dear Balaji,
    Credit memo not generated for RMA Receipt,Can u put manual credit in AR
    Regards,
    Shineee..

  • 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

  • Credit memo link with Goods reversal

    Hi,
    Does anyone know of any process or method either in R/3 or in SRM that can be used to link Goods reversal with automatic credit memo creation for a PO ( when invoice is already posted ). We have SRM 4.0 and not using GRBasedIV status checked for most of the POs.
    Can a customized movement type or workflow achieve this.
    Thanks in advance,
    Viv

    Again I can tell you that the process what you were following (reversing the goods receipt) is totally wrong and it will have a serious negative impact on inventory.  Either you should not create a return delivery or take the stocks into parent plant.  If you dont want to show in inventory, then scrap it which is a standard process.
    Coming to the requirement, there is no standard way to achieve this.  Check these threads where the same topic was discussed
    [Re: How to set up in SAP to have automatic billing after PGI |Re: How to set up in SAP to have automatic billing after PGI]
    [automatic billing|automatic billing]
    You have to apply the same logic for credit note also.
    thanks
    G. Lakshmipathi

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

  • SALES REPORT (Credit memos Subtracted)

    Hi all,
    I would like to come up with a detailed Sales Reports that shows the Quantity and Value of items sold per day (AR Invoices) excluding the credit memos. I later want to use the same query in crystal reports. I came up with the below query; the select statements are executing individually but using 'UNION ALL' I am getting a 'Conversion' error.
    SELECT T0.[CardCode]Code, T4.[SuppCatNum]cat, T4.[FrgnName]frn, T1.[Quantity]InvQ, T0.[DocTotal]InvT,0 MemoQ,0 MemoT FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry full outer JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode full outer JOIN OUSR T3 ON T0.UserSign = T3.USERID full outer JOIN OITM T4 ON T1.ItemCode = T4.ItemCode WHERE (T1.WhsCode='MLO01' or T1.WhsCode='ARG01')  AND T0.DocDate=[%0]
    union all 
    SELECT  0 Code, 0 cat, 0 frn, 0 InvQ,0 InvT, T1.[Quantity] MemoQ, T0.[DocTotal] MemoT FROM ORIN T0  INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry full outer JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode full outer JOIN OUSR T3 ON T0.UserSign = T3.USERID full outer JOIN OITM T4 ON T1.ItemCode = T4.ItemCode WHERE (T1.WhsCode='MLO01' or T1.WhsCode='ARG01') AND T0.DocDate=[%0]
    kindly assist refine this query or come up with a better one altogether. Thank you.

    Hi,
    Try:
    SELECT T0.CardCode Code, T4.SuppCatNum cat, T4.FrgnName frn, T1.Quantity InvQ, T1.LineTotal InvT,0 MemoQ,0 MemoT
    FROM OINV T0
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN OITM T4 ON T1.ItemCode = T4.ItemCode
    WHERE (T1.WhsCode='MLO01' or T1.WhsCode='ARG01') AND T0.DocDate=[%0\]
    union all 
    SELECT  '', '', '', 0,0, T1.Quantity, T1.lineTotal
    FROM ORIN T0
    INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN OITM T4 ON T1.ItemCode = T4.ItemCode
    WHERE (T1.WhsCode='MLO01' or T1.WhsCode='ARG01') AND T0.DocDate=[%0\]
    Thanks,
    Gordon

Maybe you are looking for