How to Validate an order once "Place Order" button is pressed

Hi,
We have a requirement which is, When customer places an order, we need to check if that order has Item 'ABC' in it.. If so, There should be another item 'XYZ' should also be in there. if not, we should throw error message on Checkout page itself. We don't want to customize the JSP as we don't have expertise. Can any one suggest the PL/SQL APIs where we can include this logic? or any other logic?. We just want to understand which API will get executed as soon as they hit that 'Place Order' Button on Check out page.
Thank you.

Hi,
I think it is too late to validate items during Place Order.
I would suggest you should do it when you click the Checkout button.
If you refer to ibeCScpViewA.jsp (which is used when we click on Checkout button)
you can find ready code which loops over all the items in the cart.
You can easily customize this page.
If you still want to stick to Place Order, then you need to customize ibeCCkpOrdReview.jsp.
but you will have to write a lot of code on your own.
Hope it helps!
Hrishikesh

Similar Messages

  • How to validate for 2 decimal places

    How can I put a check while inserting into a number(5,2) field that user has entered only 2 decimal places. Right now if the user inserts records like 23.5456 it gets inserted as 23.56 . I want these type of records to error out. Is there an easy way to do this kind of a validation while inserting.?
    Thank You,
    SK

    Sorry, I don't see how you're going to accomplish this. The value has already been implicitly rounded before check constraints or triggers fire. I guess if they were inserting true literals you could check the SQL statement itself and it's possible to get at bind variable values but that's going to be a real nightmare to implement properly. I think you're going to have to have the column as a number with no scale and check constrain it if this is really required. You could probably do this with a view and instead of triggers but that's going to be ugly.

  • How to hide parameters AUTOMATICLY based on radio buttons being pressed

    I have multiple radio buttons and with each radio button I have parameters that appear on screen for user to enter data.   Is there a way to make the selection blocks appear and disappear automatily based on the user  pressing the radio button?
    My current coed works only if I press the enter key but not automatily when the radio button is pressed.

    hi, have a look this example, it works as u want.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS: r_ps TYPE c RADIOBUTTON GROUP rd DEFAULT 'X' USER-COMMAND abcd, "radio button server
                   r_as TYPE c RADIOBUTTON GROUP rd . "radio button for application server
    SELECTION-SCREEN END OF BLOCK blk2.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: p_pfile TYPE rlgrap-filename MODIF ID ccc, "presentation server input file
                    p_afile TYPE rlgrap-filename MODIF ID aaa. "application server input file
    SELECTION-SCREEN END OF BLOCK blk1.
    AT SELECTION-SCREEN OUTPUT.
      IF r_ps = 'X' .
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CCC'.
              screen-input = 1.
              screen-invisible = 0.
              MODIFY SCREEN.
          WHEN 'AAA'.
              screen-input = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSE.
        IF r_as = 'X'.
          LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CCC'.
              screen-input = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
          WHEN 'AAA'.
              screen-input = 1.
              screen-invisible = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
        ENDIF.
      ENDIF.
    START-OF-SELECTION.
    Regards

  • How to create dynamic item when ADD MORE button is pressed.

    Hi,
    I am creating a Form with the following requirement.
    1. Suppose, I have an item say P1_DEPTNO (text box)
    2. I have a button say..ADD MORE.
    3. Initially..only one item P1_DEPTNO is displayed and ADD MORE button is displayed.
    4. If a user want to create one more deptno....he will click ADD MORE and same item P1_DEPTNO should be displayed in next line...and so on..
    5. so, we want to create P1_DEPTNO on the fly whenever ADD MORE button is clicked.
    and lastly we will have a PL\SQL process to capture all the values for the item P1_DEPTNO and will insert 1 record each for P1_DEPNO value.
    Appreciate if I can get the logic for that.
    Thanks,
    Deepak

    edit the Add button.
    go to URL redirect tab.
    In target select URL
    in URL textbox enter javascript:onclick='myFunction()'
    and in the html header of page enter javascript to add new items and submit the page for processing...
    <script>
    function myFunction()
         // javascript code to add new item
         doSubmit('ADD');
    </script>Regards,
    Shijesh

  • How to initiate a work flow when the button is pressed in a form

    Hi All,
    I am new to workflow, I am working with oracle apps r12 and form 10g and workflow builder 2.3.
    I have develop a form in that i have a button called Initiate approval, When the user clicks the button the workflow need to called.
    Can any one please tell me the steps to do this.
    Thanks & regards
    Srikkanth

    Hi,
    I have called the workflow pkg directly in my when button pressed trigger and its works fine
    Regards
    Srikkanth.M

  • How to make iBook sleep automaticlly when power button is pressed?

    I have an iBook G4. It had Tiger on it, then I took it apart to replace the hard drive and ram, and put Leopard on the new hard drive.
    Now, it doesn't sleep when I close the lid. I can't find a setting that changes this, so I'm assuming something happened when I took it apart.
    But also, now when I press the power button, it brings up a prompt that asks if I want to sleep, shut down, or restart. It's pesky because what used to be just closing the lid is now a button push, pointing, clicking, and then closing the lid.  When I had Tiger it would just sleep automaticlly when I pushed the power button.  Is there any way to get it to do this again? Or perhaps something I overlooked that changes what happens when I close the lid?

    Hello,
    Check you have the correct options set in system preferences under 'Energy saver'.
    Just make sure it's not set to sleep 'Never'
    Seeming this iBook has been opened, it could be a problem with the magnet used to trigger sleep mode when the lid is shut.
    Regards to setting the options for the power button, this is defined by the version of OS you have installed.
    From what I recall, the screen options were available from Mac OS X 10.5 when you pressed the power button.

  • How to generate a html page when a button is pressed

    hi
    i have to generate a html page when a help button is pressed
    so please help me
    thanks
    shiva

    "touch index.html"
    Might not be what you're looking for but creates an html page.

  • Exactly Once In Order ..in File adapter ???

    Hi Xi friends..
    in my file to idoc ..
    i am getting files as wear*.xml .
    i think , i have  to use Exactly once in Order in Communication Channel  to process multiple files in order starting with wear*.xml
    if i select Exactly Once In Order..
    i have to give Queue Name..
    please tell me which queue name to be given here..
    please tell me how to use this Exacly Once in Order option..
    thanks and regards
    Ram

    Hi Ram,
    The XI supports Synchronous and Asynchronous delivery; in XI terms, these
    are described with a Quality of Service (QoS) descriptor. The XI supports
    QoS Best Effort (BE), Exactly-once (EO), and Exactly-once-in-order (EOIO).
    These are equivalent to RFC types Synchronous RFC (sRFC), Transactional
    RFC (tRFC), and Queued RFC (qRFC), respectively.
    EOIO (Exactly Once In Order):
    Messages are delivered with the same queue names (supplied by the application) in the same sequence that they were sent from the sender system. Message processing is asynchronous in this case.
    In the case of quality of service BE, an error occurs if more than one receiver is determined for a message. In the case of delivery types EO and EOIO, the message is copied correspondingly and sent to the individual receivers.
    Ckeck this link
    http://help.sap.com/saphelp_nw04/helpdata/en/41/b714fe5ffc11d5b3ea0050da403d6a/frameset.htm

  • How to get a loop run for 1 instance every time a button is pressed

    I need to get a loop run only once everytime a button is pressed.
    Please help me.

    Read the help built into LabVIEW
    Here's online version of the help: http://zone.ni.com/reference/en-XX/help/371361L-01/glang/event_structure/
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • SD How to create IDoc once Sales Order Invoice (Billing) has been created ?

    Hi,
    How to create IDoc once Sales Order Invoice (Billing) has been created ?
    I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
    Thanks

    Hello,
    Go to T.code VV31 and select the billing output type and select the access sequence required and in the details screen of create condition records give all the required entries for eg: may be Billing Type, Sales Organsiation etc.and in the medium choose the option as 6(EDI) and time select as 4 that is immediately after saving the document.Also please ensure that particular partners for whom idoc should be generated they need to have partner profile setup with the billing message types. Hope this helps.

  • How to create IDoc once Sales Order Invoice (Billing) has been created

    Hi,
    How to create IDoc once Sales Order Invoice (Billing) has been created   ?
    I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
    Thanks.

    Hi,
    We need to do custom configuration for this scenario such that an output type will be attached when ever an INVOICE is created.
    Refer to application V3 in NACE. The Output type should contain an entry with transmission medium: Distribution (ALE).
    for example check the customization done for an output type in NACE.
    Goto NACE ---> Select an application V3 ---> Click on processing routines ---> select the output type (Eg: RD00) ---> Click on Details button  (CNTRL + SHFT + F2) which gives the configuration info.
    For example we can generate the IDOC based on the settings in partner profiles for the customer (Sold To)
    With Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 8:16 AM

  • Pls how do i place order from apple for 661-4964,logic board 2.6GHz.Rev2

    pls how do i place order from apple for 661-4964,logic board 2.6GHz.Rev2 for mac book pro17 inch someone please help

    Apple does not sell part to private individuals

  • How to find the user exit for order cancellation

    I want to find the user exit for order cancellation. And also to ensure that no one amends the order once the canellation has taken place. The cancellation shall be deemed to be affected only if the vendor has confirmed the acknowledgement of the order cancellation.
    I have got a Zreport where this order should not come as open order item.
    Please tell me the method of finding the users exit for order cancellation and stop the order from getting modified. And also how to find the tables in which the data has to be updated that the order has to be cancelled.
    In the PO header i want an additional tab <cancellation> by which the user by the help of userid and password should be able to cancel the order. An order once cancelled cannot be undone. A new order has to be placed. The new order can be placed refencing the cancelled purchased order.
    My client has got a very stringent requirement. In the past cancelled order has been undone and caused lot of problems.
    Regards.

    hi
    pls tell me t.code so that i will send all user exits related to that particular t.codes
    Thanks & Regards
    phaneendra

  • CRM Order - 'Convert to Quote' Button - How to remove?

    Hi team
    Could you please tell me how to disable following in CRM 5.0.
    We create a sales order in CRM, once saved, if I look at details above line items (where there are buttons such as create, delete, atp check etc), I also see a button to 'convert to quote'. If I highlight the line items on the sales order and click this button, then the line item statuses become Quotation (from OPen) and now the button changes to 'convert to order' and if I click this button again, then line item statuses change to 'quotation accepted'
    Line item status profile that we have is standard CRMORDER_I and there are 3 statuses for it. BID Quotation is assisnged to OPen user status.
    Please advise as to how to disable it.
    Regards
    Jai

    Hi Jai,
    If you see the third level customization for the item category. You will find that the subsequent processing is set to reset the quotation.Change that and it will not appear.
    There are two ways to convert quotation items to order items
    1)Creating a follow-up transaction (two separate documents are created)
    2)Changing the item status (particularly in IC) and only one document is created.This is what is happening becuase the subsequent processing is set to reset to quotation in third level customizations
    Hope this would help.
    Regards,
    Rekha Dadwal
    <b>You gain a point for every point that you reward. So reward helpful answers generously <b></b></b>

  • Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.

    Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.
    Is there any way to re-number them in the order I have chosen so that they can then be sorted by number? The scans are all from pre-digital images that I wish to move to a photobook and I don't want to have to organise them twice!
    Thanks for any suggestions.

    I was a bit short, Chris, sorry. It is limited, what can be posted, when typing on an iPad.
    Now I am back on my Mac. I meant the following:  Batch Change the date for a large range of photos, that should have a date stepped in increments.
    Select all Photos at once and use the command "Photos > Batch Change".
    Then set the date for the first photo and select an increment, e.g. one minute.
    Now all photos will get a new date assigned, incremented by one minute, in the sequence you have selected. So you will be able to sort them by date.  This way it will be unnecessary to change the titles or filenames.

Maybe you are looking for

  • Comment out actions in side proxy services in osb

    Do any body know how to comment out certain actions in proxy service in OSB? For eg: I have assign, insert, assign, ..route.... I want to comment out second assign but don't want to delete it, since i might need it later. Can I manipulate the generat

  • Where can I download Illustrator CS6 and Photoshop CS6

    I am a Creative Cloud member and I can't find an online link to get Illustrator and Photoshop CS6. I am on a Mac OSX 10.6.8, unfortunately I can't run CC programs all the time. My illustrator crashed and I need to reinstall both CS6 programs. Thank y

  • SBO E-mail through Alert is short of content

    I use Alert function to send E-mail to receipt with query results. The SBO mailer seems to work properly. But the received E-mail is short of contents. When the E-mail has more than one hundred lines of query result, the E-mail has only about 70 line

  • JPG Files not more see by Lightroom

    I've LR5.71 installed on windows 8.0 and is working fine , catalog is ok and I can see both raw and jpg files in folders , if I re-synch it LR reports 0 files missing Now I'm reinstalling LR ON the same PC BUT in another boot OS windows 8.1 which see

  • Help for ICSS registe a B2C account

    Hello All, I want to registe a B2C account in ICSS, but even I input all fields, the button of 'submit' still can not be click. I do not know why. Are there any configuration I have not do? It is urgent. Need for your help.