Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom button in quotation

Quark_G
Explorer
0 Likes
606

Hi,

     I add a custom push button (name URL) in the dynpro "Additional data B" of transaction VA21/22/23 (Quotation). The button only needs to open the browser of internet.

I modified dynpro 8309, and I have inserted the module user_commnad in include MV45AIZZ.

When I push the button the standard program give me the message error "Requested function URL is not available here" (Message no. V0104).

I think is necessary maintain table T185 and T185F, but i don't know how.

Does anybody can't help me?

Thanks

George

2 REPLIES 2
Read only

Former Member
0 Likes
505

Hi i think that include is not triggering & debug it then u can understand its triggering or not

Read only

0 Likes
505

Hi Quark,

Use function module PRGN_GENER_EXECUTE_URL or CALL_BROWSER in your progarm (PAI where you trigger )and call it.

call method cl_gui_frontend_services=>execute

exporting

document = 'http://www.sdn.sap.com'

exceptions

others = 1.

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

URL = 'http://www.sdn.sap.com'

WINDOW_NAME = 'New'

NEW_WINDOW = 'X'

* BROWSER_TYPE =

* CONTEXTSTRING =

* EXCEPTIONS

* FRONTEND_NOT_SUPPORTED = 1

* FRONTEND_ERROR = 2

* PROG_NOT_FOUND = 3

* NO_BATCH = 4

* UNSPECIFIED_ERROR = 5

* OTHERS = 6.

IF sy-subrc <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

<removed by moderator>

With Regards,

Sudhir S