Return sales order wrt Billing doc.

Dear Friends,
I have maintained copy control for VTFA.
I have Billing doc for 100 Qty.
When i create sales order wrt this billing document, i cauld restrict Order qty to max 100 qty with help of V4 : 229 message to E (setting  in SPRO: define variable message).
But next time system still allows the Return sales order wrt same billing document for Qty. max 100 as in above case. Thus i could create as many return SO wrt Billing document.
I want system to store the cumulative return SO qty vis a vis Billing document Qty.
Eg. Billing qty 100.
Return SO 1 for 50 Qty.
Return SO 2 for 30 Qty.
Return SO 3 for 20 Qty.
Return SO 4 Not allowed.
Kindly advise.
Regards,
Rajesh

Hi,
This is normal SAP behavior which will allow you to enter more quantity than that in the original outgoing invoice. This will not be controlled thru any config.
For this you need to write a exit with the help of your ABAPer.
Goto  SE38, enter MV45AFZZ
when you see the code you will find user exit  "USEREXIT_SAVE_DOCUMENT".
In this exit you need to write a code which compares the order entered quantity with the quantity from the invoice.
When you try to save such document, system will not allow giving an error. This will surely work.
Hope this helps you.
Regards,
Dhananjay

Similar Messages

  • How to display Header Texts that you find in Sales Order and Billing Doc..

    Hi,
    I am having some problems accessing the text that is typed in the Header Texts area of the Sales Order and Billing. To access the Header Text you should first trigger the Sales Order (VA02) then once in the Sales Order Click Goto -> Header -> Texts. The same follows to the Billing.
    I need to extract what is typed here on to a report. First of all I can’t figure out which table is used to save this information. I am suspecting that this information is encoded and stored in a table. To display this I may need to decode it.
    Is there some one who could help me to archive this please!!!
    Many Thanks,
    Kishan

    Hi Kishan,
    The texts you find in all SAP Object, like orders, invoice, materials, ... can be extract with FM 'READ_TEXT'.
    To know the parameters of the FM, you 'll have to go to the text ( in plain page mode ), then you do "GOTO" -> "HEADER", and a pop-up window opens with the parameters you need ( Text name, language, text id, text object ).
    The table "t_tdline" contains the entire text .
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        id                            = w_id
        language                      = sy-langu
        name                          = w_name
        object                        = w_object
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      tables
        lines                         = t_tdlines
    hope this helps.
    Erwan.

  • Tax classification screen for item level not appearing in sale order under Billing Doc tab

    Hi Expert
    while creating sale order Tax classification screen is not appearing for item level under Billing document tab.
    Tax classification for customer and Material has already maintained. Tax classification screen is not appearing for USER but same time from our USER ID we can able to see that screen.
    please help in above issue. is this related to Authorization issue or other thing need to check.
    Regards
    Pash@SD

    Hi,
    As per standard in Sales Order Document you will be able to see the Tax Classification fields in Billing Tab at Header level (for Customer Tax Classification) and at Item level for (Material tax Classification). The values from Customer M<aster is not populated at Header level as per standard but you can populate the value by using the Exit. Material tax classification populated from material master as you can see that at item level.
    If for one User you are able to see and for other you are not able to see, kindly check first whether both are using same customer and material, and if yes, then check the User Exit.
    Thanks and regards,
    Amitesh Anand

  • Billing document should not be cancelled after creating return sales order

    Hi All,
    Billing document should not be cancelled after creating return sales order with reference to billing document. Please suggest configuration settings on the same.
    Sudheer.

    Hi,
    In SAP, when the sub-sequent document is existing , we can not cancel the preceeding document. Therefore if you want to cancel the billing document you need to calcel the documents which are created with reference to that.
    Check and confirm.
    Regards,
    Ravi Duggirala

  • Workflow fo returned sales order modified from updating the billing block t

    please tell me how to find returned sales order modified from updating the billing block to delivery block and how to create blocks here.i want to know updating means what is happening here.

    Thread locked.
    Beginner questions are very welcome, but your question makes it obvious that you didn't even bother looking at the help or searching on SDN.
    Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to post a good question and make a little effort yourself before expecting people to give up their time to help you.

  • How does the return sales order captured the price for mat. Doc. during GI

    Dear Guru,
    We have a commercial return sales order process, which we have created a Doc Type YR01 "Commercial Return"
    everytime when this YR01 is been generated from the Customer Return PO, we need to change the MAP via tcode MR21.
    Problem here, this time the user processed with a wrong step, the user straight away to create a DO and GI for this YR01  before the MAP is changed. SO obviously the price in Material Document generated when GI is inccorect, thus a reversal for this GI and DO is done.
    After DO and GI is reversed, we update the correct MAP via MR21 and perform a DO and then GI, but we realized the Price in material document doesn't capture the latest updated MAP price.
    So after many testing, we found there are 2 ways to solve this,
    1. Recreate a new YR01 Commercial return sales order
    2. Or during the MR21, select the variance "Special Stock - Sales Order"
    Question,
    Can i know where does the SO capture the MAP price and where and which table that the MR21 will be updating when selected variant "special stock - sales order"?
    Thank you very much,
    Chee Wee

    Hi,
    The price entered in MR21 updates the price for the material in material master "accounting 1" tab page. This will update the price in the table MBEW according to the valutaion class you have assigned to the material type.
    If you are entering "Special Stock - Sales Order" in MR21. the valuation class for sales order stock should be assigned for the material in the material master "accounting 1" tab page MBEW-EKLAS, this valuation class will have an altogether different accounting, so according to me option 1 i.e reversal of document YR01 is a more easier solution.
    Regards
    Aadesh Kamat
    Edited by: aadesh123 on Jul 11, 2011 10:45 AM
    Edited by: aadesh123 on Jul 11, 2011 10:48 AM

  • VPRS-based condition redetermined in return order (referencing billing doc)

    I have an issue with copy-control from invoice to return order.
    I want the invoice pricing conditions to be copied unchanged to the return order.
    This is similar to when creation the Sales order>Delivery>Billing Document.
    I need to make a return order for the same amount as in the original sales order (naturally, we want to credit the same amount).
    This works fine for all conditions, except for a VPRS-based condition, which is redetermined upon return order creation.
    The VPRS-based condition should fetch the moving average price for the sales order only, not for the return order.
    I have maintained copy control for billing document to sales order with pricing type 'G'
    G: Copy pricing elements unchanged and redetermine taxes. The system
    This works fine for Sales order --> Delivery --> Invoice, but not for Invoice --> Return order.
    I would prefer not to use a formula, but I guess one alternative solution is to fetch the condition value from the original sales order if I cannot do this with customizing.
    Let me know what you think about the forumla (VOFM) and if it is possible to achieve copy-control with unmodified condition values for the VPRS-condition.
    Thanks!

    Ok, thanks for your input!
    I'm sharing my solution:
    I implemented a new condition value formula for my pricing procedure:
    VOFM>Formulas>Condition value
    FORM FRM_KONDI_WERT_XXX.
      DATA: lv_kbetr TYPE kbetr,
            ls_vbfa  TYPE vbfa,
            lv_knumv TYPE knumv.
    Get moving average price for return order from SO
    The ZPRS pricing condition modifies price in return order
    The value of ZPRS should be the same in return order and SO
      IF xkomv-kschl EQ 'ZPRS'.
    Get sales order and position
        SELECT SINGLE vbelv posnv
          INTO corresponding fields of ls_vbfa
          FROM vbfa
          WHERE vbeln   EQ komp-vgbel  "invoice number
            AND posnn   EQ komp-vgpos  "invoice item
            AND vbtyp_n EQ 'M'         "invoice
            AND vbtyp_v EQ 'C'.        "order
        IF sy-subrc EQ 0.
    Get sales order conditions key
          SELECT SINGLE knumv
            INTO lv_knumv
            FROM vbak
            WHERE vbeln EQ ls_vbfa-vbelv.
          IF sy-subrc EQ 0.
    Get moving average price from sales order conditions
            SELECT SINGLE kbetr
              INTO lv_kbetr
              FROM konv
              WHERE knumv EQ lv_knumv
                AND kposn EQ ls_vbfa-posnv
                AND kschl EQ 'ZPRS'.
            IF sy-subrc EQ 0.
    Recalculate condition values
              xkomv-kbetr = lv_kbetr.
              xkomv-kwert = ( lv_kbetr * komp-mgame / 1000 ).
              xkwert      = xkomv-kwert.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.

  • Order Status for partial return sales order

    Dear All,
    I am facing an issue at my client for which I am unable to find an appropriate reason.
    We have done a complete Sales order cycle: S.Ord - Delivery and Invoice (100qty). Now the customer returns a certain part of materials delivered (say 30qty). We are creating a sales order for this 30qty and creating a delivery (for 30qty) and credit memo.
    The problem here is that the status of returns delivery and credit memo is closed but the status of this returns order is shown as being processed and also is reflected in open orders report.
    Can anyone please suggest why this is shown as being processed and not as closed despite the returns order being fully delivered and invoiced?
    Note: the Completion rule for Item category of my returns order is set to B-Item is completed after full quantity has been referenced. Is it because of this? What would be the implications if I make this blank? Any other suggestions too would be highly appreciated
    Thanks and Regards,
    Rohan Gudavalli

    This is b'coz, you create Credit memo with reference to Return Order (sales order), not from return delivery.
    Further, if you check the standard copying control for VTFL ( Source: LR & Target: G2), you will not find config for this.
    In standard, we have standard Billing doc type for this, that is RE - Credit for Returns (VOFA order-related billing VTFA).
    So your standard process flow can be.
    RE (Return Order)
    -> LR (Return Delivery)
    -> RE (Credit for Returns)
    FYI, you can refer routine 2 - Ord-rel.credit memo from VOFM - Data transfer - Billing Document.
    And that is the reason, why it is recommended to take Sales order as reference, instead of invoice.
    Also, refer/check copying control config for VTFA for Return Order - RE to Credit for Returns - RE for Item category REN
    Regards
    JP

  • Deletion of Returns Sales Order

    Hi Guru's
    I have created one return sales order with reference to one invoice and after that with reference to that returns sales order i have created credit invoice.
    Now my query is that can i delete the returns sales order?
    If yes please let me know the detailed process...
    Regards,
    Bhadra

    Yes, we can cancel-Credit memo.
    Check Cancell.billing type field in Cancellation section of your Billing Doc type (tcode VOFA) for your Credit memo.
    Coming on to your requirement.
    That means you need to cancel credit memo succeeding to this return order.
    In doc flow overview for your return order, check what are the succeeding doc attached to it.
    Cancel or reverse all the subsequent doc to the return order.
    Use VF02 and in menu bar look of Cancel option and select and process.
    Then try to put reasons for rejects (if reference of this return order is needed in future) or delete Return order (if by mistake its created). I would suggest former as you have subsequent Billing doc to it.
    Regards
    JP

  • RENN item not flowing in return sales order automatically

    Hi all,
    When i add RENN in item category proposal for copy control of billing doc to sales doc(YDRE to YDF2) where YDRE is return and YDF2 is outbound billing. So when I create a return order with reference to invoice will the free good item flow automatically in the return sales order or is there any other configuration???

    Hi Avishek,
    Check your item category assignment first that renn is properly assigned to your
    Order type u2013 item category group u2013 usage u2013 item category at higher level.
    You can do this from the path
    IMG u2013 sales and distribution u2013 sales u2013 sales documents u2013 sales document item u2013 assign item category.
    Do this setting first then go copying control with the following path.
    IMG u2013 sales and distribution u2013 sales u2013 Maintain copy control for sales document.
    Search for your sales document type YDRE from billing document YDF2.
    Go to the item level and search for item category used in billing document.
    Go to the detail of that item category you will find item category proposal.
    Write down over there RENN.
    Now try to create the return sales order it will happen.
    This setting you have to do so that it will automatically determine in sales order.
    Regards
    Raj.

  • Return SALES Order BAPI

    Hi,
    I'm passing following values in  BAPI_SALESORDER_CREATEFROMDAT2  bapi for Return sales Order
    it_header-ref_doc = '0090000047'. " Invice Billing Number
    it_header-REFDOC_CAT = 'M'.     " M for Invoice
    it_header-ORD_REASON = '101'.   " 101 stand for Poor Quility
    headerx-ref_doc = 'X'.
    headerx-REFDOC_CAT = 'X'.
    headerx-ORD_REASON = 'X'.
    But it showing below msg why.
    Error  V1  Message No = 761
    'Unpermitted combination of business object BUS2032 and sales doc. category H'
    anything missing or Wrong ?

    the error is coming because the BAPI BAPI_SALESORDER_CREATEFROMDAT2  is meant for only Sales orders(i.e for BUS2032) since in the code it is hardcoded .
    call function 'SD_SALESDOCUMENT_CREATE'
           exporting
                salesdocument           = salesdocumentin
                sales_header_in         = order_header_in
                sales_header_inx        = order_header_inx
                sender                  = sender
                binary_relationshiptype = binary_relationshiptype
                int_number_assignment   = int_number_assignment
                behave_when_error       = behave_when_error
                logic_switch            = logic_switch
                business_object         = 'BUS2032'  "<----hardcoded
                testrun                 = testrun
    if you want to avoid the error. copy the BAPI to ZBAPI and change the Business object to Return order's business object.
    For Return order BUS2102 . so replace that with BUS2102.
    Edited by: Vijay Babu Dudla on Oct 15, 2008 10:22 AM

  • Error while creating the sales order with billing reference

    hi alll
    i am getting error while creating the sales order with billing reference.The line items are coming in grey.I am not able to change the items as well as the quantity field.Can u guide me
    cheers
    shalsa007........

    Dear SAP SD 007
    I can confidently tell that an enhancement or an user exit has been applied in your scenario
    You have to check that
    Normally when creating a sales order with respect or referring billing documents the qty will be in editable mode and it is standard problem
    Your people has solved the standard problem by enhancement
    Usually OR--LF-PGI----F2 (SAY THE QTY IS 25 UNITS)
    Now you are creating returns order with reference to F2 in the return order type Re there is a standard issue that user can edit the qty to 30 from the original 25
    To solve this only your people have used userexit
    Line items and qty greyed out means definately there is some enhancement or user exit applied
    You have to check that
    Regards
    Raja

  • Not able to Create Credit Memo During Return Sales Order

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

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

  • Free Goods Flow in Return Sales Order

    Dear Experts,
    I have a question that is how to make the free good item(TANN in order and RENN in returns) flow automatically in the return sales order along with the REN items. Does it involve item category proposal in copy control for billing document to sales document.
    Presently free item of preceeding billing document is not getting copied to my return order. Please inform us the config steps for the same.
    Thanks in Advance,
    Regards
    Srini

    Hi,
    This scenario is not supported by standard SAP.Please go through the OSS notes--549505 or go through the link given below
    [Constraints in Free Goods|http://help.sap.com/saphelp_47x200/helpdata/en/dd/55fa4e545a11d1a7020000e829fd11/frameset.htm]
    You may need to go for a Z development to meet your criteria.
    Regards,
    Phani Prasad

  • Free of goods should come automatically back when creates return sales order

    Dear sd experts
    I Know one thing that free goods wont come back ,, for ex when we create return sales order free goods wont come bz in VTAF copy requirement 302
    it means dont copy free goods
    Now i went VOV7--- for item category TANN-- i have maintained billing relevance A it means free goods items will come in to billing
    now when i am creating return sales order with reference to billing Free goods are not coming
                  My doubt is suppose if  my clinte asks free goods   will come automatically when creates returns how to do it ?

    Hi Ali,
    I just checked and understand in the below way:
    When I Do the PGI system is posting say 50 USD to COGS. But, when I do the Invoice ( 100 USD is credited to sales account and 100 is debited to discount account) So at the end 100 is getting Nullified. But, when we see P&L account you will COGS of 50 USD.
    I checked along with my FI consultant and she confirmed that its posting as per expected way only.
    Let me know if you need more details here.
    Regards, Sai Krishna.

Maybe you are looking for

  • Project Error - files unable to open

    I have a large project, complex file structure, using RoboHelp 8.0. Here is a history of the problem: 1. The application suddenly quit, and I received the error message: "Adobe RoboHelp 8 has encountered a problem and needs to close. We are sorry for

  • Not able to install sccm agent in sccm 2012 servers after cu3 update

    not able to install sccm agent in sccm 2012 servers after cu3 update MSI: Setup was unable to register the CCM_Service_HostingConfiguration endpoint The error code is 80041002 ,below URl specify fix to uninstall Management point ,but in sccm 2012 sec

  • CSV to IDOC

    Hi friends, My scenario is CSV to IDOC. Everything is ok but in MOIN payload main document my structure is not right way. My original structure :20110929,20110929,GR/GI Slip No.,Header Text,ABCD,MIGO,Massdata..Like this ..But in XML it will appears l

  • Lenovo G500s laptop monitor doesnt recover from power saver mode

    Hii everybody, i have been using this G500s laptop for an year or so...recently my laptop has started showing troubles with the screen saver or the power saver that comes by if i dont use my laptop for few mins..! when i dont use my laptop it goes to

  • Problems running J2ee

    Hi all After installing everything and making all PATH lines needed, i run j2ee : C:\j2ee -verbose and get error messages : "Insufficient environmental space" (16 times) "Syntax error" (3 times) "Insufficient environmental space" (1 time) "invalid co