Webdynpro- issue
Hi Friends,
I have abap program with some forms defined inside . In report i have data declaration (global variable) , so it was easy to write to form perform ... Now i am develoing same report in webdynpro ,but in webdynpro , i have pasted all coding in view event . and what should i do to replace those forms .?
if i am replacing those forms with methods then i have to declare all variable in side methods and alos in view event ..
.if i use import , export parameters then i have to pass all global variable which i am using inside view event .
If i am creating as attribute of context of controller then it is tedious job . because i have used so many variables ..
please suggest me yr idea.
Regards,
kani
Hi Abhi,
Thank you very much for your great idea ... I think i can go with this ..
Regards,
Kani.
Similar Messages
-
hi guys,
plz help me in creating my first webdynpro app
i created 1 by using docs in sdn
but afte finally activating
i right clicked on webdynpro app and clicked test
at dat time i am gettin this error
you are not authorised to open this link
http://copernic:0/sap/bc/webdynpro/sap/zz_00_sflight?sap-language-EN
plz guide me how can i resolve it
i m using citrix server to access sap
so cannt tak help of basis guyHi,
make sure you've made all the necessary <a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/e86de5008b4d9ae10000000a155369/frameset.htm">configuration</a> settings, especially the SICF settings.
Regards, Heidi -
Standard Copy of a contract/po webdynpro issue
Hello all gurus,
in SRM 7, my requirement is to check when a new document (contract or purchase order) satisfies certain conditions w.r.t. the user that is currently trying to access it; the user should belong to the same purchase unit of the document, otherwise an error message should prompt immediately saying that "the user cannot modify the document". (off course, in this case also related buttons for modifications are disabled). This message is a persistent one, so it remains on the message top even if the user navigate (in display mode) the document.
I tried to do that enhancing WDDOINIT and it works. I tried also a post-exit of WDDOMODIFYVIEW when FIRST_TIME = 'X': it worked too. The two alternatives seems to be equivalent. BUT... there's a problem when the user tries to copy the document.
When the document is copied, the copy has the purchase unit set by default to the value of the user.
So, a new check should be done and the message should not appear anymore.
But when a copy (which is standard) is done, how can I understand it in WDDOMODIFYVIEW or in WDDOINIT?
I hoped to get a FIRST_TIME = 'X' again, but that's not the case.... FIRST_TIME is blank after the copy's done.
Waiting for your help and suggestions,
best regards
MatteoSolved with a workaround.
-
HI EP Gurus,
I have the fallowing problem with UWL.
i want to hide the fallowing details in Cliam Adavance Approval.
Off-Cycle Requested: check box
Off-Cycle Provided:
Already I hide the above details in Cliam Adavance Approval iview,but when i open in the uwl it shows as it is(with the above options)
Rgards
ViswaHi,
I have no idea what is "Cliam Adavance Approval.", but you are probably launching from UWL the web dynpro application and not the iView. Check this from the UWL configuration in System admin -> system config -> UWL -> manage item types. You need to find the task and check its configuration. If it is launching the web dynpro application, then you might want to change it to launch your iView. Then I suppose that your stuff will be hidden. This is just an assumption based on the not very detailed explanation of yours.
Kind regards,
Karri -
Display of many PDF documents in webdynpro
Hi dear SAP experts,
I want to display a huge number of one-sided existing pdf documents (100) in a browser using webdynpro for ABAP. The pdf documents exist either in MIME repository or fixed destination on a server. The documents are all delivered successfully inside the program logic as a table of pdfdate (xstring). Then each of them is displayed in a webdynpro view in Webdynpro Interactive Form. The display in Internet Explorer 6 workes fine for the first 30 documents, but then I get an error message from the browser "The maximum number of PDF-Documents to be opened simultaniously in the browser is exceeded!".
Is it possible to set the maximum number of pdf documents to a higher number? Is this a SAP / webdynpro issue or can this be configured in the adobe reader (8.0) configuration?
Is there any way to combine all the pdf documents into one single pdf document? I get all pdfs in xstring format! This is also desired by our customer.
Can you give me some hints?
Thanks a lot in advance,
Best regards
KjellHi Volker,
thanks for your reply.
My customer needs both printing and displaying the files, but printing is definitly the more important part. Is it possible to push a PDF file (that has been read from a server destination into SAP as Xstring (binary)) to a printer defined in SAP? Can you tell me how a open a spool request and insert the data (XSTRING) of the PDF file?
I'll try out the link you send me for displaying many PDF files on one webpage.
best regards,
Kjell -
WebDynpros expire immediately after installation of SP25
Hello!
We installed SP25 on our NW7.0 Portal. After that, we found that some WebDynpros issue the "WebDynpro xxx has expired" message immediately when the first server roundtrip after the initial opening is performed. This does not happen for all WebDynpros, but only some are affected. We did not find something those WebDynpros have in common, there are some residing in the same development track where one shows this behaviour and others don't, but other WebDynpros ´from another track do issue this message. It's reproducable; in the log we find something like
application [webdynpro/dispatcher] Processing HTTP request to servlet [dispatcher] finished with error.
The error is: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to redirect response to URL ../../<our.domain>/<ourWebDynproDCName>/<ourWebDynproApplicationName>
Did anyone come across this issue ?
Thanks in advance
MichaelWe found out that there were patches available for the problem mentioned above:
SAPJTECHS25P_7-10003467.SCA Patch for SAP JAVA TECH SERVICES 7.00 SP25 7 8.12.2011
SAPJTECHF25P_7-10003468.SCA Patch for SAP TECH S 7.00 OFFLINE SP25 7 29.11.2011
These solved the problem; anyway after installing support package 26, the same issue arose again. Patches for SP26 were not available, but after some weeks these were released. If you encounter this problem under NetWeaver 7.0, SP26, you'll have to install
SAPJTECHF - 7.0 SP26 PL 1, SAPJTECHS - 7.0 SP26 PL 2, SAPJEECOR - 7.0 SP26 PL 2 -
Not closing popup window with firing Exitplug
Hi Friends,
Could you please help me in resolving below webdynpro issue.
With a button (SAVE) click on 1st webdynpro application, Iu2019m calling a confirmation popup window using CREATE_POPUP_TO_CONFIRM method ("Data has been saved" is the message in the popup window). Then with the OK button on confirmation popup window, Iu2019m calling the EXIT plug to go to another webdynpro application
Issue is: If I execute this webdynpro application in Enterprise Portal then the confirmation popup window is not getting closed even after reaching to the 2nd webdynpro.
But If I execute direct webdynpro URL, confirmation pop is getting closed and there is no issue.
CODE:
Code for SAVE button action: Here Im calling the confirmation popup window.
DATA: lt_text TYPE string_table.
DATA: mr_popup_window TYPE REF TO if_wd_window.
pop a confirmation window for display purpose
DATA: l_window_manager TYPE REF TO if_wd_window_manager,
l_cmp_api TYPE REF TO if_wd_component,
l_window TYPE REF TO if_wd_window.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
APPEND 'Data has been saved' TO lt_text.
CALL METHOD l_window_manager->create_popup_to_confirm
EXPORTING
text = lt_text
button_kind = if_wd_window=>co_buttons_ok
default_button = if_wd_window=>co_button_ok
RECEIVING
result = mr_popup_window.
associated the action handling methods with the window
DATA: view_controller TYPE REF TO if_wd_view_controller.
view_controller = wd_this->wd_get_api( ).
mr_popup_window->set_remove_on_close( abap_true ). CALL METHOD mr_popup_window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'ON_SUCCESS_OK'
action_view = view_controller.
mr_popup_window->open( ).
Code for OK button action of POPUP window: Here Im calling the EXIT plug.
DATA: lr_ref TYPE REF TO ig_yics_userdefault,
lv_url TYPE string.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'YICS_HOMEPAGE'
IMPORTING
out_absolute_url = lv_url.
lr_ref = wd_this->get_yics_userdefault_ctr( ).
lr_ref->fire_go_exit_plg( url = lv_url ).
Regards,
Vijay.>Exit plugs do not work in a portal environment.
This is a good point that I feel silly for not remembering...
You can check if your application is running in the portal using the IF_WD_APPLICATION->GET_CLIENT_ENVIRONMENT method
lo_api_componentcontroller = wd_this->wd_get_api( ).
lo_api_application = lo_api_componentcontroller->get_application( ).
l_client_environment = lo_ap_application->get_client_environment( ).
if it is - then you can use the IF_WD_PORTAL_INTEGRATION interface
lo_portal_integration = lo_api_componentcontroller->get_portal_manager( ).
and the you can use the IF_WD_PORTAL_INTEGRATION methods to navigate eg - NAVIGATE_ABSOLUTE
call method lo_portal_manager->navigate_absolute
exporting
navigation_target = 'ROLES://portal_content/blah/test_URL'
navigation_mode = if_wd_portal_integration=>co_show_inplace
If you're navigating in the portal you should probably have iViews set up for the apps you are calling, but it is possible to create a pass-through iView which will redirect to a URL passed as a parameter.
[Setting the URL at Runtime - in URL iVIew|http://help.sap.com/saphelp_nw04/helpdata/en/45/85087d755d1f88e10000000a1553f6/frameset.htm]
data lo_api_component type ref to if_wd_component.
data lo_portal_manager type ref to if_wd_portal_integration.
data lt_params type wdy_key_value_list.
data ls_param type wdy_key_value.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).
ls_param-key = 'forcedURL'.
ls_param-value = 'http://www.google.com'.
append ls_param to lt_params.
call method lo_portal_manager->navigate_absolute
exporting
navigation_target = 'ROLES://portal_content/blah/test_URL'
navigation_mode = if_wd_portal_integration=>co_show_inplace
use_sap_launcher = abap_false
launcher_parameters = lt_params.
Hope this helps
Chris
Chris -
Strange screens after importing SPS8
We've installed SPS8 on our EP 7.00. After this, some screens are shown in a sort of plain text instead of the normal table style screens. As an example please take a look at the startscreen of User Administration --> Identity Management. The normal screen consists of a table with buttuns. In our system the table is gone and the buttons have been replaced by links. Is this a Webdynpro issue or what? Please advise.
Hi,
Does the issue occur only for custom themes ? Is it working for standard themes ?
If it indeed occurs only for custom themes edit your theme from System administrator > Portal display > Theme editor and save it once without making changes and check if it helps.
Cheers!! -
Firefox browser compatibility issues webdynpro for java application
Hi,
we have migrated SAP net weaver SP 21 and also to IE8 and Firefox. we have compatibility issues in Firefox like input fields, labels and command buttons are not properly aligned when comparing with IE 8.
Could you please give suggestions to fix this problems.
Thanks.
ParthibanHi Parthiban,
Please check the SAP NetWeaver 7.0 Product Availability Matrix (PAM) in the Service Market Place http://service.sap.com/pam.
[Check here |http://saplab.org/wp-content/SAP-NetWeaver-7.0-PAM.pdf]and verify you firefox browser versions compatibie for webdynpro
Hope it will helps
Regards
Arun Jaiswal -
WebDynpro editor issue: Clicking on UI element does not open up defn in UI tree
Hello,
We are facing a strange issue with webdynpro editor on one of our SAP Landscape. In change mode when i double click on an UI element in webdynpro layout editor( SE80) the corresponding UI element definition does not open up in the left hand side ROOTUIELEMENTCONTAINER tree. This functionality works in our ERP system which is on a lower service pack.
I recently discussed this problem with an onsite trainer ( from SAP ) who suggested this feature was taken away in NW Ehp 7.3 onwards to avoid some javascript error in the webdypro layout editor. Can someone confirm this? I have already tried searching servicemarketplace without success. If this feature has been removed i dont want to waste time creating OSS note.
Regards.
Vivek.
System details SAP PPM system :
SAP_BASIS
731
0006
SAPKB73106
SAP Basis Component
SAP_ABA
731
0006
SAPKA73106
Cross-Application Component
CPRXRPM
500_702
0009
SAPK-50009INCPRXRPM
SAP Portfolio and Project Management 5.0 (ABAP)
Attached is a screenshot of the editor( just for clarity).Vivek,
We're experiencing the same behaviour since a couple of weeks. Did you already create a message to SAP ? If so I'll wait for you to post the feedback from SAP in answer to this message. If not I'll create one because it becomes hard finding your way in the navigation tree for large views...
Kind Regards,
Igor. -
WebDynpro Application issue consuming asynchronous webservice from SAP PI
Hello experts i ask you for help thie following issue:
i am developing a webdynpro application which is supposed to
send some data from inputfields, and a file, in order to achieve it, that dynpro application is consuming an asyncrhronous webservice , this service is running in SAP Process integration .it uses only a component.
Iam having serious problems at mapping the asynchronous PI web service model -->to -->controller >and then to->view
since when i deploy the application into the SAP portal´s application server, it runs , but inputfields cannot be written.i dont mean unabled, what i mean, is. cannot write anything on them.ECXEPT the file upload UI element.
I have reviewed sap help page, 3 sappress books, about dynpro, and the procedure i am performind is agree with them.
endpoint test answers the folloiwng:
Message Servlet is in Status OK
Status information:
Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04S_20_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#1 $) bound to /MessageServlet
Classname ModuleProcessor: null
Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
Lookupname for remoteModuleProcessorLookupName: null
ModuleProcessorClass not instantiated
ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
ModuleProcessorRemote not instantiated
what i did is the same as before(in another projects weh i used to import rfc models):
1.- import webservice model,and add it to component
2.-map web service model to controller context
3.-map controller´s context to view context
4.-create actions and methods
5.-binding context controller to ui elements
Dear experts, my questions are:
What am i doing wrong?
should i permorm another steps because the web service is in another application server (SAP PI)?
Should i create a stand alone proxy and then access it from webdynpro?
when i call the web service model excution it seems does not run, neverthless the invocation does not have any syntax error , what coul it be?
Thanx in advance!!just for the sake of other who may hit this thread , the solution is to add sap-client=<clientno> in the url for wsdl
-
Issues while running a WebDynpro Application through portal.
Hi,
I am trying to execute a webdynpro application through portal and facing some issues. I hope to get a significant help from the experts:
> Initially, a report is called from the portal which in turns calls the WebDynpro Application.
> After this, I am again trigerring "FIRE" event in order to go back to report.
At this step, portal shows a message "The Page Can Not be Displayed". Browser link field contains the event name which I am passing to the Fire Event.
Can anybody let me know the root cause for this issue? Below is the piece of code that I am using for navigating from Webdynpro to Report.
l_sapgui_manager->fire(
EXPORTING
name = 'INDI'
parameters = lt_parameters ).
lt_parameters contains some field values which are required in the report.
Thanks,
AshishNo Solution
-
Application Deployment issue in Webdynpro project
Hi,
I have created an sample Webdynpro project which just displays the name. EAR file has been transformed to SCA file using NWPACKTOOL for deploying the application in JSPM.
When i tried to deploy the SCA file i am getting an exception as,
Deployment Items -
1. Client path 'C:\usr\sap\WP1\SYS\EPS\in\test1.sca'
Deploy status is 'Aborted'
Description:'1. Item is skipped because of failed deployment of item 'test.com_test' and because the applied error strategy is OnErrorStop
2. Contains Aborted deployment component:
test.com_test'.
SCA : name 'test', vendor 'test.com', location 'local', version '1000.1.0.1.0.20110810105342'
Contained DCs:
1.1 : Relative path 'C:\usr\sap\WP1\SYS\EPS\in\test1.sca --> test.sca.ear'
Deploy status is 'Aborted'
Description:'1. ASJ.dpl_ds.006193 Error while deploying ear file C:\usr\sap\WP1\J00\j2ee\cluster\server0\.\temp\tcbldeploy_controller\archives\56\test1_sca1312954437078\DEPLOYARCHIVES\test.sca.ear; nested exception is:
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception while [validating application test.com/test.
The test.com/test application was processed from [developmentserver] containers, but none of them returned information about deployed components.
The registered containers in this moment were [BRMS_Content_Archive, z_com.sap.security.policy-configurations, utl_handler, developmentserver, Monitoring Configurator, component.info_handler, servlet_jsp, connector, classification_handler, CTCContainer, JDBCConnector, PortalRuntimeContainer, dbcontentcontainer, scheduler~container, Content Container, src.zip_handler, PCD Content Deployment Handler, ConfigurationsContainer, orpersistence, appclient, JMSConnector, Cluster File System, Cache Configuration Upload, com.sap.security.ume, SCA Composites Container, metamodelrepository, textcontainer, eden_handler, Galaxy_Content_Archive, uddi_handler, MigrationContainer, com.sap.security.login-modules, webservices_container, EJBContainer, dbschemacontainer, MDRContainer, com.sap.security.policy-configurations, app_libraries_container].
Possible reasons :
1.Empty or incorrect application, which is not recognized by registered containers.
2.An AS Java service, which is providing a container, is stopped or not deployed.
3.The containers, which processed it, are not implemented correctly, because the application was deployed or started initially, but containers didn't return information about deployed components in the application deployment info].'.
SDA : name 'test', vendor 'test.com', location 'local', version '2', software type ('J2EE', s
Can some one help me in deploying the SCA file?
Please let me know how to resolve this issue.
Thanks in Advance!!
Regards
MG
Edited by: madhanssmile on Aug 10, 2011 2:34 PMgo to "DC Metadata" "used DC" , and "Properties" in context menu
for all you your components.
problematic component reference probable has check box "deploy time" checked.
remove that reference.
usually only "Build time" check box must be checked. try to do so. -
Issue in calling webdynpro for loading flat file in IP
Hello,
We have implemented the How-To load flat files in IP paper and we are facing an issue in that. The generated webdynpro runs on ABAP Application server but we need to call this from a Web template which runs on portal server.
These two servers are different and we don't want to hardcode the url in webtemplate as the server names will change in Q & P for webdynpro. Can anyone advise how we can read the ABAP Application server details in WAD may be using javascript and then generate the URL for webdynpro dynamically.
Regards,
DeeptiHi Deepti,
We have also facing the same challenge. Could you please post the solution in which URL path change dynamically.
I have created the ABAP function module based on the below link.
http://wiki.sdn.sap.com/wiki/display/Snippets/BICustomWebItemtoLaunchanABAPWeb+Dynpro
But not sure how to call the function module using custom web item & java script. Coould you please explain the steps on the same ?
Thanks,
Gopi R -
Webdynpro ABAP/Portal. Plugin HTTP connection issue on WaitingEventQueue.js
Hello,
We are experiencing a strange Portal Behavior with our Webdynpros. Our portal contains several iViews including some Webdynpro (ABAP) and some reporting transaction calls that use SAPgui for HTML.
When portal is called for the first time and a user logs in, two connections of type RFC can be seen for that user in SM04 in our ERP system. All iViews work as expected. For example, calling the Time Management webdynpro closes one of the RFC connections and starts a new Pluguin HTTP connection. We can go back and forth between the welcome page and this Webdynpro with no issues.
If we then select one of the reporting transaction codes, the portal launches the SAPGUI for HTML. Report retrieves and shows data, and then we close using the "Exit" button provided by the sapgui for HTML
Next we try again to launch any webdynpro (abap), but SM04 shows that the new Plugin HTTP session gets stuck and spinning mid way, and will stay there. Refreshing the Portal screen with F8, navigating back and forth, logging off and on again has no effect. The webdynpros will not launch again. Only webdynpros are affected, any of the reporting transactions can be called successfully over and over.
We have figured that deleting Temporary Internet files (we are using IE 7), and in particular by just deleting the WaitingEventQueue.js?XXXXXXXXXXX file, the system will break away from the spin loop and show the webdynpro again, but eventually it will get stuck again, and asking the users to delete their Temporary Internet Files every 5 minutes is not a workable solution
I have reviewed the contents of this javascript file at different points during the test, and the contents do not change, so deleting the file and the recreate process must be resetting somehow the queue and allowing for a new correct communication.
Is there a way to properly reset this event queue (for example from ABAP, when the webdynpros are reloaded) in order to avoid the spin loop?
Thanks for any help!
AndresWell, we got the issue resolved, so here is what we did, in case anybody is interested:
Tested again our portal with multiple versions of Internet Explorer, in particular IE8 and IE6, the Webdynpro behavior was normal (no timeouts or locks). It even worked when we installed IE7 in a brand new machine and tried our portal.
So we started suspecting if maybe the particular IE7 that we install internally (with specific settings and policies) may be the culprit. We took a desktop that was producing the timeouts and used the following options in IE7:
Tools->Internet Options->Advanced(tab)-Reset Internet Explorer settings
and, voila! the next time we ran there, the portal did not create any timeouts.
We even asked our desktop support team to uninstall and reinstall IE7 in the same machine after we did the reset, and even after the re-install that the timeout problems did not re-appear.
One of the things that the "reset" option does is delete the Add-ons used by IE.
So as a last test, we took a machine that was presenting the problem and went to the Internet Options to disable all the add-ons (in the Programs Tab). The error disappeared.
And even after enabling back all the add-ons, the error would not return.
Conclusion:
Without being able to pinpoint the specific add-on (or combination) that causes the problem, we suspect that some of them conflicted, causing IE7 to behave abnormally. Disabling them all, restarting Internet Explorer, and enabling them again, makes the WaitingEventQueue.js work as it should
Maybe you are looking for
-
BPEL 10.1.2.0.2 Deployed on OAS on Linux OS. Trying to use a BPEL Process which is trying to Connect to JMS on Weblogic Server but getting error as below in the domain.log Added the weblogic.jar in the application.xml under integration/orabpel/system
-
Cannot change shift due date in Repayment Structure for Final Repayment
Hi Expert, For creating new transaction of product type 'Interest Rate Instrument' , In Repayment Structure for Flow type - Final Repayment I want to change working day from the default in "No Shift" to "Next working day" but the screen display
-
Intel GMA X4500 (G41)
Hi peoples! I've just bought a new computer and there is video on MB : intel GMA x4500 and chipset is G41. Installed arch, updated everything..then i get kernel crash after reboot! (some drm module and that because of KMS maybe?) is it possible to ma
-
No automatic downloading of music in ireland?
I cant seem to find a toggle for automatic download of music even though it is adverised as such on the Apple Irish itunes page. Is this coming or not?
-
Solaris 2.6 - System Call faults
Hi Sun Forums. Machine Description : SunOS serv-sif 5.6 Generic_105181-28 sun4u sparc SUNW,Ultra-Enterprise Number of CPU's : 4 (400Mhz) Physical Memory : 5120 Mb Top Output : PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 11115 syb119 2 1