on 06-07-2006 9:30 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thanks for all and sorry for later replay, requirement was not clear so i could get back.
I wanted to dispaly a conformation message to SRM Shopping card in browser using BADI -BBP_DETERMINE_LOGSYS
so is it possible sending the message?
Hi Christophe and Pierre, is that process related in SAP side? or JAVA side?
i have to do it from the BADI, so coule u please let me know is it possible, if yes how?
Thanks
Murali
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murali,
Did you try 'popup_to_confirm'?Which BADI have you used?
BR
Disha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.