How to store text field data from web dynpro application in pcd ?
Hi Forum,
I am new to web Dynpro.
I want to store user specific data (a text field value) from a wd application in PCD and access it every time the user runs the application.How can I achieve this?
Thanks,
Mickey.
Hi
I created the "read" and "update" methods in my application service. How can I call them? I created and implemented the methods just like here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/340fc0ea-0c01-0010-74bf-965b11031e77
Operations:
- readMyEntityService:
- updateMyEntityService
Implementation:
retValue = getMyEntityService().read(key);
getMyEntityService().update(dS0);
In Web Dynpro there is this update method with the code above (in my original post).
How can I call the update-method????????
Kind regards
Bettina
Similar Messages
-
Regarding how to pass the data from web dynpro to workflow
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayCheck this [thread|SAP_WAPI_START_WORKFLOW;
-
How to pass the data from web dynpro to workflow.
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayHi
you can use function module
data ls_input_container TYPE swr_cont.
data lt_input_container TYPE TABLE OF swr_cont.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = ptask
IMPORTING
return_code = lv_return_code
new_status = lv_new_status
TABLES
input_container = pinput_container
message_lines = lt_message_lines
message_struct = lt_message_struct.
where you pass the data in imnternal table "pinput_container" as
ls_input_container-element = 'KUNNR'.
ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'CLUSER'.
ls_input_container-value = lv_cluser.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'BUKRS'.
ls_input_container-value = lv_bukrs. " youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VKORG'.
ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VTWEG'.
ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'SPART'.
ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
*Also Forgot to mention where ptask is your workflow ID *
Regards,
Arvind
Edited by: Arvind Patel on May 14, 2010 7:38 AM -
I want to editable description field in my web dynpro application
Hi expert,
The requirement is to make the Description field editable. However, the container for the dynpro only appears to allow for a certain type of action and is essentially used to display the Line Item details, giving no option to change the Line Item Description.
so i want to editable in this description field in my web dynpro application /SAPSRM/WDC_DOTC_PC_I_BD .
Kindly give me soulation ASAP.
Thanks and Regard's.
VikashThanks for the reply.
The name of the view is V_PC_DOTC_ITM on which we have the records. On each line item there is a description field which is of type (LinkToAction). I want to enable user so that it can change the Description text (I will handle the action). Also, if you have any idea about updating the database table from here as it needs to be updated in BBP_PCPOS table.
-vikash -
Passing parameters to Transactions from Web dynpro Application through ITS
Hi,
i need to call a transaction from Web dynpro through ITS. On action from web dynpro application, i am concatenating the respective parameters mentioned below along with URL. The problem is one parameter(VARIANT) is being passed to the t-code CAT3 correctly. The next mandatory parameter(PERNR) is not passed to the respective field.Here is the URL Code:
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'CAT3'
'%20TCATST-VARIANT=' lv_name2 '&CATSFIELDS-PERNR=' lv_name1 INTO url.
Called T-Code CAT3
Passing Parameters are:
Data Profile TCATST-VARIANT
Pernr: CATSFIELDS-PERNRPradeep,
iam trying to pass values from webdynpro application to SAP GUI Transaction
here is the sample code which iam using
CONCATENATE 'http://s0164dep01.adta.uae:50000/irj/portal/interop?NavigationTarget=pcd:portal_content/Testing/trn_iw33?'
'%20CAUFVD-AUFNR='
'ApplicationParameter=CAUFVD-AUFNR='
lv_workorder';'
'DYNP_OKCODE=SHOW'
INTO lv_url.
i could'nt able to succed as its displaying page not found exception.
Help me on this to proceed further
Regards
Jaipal.E -
How to change the Portal Password using a link from Web dynpro application
Hello Everybody,
I have a requirement to change the user password from a web dynpro application which is available on a mobile device. Firstly User will log into the portal through a mobile device and after getting authenticated user will be redirected to the mobile application. Within this mobile application there will be a link to change the login password(Portal login). Can somebody tell me how can i change the portal login password from a link available within the mobile application. Looking forward for a suitable reply.
Thanks to all,
Regards,
Saby.Hi Maksim,
Thanks for your reply..but i would also like to know can we directly use the Change Password Iview "persoUserPassword" from the portal. Can i directly Pass the URL of this iview from the portal to a "Change Password" link in the web dynpro application, so that when the user click this link he should be able to see this Iview on his/her mobile device and should be able to change the password from there. But i dont know whether this iview will appear properly on the mobile device or we have to have a custom web dynpro application for this purpose...Please reply with a suitable answer.
Thanks in advance.
Regards,
Sarabjeet Singh. -
How do i pass parameters to a web dynpro application ?
Hi all,
how do i best possible pass (serverspecific) parameters to a web dynpro application ?
i wrote a web dynpro application that, among other things, sends an email and stores files on a server directory. Therefor i need parameters like e.g. "mailhost" or "directory".
The way i chose is to make a *.properties file. But from my point of view there are some disadvantages.
1) When i deploy the WD App to a new server, i have to edit the properties file before. I don't know how to do that. Do i have to edit the *.properties file again, before i make a new ear-Archive with NWDS ?
2) When the properties a wrong or change for a deployed app, i have to restart the J2EE Engine. Thats not convenient for a production server.
Is there a better way ?
Thanks
Andreas
(And I promise to return and reward the answers)Hi Andreas,
You can't use something like portalapp.xml because this is not supported by webdynpro, but ... you can add this parameters at the end off the webdynpro address line. like http://<host>:<port>/webdynpro/dispatcher/local/<Webdynproproject>/<webdynproApplication>?host=yourhost
In your application you can get these variables:
String host = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("host");
when you create a webdynpro iview you can specify the default value for the variables in the URL in the properties of the iview and i think you can personalize them later.
kind regards,
Joachim -
Trigger File Generation to a Server from Web Dynpro Application
Hi Everybody! Hope you had a good new years eve
Is it possible to generate a File on a Server outgoing from Web Dynpro?
I tried to use GUI_DOWNLOAD. But as I couldn't use the GUI_DOWNLOAD from the Web Dynpro, I wrote a Report "ZCMI_EXPORT_FILE" that generates a Text-File. When I start the Report by myself, the file gets generated. All fine.
To be able to generate the File from Web Dynpro, I created a Batch Input Function Module, that I call in the Web Dynpro. The File is not created and it does not show any errors.
Do you have any idea how i can get this working? I'd also be happy with a different approach.
Best Regards and Thanks,
Steffen
REPORT that is called with Batch Input from Web Dynpro:
call function 'ZFM_GENERATE_EXPORT'
exporting
it_detail_record = lt_records
is_export = gs_export
importing
ev_string = gs_export-document
et_dataset = data_tab
exceptions
parameter_is_initial = 1
others = 2.
if sy-subrc <> 0.
endif.
concatenate '\\SERVER\EXPORT\' gs_export-filename into lv_filename.
call function 'GUI_DOWNLOAD'
exporting
filename = lv_filename
tables
data_tab = data_tab
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
others = 5.
if sy-subrc <> 0.
exit.
endif.HI,
GUI_DOWNLOAD does not get's executed in the Backgroud.
there is no way to do it as a background job.. create the folder.. transfer the file to the application server in the backgorund using OPEN DATASET... use the tcode CG3Y to download the file from the app server to your folder.. -
Starting existing workflow from web dynpro application (ABAP)
Hi experts,
I am working on web dynpro application from which when I click on a button an existing workflow should trigger. This will be used in portal replacing existing iview with jsp. I did lot of reading on SDN maybe too much that I am confused how to get started. Here is what I have currently.
We have an existing workflow that sends an approval email to manager when ever some unit information changes. In current functionality, workflow is triggered by event which is linked to workflow in transaction "swetypv". We defined scenario in "qisrscenario" that contains all elements to populate workflow container. The methods to get data into workflow container, send email etc are all written in business object methods. We have a class that implements standard SAP BADI "IF_EX_QISR1"(IF_EX_QISR1~SCENARIO_PROCESS_USER_COMMAND method) that probably has all logic. In current functionality when the workflow gets created it sends notification number back to portal jsp page that triggered the workflow on button click. Users look at notification number in iqs23 for workflow log, PCR form data etc. and I need that functionality too. Now I am confused where I should start so that I can use ew web dynpro applciation instead of jsp iview but want all the functionality that we currently have. How can I start workflow and get notification number back to web dynpro so that I can display that to user? The approving manager goes to UWL to approve, reject the workitem and workflow then finishes.
Any help will be greatly appreciated.
Thanks.
MithunHi.,
Using FM SAP_WAPI_CREATE_EVENT You can Achieve this., try the below piece of code.,
DATA: OBJECT_TYPE TYPE SWR_STRUCT-OBJECT_TYP VALUE 'ZBUS333', " Enter Your Business Object here
OBJECT_KEY TYPE SWR_STRUCT-OBJECT_KEY,
EVENT TYPE SWR_STRUCT-EVENT VALUE 'FIRE'. " Enter Your Event here
DATA: lt_cont TYPE STANDARD TABLE OF swr_cont,
ls_cont TYPE swr_cont.
ls_cont-element = 'NAME'. " To Pass Values to business Object you append to container
ls_cont-value = lv_name.
APPEND ls_cont to lt_cont.
ls_cont-element = 'ID'.
ls_cont-value = lv_id.
APPEND ls_cont to lt_cont.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
OBJECT_TYPE = OBJECT_TYPE
OBJECT_KEY = OBJECT_KEY
EVENT = EVENT
COMMIT_WORK = 'X'
EVENT_LANGUAGE = SY-LANGU
LANGUAGE = SY-LANGU
USER = SY-UNAME
* IFS_XML_CONTAINER =
* IMPORTING
* RETURN_CODE =
* EVENT_ID =
TABLES
INPUT_CONTAINER = lt_cont
* MESSAGE_LINES =
* MESSAGE_STRUCT =
hope this helps u.,
Thanks & Regards,
Kiran -
Show ObjectSelector from web dynpro application
Hello, I´ve read in this how to configure a ObjectSelector UI pattern in a web dynpro application but even looking at the code I havent found out how to show it in actions event handler code.
In the caf tutorial center there is an example that implements the call for the ObjectBrowser, but the interface for ObjectSelector doesnt have the showView() method used for ObjectBrowser and even searching in the foruns I couldnt find a way to show the component.
Does anyone know how to do that ?
Thanks in advance,Hallow Experts,
Please give me some clue; I hope you will give me some clue.
Ok.
Thanks' and Regards
Tarapada Dan -
How to customize error mess, when an Web Dynpro application Deployed
Hi Frndz...
When we r deploying any web dynpro application , if there was any error in that WDP application its showing an error page the list of errors with HOST name n patch level n OS details n so many n with the line number of that error in the code.. Normally.
But as my requirement i need to restrict the HOST,OS ,PATCH details in this list to avoid the security issues.
If anybody have any idea plz share with me...
Regards
RajeshHi..
Thank u boss, ur reply was very helpfull to sort out our requirment.
Regrads
Rajesh -
How to delimited text file data being downloaded in Application server
Hi All,
How to delimited or having a tab between each fields in the data being downloaded to Application server. Please provide an example of code or how i should make changes to my below coding. Thanks.
eg. the out file in application server.
Field1#Field2#Field3
what I currently get was as below:-
Field1Field2Field3
My coding:
FORM download_outfile.
DATA : xfer(400).
IF rb_locl EQ 'X'.
DESCRIBE TABLE itab LINES sy-tfill.
IF sy-tfill GT 0.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_table_width = 4
invalid_type = 5
no_batch = 6
unknown_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
WRITE : / 'download done.
ELSE.
WRITE : / '4)Error occured'.
ENDIF.
ENDIF.
ELSE.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
DATA : l_subrc LIKE sy-subrc.
LOOP AT itab.
MOVE itab TO xfer.
TRANSFER xfer TO p_file.
IF sy-subrc NE 0.
l_subrc = sy-subrc.
ENDIF.
ENDLOOP.
IF l_subrc EQ 0.
WRITE :/ 'download done.
ELSE.
WRITE :/ 'error occurred.
ENDIF.
CLOSE DATASET p_file.
ENDIF.
ENDFORMHi,
Please check this sample codes.
OPEN DATASET P_DOWN FOR OUTPUT IN TEXT MODE. " P_DOWN is the file to download
IF SY-SUBRC = 0.
CLEAR V_STRING.
*-- Download to the file
LOOP AT IT_DOWN.
CONCATENATE IT_DOWN-DISTTYPE
IT_DOWN-O_CITY
IT_DOWN-O_REGIO
IT_DOWN-O_PSTLZ
IT_DOWN-O_CTRY
IT_DOWN-D_CITY
IT_DOWN-D_REGIO
IT_DOWN-D_PSTLZ
IT_DOWN-D_CTRY
IT_DOWN-DISTANCE
INTO V_STRING
SEPARATED BY '09'. " here 09 is the tab delimeter
TRANSFER V_STRING TO P_DOWN.
CLEAR V_STRING.
ENDLOOP.
Regards,
Ferry Lianto -
How can I restore the data from a single application in icloud?
Here is my situation. My iPad2 is constantly crashing. Whenever I use an app it runs for about 30 seconds and then the screen blinks black and I go back to my my home screen. At first I erased all the data and settings and tried to restore my backup from icloud. When I did this, it started crashing again right away. Then I erased all the data and reset it to run as a new ipad. In doing this, I redownloaded all my apps and everything is working fine. However, I have about a years worth of data in NoteShelf (note taking app) that is on icloud but that I cannot access. How can I just restore the data from that one app?
Welcome to the Apple Community.
Unfortunately you cannot selectively restore from a backup, it's either all or nothing. -
Cannot pass data from Web Dynpro to XI using a Web Service
Hi All,
We have been facing some issues when we try to pass on a SOAP / XML message via a WSDL from a WebDynpro App to XI - No data is reaching XI interface. The payload data details for the inbound message in XI is empty. When testing the WSDL separately using XML spy the data passes to the XI successfully.
The problem only occurs when we pass on the data from the WebDynpro component.
We are also passing additional information _user and _password to ensure authenticated access.
Steps that we completed so far:
1. Created a WSDL which we can use to communicate to XI interface.
2. Imported WSDL using webdynpro Web Service Model import
functionality.
3. Bound WSDL with webdynpro components.
4. Pass on data through WSDL contexts.
5. Execute WSDL model.
Any help would be much appreciated.
Thanks,
RRHi,
please check document:
Almost Everything about Transaction Launcher u2013 Part
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3059fb20-987f-2e10-ef82-d147b9b5e8b4
Denis -
How to get Portal User Context in Web Dynpro application
I have successfully integrate a web dynpro app into SAP Netweaver Portal.
Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
IUserContext userContext = request.getUser();
String firstName = userContext.getFirstName();
String lastName = userContext.getLastName();
If yes, can someone point me the name of the jar file I have to import.
Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.Hi ,
you can use the below code to get User details and add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
try
IWDClientUser clientUser = WDClientUser.getCurrentUser();
String firstName = clientUser.getFirstName();
String lastname = clientUser.getLastName();
catch (WDUMException e) {
wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
Regards,
Sunitha Hari
Maybe you are looking for
-
Muse CC does not display Edge Animate with Audio
I am learning to use Edge Animate. I created an animation consisting of an image of a large rock concert. I added animation to create multiple flashbulbs like you see at concerts, and placed it in Muse. Worked great! Then I went back and added audio
-
PO update terminated with error - migo
Experts, Entering a goods receipt in R/3 for an SRM replicated P.O. (using trx. MIGO). Upon backing out of the transaction, an "update terminated" message is received with a short dump in the system log. The Material doc. is posted correctly and all
-
The following parameters are set in prod db. I would like to know whether oracle will take from sga_target or individual parameters in oracle 10g You suggesting would be highlyl appreciated (MB) shared_pool_size = 419430400 400 large_pool_si
-
Terminating logic from Subprogram
I have a subprogram (called shut_down) within a package designed for writing error message to log table. This procedure is called from various other procedures/functions within the same package. The problem is that after the logic of shut_down has co
-
I don't know what the windows error 2 is. I have uninstalled the program and all of the files that go with itunes. I have tried to reinstall the program and it still hasn't worked.