Return PO scenario.

Hello Experts,
Currently we are using the Return PO facility for sending the Materials back to vendor. But all these material are stockable materials.
I wanted to know whether it is possible to use return PO for the consumables which are taken in the plant against PO with Cost Center as account assignment.
As we not keeping any stock for those items , how can we return those consumables, as they are issued and consumed immediately once GR is done.
Please guide how to handle this scenario.
Any alternate solutions/workaround  for this.
Best Regards,
MM

Hi,
You can create a return PO for account assigned PO's too, when you do the Good receipt for the account assigned return PO the particular GL account will be credited and the GR/IR clearing  debited,
its a straight cut method, no work around is required. I have tested it..provided physical stock is available for return to the vendor
Regards
Merwyn

Similar Messages

  • Import material - Vendor returned(Indian scenario)

    Dear all,
    I have searched forum for returning imported material with no solution discussed in any of threads.
    It would be nice if any one writes a blog for above subject in indian scenario it will be useful for everyone.
    What will be standard procedure followed in sap for returning imported material to vendor ?
    For my case,please note,
    A. Material to be returned partially
    B.Excise credit(CVD & its cess's,AED) is already taken
    C.Vendor is already paid.
    I'm ready to provide further inputs if required.
    Your help is really appreciated
    Thanks in advance,
    Jeyakanthan

    hi
    i never tried returns of the imported goods and also don't know the legal issues for the following process
    1)ME21N - Create a Returns PO (Activate "Returns" indicator for PO line item)
    2. MIGO - Goods Receipt > Purchase Order (Returns PO) (Here system will hit Mvmt type "161" and you can also select Un-restricted/blocked stock from where you want to return the stock)
    3. J1IS u2013 Excise Invoice Other Movements
    Here click on u201Ccreateu201D button to create an outgoing excise invoice and reverse the CENVAT Amount.
    Here put all details as below and Press u201CEnteru201D.
    Ref.doc.type - MATD, Doc Number - Material document No of 161 mvmt, Doc Year, Series Group, Excise Group and Vendor
    Here check BED, ECS and SECess values to be reversed and click on u201CSaveu201D button to post the excise invoice.
    4. J1IV - Post and Print Outgoing Excise Invoice.
    5. MIRO - Credit memo w.r.t. Returns PO.
    i think this process may be acceptable,
    regards
    kunal

  • Returnable packaging scenario

    returnable packaging scenario

    Hi,
    Returnable packaging consists of materials that are stored at the customer location but which remain the property of your company. The customer is only required to pay you for the returnable packaging if he does not return it to you by a specified time. Using this function you can, for example, process euro-pallets. You can also use it to resell returnable packaging to a third party. Since stocks of returnable packaging form part of your valuated stock even when they are at the customer site, you must manage them in your system.
    However, stocks of returnable packaging must be
    Managed separately from the rest of your stock so that you know exactly what stock is stored at the customer location
    Managed separately for each customer
    Inventory management treats returnable packaging as special stock in your inventory and is assigned to specific customers. This enables you to keep track of returnable packaging stock by customer.
    Prerequisites
    Settings in the Material Master Record
    A prerequisite for returnable packaging processing is that the value LEIH (returnable packaging) is entered in the material master record on the second sales screen in the Item category group field. This entry in combination with the document type automatically determines the appropriate item category for each transaction involving the material.
    Settings for the Special Stock Partner
    You must define a special stock partner for processing returnable packaging when a third party is involved. This means you can manage all special stock under one partner. You might use this partner function if your customer, for example, uses a decentralized order processing system but manages returnable packaging centrally. You can also use this partner function to process returnable packaging when a carrier is involved (for example, for euro-pallets). If you want to process returnable packaging using the special stock partner, first make the settings which are described for Consignment Stock Processing.
    If you want to manage returnable packaging for a carrier, for whom a vendor record already exists, you must also create a customer master record for the carrier. You are then able to assign returnable packaging stock to the carrier.
    Process Flow
    There are three main transactions for processing returnable packaging, all of which support separate inventory management:
    Creating Returnable Packaging Shipments
    Creating Returnable Packaging Pick-Up
    Creating Returnable Packaging Issue
    Returnable Packaging Shipments
    When you sell goods to a customer, you may send the goods in returnable packaging. During sales order processing, you simply enter the returnable packaging as an item in your order. You can process returnable packaging either as main items or as sub-items. For example, if you sell drinks in bottles and want the empty bottles to be returned, you can enter the bottles as sub-items for the drinks in the sales order. The item category group LEIH must be assigned to the bottles in the material master record so that they are processed as returnable packaging. During processing, the system recognizes that it is dealing with returnable packaging because the item category group LEIH is assigned to the material. The system then determines another item category in the sales order to allow the material to be processed as returnable packaging. As a result of entering returnable packaging in a sales order, the system carries out the following actions:
    If special stock does not yet exist in your inventory for the customer (or special stock partner), the system creates it when goods issue is posted
    The relevant quantity is removed from regular inventory in your plant and is added to the special stock for the customer. The total valuated stock for the plant remains the same.
    The transaction is not relevant for pricing since the consignment stock remains the property of your company.
    Returnable Packaging Pick-Up
    If the customer returns the returnable packaging to you, you record the transaction in the system by creating a returnable packaging pick-up order (order type LA). As a result, the system carries out the following actions:
    When goods issue is posted, the relevant quantity is deducted from the customer’s special stock and is added back into your regular stock at the plant where the goods are returned. Your total valuated stock remains the same since the returned stock was regarded as part of your own inventory even while it was at the customer’s premises.
    This transaction is not relevant for billing.
    Returnable Packaging Issue
    In the following situations, you can create a returnable packaging issue order (order type LN):
    The customer decides to keep the returnable packaging
    The customer damages the returnable packaging and you decide to charge the customer
    The customer sells the returnable packaging to a third party
    As a result of processing a returnable packaging issue, the system carries out the following actions:
    When goods issue is posted, the relevant quantity is deducted from both the customer’s special stock and your own total valuated stock.
    The transaction is relevant for billing since the goods have become the property of the customer.
    Sales Order Types
    The following table provides an overview of the order types used in the standard system for processing returnable packaging:
    Transaction
    Sales order type
    Returnable packaging pick-up
    LA
    Returnable packaging issue
    LN
    When you ship returnable packaging to the customer, you do not need to use a special order type. The transaction is a normal business transaction and you can use either a standard sales order or, if appropriate, a free of charge delivery.
    Pricing and Availability Check
    Whether pricing is carried out for the individual transactions depends on the item category. The schedule line category controls the availability check and the transfer of requirements in each of the transactions. The schedule line category itself is determined by the item category and the MRP type of the material. The order types LN and LA check against returnable packaging for the relevant customer. Requirement records for returnable packaging stock are stored as individual requirements, independently of the setting in the material master record.
    source : Library
    regards
    sadhu kishore

  • Return goods scenario

    hi to all
    i have one doubt. plz explain
    i ordered 100 qty.
    gr for 100 qty completed
    invoice also completed
    again vendor sends 10 more items ( i mean 110 qty total)
    then how to do this 10 items GR and IR?
    its possible to reopen closed invoice?
    thanks
    ravi

    Hello,
    If your purchase order is open, for this ,you have to check delivery completed indicator which is available on Delivery tab. This is depend on what config setting you did and your tolarances for delivery qty.
    If your tol limit is 10% or Unlimited indicator is checked then you can do GR and IR of 10 excess qty with same Po number.means for one Po there will be 2 GR and 2 IR, One for 100 qty and one for 10 qty.
    Secondly from Me22N you can add separate line item for 10 qty and do GR.
    Regards
    Kedar Kulkarni

  • Scenario on return items price

    Hi to everybody
    Scenario :
    1. I sold 10 toner bottles(ink or black powder, which is using in printers/copiers/fax machines) to one customer.
    2. Each one price is 100/- (i.e., 10x100 = 1000 bill amount) Billed out to customer.He paid already.
    3. that customer used all toner bottles and he want to return to company.
    4.Each return item (empty bottle) price is 20% on normal price. the customer requested for credit memo.
    5 The company has to pay the money to customer i.e., 10X20 = 200. (credit memo value is 200/-)
    plz analyse it and getback
    regards
    lakki

    taking your example .
    in normal sales imagine your con type for price is ZPR1 = 100 in pricing procedure NRMSALE
    in returns make ZPR1 as stastical in prcing procedure and add another condtio type whcih is 20% of ZPR1 i.e in con records maintian 20% and in from column maintain the step number of ZPR1. this takes the value of ZPR1 and according to your con records calculates 20% of it.
    or else
    you can use the standard returnable packaging scenario for this.
    Please find the basic steps for returnable packaging
    Go to MM01 with mat type VERP item Cat grp LEIH
    Go to OMS2 choose mat Type LEIH and click on Qty/Value updating button
    Choose Valuation Area (Plant) and Specify mat Type LEIH save all those things and Exit
    Go to MB1C specify movement type 561 Special Stock Indicator V
    Go to OVAZ and assign doc type
    Go to va01 for standard item and packaging item
    the item Cat is TAL for packaging item and in the configuration window pricing =X
    No billing relevance
    chechk item relevant for delivery
    in the sales order 621 is mvt type
    save the document and go to standard delivery
    go to VL01N delivery and PGI
    go to VF01
    go to VA02 and check the doc status
    go to va01 specify the order type AT with reference of the previous doc number
    here u should specify the returnable packaging item nbr and Qty as well.
    go to Vl01n to post return delivery (LR)
    Specify qty and PGR
    save the doc
    go to MB58 and check the stock position updated item cat here is LAN

  • Creation of challan during the return delivary to vendor in sub contracting

    Dear All,
    I have a requirement where my client wants to have a challan made for materials that they are sending back via return delivary.
    scenario
    In the subcontracting process we are receiving the goods via MIGO but with Quality inspection enabled. For ex: we have recieved 100 goods from a sub contractor(BOM component ratio= 1:1 with the finished product and the component). Now in qa32 we have generated the lot of 100 materials. Now out of the 100 we have accepted and posted 50 materials in the unrestricted field in the inspection lot tab of usage decision and rejected the rest.
    Here rejected the rest means we have entered the 50 remaining materials in the return delivary tab. Now when we post  it we can see that system immediately has posyted a material document in the background for movemnt type 122 for the materials that we have done the return delivery. There is a change in stock in MMBE also.
    I WANT TO HAVE A CHALLAN CREATED FOR THOSE MATERIALS THAT ARE SENT AGAIN TO THE VENDOR.
    IS IT POSSIBLE??? CAN WE INCLUDE 122 MOV TYPE IN THE MOV TYPE GROUP  AND IF I ADD WHAT IMPACT WILL IT HAVE .
    pL DISCUSS.

    Hi,
    Two options to consider.
    When the GR has been posted for the finished product and the vendor indicates that they used more (or lost some in the process) you can change the quantities in MIGO at the time of GR (by expanding the lines and changing the quantities), or or you can do this later  by using a "susequent adjustment".
    If you mean scrapping that does not relate to one PO then what we have done in the past is just to carry out regular stock checks and any shortages are handled by posting the difference via a scrapping movement type (remember you can scrap from subcontract directly).
    I am sure that there are other options but these have worked in several implementations so far.
    Steve B
    Message was edited by:
            Stephen Birchall

  • Vendor Return process in case of Import Goods (Excisable)

    Can anyone provide me the complete process details with configuration in case of Return of Import Goods to Vendor?
    The scenario is we have received the goods from an overseas Vendor by availing the benefit of CVD and we have made payment to the Vendor. Now the goods need to be returned back to the Vendor overseas.
    Thanks in advance

    Import Vendor return is like re export from business point of view.
    You can follow export sales process in sap.
    What i suggest is for example if it is raw material you can create a bom with parent material as X-01,child material as Y what
    you are returning to vendor.
    Note: Create parent material as HALB with sales view & accounting view with valuation of raw material.
    Do production goods receipt,it willl bring stock to parent material.
    Create customer for vendor.
    Adopt export sales process,create a sales order,delivery,billing,invoice,excise invoice,ARE1.
    Note : Discuss with FI consultant/core team take care of accounting effects in billing.
    Clear balances for customer or vendor using F-53 or F-58.
    Note : You need to tell excise/submit documents telling it is not actual export.
    or
    If you opt for purchasing route,then there is lot of customs formalities to be completed & also need to pay duties taken credit,depends on value of goods if it is high, you can opt for import vendor returns or ask vendor for debit memo which will be adjusted with future purchases against same vendor
    I also asked same question in forum, refer link for solution [ Import material - Vendor returned(Indian scenario)  |Import material - Vendor returned(Indian scenario);

  • Stock Transfer of Returnable Packing Material - CRATE

    Dear Sap gurus,
    This process involve into a dairy industry,
    They sell of fresh milk pdoduct like Chaach, Paneer & Shrikhand  at Manufacturing plant as well as Parlours .
    Now, as per the business process, my client wants to do stock transfer of these products along with CRATE (material type LEIH for Returnable packaging). to their Parlours. Next day crates will be return to the plant.
    My question is when i am doing normal sales to customer my returnable packaging material process working fine as per standard SAP Process but in case of stock transfer of crate - line item doesn't display at the time of delivery:
    Now my client will have track record of how much qty of crates they have given to their Parlours.
    Right now we went ahead considering the scenario & the process is:
    1) ME21N --- Create PO with2 line items as milk Product & crate
    2) VL10B --- Put PO number and Create Delivery in background
    3) VL02N --- Delivery created with ONLY 1 line ie milk and NO CRATE line item.
    4) MIGO
    So the major issues in this are:
    1) During Delivery creation, the material crate should appear automatically as a separate line item.
    2) The Parlour should be able to do GR for this crate .
    Please suggest, the configuration to be done.
    Thanks & Regards
    Prashant Ray

    Hi Prashanth,
              This is std feature in returnable packaging scenario & very well achievable with Config.
    In your case, you are not able to get the ret. packing line item in STO delivery.
    Which means, Delivery item category determination is missing.
    To populate packing material in a seperate line item, you need to check the below settings-
    - in Packing material type ( Tx:VHAR) - Plant determination field  should be = B -Determine Plant from first line item
    - Tx:0184 - maintain
    Delivery type + Item Cat Group + usage + heigherr leve item cat = Def item cat
    eg: NL + LEIH + PACK = HUPM
    - Packing material should exist in respective sales org & dist channel which is available in Delivery - Header - Adminstration tab
    - in Delivery, after packing- select the "additional data" tab in packing screen, item category should be displayed, if its blank. line item will not be displayed
    Test & revert.
    Its tested scenario & working fine.
    Regards,
    Reazuddin MD

  • Inspection lot creation during STO return

    Hello Gurus,
    is there a trick to trigger inspection lot creation during STO return ?
    Scenario is the following:
    1 - Creation of STO
    2 - Supplying plant ships materials... stock in transit
    3 - Receiving plant receives materials
    4 - Materials with defects -> Receiving plant add new line with return tick on the same material
    5 - GI from Receiving plant... stock in transit
    6 - Supplying plant receives materials -> Inspection lot has to be created
    I used inspection type 08 on Receiving plant w/o success.
    Many thanks.
    Stéphane

    No inspection lot is created when we return Materials to Vendor (Plant A) even if we maintain Inspection type 02.
    Before STO customizing, Plant B creates a subcontracting purchase order. Next Materials are sending to Vendor (Plant A) and put in "Stock provided to vendor" (Transaction ME2O).
    Vendor (Plant B) creates a Repair request (Sales document / Transaction VA01). Next run VRRE to reveice Materials to repair. Inspection lot is automatically created. The usage decision triggers the creation of Service order to manage all the repairing flow. Last step is to deliver Materials to Plant A and create Repair invoice.
    Repair request supports all repairing flow (inspection lot, service oder...), especialy status (out of warranty or not).
    After STO customizing, I expected the following result:
    1° - Return STO to Vendor (Plant A) / ME21N with return tick
    2° - Plant B ships Materials / MIGO wih 101 (SAP converts in 161)
    3° - Stock in Transit
    4° - Materials receive to Vendor (Plant B) / VL10B
    5° - Creation Inspection lot
    6° - UD triggered Service order creation
    7° - ...Repairing flow with Service order...
    8° - Materials ship to Plant B
    9° - Repair invoice
    10° - Stock in Transit
    11° - Plant B receives Materials
    As I said, there are 2 blocking points:
    - Inspection lot not created when Vendor receives Materials
    - Service order not created automatically (because no Repair request to support inspection lot, service order...)
    Thanks a lot for your help.
    Tell me if you have any questions.
    Stéphane

  • Returnable Packaging - Handling ASN's for their return delivery

    Two of our customers are sending us ASN's when they ship the empty returnable containers back to us.  Unfortunately, the ASN IDoc's Red-Light because there is no MM Order for them.
    The normal process is working - when the truck arrives, we process a Delivery against the LA order to receive them back into Inventory.  It's quick and easy, but the IDoc's are still out there hanging.
    So is there a way to make the ASN's work within the Returnable Packaging scenario?  If I make an MM Order for these items, will it disrupt the RP scenario?  I.e., it has to not only add them back in to our inventory, but it also has to decrease the customer's inventory at the same time.
    Thanks in advance for any ideas, suggestions, or comments.

    Hi David
    you have sent the returnable packaging with regards to Sales Order right? but when IDOCs are coming it should update the sales order and PGR (Post Goods Receipt)
    What i understand is that we need to change the IDOC type for incoming sales order type to update the sales order and create delivery & PGR
    Manu

  • Return Delivery by 161

    Hi All,
    I want to know the standard 161 - return delivery scenario, please explain.
    I am doing in following way.
    1) PO created with return indicator, taxes included as per original PO for which material has to be returned with same price
    2) Chapter Id, cenvat determination entered in J1ID
    3) GR created & excise captured and post( Is it correct to post excise at Gr-161? & what will be impact on excise register please explain)
    4) Similarly account document created at the time of GR-161
    5) During J1IS warning message appeared that already excise invoice exists.
    6) J1IS saved and excise document is created message appeared
    Please correct if any changes required to be done and if anything i am missing.
    Regards,
    Umesh

    hi
    check following process
    If LIV and Payment to Vendor is done then
    1. ME21N - Create a Returns PO (Activate "Returns" indicator for PO line item)
    2. MIGO - Goods Receipt > Purchase Order (Returns PO) (Here system will hit Mvmt type "161" and you can also select Un-restricted/blocked stock from where you want to return the stock)
    3. J1IS u2013 Excise Invoice Other Movements
    Here click on u201Ccreateu201D button to create an outgoing excise invoice and reverse the CENVAT Amount.
    Here put all details as below and Press u201CEnteru201D.
    Ref.doc.type - MATD
    Doc Number - Material document No of 161 mvmt
    Doc Year
    Series Group
    Excise Group
    Vendor
    Here check BED, ECS and SECess values to be reversed and click on u201CSaveu201D button to post the excise invoice.
    4. J1IV - Post and Print Outgoing Excise Invoice.
    5. MIRO - Credit memo w.r.t. Returns PO.
    regards
    SAP Learner

  • Return STO issue

    HI experts,
                   I was trying to configure a return STO scenario.
    I did the following :.
    1. IMG -- MM
    -- Purchasing -- Purchase Order -- Returns Order -- Store Return
    For supplying plant Deliv doc type NCR was maintained.
    2. Created STO with 'Returns indicator ' checked on the item level.
    Now my issue is when try to save the PO I get the error :
    'Not possible to determine shipping data for material'
    (Also on the shipping tab on the item level there is no shipping point populated ,no shipping condition or loading grp.) The shipping point determination for supplying plant is maintained. Also the supplying plant is in the sales org of the receiving plant.
    3. When I use VL10B no STO is selected.
    Did anyone encounter this issue ?
    Kindly advise
    Thanks !

    Hi,
    For the error you are getting 'Not possible to determine shipping data for material'
    DO the following setting
    IMG --> Logistics Execution -->Basic shipping functions -->shipping point & goods Receiving point Determination -->Assign shipping points
    here for the combination of SC(shipping condition) + Loading Group + Plant , you should mainatin Partner shipping point(PrShp)
    Do this and try the whole exercise again.Award points if you are satisfied with solution.
    Regards
    Ganesh

  • MIRO (About Subcontract PO return)

    Hi,
    I've got a problem about subcontract PO return, the scenario is as follows...
    We received 100PCS products for a subcontract PO in May, and till someday next month, we returned 10 PCS with MT122. (Although we provided material and the supplier just processed it for us, but sometime we had to return scraped products due to some special reasons in our cases)
    Our subcontract supplier would issue an invoice by the end of every month, e.g. when we received the 100PCS invoce, the 10 PCS had been returned.
    Now the situation emerged...
    When we tried to do MIRO for the subcontract PO, the balance was 90PCS, while the invoice was 100PCS.
    We can't create a return PO for a subcontract PO as it's prohibited by SAP...
    I consider it's a normal situation in every company, so would you please give me any advice to solve this problem? Thanks in advance...

    Dear,
    If supplier sends 100 quantities, 10 quantities is return to vendor.
    So your question is that how to manage it in supplier invoice.
    First step for it, Create return purchase order with tick of return check box available in item level of purchase order.
    Than create material document for this return purchase order.
    Now for Supplier invoice.
    You can create Invoice verification for 90 quantity and full amount(100 quantity amount) - MIRO
    Than create Credit memo with 10 quantity and amount of 10 quantity.
    NOTE: - For Return delivery you have not prepaid invoice verification.
    Because if material is return so why you pay amount of invoice verification.
    Regards,
    Mahesh.

  • When are return values' memory released?

    I have been trying to optimize a particular query and have run out of ideas. In this query I have user defined functions which returns about 1600 results per document. I have tried running it with live values and lazy results from both my Java app and the dbxml shell both have similar behavior. If I run 1 document it runs in about 8 seconds and memory continuously climbs to a high of about 350mb which occurs at the end of the query run. When I call delete on the XmlResult object all of the memory is released.
    Now if I do the query over two documents the memory climbs to about 400mb and levels off there at which point it seems the results come back significantly slower as if the database is doing something else; maybe determining where it can free memory. Overall it takes the query about 90 seconds to complete. If I try something like:
    local:run-query( (: will look in doc1 :) .... ) | local:run-query( (: will look in doc2 :) .... ) instead of local:run-query( (: will look in doc1 and doc2 :) .... )
    The performance is more of what I would have expected: runs in 17 seconds and continuously climbs in memory to about 700mb which occurs at the end of the query.
    So I guess my question would be is this behavior by design and why does it hang on to so much memory even though I do delete on the XmlValue result as soon as I get it back?
    I can post the query and give an idea of how the data is formatted if it would help. Any insight that anyone has will be helpful.
    I should note that I am using version 2.3.10 on windows xp. The machine is a Pentium 4 3.00GHz with 1GB of ram
    Thanks in advance,
    Pralit
    Message was edited by:
    user580792

    George,
    My documents are about 11MB as an xml file (should be about 180,000 elements). For the
    moment there are only 2 documents in my container although it could get as high as 30 but not
    typically. With 2 documents the size of the container is 56MB. I create the environment in Java
    using the following config:
    EnvironmentConfig envConfig = new EnvironmentConfig();
    envConfig.setAllowCreate(true);
    envConfig.setCacheSize(100 * 1024 * 1024 );
    envConfig.setInitializeCache(true);
    envConfig.setInitializeLocking(true);
    I have tried a cache size of 500mb but didn't notice much of a change in performance.
    I feel you are right about my query defeating the lazy evaluation. All the looping for the sums in
    the get-weighted-eff function seems to be the cause for a lot of the memory use. Also the newly
    created element results would probably not be lazily returned (although these seem to get
    deleted promptly).
    Anyways my query and an example of the data follow . Any suggestion on what I can do to
    reduce the memory if at all possible would be great. As I said before I am out of ideas.
    Thanks,
    Pralit
    The Data:
    <scenario name="Keyword-All" date="2007-8-11T18:46:52-00:00'">
    <world>
      <region name="USA" type="region">  <!-- 14 per document, Global implies all regions -->
       <supplysector name="electricity" type="sector">  <!-- 32 sectors per region -->
        <subsector name="nuclear" type="subsector">  <!-- 1-4 per sector -->
         <technology year="1990" name="Gen_II_LWR" type="technology">  <!-- 3-7 per subsector -->
          <output-primary name="electricity" type="output">  <!-- could be up to 3 sets of inputs/ouputs per technology -->
           <physical-output unit="EJ" vintage="1990">2.20172</physical-output>
          </output-primary>
          <input-non-energy name="non-energy" type="input">
           <price-paid unit="1975$/GJ" vintage="1990">5.8</price-paid>
           <IO-coefficient unit="unitless" vintage="1990">1</IO-coefficient>
          </input-non-energy>
          <input-energy name="nuclearFuelGenII" type="input">
           <price-paid unit="1975$/GJ" vintage="1990">0.20381</price-paid>
           <demand-physical unit="EJ" vintage="1990">6.61177</demand-physical>
           <IO-coefficient unit="unitless" vintage="1990">3.003</IO-coefficient>
          </input-energy>
          <keyword primary-renewable="nuclear-elect"/>  <!-- keywords are only in select technologies about 2000 total in a document -->
         </technology>
    ....The Query:
    declare function local:get-weighted-eff($outputs as node()*) as node()* {
       unordered {
         for $year in distinct-values($outputs/@vintage)
         let $eff_unweight := sum(for $res in $outputs[@vintage = $year]
                           let $eff_curr := $res/parent::*/following-sibling::input-energy/IO-coefficient[@vintage = $year]                       return $res div $eff_curr),
                 $weight := sum($outputs[@vintage = $year]),
                 $eff_weighted := $eff_unweight div $weight
         return element efficiency-weighted {attribute year { $year }, text { $eff_weighted }}
    declare function local:append-heirarchy($parent as node(), $append as node()) as node() {
    let $scn := $parent/ancestor::scenario,
              $rgn := $parent/ancestor::region
       return 
              document { element scenario { $scn/@*,
                                                    element region {
                                                            $rgn/@*,
                                                            $append
    (: I can get by with just the scenario and region
    let $new_node := element {local-name($parent)} {$parent/@*, $append}  
    return 
    if(local-name($parent) != 'scenario')
    then local:append-heirarchy($parent/parent::*, $new_node)
    else document { $new_node } :)
    declare function local:get-primary-renewable($outputs as node()*, $weighted_effs as node()*) as node()* {
    unordered {   
    for $output in $outputs
    let $new_output :=   element input {
             attribute type {'input'},
             attribute name {$output/parent::*/following-sibling::keyword/@primary-renewable},
             element demand-physical {
                     attribute vintage {$output/@vintage},
                     attribute unit {$output/@unit},
                     text { $output div $weighted_effs[@year=$output/@vintage] }
    $new_root := local:append-heirarchy($output/parent::*/parent::*, $new_output)
    return $new_root//text()
    declare function local:run-primary-energy($scenarios as xs:string*, $regions as xs:string*, $collection as xs:string) as node()* {
    unordered {   
    let $regionsG := if(not($regions[1] = 'Global'))
                      then $regions                  else distinct-values(collection($collection)/scenario/world/region/@name)
    return 
    for $scenario in $scenarios,      
    $region in $regionsG  
    let $scenario_split := tokenize($scenario, ' '),                          
    $currTree := collection($collection)/scenario[@name = $scenario_split[1] and @date = $scenario_split[2]]/world/region[@name=$region]
    return (: get renewables from electricity :)
    local:get-primary-renewable($currTree/supplysector[@name='electricity']//keyword[fn:exists(@primary-renewable)]/preceding-sibling::output-primary/physical-output,
       local:get-weighted-eff($currTree/supplysector[@name='electricity']//keyword[fn:exists(@average-fossil-efficiency)]/preceding-sibling::output-primary/physical-output))        
    | (: get renewables from H2ProdCS :)
    local:get-primary-renewable($currTree/supplysector[@name='H2ProdCS']//keyword[fn:exists(@primary-renewable)]/preceding-sibling::output-primary/physical-output,
       local:get-weighted-eff($currTree/supplysector[@name='H2ProdCS']//keyword[fn:exists(@average-fossil-efficiency)]/preceding-sibling::output-primary/physical-output))        
    | (: get renewables from H2ProdDist :)
    local:get-primary-renewable($currTree/supplysector[@name='H2ProdDist']//keyword[fn:exists(@primary-renewable)]/preceding-sibling::output-primary/physical-output,
       local:get-weighted-eff($currTree/supplysector[@name='H2ProdDist']//keyword[fn:exists(@average-fossil-efficiency)]/preceding-sibling::output-primary/physical-output))        
    | (: get the primaries :)
    $currTree//keyword[fn:exists(@primary-consumption)]/preceding-sibling::input-energy/demand-physical/node()
    local:run-primary-energy(('Keyword-All 2007-8-11T18:46:52-00:00'), ('Global'), 'temp2.dbxml')

  • Re  : Complaints and returns Management

    Hi,
    Any body could let me know about the Complaints and return Management scenario along with the customization steps involved in that.
    Best regards,
    Sathish Prabhu

    please check the following link
    http://72.14.235.132/search?q=cache:w40uqHFRpzQJ:help.sap.com/bp_crmv250/CRM_DE/documentation/C38_Scen_Overview_EN_US.pptComplaintsandreturnManagement&hl=en&ct=clnk&cd=1&gl=in
    http://help.sap.com/bp_logservicev1600/LSP_Global/Solution_Map/4EC2201A4FB44052AAE902804CB277E4.htm
    http://www50.sap.com/businessmaps/970AEE9438854CD68965805C9D7CA498.htm
    hope this helps and solves your query

Maybe you are looking for