Skip to Content
author's profile photo Former Member
Former Member

Avoid double-click in BSP session

Hi
When we push the submit button in our BSP application, we call the FM BAPI_GOODSMVT_CREATE.

It is okay, and the goodsmovement is done.


The problem is when the user is impatient and push the submit button 2 - 3- or 4 times, the BAPI_GOODSMVT_CREATE is called several times.

How can avoid that the user press the sumbit more than once, or that the BAPI can't be called "by mistake"?

Thanks

Aikon

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jun 10, 2012 at 07:37 AM

    Basically, you can avoid by this way...

    Takethe control to the next page... where you say ... Processing......

    then bring back the contrl to main page ... once the BAPI is sucessfully copleted...

    Or Add an attribute to the button... set the attribute true or false basd on the BAPI running status...

    Regards,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 12, 2012 at 11:00 AM

    hi aikon,

    you can use this tag from xhtmlb extension:

    <xhtmlb:protectDoubleSubmit />

    should work fine,

    Stefan.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.