cancel
Showing results for 
Search instead for 
Did you mean: 

Calling WDA Application in BADI

Former Member
0 Kudos

I have to enhance a abap webdynpro screen using badi in CJ20n. I want to know how to call abap webdynpro application in badi.

Can anybody help me on this.

Regards,

Soumya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi ,

if u want to get the URL of ur WD Application :


//to get URL of Webdynpro Application :
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'Z102044_BAPI'
IMPORTING
out_absolute_url = str.

str - type string.

'Z102044_BAPI' is the name of your webdynpro application

to call webdynpro abap page from SAP GUI , use method CALL_BROWSER


CALL FUNCTION 'CALL_BROWSER'
  EXPORTING
    URL                          =  lv_url   "Your webdunpro application URL
  EXCEPTIONS
   FRONTEND_NOT_SUPPORTED       = 1
   FRONTEND_ERROR               = 2
   PROG_NOT_FOUND               = 3
   NO_BATCH                     = 4
   UNSPECIFIED_ERROR            = 5
   OTHERS                       = 6.

regards,

amit

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Nothing wrong with call browser, but you won't necessarily get Single Sign On to the WDA application that way. Consider function module WDY_EXECUTE_IN_PLACE with internal mode set to space. Or do like transaction codes like SOAMANAGER do and create a parameter transaction on top of the transaction code WDYID. You can then just call this tcode - all though underneight it just calls WDY_EXECUTE_IN_PLACE.

Former Member
0 Kudos

hi ,

You can try with CALL FUNCTION 'CALL_BROWSER'.

Similar threads :

.

I guess WDA SAP GUI integration is neither recommended nor supported, see also SAP note 1098009

Edited by: Saurav Mago on Oct 22, 2009 3:28 PM