Moving to second screen of SAP GUI from webdynpro application
Hi friends,
I want to open the secatt applications second screen from webdynpro UI. For this I am using the following code on webdynpro side
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'appname'
IMPORTING
out_absolute_url = lv_final_url.
SPLIT lv_final_url AT 'webdynpro' INTO lv_first_url lv_second_url.
SPLIT lv_second_url AT 'ztwb_tor' INTO lv_final_url lv_apostrophe.
CLEAR lv_final_url.
CONCATENATE lv_first_url '/gui/sap/its/webgui?TRANSACTION=secatt&RB_TEST_CONFIG=X&RB_ECATT_SCRIPT=& ECTC_VER-NAME =' ls_ztwb_test_case-testcase '&okcode=ECOB_SHOW' lv_apostrophe
INTO lv_final_url.
CALL METHOD lo_window_manager->create_external_window
EXPORTING
url = lv_final_url
RECEIVING
window = lo_window.
lo_window->open( ).
But I am still able to open the first screen of secatt and not the second screen with the relevant testcase datails.
But if I try to open the second screen of SCAT transaction I am able to open it using the following url.
CONCATENATE lv_first_url '/gui/sap/its/webgui?TRANSACTION=SCAT&*CATA-ABLNR=' ls_ztwb_test_case-testcase '&okcode=ZEIG' lv_apostrophe
INTO lv_final_url.
Is there anything else that I need to pass as parameters in SECATT transaction.
The program of SCAT transaction is a module pool program.
The program of secatt transaction is a function pool program.
Thank you.
Hello Mohsin,
I checked the program of SECATT. its just uses the workbench manager to start the respective GUI screen and its not passing any parameters. So I doubt whether you can pass parameters or OKcode to the SECATT tcode.
What you can do is to identify the respective landing screen of SECATT tcode and invoke them by passing parameters.
BR, Saravanan
Similar Messages
-
Invoke SAP GUI from Webdynpro ABAP
Hi All,
I am calling the webdynpro screen (using FM 'WDY_EXECUTE_IN_PLACE') from SAP GUI screen. In the webdynpro screen I have created one button upon clicking the button it should go back to the SAP screen from where I called the webdynpro screen.
Could some tell me how to do this.
Thanks in Advance.Hi Saba,
Please check this: [this FM seem to be not supported by SAP and only release internally within SAP|Re: how to exchange data between wda program and abap program?;
Thanks,
Duy -
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 pass parameters for second screen to SAP webgui URL
Hi
I want to call SAP webgui from an application and want to pass some data which need to be prefilled in the screen.
Have gone through many threads
/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=22375
webbgui - calling a transaction and specify variant or parameter in url
Things work fine if I pass values to fields which are on first screen, but I am unable to pass data to fields on next screens.
Taking an example :
tCode for vendor creation is XK01 and it has many screens, now when I call url
http://HOST_NAME:8000/sap/bc/gui/sap/its/webgui/!?sap-client=CLIENT_ID&sap-user=SAP_USER&sap-password=SAP_PASSWORD&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1001;
I am able to view Ven1001 in vendor code in first screen
But when I call
http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;ADDR1_DATA-NAME1=VEN_NAME
All the fields on first screen get populated but I don't get VEN_NAME in Name1 field on GUI
Tried this
http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;Ok_Code=ENTR;ADDR1_DATA-NAME1=VEN_NAME
as well, but no success
Can anybody help. Thanks in advance
Ruhiyou can only pass values to first screen fields
-
How to pass parameters for second screen to SAP webgui URL (ITS)
Hi
I want to call SAP webgui from an application and want to pass some data which need to be prefilled in the screen.
Have gone through many threads
/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=22375
webbgui - calling a transaction and specify variant or parameter in url
Things work fine if I pass values to fields which are on first screen, but I am unable to pass data to fields on next screens.
Taking an example :
tCode for vendor creation is XK01 and it has many screens, now when I call url
http://HOST_NAME:8000/sap/bc/gui/sap/its/webgui/!?sap-client=CLIENT_ID&sap-user=SAP_USER&sap-password=SAP_PASSWORD&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1001;
I am able to view Ven1001 in vendor code in first screen
But when I call
http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;ADDR1_DATA-NAME1=VEN_NAME
All the fields on first screen get populated but I don't get VEN_NAME in Name1 field on GUI
Tried this
http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;Ok_Code=ENTR;ADDR1_DATA-NAME1=VEN_NAME
as well, but no success
Can anybody help. Thanks in advance
Ruhiyou can only pass values to first screen fields
-
Using the SAP GUI from the NW2004s SneakPreview Download
Hello,
does anyone else have major problems with the SAPGUI from the NW2004 SneakPreview download page?
Im getting a runtime error when logging on:
Runtime Errors MESSAGE_TYPE_X
Date and Time 24.12.2005 00:34:11
Short text
The current application triggered a termination with a short dump.
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
Error analysis
Short text of error message:
Control Framework : Error processing control
Technical information about the message:
Message classe...... "CNDP"
Number.............. 006
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
Trigger Location of Runtime Error
Program CL_GUI_CFW====================CP
Include CL_GUI_CFW====================CM002
Row 23
Module type (METHOD)
Module Name FLUSHHello Rich,
the sap gui from the NW2004s SneakPreview page is on patchlevel 8. The problem is when i use the latest sap gui from the service marketplace (full install!) i cant event call the gui. Getting a error when doubleclicking on the SAP Gui icon.
'The procedure entry point 'RfcResetTraceDir' could not be located in the dynamic link library 'LIBRFC32.dll' .'
So actually since i installed the NW2004s on my local notebook the only sap gui "working" (at least i can call it) is the one from the NW2004s Sneakpreview page but im getting this error mentioned here on all systems! not only on the NW2004s system
regards,
Markus -
Access UME from Webdynpro Application
Access UME from Webdynpro Application u2013 display the user attributes from Webdynpro iview
How to go for this...??
Edited by: saurav mago on Sep 1, 2008 6:45 PMHello Saurav,
Try this:
import com.sap.security.api.IUser;
import com.sap.security.api.IUserAccount;
import com.sap.security.api.UMException;
import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDUMException;
try {
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
IUser sapUser = wdClientUser.getSAPUser();
if (sapUser != null) {
java.util.Iterator parentGroups = sapUser.getParentGroups(false);
while (parentGroups.hasNext()) {
String parentGroupName = (String) parentGroups.next();
if (parentGroupName.equals("GRUP.R3_ROLE_DS.Z:EP_XPTO123")) {
return true;
catch (WDUMException e) {
e.printStackTrace();
OBS.: sapUser can be used to access a lot of info regarding the user.
OBS.: you need to add a reference to "com.sap.security.api.sda", that is in the default SC SAP_JEE, if I well remember.
Regards,
Douglas Frankenberger -
Requirement: Open Transaction code in SAP GUI from WD ABAP application
Hello All,
I have a WD ABAP application which is accessed from SAP GUI and Portal. In SAP GUI, there is report which calls the application URL.
In the WD application, I need to call a transaction code. At this juncture, I made use of the ITS url. But,, the SSO does not work in SAP GUI.It works only in portal.
As a solution,we identified the entry point i.e. SAP GUI or portal. Then, based on entry from SAP GUI, we tried to call the transaction code using call transaction statement. But, that replaced the wd application. We instead wanted it as a popup or atleast another session.
Now, how do we open a transaction from WD screen in another session?
Also, can we setany configurations in the system to make sure the SSO works for all the transactions i.e. ITS used in SAP GUI.?
Thank you.
Regards,
SharathHi,
This question gets asked many times.
Depending on the circumstances, this can be achieved with varying degree of success
So here is some code that might help you.
This can (does) load a Windows GUI.
Some things to consider.
1. Browser settings can get in the way a bit, asking the user if they want to open a ".sap" file
2. The user may have a SAP session open so consider adding a "/o" to the system code.
3. The Custom variable might want to contain a [Options] section for "Re-use"
4. The SAPLogon_ID may be required if using SSO (SNC)
I have modified the code below, but you will get the idea.
JS
* Create the shortcut contents
call function 'SWN_CREATE_SHORTCUT'
exporting
i_system_command = lv_com
i_saplogon_id = lv_logon_id
i_sysid = sy-sysid
i_client = sy-mandt
i_user = sy-uname
i_custom = lv_custom
importing
shortcut_string = lv_string
exceptions
inconsistent_parameters = 1
others = 2.
* Convert to xstring to execute....
call method cl_http_utility=>if_http_utility~encode_utf8
exporting
unencoded = lv_string
receiving
encoded = lv_xstring
exceptions
others = 1.
* Now call to open the shortcut.
lv_file_name = 'mytrans.sap'.
lv_mime = 'application/x-sapshortcut'.
call method cl_wd_runtime_services=>attach_file_to_response
exporting
i_filename = lv_file_name
i_content = lv_xstring
i_mime_type = lv_mime
i_in_new_window = abap_true. -
Pre-fill Office documents with SAP data from WebDynPro screens
I have a requirement to have Word/Excel type file templates that we can open and have pre-filled with data attributes from SAP objects.
I know that we can do this relatively easily from within the SAP GUI in transactions such as SCASE etc... but our solution needs to have this type of functionality invoked from WebDynPro screens that are delivered through the Portal.
We have looked at Adobe Document Services which will give us the fucntionality as described, but because of licencing constraints we are unable to use ADS at this stage.
Does anyone have any knowledge or ideas on how we may achieve pre-filling of Word templates etc. from WebDynPro screens?Paul,
Did you figure out how to do this? We have a very similar requirement now. Appreciate any suggestions you may have.
Thanks
Madhu -
Problem with Interaction between SAP GUI and BSP Applications
Hi Folks,
I am new to BSP and am trying to create a program to created a BSP within the SAP GUI. This is my program, I have tried to find as to what error have I made but I am not able to find out.
I can only find a button post document in the output, but I am not able to trigger any event. Please let me know as to what is the error.REPORT zbsp_iact_gui.
SET SCREEN 100.
* CLASS cl_my_html_yiewer DEFINITION
CLASS cl_my_html_viewer DEFINITION INHERITING FROM cl_gui_html_viewer.
PUBLIC SECTION.
METHODS: constructor IMPORTING parent TYPE REF TO cl_gui_container.
METHODS: on_sapevent FOR EVENT sapevent OF cl_gui_html_viewer IMPORTING action postdata.
ENDCLASS. "cl_my_html_viewer DEFINITION
* CLASS cl_my_html_viewer IMPLEMENTATION
CLASS cl_my_html_viewer IMPLEMENTATION.
METHOD constructor.
super->constructor( parent = parent ).
DATA: event_tab TYPE cntl_simple_events,
event TYPE cntl_simple_event.
event-eventid = me->m_id_sapevent.
event-appl_event = 'X'.
APPEND event TO event_tab.
call method html_control->set_registered_events
exporting
events = event_tab.
SET HANDLER me->on_sapevent FOR me.
ENDMETHOD. "constructor
METHOD on_sapevent.
BREAK-POINT.
IF action CS 'COUNTER'.
DATA: counter TYPE string.
READ TABLE postdata INDEX 1 INTO counter.
SPLIT counter AT '=' INTO counter counter.
MESSAGE counter TYPE 'I'.
ENDIF .
ENDMETHOD. "on_sapevent
ENDCLASS. "cl_my_html_viewer IMPLEMENTATION
DATA: html_viewer TYPE REF TO cl_my_html_viewer,
html_container TYPE REF TO cl_gui_custom_container,
fcode LIKE sy-ucomm.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'TESTHTM1'.
IF html_viewer IS INITIAL.
CREATE OBJECT html_container
EXPORTING
container_name = 'HTML'.
CREATE OBJECT html_viewer
EXPORTING
parent = html_container.
DATA: url TYPE string, urlc(2048) TYPE c.
cl_bsp_runtime=>construct_bsp_url(
EXPORTING in_application = 'ZBSP_IACT_GUI'
in_page = 'Start.htm'
IMPORTING out_abs_url = url ).
urlc = url. " type conversion STRING to C
CONCATENATE urlc '?SAP-CLIENT=650' INTO urlc.
html_viewer->show_url( url = urlc ).
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE fcode.
WHEN OTHERS.
CALL METHOD cl_gui_cfw=>dispatch.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
Edited by: Nonconformist Pagal on May 12, 2009 1:42 PM
Edited for formatting by: Durairaj Athavan Raja on May 14, 2009 9:50 AM -
Calling SAP transaction from WebDynpro
HI,
Could someone post a link as to how I may call a SAP transaction from a webdynpro.
Will this be an external call to R/3 or can i get it embedded in my dynpro.......
Tnks..Hi,
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. -
Bulk Load into SAP system from external application
Hi,
Is there a way to perform a bulk load of data into a SAP system from an external application?
Thanks
SimonHello,
My external application is a C program and I think I want to use IDocs and RFC to communicate with the SAP system.
Simon -
Navigate from WebDynpro Application to BPS Layout and vice versa
Hi,
Please see the following Problem Statement:
We have WebDynpro applications and BPS applications in our project. All the applications are published via SAP Portal. Both areas (WebDynpro and BPS) have same selection screen (Selection fields are common). Is it possible to call
WebDynpro application from BPS layout (on click of button)and also passing the selection parameters to the WebDynpro application and vice-versa.
- Sujal ShahHi,
You can you free tool from Oracle called OMWB (Oracle Migration Workbench) for SQL Server to Oracle.
For more details, visit http://www.oracle.com/technology//tech/migration/workbench/index.html
From Oracle to SQL Server, there are third party tools available.
Cheers,
Harshw
Message was edited by:
[email protected] -
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. -
How to call transaction from webdynpro application
Hi Experts,
I have a web dynpro component zxx_comp.its corresponding web dynpro application zxx_app.
my requirement is , when i test the webdynpro application, i have to call a transaction zxx_txn corresponds to the module pool program zxx_pgm directly . How can i do that?
Regards
Ashwin KVHi Ashwin,
Use the following to open a T-Code from WD application.
CALL METHOD cl_http_server=>if_http_server~get_location
IMPORTING
host = lv_host
port = lv_port
out_protocol = lv_protocol.
DATA lv_url type string.
concatenate lv_protocol '://' lv_host ':' lv_port '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='zxx_txn' into lv_url.
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( ).
lo_window_manager->create_external_window(
EXPORTING
url = lv_url
RECEIVING
window = lo_window ).
Regards,
Harsha
Maybe you are looking for
-
Device Error - Sense Code(5 26 00)??
Hi everyone.. Another problem with PrE8.01. I am arriving at this error code: "Device Error - Sense Code (5 26 00) - Invalid Field in Parameter List - General" after the encoding and compiling media stage of burning to disk. I have a pioneer dvd/bl
-
Using mac os x, and mac version of Mozilla Firefox. I don't know what is the problem but I haven't figured out single thing. How I open extension? So I can use it? Can u make this little bit easier?
-
Reinstalling OS ...locked out
first time user....my disgruntled X has put a password on my computer which never had one before..thus i am 128 bit locked out...after spending two days looking at apples site i have come to the conclusion than all is lost and i must reformat my driv
-
I have Mac OS X version 10.7.3 Does this have any numbers or excel like programs or will I need to purchase them?
-
How about some high speed help, from these AMD 64s
Hi Guys 2 things First there is a Folding Team called MSI HQ Red Rockets, organised by RexB, You can see how we are doing here http://vspx27.stanford.edu/cgi-bin/main.py?qtype=teampage&teamnum=37766 As it is from Stamford Univ, and is for Medical Re