Many coupons in order

Hi All!
Need to be able to use a lot of coupons to the same order. OOTB can use only one coupon to order. How to implement this functionality? (ATG 10.0.x)
Edited by: Yury Gerzhedovich on 15.11.2012 13:44

Ok Got it , so you want to apply more than one coupon at a go...
create your class MyCouponFormHandler extending StoreCouponFormHandler ,
Create a properties file CouponFormHandler.properties and give class as MyCouponFormHandler
Create an private Array<String> variable say coupons with public getters and setters.
from JSP set the values as :
<dsp:input bean="CouponFormHandler.coupons[0]....."
<dsp:input bean="CouponFormHandler.coupons[1]....."
<dsp:input bean="CouponFormHandler.coupons[2]....." and so on..
override the method handleClaimCoupon in your class.
call tender coupon method of purchase process helper for all values of coupon :
for ( String coupon : coupons ) {
boolean result= ((StorePurchaseProcessHelper) getPurchaseProcessHelper()).tenderCoupon(coupon, getOrder(), getProfile(), getUserPricingModels(), getUserLocale());
You will have to give a thought on what you will do if one of the coupon is invalid or fails - handle the result accr to boolean returned by the method.
```
Praveer

Similar Messages

  • How many process in order to implement a multi-operations WSDL?

    Hello everyone,
    I have designed a WSDL describing two operations, that I want to implement with BPEL.
    I was wondering whether I needed to implement two BPEL files independently, one for each operation, or I was compelled to put the orchestration of both operations in a single BPEL file, with the help of a pick activity to separate the flows.
    I tried both ways and only succeeded with the latter, but I am not convinced with the approach. The first option falls short when building the CASA. I get a "WARNING: 1 port with 2 providers", and effectively only one operation is exposed.
    According to you, what is the way to go?
    Thanks

    Hi, Ricardo,
    Why do you need to do this? What is the business requirement that demands this? It seems like a waste of time and effort, and you'll have to re-do it every time a row is INSERTed or DELETEd, or when any of the columns involved is UPDATEd.
    Given that you really want to do it, here's one way:
    MERGE INTO     table_x          dst
    USING  (
               WITH    got_nums     AS
                   SELECT  key1, key2, filename
                ,       ROW_NUMBER () OVER ( ORDER BY  key1 )
                                                       AS key_1_num
                ,       ROW_NUMBER () OVER ( ORDER BY  SUBSTR (filename, -8)
                                                   ,         key2
                                  )     AS filename_num
                FROM    table_x
            SELECT  k.key1
            ,        f.key2
            ,        f.filename
            FROM        got_nums     f
            JOIN        got_nums     k  ON  f.filename_num  = k.key_1_num
           )               src
    ON     (src.filename     = dst.filename)          -- or any unique column(s), not including key1
    WHEN MATCHED
    THEN UPDATE  SET  dst.key1 = src.key1
    ;If you'd care to post CREATE TABLE and INSERT statements for the sample data, then I could test it.
    As posted above, this assumes that filename is unique. If not, you'll have to change the join condition between src and dst to guarantee a unique match.
    This does NOT assume that filename is always 19 characters; only that it is at least 8 characters, and that the last 8 characters determine the order.

  • Want to close many sales orders in once,TECO, any tools Tcode or RFC?

    Dear All,
    I have so many ope sales order, now I want to close all by TECO (Technicaly Closed).
    Is there any praramm or Fuction in SAP or Tcode though which I can TECO many sales order or list of sales order in once execution.
    Regards,
    Waqkas
    Edited by: Waqkas Mansuri on Feb 12, 2008 8:38 AM

    Hi,
    This is something related to PS plus SD. Please post this question in PS forum. You will get the answer immediately.
    Pls reward if the hint helps.

  • Open Purchase Order Quantity

    Hi, All,
    Is there any way to know how many open purchase order quantity in the SAP system?
    If I want to differentiate different business unit open purchase order, how I can do?
    What's the T-code?
    Thanks

    Hi,
    You can use ME2M, ME2N, ME2L, in the field Selection Parameters on the initial screen specify WE101 & the reports will list out all PO's for which GR is pending (i.e. Open PO's). Now you can change layout add / remove fields as per your need. You can also sub-total on plant or purchasing org. thereby getting the data you require. Also in the selection screen in the field Scope of List you can specify ALV to get an alv listing.
    Hope the above answers your query.
    Regards,
    Vivek

  • Data Migration for Open Purchase Order

    Hi, All,
    Is there anyone know how to Count the volume for Open Purchase Order. What's the normal strategy for the Data Migration and Cut-over stage?
    My client want to know how many Open Purchase Order in the legacy system and then determine manual or automatic data migration. If manual, how to do? If automatic, how to do? Because all materials and vendors, plants are different number. How to track? How to find out to match between new and old?
    Thank you very much

    JC,
    Sounds a bit early to be making decisions about the realization phase.  It doesn't sound like you have finished the Blueprinting phase yet, much less the testing phase.
    Anyhow, in my experience I typically use LSMW (Legacy system migration workbench) to load MM master data (material masters), Inventory (WIP, RM, FG, etc) Purchasing Master data (Vendors, Purchase Info Records, Source Lists, Quota Arrangements), and Purchasing transactional documents (POs, PurReqs, Scheduling Agreements, etc).  Depending on the complexity and volume of data, it  may be necessary to write custom programs to load the data.  You will find this out during your requirements gathering.
    It is uncommon but possible to load all of these data manually.  I have never run across a client that wants to pay a consultant's hourly rate to sit at a terminal to peck away loading master data, so if the client intends to have his own users enter the data manually, the project manager should make provision that there will be qualified TRAINED client employees available for this data entry.  I did help with a portion of a conversion once manually; of Sales Credits, but there were only about 30 SD docs to load.   I did this the evening before go-live day, while I was waiting for some of my LSMW projects to complete in the background.
    A good opportunity to 'practice' your data loads is right after you have completed your development and customization, and you have gotten the approval from the client to proceed from the pilot build to the full test environment.  Once you have moved your workbench and customization into the client's test environment, but before integration testing, you can mass load all, or a substantial portion of your conversion data into the qual system.  You can treat it like a dry run for go-live, and fine tune your processes, as well as your LSMW projects.
    Yes, it is good practice to generate comparisons between legacy and SAP even if the client doesn't ask for it. For Purchase orders on the SAP side, you could use any of the standard SAP Purchasing reports, such as ME2W, ME2M, ME2C, ME2L, ME2N.  If these reports do not meet the requirements of the client, you could write a query to display the loaded data, or have an ABAPer write a custom report.
    You didn't ask, but you should also do comparisons of ALL loaded data - including master data.
    It sounds like you are implying that the client wants YOU to extract the legacy data.  For an SAP consultant, this is not very realistic (unless the legacy system is another SAP system).  Most of us do not understand the workings of the myriad legacy systems.  The client is usually expected to produce one or more legacy system technical experts for you to liase with.  You normally negotiate with the technical expert about every facet of of the data migration.  In addition, you will liase with business users, who will help you and the implementation team to logically validate that the final solution (turnkey SAP production system, fully loaded with data) will meet the client's business needs.
    Finally, you mentioned how do you track the mapping of master data between legacy and SAP.  There are many ways to do this.  I normally try to get the legacy person do the conversion on his end, eg, when he gives you the load file, you would like to have already translated the master data and inserted the SAP relevant values into the file.  If this is not possible, I usually use MS Access databases to maintain a master map, and I perform the mapping on a PC.  If your data package is small, you can probably get by using MS Excel or similar.
    Good Luck,
    DB49

  • Short Close Sales Orders

    Hi All,
    I have a sales order for say 1000 qty and i have delivered 900 qty. There are no further deliveries going to be posted against these Order. Now I want to close this Order. Usually I go to Sales Order---- Item details--Schedule Lines--change the order qty equal to Confirmed qty. This way the order gets closed and does not come in Open Sales Order report.
    Now I have many such sales orders where i have posted deliveries and no further deliveries are to be posted.
    How do I close these Sales Orders in Mass.
    Thanks in Advance.
    Regards,
    SSK

    Dear Sarvesh,
    The solution is provided by Mr.Lakshmipathi..
    I think we can make the order qty as 900 in va02, and then also it has the same effect as 'CLOSED'.
    Please check that too.
    Thanks & Regards,
    Hegal K Charles

  • [rant] Order cancelled and promotion code no longer works despite being told I can reuse it

    I need to get this off my chest, as I see 2 similar posts regarding this same problem.  If bestbuy.com proceeds to take in an order and cancel it, you should also be able to reissue a promotion code.  Particularly because bestbuy.com customer service admits that the order was cancelled because something in your system flagged the credit card, but could not explain why, and said that it looks like all the credit card information was correct.
    I tried to purchase an item with a mover's coupon.  Order went through with the promo code.  Great!  Then I get an email saying that it was cancelled.  I immediately called and spoke with someone for 19 minutes who told me that she couldn't tell why the order was cancelled, but that it looks like all the credit card information was correct despite the system saying credit card could not be verified.  I explicitly asked her about the promo code I applied, and she stated that I could reuse it since the order was cancelled.  She even told me that I could go into a physical store and place the order with a salesperson there to redo the order and use the same credit card if I wanted.  So somehow that credit card won't work online, but it would work in a store.
    I then proceeded to try to reorder online with another credit card.  To my surprise, the promo code was rejected.  My blood started boiling because I had asked about this exact thing.  Cue second phone call to customer support.  This time I was on the phone for 49 minutes, only to get hung up on.  Now, I am livid.
    So, everytime an agent comes on the phone, they ask for my phone number and email address.  How convenient for you to take all that information down, hang up on me, and not call me back.  I'll give you the benefit of the doubt -- maybe you accidently hit the wrong button or had a bad connection, but you should have at least called me back since you were actively working on my case.  After another call to customer service, and being on hold for 5 minutes, I gave up.
    As far as I'm concerned, you are worst than Comcast.

    Good morning apathykillz, 
    Ordering on BestBuy.com with a Movers Coupon is a great way to save time and money while shopping for your latest device! It is discouraging to hear we may have been unable to verify some of your information, leading to your order's cancelation. It is also unfortunate to hear that you may have been provided some misinformation in regards to the Movers Coupon. Sadly, the Movers Coupon is a one-time use coupon, and cannot be refunded or reissued. I apologize for any hassle that this issue may have caused you.
    With that said, I was unable to locate your order using the email address you registered with the forum, and I would like to look further into this with you. Please be aware that I am sending you a private message to gather further information. You may check your private messages by signing into the forum and clicking the envelope icon in the top right corner of the page. 
    Sincerely, 
    Tasha|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Account Assignment Gp. Change in Sales Order At Item Level

    Due to Some Changes in Material Account Assignment Gps. , I want to Change A/C Assignment Gps. at Item Level in the Sales order it self . as there are so many pending sales orders with Old A/C assignment gp. I tried through MASS updation , but Item level A/C assignment field is not avialable . Pl. help to solve this matter

    Dear,
           I explain you the process that where the actual field is this.
          First Go on T.Code MASS --> Select Object Type : BUS2032 ---> F8 (Execute) --> Select SD document: Business item data : Table Name :MASSSDPOSVBKD ---> F8 (Execute) -- > Choose Selection Field (Square Check Button at Footer) ---> Select AcctAssgGr Field from Pool to Selection criteria --> Select OK.
          Hope it will help you.
    Regards,
    Sandip

  • Setting flag delivery complete on purchase order with a report

    Hello!
    In our system we have many old purchase orders without delivery complete flag. Now it is very difficult to get a correct report with open deliveries. Now we should set the flag delivery complete on each old PO and his needs a lot of time and also we create every time a change message which is printed on different printers.
    Is there any chance to set this flag by a report whitout setting this flag hard on the database?
    Best regards
    Markus

    Hi,
    You can change directly the Po with the BAPI, and the system will make all necessary test to make sure the ELIKZ can be updated.
    if it can not, it will not be changed.
    Please take into account that when you change the field DELIV_COMPL(see structure BAPIMEPOITEM), this field is changing the "Outward delivery completed" indicator (EGLKZ in DB-Table EKPO). If you want to change the "Delivery completed" indicator
    (ELIKZ in DB-Table EKPO), please use field NO_MORE_GR for this purpose.
    Additionaly, please read note 582221(Q 29) for your referrence.
    Best Regards,
    Arminda Jack

  • Purchase order not appearing as commitment for next fiscal year in KOB2

    Hi Experts
    Any help on this is highly appreciated.Our Fiscal year 2008 is ending on 27th september and fiscal year 2009 will start on 28th September.
    We have some purchase orders created with delivery date as 30th september which falls into next fiscal year. Somehow these purchase orders are not appearing as commitments in KOB2 report even with data ranges for next fiscal year.
    However we have many similar Purchase orders with delivery date in fiscal year 2008 with same internal order as account assignment and they are correctly appearing as commitments in KOB2 report.
    Can you please let us know what could be the reason for purchase orders with delivery date as 30th september not appearing in KOB2 report.
    Regards,
    Santosh

    Hi Ashok
    Thanks for your continued support on this. I was going through these notes today.
    One observation I made was cost elements in our system were valid till 27th september only when problematic POs were created.However their validity was subsequently extended after the creation of Purchase orders.This might be the reason for system not recognising these POs as commitments.
    SAP Note 534993 seems to suggest that we need to run report RKANBU01 for all such purchase orders to redetermine commitments.I am in the process of testing this out in our systems.
    Could you please let me know if my understanding is correct. Thanks again.
    Regards,
    Santosh

  • How can I keep the order of photos in an album when I upload it to Flickr?

    When I share an iPhoto album on Flickr, the order of the photos in my album is lost. Apparently Flickr uses the photo date, but that defeats all the manual arranging I have done in my album. How can I preseve the photo order on upload?
    Also, the description of each uploaded photo appears in small print and not in the main Flickr label box. This means the description cannot be seen if a photo is viewed in full screen mode. How can I automatically transfer the iPhoto descriptions to the main Flickr label boxes?
    Is there a better way to share iPhoto albums on the Web (Picasso)?

    I'm glad you found a solution
    For for others and you in the future it is important to understand
    Albums are a way to VIEW photos in your desired order within iPhoto - the photos do not have any order (in fact they are in files scattered essentially randomly accross your hard drive)
    When you move the out of iPhotoand view them in another program that program determines teh order they are viewed in
    An easy to see an example is the finder - files exported from iPhoto and viewed via the finder can be viewed in many different sort orders including name, date created, date modified, size, kind and label - none of these have any relation to the order the photos were in the album UNLESS you cause that to happen (like by exporting using sequential file names so teh finder name sort matched the album order) - the order you see photos in is totally determined by the program you are using to view them - if you understand how it views them then you may be able to export them so that the destination program view martches the iPhoto view
    To make suggestions to Apple re exporting to Flickr (or any other outsidside service) -  iPhoto menu ==> provide iPhoto feedback - and to make suggestiont to thrid party suppliers like the Picasa export plugin contact the developer of that plugin
    LN

  • Number of times a service order has been printed

    Hi,
    Is there a standard report in SAP that allows you to see how many times service orders have been printed? I know you can look in the action log for each individual order and count the 'Printed' entries, but is there a more efficient way of doing this for a number of orders?
    The data is stored in table PMPL, where a new record is create every time an order is printed. Although it is possible to extract the data from here and manipulate it to achieve the desired results, is there an easier way? Preferably which end users will have access to.
    Thanks.

    Hi Richard,
    there is a report for services Tcode : MSRV1 ,
    but as per my knowledge there is no standard report to show how many orders have been printed.
    may be a program can be written which can check the field COPY_NR and give you the desired results.
    Hope this helps
    Cheers

  • Link of production order

    I have created without material production order  (100) and put component in production order without any special assignment (STOCK).
    This component is subassembly and after mrp planned order will be created for it. This planned order is converted into production order ( 101).
    How to find relationship between reservation of production order 100 and  production order 101.
    I want to use this relationship in development ( abap program)

    Mayuresh,
    Let us first assume that you are talking about MTO.
    Within the planning segment in MTO, all orders will have an account assignment.  Assuming that you have one order per planning segment per level of the BOM (this is common, but not mandatory, you will have to see in your business environment if this extent of linkage will be adequate), you can link them using the account assignment (e.g., the sales order/item).
    If you are talking about MTS, your requirement cannot be met in all scenarios.  It is possible to have one dependent requirement (reservation) from a higher level production order be supported by many planned/production orders (one-to-many).  It is also possible to have many dependent requirements supported by a single planned/ production order (many-to-one).  Furthermore, as time goes by during the normal life of the superior order (higher level of the BOM), the actual lower level production/planned orders that will end up supporting the reservation WILL CHANGE.  There is no hard programmatic linkage.
    ECC MRP does not link these items, except logically.  Your program is doomed to failure if you attempt to link these two items, and have the linkage be valid in all circumstances.
    I have heard this requirement countless times, from users who are used to working in a legacy system that offers fixed pegging.  SAP does not use fixed pegging in their standard ECC MRP offering. 
    If you are doing your planning in APO, then there is hope.  APO PP/DS maintains dynamic pegging structures.  In this case, at any point in time, you can report which lower level production orders are linked to which higher level requirements.  APO changes these relationships automatically as the planning situation changes, but you can still report the new linkages any time you want.  APO also offers fixed pegging, in which these relationships, once created, remain fixed until you change them, or until all orders are completed.  If you require this type of hard linkage (and trust me, there are disadvantages to using fixed pegging) then you will have to do your planning in APO.
    Rgds,
    DB49

  • There is a pre-order limit

    I talked to Apple and the representative who I talked to said that it would be first come-first serve basis and there is a limit of how many customers pre-order. I hope he's wrong, because I won't be available when Apple starts receiving orders in the early morning.

    He's right. Sorry.
    Ben

  • Mass printing of maintenance work orders

    Hello All,
    I am configuring a preventive maintenance functionality where plans will kick out maintenance work orders at set intervals of time. Yesterday, I found about a requirement which requires functionality where a user can select many maintenance work orders and print shop papers for them from one screen. Are any of you aware of such functionality in SAP PM?
    Thank you for your help in advance.

    Alex,
      You should be able to use the List edit transaction iw38 to select and print Multiple Orders simultaneosuly. Once you have selected the orders in the Output screen, use the menu path ORDER > PRINT ORDER.
    Regards
    Narasimhan

Maybe you are looking for

  • Internal server error when adding a file item

    Hi Gurus, We have Portal 9.0.2.0.1. We add all our documents to portal as file item. I am getting the following error when I try to add a file item. The file size varies from 1 MB to 10MB. It's all .pdf or .doc files. I am able to add 1 or 2 files, t

  • Daily attendance - Manual input

    Hi. My client has no punching card or any swipe card system I have to maintain time attendance manually for all employees Shall i input data through PA61 in Attendance infotype/ Time event infotype For what purpose is time event infotype used and wha

  • GetParameter() throws NullPointerException

    For testing purposes a simple applet was created with a JPanel, a JLabel and a JTextField (tAircraftType). The textfield gets its value from the HTML page using getParameter(). I'm using a package and a jar in the main application so I created them h

  • Creative Zen going black/freezi

    Last night, after having overcome most of Creative's dodgy firmware etc, my MP3 player gave up on me for no reason. The screen went black (not black, as whenever it's turned off, brighter than that) and it the buttons stopped working. I couldn't turn

  • Is it necessary to have a SAP(BASIS) certification

    HI. This is Nashith                I done SAP(BASIS) with the help of brother in law who is a senior sap consultant                Is it necessary to have a SAP(BASIS) certification to start a career.