on 07-23-2014 3:32 PM
Hi ,
Is there any sap standard variable where webdynpro component name or application name get store like SY-CPORG.
Thanks And Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit.
Refer table WDY_COMPONENT for list of webdynpro components and for WDP application you can refer WDY_APPLICATION table.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can get the application name using below code:
DATA : lr_api TYPE REF TO if_wd_component,
lr_app TYPE REF TO if_wd_application,
lr_app_info TYPE REF TO if_wd_rr_application,
lv_app_name TYPE string.
lr_api = wd_comp_controller->wd_get_api( ).
CALL METHOD lr_api->get_application
RECEIVING
result = lr_app.
CALL METHOD lr_app->get_application_info
RECEIVING
result = lr_app_info.
CALL METHOD lr_app_info->get_name
RECEIVING
result = lv_app_name.
Now pass the lv_app_name to the FM.
hope this helps u,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
There are SAP standard tables for applications and components:
WDY_APPLICATION for applications
WDY_COMPONENT for components
Regards,
Ashvin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
If you want to know Component name, you can right click on a particular UI element and click on -> More Field Help -> Technical Help. This gives you the component and View information.
And while debugging also you can find the same information at the debugging console at the top , which gives the component name , method name currently executing.
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I am not about the particular standard variable,please check the following link which might assist you.
http://www.saptechnical.com/Tutorials/WebDynproABAP/Search/Index.htm
Regards,
Harsha
Hi Rohit,
When you call a function module from WD and inside FM you cannot get the wd application name unless it is passed as parameter.
To get application name inside WD,
data lv_app_name type string.
lv_app_name = CL_WDR_TASK=>application_name.
Now, you can pass this to FM if you require.
Regards,
Rama
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.