LogOut from WebDynpro(ABAP)
Hi!
I need to provide a logout-functionalitiy within an WebDynpro-ABAP-Application, that is embedded in SAP-portal. But I don't know how to force the portal to log off the current user.
I found some threads, where the solution was to write JSP-Pages and so on - but that's rather complicated.
The most interessting solution was to just add "?logout_submit=true" at the "/irj/portal"-Url - that forces a logout and jumps back tp the login-page. But I don't know how I can call that URL! If I use NAVIGAT_ABSOLUTE of the portal-manager it tries to call something like ".../irj/portal?NavigationTarget=?logout_submit=true" - and that does not work.
Any hints on this? Thanx in advance!
Kind regards,
TopperDEL
Hi Tobias,
thanks, your hint was helpful. It does not close the complete portal but it's logging out the user completey. that works for the moment.
Thank you!
@Anil: your idea is interessting, but unfortunately not what I was looking for. I wanted to force a logout, not to prevent the idle-time logout.
Thanks so far!
TopperDEL
Similar Messages
-
Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input
Dear Friends,
We are facing a serious problem for debugging. Expecting valuable input for the same.
Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server.
The debugging (for WebDynpro-ABAP application) is working in Dev. Server for
1st ] Within R/3
Ex. debug for bapi within R/3. i.e. value enter as input in R/3 only.
2nd ] From webpage to R/3
Ex. Some input given on the internet web page developed through WebDynpro and external breakpoint set in R/3 it works. It directs to R/3 code through debugging.
In Prod. Server the 1st case above is working but the 2nd case is not working.
In Prod. Server the WebDynpro developed applications are running successfully through internet explorer webpage inputs. So running the application is not a problem in prod. Server but debugging of the same is the problem.
The setting which are done in Prod. server are,
1] RZ10 in parameters are set for port and host name.
2.1] In SMICM check for ICM.
2.2] Host file updated in Windows-System 32.
3] In SICF following services are active,
3.1] default_host/sap/bc/webdynpro
3.2] default_host/sap/public/bc
3.3] default_host/sap/public/bc/webdynpro/viewdesigner
3.4] default_host/sap/bc/wdvd
3.5] default_host/sap/public/icman
3.6] default_host/sap/bc/gui/sap/its/webgui
3.7] default_host/sap/public/ping
3.8] default_host/sap/bc/error
3.9] default_host/sap/bc/echo
4] In SE80
4.1] Internet services-System-are published
4.2] Internet services-WEBGUI-are published
4.3] Utilities-Setting-ABAP Editor-Debugging-Username & New Debugger set.
4.4] Utilities-Setting-ABAP Editor-Editor-Front-End Editor(New) set.
5] In Su01 for user profiles sap_all & sap_new is assigned and role SAP_BC_WEBSERVICE_DEBUGGER is assigned.
6] The support packages are also updated to latest level.
7] Gone through following links but not getting any clues.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
Thanks in Advance.
Best Regards,
Abhijit.No cross posting
Read the "Rules of Engagament"
Regards
Juan -
Error when Interative Adobe Form is called from Webdynpro ABAP.
Hi Experts,
I trying to call a Interactive adobe form from ABAP Webdynpro application but I am facing the below error.
Line: -
The following error text was processed in the system GJD : User session (HTTP/SMTP/..) closed after timeout
The error occurred on the application server az18u021_GJD_01 and in the work process 0 .
The termination type was: ERROR_MESSAGE_STATE
The ABAP call stack was:
Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
Line: -
When I uncheck the enabled property of the Interactive From in the Page of the WebDynpro I am able to execute the application successfully.But the Adobe form behaves as a Static Form when I uncheck the enabled property.
So kindly provide your valuable suggestions to avoid the above error when I am calling a Interactive adobe form from Webdynpro ABAP.
Thanks in Advance.
Regards,
Arun.Hello,
Hello, are you sure you have your ADS credentials configured correctly and valid? I guess you know that is the only difference between clicking enabled on true or false. If you are not sure, you can use SE38, search for FP_* and pick some reports to check the licencing. The names of the reports are good enough to recognize the right one.
Or maybe that is a security problem? Have you checked the ADS_ERROR string? Did you use the ADS trace?
check: http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
and especially note 999998
Regards, Otto -
Calling a webservice from webdynpro ABAP.
Hi,
Anybody have doc/material with screenshots on calling a webservice from webdynpro ABAP (In WAS 7.0 version using service calls ) with clear steps ?
Thanks in advance. Ponts will not be a constraint for right answers
Praveen
Edited by: Praveen kumar Kadi on Feb 23, 2009 11:19 AMHi Praveen,
1st Step : configure Logical Port
http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
2nd Step : Generate Proxy Object
http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
data: sys_exception type ref to cx_ai_system_fault,
sys_exception2 type ref to cx_ai_application_fault,
client_proxy type ref to zco_myesa, "MY PROXY CLASS
lv_ret_code type int4,
lv_input type zsend_email_input,
lv_response type zsend_email_response.
data: lv_from type string,
lv_from_address type string,
lv_to type string,
lv_to_address type string,
lv_subject type string,
lv_msg type string.
lv_input-from = 'MYSAPTEST'.
lv_input-from_address = '<someAddress>'.
lv_input-to = 'Prashant'.
lv_input-to_address = '<someAddress>'.
lv_input-subject = ' TEST'.
lv_input-msg_body = ' Hi this is wonderfull to see it work'.
try.
create object client_proxy
exporting
logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
call method client_proxy->send_email
exporting
input = lv_input
importing
output = lv_response .
catch cx_ai_system_fault into sys_exception .
data lv_err type string.
lv_err = sys_exception->if_message~get_text( ).
write: / lv_err.
catch cx_ai_application_fault into sys_exception2 .
lv_err = sys_exception->if_message~get_text( ).
write: / lv_err.
endtry.
if lv_response is initial.
write: /'Not Executed'.
else.
write: /'Did Execute'.
endif.
Greetings
Prashant -
Calling Webdynpro Java Application from Webdynpro ABAP Application.
Hi,
We have developed one Application using Webdynpro Java and I m in need to call the Webdynpro Java application from Webdynpro ABAP.
Require Suggestions to acheive this.
Thanks In advance.
Reg,
Ajay.Dear Ajay,
Assuming that both your applications WDA & WDJ are in the portal & you don't have to pass any parameters to the WDJ application.
Write the following code on the action where you would call the WDJ application.
DATA:
lr_compcontroller TYPE REF TO ig_componentcontroller,
l_component TYPE REF TO if_wd_component ,
lr_port_manager TYPE REF TO if_wd_portal_integration ,
wa_navigation TYPE navigation.
lr_compcontroller = wd_this->get_componentcontroller_ctr( ).
l_component = lr_compcontroller->wd_get_api( ).
lr_port_manager = l_component->get_portal_manager( ) .
* The value inserted into the navigation-target field can be found in the Portal
* content administration tab of your portal. It is the ID or PCD Location field
wa_navigation-target = pcd. " Please provide the PCD Location of the WDJ Application here.
wa_navigation-mode = '0'. "0 = INTERNAL(same page) and 1 = EXTERNAL(new page).
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = wa_navigation-target
navigation_mode = wa_navigation-mode.
You can get the PCD from the Page properties of the WDJ application page in the Portal.
Hope it helps!
Warm regards,
Upendra Agrawal -
Calling Java code from Webdynpro Abap UI
Hi All,
Can anybody tell me, How to make calls to java code on a button click from webdynpro ABAP UI ?
Thanks in Advance.
Jenish .V. JoyHi Jenish,
As I am new to WebDynpro for ABAP I could not help you out exactly.But See this link which will help you to create applications in WebDynpro by using ABAP language.
https://www.sdn.sap.com/irj/sdn/developerareas/abap?
rid=/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
If you get any answer for your question let me know.
Regards,
Karthick K Eswaran -
Calling GuidedProcess from WebDynpro ABAP
Hi all
can anybody tell me that how to call GP from webdynpro ABAP.
and what are the advantages and disadvantages in this scenario??
if anyone reply then it would be the great help to me
Regards
Suresh babuHey,
You can call a GP from WD ABAP through by implementing a service call from a method that is embedded in your WD. You can refer this link for the same.
http://help.sap.com/saphelp_nwce10/helpdata/en/44/58f9cc0d95311ce10000000a155369/frameset.htm
But you should note here that Data exchange between ABAP WD and GP is not two way but its only one way.
Cheers,
Mandrake -
Calling custom Infotype method from Webdynpro Abap
Hi Experts,
I am working on an application where i need to call a method of a custom defined infotype.
I have done this -->
1. Create a custom infotype 9111
2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111
3. Inside this method there are few inherited method which provide me functionality of insert , update , delete
i want to call methods IF_HRPA_INFTY_BL~MODIFY,
IF_HRPA_INFTY_BL~INSERT
However when i call these method from webdynpro abap this method does not work.
where as when i try to insert an entry using PA30 transaction it works.
Does anyone know why does this happen and what is the solution?
Regards,
Ashish ShahHi Ashish,
You need to create method inside your assistance class, the class your webdynpro component talks to.
Within the methods of Assistance class you will have to create instance of ZCL_HRPA_INFOTYPE_9111 and call its method IF_HRPA_INFTY_BL~INSERT passing the data.
Cheers
Prashant -
How to call a webService from WebDynPro ABAP ?
We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
How exactly do we call a WebService from a WebDynPro-ABAP application?
What are the main steps involved ?Hi Phani,
You will need to create a service call as follows.
Right click on your WD component name and select Create->Service Call
The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN. -
How to access SQL tables from WebDynPro ABAP application ?
Hi,
I am trying a scenario, where I need to send an user ID to SQL server table (update/modify/delete) from webDynpro ABAP application.
Basically ,I am trying to know:---
a>How to write a SQL Connection from ABAP code within webdynpro ABAP application
b>What are the ways to do it.(by code or any other API/mechanism)
I appreciate if anybody knows this.
Thanks
PraveenHi,
The EXEC CONNECT ... is usually used in the procedural ABAP code. For this you can refer to the ABAPDOCU.
I dont have any sample code on the classes I listed try to check out them for the parameters and the methods they have.
In WD for Java, we have these connection classes to connect to any databsae server.
Or try to create an RFC with DESTINATION for this
Pls check out this link for this -
Pull data from another r3 server using abap dynpro
Regards
Lekha -
Trigger an workflow from webdynpro abap.
hai
gurus!
iam new to webdynpro.iam femilier with workflow . can anybody explain me with an clear example, how to trigger an workflow from webdynpro abap.
regards
roseHi Rose
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Click</a> Here, to know the step by step procedure of using Webdynpro in Workflows
Use SAP_WAPI_START_WORKFLOW RFC
Regards
Abhimanyu L
Message was edited by:
Abhimanyu Lagishetti -
Attachment from webdynpro abap to workflow and vice versa
I added the attachment using the following code from my webdynpro abap application:
DATA: lv_xstring TYPE xstring,
att_id TYPE swr_att_id,
ls_msg_ln TYPE TABLE OF swr_messag,
ls_msg_str TYPE TABLE OF swr_mstruc,
lv_objkey TYPE swr_att_doc_id,
ls_header TYPE swr_att_header.
lv_xstring = lv_file.
ls_header-file_type = 'B'.
ls_header-file_name = 'Attachment'.
ls_header-language = sy-langu.
CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
EXPORTING
workitem_id = lv_wi_id
att_header = ls_header
att_bin = lv_xstring
do_commit = 'X'
IMPORTING
return_code = rc
att_id = att_id
TABLES
message_lines = ls_msg_ln
message_struct = ls_msg_str .
I see the attachments in the workitem but am unable to open the attachment.
Another question is how can I show the same documents in another webdynpro application as attachments.
Thanks,
STHello,
Try specifying file_extension = 'DOC' like in this thread (see Pavan's code about halfway down) :
attachment to _Attach_Objects in user dicision step
regards
Rick Bakker
Hanabi Technology -
Calling a portal page from WebDynPro ABAp application
Hi,
I would like to call a portal page (any type) from a WebdynPro ABAP application. I have the PCD location of the page.
Which call shall I make :
Absolute Navigation
Relative Navigation or
OBN.
Also, can anyone send me short code snippet on the following.
The package SWDP test examples are not working.
Best Regards
SidHi Siddharth,
Well, to start with you can go for ABSOLUTE NAVIGATION.
Secondly, you can find the snippet here
DATA LO_API_COMPONENT TYPE REF TO IF_WD_COMPONENT.
DATA LO_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
DATA L_NAVIGATION_TARGET TYPE STRING.
LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_PORTAL_MANAGER = LO_API_COMPONENT->GET_PORTAL_MANAGER( ).
MOVE 'pcd://portal_content/com.xxxx.zpof_f_XXXXportalcontent/com.xxxx.test/com.xxxx.folders.MaintenanceBusinessPackage/com.xxxx.test.mt.pages.Pages/com.xxxx.pages.MaintenanceTasks'
to l_navigation_target.
CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
EXPORTING
NAVIGATION_TARGET = L_NAVIGATION_TARGET
* NAVIGATION_MODE = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE
* WINDOW_FEATURES =
* WINDOW_NAME =
* HISTORY_MODE = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
* TARGET_TITLE =
* CONTEXT_URL =
* POST_PARAMETERS = ABAP_FALSE
* USE_SAP_LAUNCHER = ABAP_TRUE
* BUSINESS_PARAMETERS =
* LAUNCHER_PARAMETERS =
Above it, the examples of SWDP will not work if you test them from SE80-ABAP WAS...I suggest you to create a WDA IView in Portal and test it in Portal itself.
Hope this should solve your problem.
Regards
<i><b>Raja sekhar</b></i> -
Exit from Webdynpro abap application in portal environment
Hi,
I created one custom service in Webdynpro ABAP in ESS and also integrated in the portal environment
I need to put Exit button in every page ( OVERVIEW, EDIT, REVIEW). When user click on 'EXIT' button from any one of page , it should return back to PERSONAL INFORMATION in ESS Homepage.
I have used Exit plug in window , but i read in SAP Library Exit plugs will not work in portal environment.
Let me know which way i should proceed to acheive the Exit functionality.HI,
Add the following code in action of exit and also add the application parameter which gets the area page from the portal.
Apart from this, do the configuration settings in these screens ( Define resources, Define services ) in SPRO.
DATA: countrygrouping TYPE molga,
arealink TYPE rhxss_ser_linkinfo_s.
DATA:
node_settings TYPE REF TO if_wd_context_node,
elem_settings TYPE REF TO if_wd_context_element,
stru_settings TYPE if_componentcontroller=>element_settings .
navigate from <CONTEXT> to <SETTINGS> via lead selection
node_settings = wd_context->get_child_node( name = if_componentcontroller=>wdctx_settings ).
get element via lead selection
elem_settings = node_settings->get_element( ).
get all declared attributes
elem_settings->get_static_attributes(
IMPORTING
static_attributes = stru_settings ).
CALL FUNCTION 'RH_PM_GET_MOLGA_FROM_PERNR'
EXPORTING
pernr = stru_settings-personnelnumber
begda = sy-datum
endda = sy-datum
IMPORTING
molga = countrygrouping.
CALL FUNCTION 'HRXSS_SER_GETAREALINK'
EXPORTING
areagroupkey = stru_settings-home_service
areakey = stru_settings-area_service
portalcontext = 'X'
personnelnumber = stru_settings-personnelnumber
countrygrouping = countrygrouping
IMPORTING
arealink = arealink
EXCEPTIONS
areagroupkey_invalid = 1
areakey_invalid = 2.
DATA: l_portal_manager TYPE REF TO if_wd_portal_integration,
l_api type ref to IF_WD_COMPONENT.
l_api = wd_this->wd_get_api( ).
l_portal_manager = l_api->get_portal_manager( ).
l_portal_manager->navigate_absolute(
navigation_target = arealink-linkpcdpage
navigation_mode = if_wd_portal_integration=>co_show_inplace
history_mode = if_wd_portal_integration=>co_no_duplicates -
Iview from webDynpro ABAP with Adobe interactive form
Hi gurus.
Can I make an iview from a webDynpro ABAP that generates an Adobe Interactive Form, and generate this form from the portal as well?
thanks in advanced,
DieubaChintan thanks for your reply.
Using Adobe Cycler Designer you can design an interactive Form (fields to be filled by the client, buttons, etc.) and you can integrate this with webDynpros ABAP and JAVA. I want to make an iview that connects with this webDynpro and also generates this form to be filled by the user, so it can send the data back to the sap system.
Maybe you are looking for
-
HT201250 What if Time Machine can't find my airport time capsule?
I can't find my airport time capsule on my computer... I need help in order to reach documents saved on my airport time capsule used as an external hard drive... Please help!
-
Error When Running Maintenance Script
When I try to execute the Maintenance Task script that was generated by AWM, I get the following error: Successoracle.AWXML.AWException: Action BUILDDATABASE failed on object SCHEMA.AW_NAMEThe weird thing here is that there is no actual ORA error, an
-
prompting me to either wait for the program to respond or shut down?Photoshop Elements@
-
Am I infringing copyright laws if I sell my iphone with itunes apps???
Hi all you iphone fans. (Im definitely one too!!) I have a question for you. I have been selling the iphone 1st generation on ebay for a couple of months. Ebay have taken my listings off saying I am infringing copyright laws by selling my iphones wit
-
I am using Flash video, in the form of SWF files, in an online game I am creating but I am having a problem where the video clips constantly loop instead of playing once and stopping. Is this looping caused by some type of setting I unknowingly made