Skip to Content
avatar image
Former Member

Any FM or any way to diaplay Conformation Message in browser?

Hi all,

Is there any function module or any way to display Conformation Message asking Y/N in the browser?

Requirement is in SRM and implementing BADI.I need to insert this FM in BADI.

I tested with 'popup_to_confirm_step' but this is not displaying in URL(browser).

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 08, 2006 at 05:39 AM

    Hi Murali,

    you don't need to change any ABAP code for this.

    This can be realized directly in the HTML template with javascript code added on the button ok-code (I think it is the std syntax "confirm").

    Rgds

    Christophe

    PS: please reward points for helpfull answers

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 08, 2006 at 03:02 AM

    Hi Murali,

    Use the FM "POPUP_TO_CONFIRM" in the BADI "BBP_DOC_CHANGE_BADI".This should help.

    BR,

    Disha.

    Pls reward points for helpful answers

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 08, 2006 at 07:55 AM

    Hello,

    Just in the html template in javascript as Christophe said. More information on confirmation box:

    http://www.w3schools.com/js/js_popup.asp

    rgds

    Pierre

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Murali,

      Hi. Within the BADI you shouldn't really interact with the user in the manner that you have described i.e. Popup's with options.

      A suggested way would be for you to include addition bespoke fields against the shopping cart for the extra information that you require, and in the badi read in that information and act on it.

      For example on in Badi "BBP_DOC_CHECK_BADI" you have method ~BBP_DOC_CHECK. In there you can read in all the cart information, including all your bespoke fields using

      " call function 'BBP_PD_SC_GETDETAIL'

      exporting

      i_guid = iv_doc_guid

      i_with_itemdata = ' '

      importing

      e_header = ls_header...."

      Then evaluate, and respond to the user with a returned message

      "

      • Cart description set as default - please consider changing description

      move: 'W' to ls_message-msgty,

      'ZBBP_PD' to ls_message-msgid,

      '002' to ls_message-msgno,

      ls_header-description to ls_message-msgv1.

      append ls_message to et_messages.

      This will send back a warning message to the user saying they havent changed the cart description. I could have coded an error message, and they would be required to change the cart name before saving.

      In your case you could say something like "Please enter route in field ZROUTE". And in the BADI you could evaluate the route (i am only using route as an example) and go a certain route in your code accordingly.

      The best way to see it is that the web page is a flat interation with the user, and all the info that you need from them should be determined up front.

      Hope this helps.

      Cheers

      Rob

  • avatar image
    Former Member
    Jun 08, 2006 at 02:47 AM

    Hi Murali,

    Did you try 'popup_to_confirm'?Which BADI have you used?

    BR

    Disha.

    Add comment
    10|10000 characters needed characters exceeded