To call standard tcode in webdynpro( thru webgui) : Assistance class
Hi Gurus,
I have an alv display in which the vbeln entries have link to action control.
i.e when i click vbeln( sales order no), it should open a new window through its/webgui.
1.I am getting following error when i activate , get_execute_location is private/protected.
2. How do i go about the following code:
wd_comp_controller->execute_get_location(
IMPORTING
e_host = lv_host
e_out_protocol = lv_out_protocol
e_port = lv_port ).
Within my method of my assistance class I call an interface in class cl_http_server to procure my host,
protocol and port number.
CALL METHOD cl_http_server=>if_http_server~get_location
IMPORTING
host = e_host
port = e_port
out_protocol = e_out_protocol.
Can some one explain in detail.
Best Regards,
Navin Fernandes.
Hi Navin,
To display a standard tcode in your webdynpro application using ITS you can use the following code
DATA: url TYPE string,
host type string,
port type string.
*Call below method to get host and port
cl_http_server=>if_http_server~get_location(
IMPORTING host = host
port = port ).
*create URL
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'SE11'
INTO url.
*get the window manager as we are opening t code in external window.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
* call the url which we created above
lo_window_manager->create_external_window(
exporting
url = url
receiving
window = lo_window ).
lo_window->open( ).
Hope this helps!
Best Regards,
Radhika Vadher.
Similar Messages
-
How to call Standard Iviews in Webdynpro application?
How to call STD iviews in the wwbdynpro application.
can any of friends give the codeUse this snippet to call standard iviews from your webdynpro code :
//use LinktoAction UI element
onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
Hope this helps.
Rgds
Prabhakar -
How to Call standard iView from WebDynpro custom iView
Hello all Experts
I want to know whether there is any way to call (navigate to) standard iView from my cutom WebDynpro iview or not?
If yes please tell me how to code it.
(Points will be awarded for helpful answers)Hi Vinod,
read this document (from pages 7 ).
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62</a>
In addition lok at these links: (Navigation Between Web Dynpro Applications in the Portal)
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm</a>
<a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm</a>
It may be helpful for you.
Best regards,
Gianluca Barile -
Calling webservice from webdynpro thru model(webservice created from BAPI)
Hi all
i have created one webservice from Functional module in backend system(ECC) and also i released the same webservice in backend(ECC) thru the TCODE wsconfig.
my questions are
1) how to execute that created Webservice in backend system itself(ECC). can you please send the execution steps for webservice in ECC system.
2) how to call from webdynpro thru model for that created webservice from functional module. can you please send the execution steps for the same. here there are three options while model for webservice like local server,Local file system and UDDI or URL.
Regards
Sunil
[points are always rewardable]hi!
Below are good documents on Webservices
Adaptive webservice model
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
Re Importing of Web Services in Simpler way
Re Importing of Web Services in Simpler way
Using RFC as WebService in WebDynpro
Using RFC as WebService in WebDynpro
Enterprise Applications with webservices and Web Dynpro
The specified item was not found.
Regards
vishal -
How to call subscrreen of Standard Tcode as popup
Hi All,
I want to call a subscreen of a standard TCode as popup.
Req : When we click on Bill to Party partner,in Partner's tab in sales order,we get a subscreen displaying information about the same.
Is this possible to get this subscreen as POP UP while SAVING Sales Order (when we click on SAVE to save sales order in VA01).
Please help me out.
Thanks in advance..
Regards,
Amit.Hi Jim,
Thank you i missed this point.
So now i am planning to add custom fields to likp table and map this fields to my custom module pool screen so on making changes the standard likp header detail should be modified. so when user clicks on save of vl02n it would update the record. How to achieve this?
and as per my above post. I have created a Zprogram with Screen 9000, now i want to call this screen, on click of button from vlo2n as pop up how to achieve this? -
Calling sap transaction in webdynpro
hi friends,
can any body provide the solution how to call the standard transaction like va02 or .any . in Web dynpro abap.
thanks in advance.
sai.Hi,
It can be posible to display a standard transaction into Webdynpro.for that no coding required.you need to use webgui for that. ( pls refer transaction SICF ). in that case u can specify the Tcode u want use in URL.
like
http://<server-name>:8000/sap/bc/gui/sap/its/webgui?~TRANSACTION=va02
Call this url from linktourl or linktoaction
Tell me if you find any problem in doing this
Regards,
Edited by: Raju.. on Jun 30, 2009 5:51 PM -
Reg calling Transaction code in Webdynpro ABAP
Hi All,
Can I call Transaction code in Webdynpro ABAP Portal Application. If so, how can this be possible? Can anybody give me a lead?
Thanks.
Kumar Saurav.Hi,
The most easy Way is here:
1) Test any Webdynpro Application from SE80 when the webdynpro Browser opens to display output
Copy its HTTP link, Suppose we get the below link
http://r3d01web1.Siemens.dk:8001/sap/bc/webdynpro/sap/z_dynamic_view?sap-client=002&sap-language=EN
2) Now replace some part of the above link ( webdynpro/sap/z_dynamic_view?sap-client=002&sap-language=EN ) with the new link part ( gui/sap/its/webgui?~transaction=PA30 )
So that the newly generated link is such that the below one:
http://r3d01web1.Siemens.dk:8001/sap/bc/gui/sap/its/webgui?~transaction=PA30
Note in place of PA30 you can put any of your desired tcode.
3) Now Just Make a webdynpro component and in its View layout put a LINK TO URL ui element
and in its property REFERENCE just past the http link ( http://r3d01web1.Siemens.dk:8001/sap/bc/gui/sap/its/webgui?~transaction=PA30 )
4) Activate and test your webdynpro Application. -
Calling custom tcode in HAP_DOCUMENT_LINK
HI Experts,
I have req that i want to call my custom tcode in standard webdynpro component HAP_DOCUMENT_LINK. Actually i have a table in HAP_DOCUMENT_LINK with link, when user click on link i want to display my custom t-code.
I have created a custom webdynpro component which contains ALV table, When i execute that component it display empty rows with editable mode, i have created t-code for that webdynpro component like ZTABLE ( tcode name of wd component ) i want to call this tcode by filing all records and display it in read only mode. please help me to solve this .
Regards
SyedHi Syed,
You will just pass the key information via URL parameters to your custom web dynpro application. I think for your requirement you no need to create t-code, you launch the url directly.
Please refer the below links
Calling one webdynpro application from another | Webdynpro ABAP
Read URL Parameters in Web Dynpro ABAP
The above links clearly explains how to call one web application in other component and pass the url parameters.
Process can be divided as below:
Enhance the standard component, use POST EXIT and call the URL of Zcomponent and pass the parameters
Go to eventhandler method "HANDLEDEFAULT" of window of zcomponent and read the url parameters
Now, Based on the above parameters, you can populate the data into alv table in custom component
Also, make the alv as read only by using method if_salv_wd_table_settings~SET_READ_ONLY( abap_true)
Hope this helps you.
Regards,
Rama
Message was edited by: Ramakrishnappa Gangappa -
Hi,
Is there any way to call SAP standard transaction (tcode) in webdynpro?
Actually here goes my requirement. If I click a button, it should go to a specific transaction.
Regards,
Kalai.Hi,
Thanks for ur reply.
Actually I dint want to display the standard transaction in my screen. But I would like to design my own screen which looks similarly as standard transaction but without some fields and functionalities.
Also, if I give some input, it should do the same functionality as standard transaction. Such as retrieving values, updating values, listing all possible values(using F4) and updating values in the table in R3 System.
Is it possible to do this?? If so, Kindly suggest me some ways to do this.
Regards,
Kalai.
Message was edited by:
Kalaivani Pachiappan -
Calling a tcode in simple report
hi,
I am trying to call a tcode (ME23n) in a simple report(not ALV) but problem is i am unable to SET Parameter ID (i.e. P.O. no ). I displaying a list from an internal table even thou i am using the HIDE statement i am unable to capture the ebeln(P.O. no). please provide some sample code.
regards
prabhuI have ALV Report which calls mm02 and see the report
REPORT Z_GET_REFRESH no standard page heading.
type-pools : slis.
tables : makt,
mara.
data : i_fieldcat type slis_t_fieldcat_alv.
data : begin of i_makt occurs 0,
matnr like makt-matnr,
maktx like makt-maktx,
end of i_makt.
data : v_repid like sy-repid,
g_user_command type slis_formname value 'USER_COMMAND',
g_status_set type slis_formname value 'SET_PF_STATUS'.
DATA:LC_GLAY TYPE LVC_S_GLAY.
select-options s_matnr for mara-matnr .
start-of-selection.
select matnr maktx from makt into table i_makt
where matnr in s_matnr.
end-of-selection.
Fill the fieldcatlog
perform fill_field.
Call the FM
perform call_fm.
*& Form fill_field
text
--> p1 text
<-- p2 text
FORM fill_field.
data wa_fieldcat type slis_fieldcat_alv.
clear : wa_fieldcat.
wa_fieldcat-tabname = 'I_MAKT'.
wa_fieldcat-fieldname = 'MATNR'.
wa_fieldcat-outputlen = '18'.
wa_fieldcat-seltext_l = 'Material #'.
wa_fieldcat-col_pos = '1'.
append wa_fieldcat to i_fieldcat.
clear : wa_fieldcat.
wa_fieldcat-tabname = 'I_MAKT'.
wa_fieldcat-fieldname = 'MAKTX'.
wa_fieldcat-outputlen = '40'.
wa_fieldcat-seltext_l = 'Material Desc'.
wa_fieldcat-col_pos = '2'.
append wa_fieldcat to i_fieldcat.
ENDFORM. " fill_field
*& Form call_fm
text
--> p1 text
<-- p2 text
FORM call_fm.
v_repid = sy-repid.
LC_GLAY-EDT_CLL_CB = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = g_status_set
I_CALLBACK_USER_COMMAND = g_user_command
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS = LC_GLAY
IS_LAYOUT =
IT_FIELDCAT = i_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_makt
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " call_fm
FORM USER_COMMAND *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield. "#EC CALLED
data i_RSPARAMS like RSPARAMS occurs 0.
CASE R_UCOMM.
WHEN '&IC1'.
read table i_makt index rs_selfield-tabindex.
SET PARAMETER ID 'MAT' FIELD i_makt-matnr.
if not i_makt-matnr is initial.
call transaction 'MM02' and skip first screen.
endif.
when 'REFRESH'.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = v_repid
IMPORTING
SP =
TABLES
SELECTION_TABLE = i_RSPARAMS
EXCEPTIONS
NOT_FOUND = 1
NO_REPORT = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
submit z_get_refresh with selection-table i_RSPARAMS.
rs_selfield-refresh = 'X'.
ENDCASE.
MOVE 'REFRESH' TO r_ucomm.
ENDFORM.
FORM set_pf_status *
FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab.
SET TITLEBAR sy-tcode.
ENDFORM.
For PO
use like
set parameter id 'BES' field ur field.
call transaction 'ME22N'. -
Calling SAP scripts from WEBDYNPRO
Hi
We need to call SAP scripts from WebDynpro application. As per my understanding we need to do following steps
Create a new RFC function module and create sap script output in PDF format.For this
- use OPEN_FORM , by assigning TDGETOTF='X' in the Options(Structure
ITCPO).
- call function module CLOSE_FORM with option OTFDATA
- convert OTF data to PDF by using function module CONVERT_OTF_2_PDF
Now I would like to know how to display the PDF string from WebDynpro.
Please help....
Regards
SujithHi,
You can call by creating external window method.
create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.
data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
data: api_component type ref to if_wd_component,
window_manager type ref to if_wd_window_manager,
window type ref to if_wd_window.
api_component = wd_comp_controller->wd_get_api( ).
window_manager = api_component->get_window_manager( ).
window = window_manager->create_external_window(
url = iv_url
modal = abap_false ).
window->open( ).
Cheers,
Kris. -
How To call a Tcode From a Program and returning back ?
Dear All,
I have a requirement, i have to show all the open orders as in the the tcode va05 and return back to the my program. so how to display the tcode and getting back to my program. please help?Hi,
Basic syntax to call the transaction is:
SET PARAMETER ID <id name> FIELD <filedname>.
CALL TRANSACTION <TCOde> AND SKIP FIRST SCREEN.
If your are using ALV then snippet is :
FORM user_command USING okcode LIKE sy-ucomm
lselfield TYPE slis_selfield.
CASE okcode.
WHEN '&IC1'. " SAP standard code for double-clicking
CASE lselfield-sel_tab_field."check if double click is only on
WHEN 'ITAB-AUFNR'."aufnr not on any other field
SET PARAMETER ID 'ANR' FIELD lselfield-value.
CALL TRANSACTION 'IW32' AND SKIP FIRST SCREEN.
ENDCASE.
ENDCASE.
Endform.
Pooja -
How to use call transaction stmt from webdynpro application
Hi Expers,
Can I use call transaction 'tcode' in my webdynpro application, I have tried in my application but i am getting short dump saying
Error analysis+
An exception occurred that is explained in detail below.The exception, which is assigned to class'CX_SY_SEND_DYNPRO_NO_RECEIVER', was not caught and therefore caused a runtime error. The reason for the exception is: During background processing, the system attempted to send a screen to a user. Current screen: "SAPLMGMM " 0060.
I haven't used any more statements in my application am sure from my application side everything perfect. but I have seen a screen shot
with SAP screen in webbrowser.
Please help me out if you are not clear abt my doubt please ask me for clear idea.
Thanks in advance
Phalani MHello,
Since you can't use the call transaction command in web dynpros components, I suggest you to create a report and fill a BDC table on this and use the call transaction in this report.
So, in your web dynpro component you can use a command SUBMIT to create a job in background.
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
Regards. -
Smartforms:Can i call a Tcod from Driver Prg 4 its o/p 2 be appended
Hello Smartform Gurus
I need 2 call 1 tcode from my Driver prog ,which has report o/p that is 2 be appended in my Smartform o/p as a
appended page .
Is it possible at all ?
plz throw some light on this .
thnx
MoniHi Moni,
of course there are several ways to reach your goal.
I have assumed:
- your smartform is based on a SAP-document
- document output is based on standard output determination with output messages
This is defined in customizing (SPRO) at several places or combined in NACE.
Anyway, create additional output just after smartform output, take care of same printer, spool name and so on -> you will end with one (combined) spool request.
Have a look for output messages, if you are unsure how to get a 'simple' smartform output.
Regards,
Christian -
Hi,
I want to call a TCODE CS03 and skip first screen in a view based on a linkto action???
I have done this..But a new window/browser is opened for CS03....But I want to call in view itself.....
Is it Possible?
Thanks,
GangaCheck these links
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0018077-f0c9-2b10-87af-eb9bb40776d4?QuickLink=index&overridelayout=true
How to close parent window in Webdynpro applications?.
http://help.sap.com/saphelp_nw04s/helpdata/en/45/19bf8c16f25d7ae10000000a11466f/content.htm
CREATE_EXTERNAL_WINDOW to call another WDA but close current WDA
Regards
Srinvias
Maybe you are looking for
-
A UPS for my new iMac 21.5"
I've ordered a new iMac 21.5" with Fusion Drive HD. Can someone advise me what is the proper UPS to buy for my new iMac please ? It's important to have some kind of software ? Thanks Ronen
-
Hi everyone i used to set the program MSDICT Viewer for my N70 Multimedia Key, before i upgrade the phone's firmware from v 3.*** (i don't remember! ) to 5.0638.3.0.1. but now i can't set it up any more! MSDICT viewr is not available in the program l
-
Does anyone know what time I'll be able to download CS6?
I've subscribed for Creative Cloud and looking forward to downloading the CS6 suite of products here in the UK? Will I be able to do this from 12am tonight? Cheers
-
Best solution for EXEC SQLu2026. INSERT? Time problem
Hi: I have a problem with native sql in abap. I have next code and itu2019s working properly (see below) , but the problem occurs when abap internal table is too big, because exec sql u2026 endexec is executed one time for each internal table line, s
-
Passing data to reports from Forms
Another question, we have a few Forms which call a report and pass the data directly to the report. The report itself isn't doing another query. At the moment I can't imagine a solution to that, but myabe I'm wrong. Changing the report to get some pa