Value hep problem in web dynpro application
Hi All,
I have a requirement where I need to add a field for alternate payee to the web dynpro application and the field name is BSEG-EMPFB. I have written the following code to get the values of it based on the vendor number:
SELECT SINGLE * FROM lfb1 INTO f4lfb1_z
WHERE lifnr = lv_lifnr
AND bukrs = '001'."bseg-bukrs'.
CALL FUNCTION 'FI_VENDOR_ALTERN_PAYERS_READ'
EXPORTING
i_lifnr = lv_lifnr
i_filkd = filkd
i_bukrs = '001'
i_lfb1_head_office = f4lfb1_z
TABLES
t_zemtab = t_zemtab.
LOOP AT t_zemtab INTO w_zemtab.
ls_value_set-text = w_zemtab-empfb.
ls_value_set-value = w_zemtab-empfb.
append ls_value_set to lt_value_set.
DATA lo_nd_alt_payee_info TYPE REF TO if_wd_context_node_info.
DATA lo_nd_alt_payee TYPE REF TO if_wd_context_node.
lo_nd_alt_payee = wd_context->get_child_node( name = wd_this->wdctx_alt_payee ).
lo_nd_alt_payee_info = lo_nd_alt_payee->get_node_info( ).
lo_nd_alt_payee_info->set_attribute_value_set(
name = `ALTERNATE_PAYEE`
value_set = lt_value_set )
Now the problem is user wants the details of the alternate payee as F4 help and when I debugged the standard FV60 functionality this how the F4 help is being build therE:
REFRESH fldtab.
CLEAR fldtab.
fldtab-tabname = 'IZEMTAB'.
fldtab-fieldname = 'EMPFB'.
fldtab-selectflag = 'X'.
APPEND fldtab.
CLEAR fldtab.
fldtab-tabname = 'IZEMTAB'.
fldtab-fieldname = 'NAME1'.
APPEND fldtab.
CLEAR fldtab.
fldtab-tabname = 'IZEMTAB'.
fldtab-fieldname = 'ORT01'.
APPEND fldtab.
CLEAR fldtab.
fldtab-tabname = 'IZEMTAB'.
fldtab-fieldname = 'STRAS'.
APPEND fldtab.
*------- Fill Values for Function Module Call --------------------------
REFRESH valtab.
LOOP AT zemtab.
valtab-feld = zemtab-empfb.
APPEND valtab.
valtab-feld = zemtab-name1.
APPEND valtab.
valtab-feld = zemtab-ort01.
APPEND valtab.
IF zemtab-stras NE space.
valtab-feld = zemtab-stras.
ELSEIF zemtab-pfach NE space.
CONCATENATE 'Postfach:'(019) zemtab-pfach INTO valtab-feld.
ELSE.
valtab-feld = space.
ENDIF.
APPEND valtab.
ENDLOOP.
*------- F4 Dialog -----------------------------------------------------
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
EXPORTING
display = space
fieldname = 'EMPFB'
tabname = 'INVFO'
IMPORTING
select_value = empfb
TABLES
fields = fldtab
valuetab = valtab.
IF NOT empfb IS INITIAL.
invfo-empfb = empfb.
ENDIF.
can you please tell me how can I accomdate this in the web dynpro application?
Thnaks,
Edited by: rajatg on Jul 13, 2011 6:41 PM
Edited by: rajatg on Jul 13, 2011 6:42 PM
Hi Raja,
Search help is availble at dictinary level you get F4 help automatically.
Otherwise create OVS help for alternate payee. use WDR_OVS.
check this..
http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
Cheers,
Kris.
Similar Messages
-
Problem deploying Web Dynpro Application Definition
Hi,
I have written a Web Dynpro and then deployed it to an EP6 NW04 server without first defining the Web Dynpro Application (silly me, I know - how could I do such a thing?). Anyway, afterwards, I created the Web Dynpro Application definition, but no matter how many times I redeploy, it does not add it to the Web Dynpro now sitting on the server.
Können Sie mir bitte helfen?
MartinHi
Martin,
Although server is being maintained by third part(one option is though visual admin since you can't access it) other option is use youe web browser with url http://your server IP address:50000/index.html u will find webdynpro link as mentioned below
<b><u>Web Dynpro</u></b>
Web Dynpro is a User Interface technology available within the SAP NetWeaver Developer Studio.
Various Web Dynpro tools provide administrators and application developers with performance measurement and application administration capabilities. The Web Dynpro runtime is already deployed.
Now Click on <b><u>Web Dynpro </u></b> link
you will find Content administrato and web Dynpro administrator u will b directed to login page after entering with UID and passwd u can see all deployed applications ( u can check ur application) and details...
I hope this may help u..
RK -
Web Dynpro Application connecting to incorrect R/3 instance
Hi,
We have newly configured EP.
We are facing strange problem with web dynpro applications.
They are accessing data from incorrect instance of R/3 system,i.e, if correct system instance is x , they are accessing data from y instance, on the same R/3 server.
We have checked JCO connections. SID in JCO connection is of the correct instance.
We have also checked SLD, but are not able to find out the root cause of the problem.
Are there any other configuration, settings required?Are there any settings required on R/3 side?
Can we some how track entire process from JCO to R/3?
What happens after fetching server details from SLD? Is there any other step before connecting to R/3?
Can anyone help on this?
Thanks in advance,
ApurvaHi,
I have checked alias name (System ID) used in JCO connection.It is correct.
I have also checked System ID in SLD.
Is there any other configuration check required?
Thanks,
Apurva -
Problem with starting the Web Dynpro Application
Hello,
I have a problem with my web dynpro application, which is in our SAP Portal. We have three different systems (development, test, production). In production always the follewing error message occurs:
The URL https://zsil2401.servers.wacker.corp:9004/sap/bc/webdynpro/sap/ZPLM_EN_FORM_300MM/ was not called due to an error.
Note
The following error text was processed in the system P1A : is not a valid attribute type.
The error occurred on the application server zsil2401_P1A_04 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: GETATTRIBUTE_RTTI of program CL_WDR_CONTEXT_NODE_INFO======CP
Method: INIT_ATTRIBUTES of program CL_WDR_CONTEXT_NODE_INFO======CP
Method: CREATE_FROM_STRUCT of program CL_WDR_CONTEXT_NODE_INFO======CP
Method: IFWDR_RG_CTRL_HANDLE~INIT_CONTEXT of program SAPLWDR_RG_GENERATED_SRC_API
Method: IFWDR_INTERNAL_API~INIT_CONTEXT of program SAPLWDR_RG_PROXY_FACTORY
Method: CONSTRUCTOR of program /1BCWDY/35DSOWFU6YQV6I81U8VG==CP
Method: IF_WDR_CLASSLOADER~GET_COMPONENT_CONTROLLER of program /1BCWDY/35DSOWFU6YQV6I81U8VG==CP
Method: CONSTRUCTOR of program CL_WDR_DELEGATING_COMPONENT===CP
Method: CONSTRUCTOR of program CL_WDR_CLIENT_COMPONENT=======CP
Method: CONSTRUCTOR of program CL_WDR_CLIENT_APPLICATION=====CP
Some User get this message also in test an development. What could be the reason?
Note: Nothing has changed in coding or context.....this error occurs without any changements
Thanks for your help
Best Regards
MartinHi,
May be you can put an external breakpoint in the method "_get_attribute_rtti"(of class CL_WDR_CONTEXT_NODE_INFO).
From that you can find out which attribute is causing the dump , and try to solve the issue . May be some data dictionary object is not transported to production.(Assuming that you have permission to put breakpoints in production system..:))
Aditya. -
Problem with HowTo guide - Use the BI Java SDK in a Web Dynpro Application
Hello,
I am following the HowTo guide - Use the BI Java SDK in a Web Dynpro Application
at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e49be590-0201-0010-0c83-fc20e5da124f">this link</a>.
I have configured the connector on the WAS as needed.
The problem is that when I run the application I receive an Unauthorized error on the connector URL.
If I open this URL on a browser I receive a pop-up for UID and PWD and when I enter the same UID and PWD I used to configure the connector I am able to login and see the WSDL.
Any ideas?I've never tried using BI in WebDynpro !!!
But i foond one posting on the connection problem https://forums.sdn.sap.com/click.jspa?searchID=955524&messageID=2133396
Regards,Anilkumar -
Problem in Closing a web dynpro application
Hi experts,
I wanted to close the application when the user clicks on the close button.
I created a out bound plug "EXIT" of type 'EXIT' in my window.
I also created a parameter "CLOSE_WINDOW" of type "WDY_BOOLEAN" for the outbound plug
Now in action of the close button i have done the below code:
DATA: l_ref_ywd_maintain_catalog TYPE REF TO ig_ywd_maintain_catalog .
l_ref_ywd_maintain_catalog = wd_this->get_ywd_maintain_catalog( ).
l_ref_ywd_maintain_catalog->fire_exit_plg( CLOSE_WINDOW = 'X'
where ywd_maintain_catalog is my window name.
when i check the program i am getting the below error:
get_ywd_maintain_catalog_ctr is unknown or protected or private.
I refered the standard web dynpro component "WDR_TEST_EXIT_PLUG" to implement the logic
Pls help
Regards,
VinodHi all,
This is my requirement when i click on a close button the application should close.
i refered to a web dynpro component "WDR_TEST_EXIT_PLUG" where they have explained the way to use exit plug.
They have created a outbound plug in the window called "EXIT" of type exit. and in the action of the button they have used the below code to fire the outbound plug.
method onactionfire_exit .
data: l_ref_wdr_test_exit_plug type ref to ig_wdr_test_exit_plug .
l_ref_wdr_test_exit_plug = wd_this->get_wdr_test_exit_plug_ctr( ).
l_ref_wdr_test_exit_plug->fire_exit_plg(
url = 'http://www.google.de/'
endmethod.
I followed the similiar approach in my code:
I created a out bound plug "EXIT" of type exit in my window.
then in the action of the close button i have done the below code:
DATA: l_ref_ywd_maintain_catalog TYPE REF TO ig_ywd_maintain_catalog .
l_ref_ywd_maintain_catalog =wd_this->get_ywd_maintain_catalog_ctr( ).
l_ref_ywd_maintain_catalog->fire_exit_plg( CLOSE_WINDOW = 'X'
The problem i am facing is i am getting the error "method get_ywd_maintain_catalog_ctr is unknown or public or private"
I am referred to the below URL to do it :
link: [Exiting a Web Dynpro Application by pressing a button on a Web Dynpro View]
Regards,
Vinod -
Problems using remote debugging for Web Dynpro applications
Hello All,
Have anyone ever encounter the above mentioned problem ? I am not able to step through my codes nor break @ my breakpoints using the debugging features despite many attempts following the tutorial on "Debuggng Web Dynpro applications". The problem always occur when I click on the Run -> Debug -> "Click on Debug". The debug perspective will show the threads running but my application window dows not appear. Should attempts be made to "Terminate All" threads and relaunch my apllication again, I will get an error message saying "Deployment of archive file already running : XXX.ear" Then I will need to wait some 15 mnutes or so before I can try again. Any suggestions ? Thank you.
The status of my J2EE engine is as stated in the tutorial:
1) State = "Debugging"
2) Debug Mode = "On"
3) Restricted Load Balancing = "Yes"
4) Productive Use = "No"
I have posted similar queries under "JDI" and "Web AS General" but did not receive and sugestions.
from
Kwok WeiHi
You should Create and Deploy if you want to reflect the code changes that you just did. However if you just want debug to an existing code then you need not Create and Deploy.
This can also be done as a two step process where you first deploy from NDS and launch Debug without create and deploy.
Is the issue that after you launch debug that it does not launch the application window.
Regards
Pran -
ABAP Web Dynpro: Application Configuration vs Admin Personalization problem
Hi,
I created an application configuration for the application MT_ORDER_APP with a component configuration on RPLM_MT_ORDER_COMP. I changed several Labels and UI Element visibility... and saved.
When I test this application config for viewing an order of type ZX99, I don't see my changes. If I right-click on the page, I see that the configuration Id used is MT_ORDER_ZX99.
Why my Z config is overrided by this one???
By testing in Admin mode, I discovered that I can personalize this MT_ORDER_ZX99 Config.... But then, the changes are visible to all users viewing ZX99 type orders.
How to manage to make my Application Config highest in priority?Hi,
how did you open in administrative mode?
to open in adminstrative mode do as follows:
In se80 ,i.e in the menu bar:
Web Dynpro Application->Test->Test in Administation mode.
i hope u can see the option "Settings for surrent config" .
you can refer the thread.
[Re: ABAP Web Dynpro Application changes in Administation mode]
Priya. -
Problem of Creating a web dynpro application based on a car rental web serv
Based original SAP developer studio examples shipped with the developer studio, I first create J2EE application QuickCarRental. It works at http://192.168.254.4:50300/QuickCarRental.
A web service QuickCarRentalWebService is defined in J2EE application QuickCarRental. My web dynpro application TutWD_CarRental is web service consumer invoking QuickCarRentalWebService.
When I deploy TutWD_CarRental on SAP J2EE engine and run the application at http://192.168.254.4:50300/webdynpro/dispatcher/local/TutWD_CarRental/CarRentalApp, i can see the web dynpro web application interface right.
however, I get the following error when I input some data and Click button rent a car.
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
when i click Display all bookings, the error is:
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
I install SAP developer studio on my winXP desktop, and the SAP developer studio version is 2.0.10.
I have my SAP Web application server and J2EE engine Version 6.40 run on a different machine. the SAP server IP address is 192.168.254.4
could anybody give me some clue on this. is that because i miss some configurations on SAP server for enabling web services of QuickCarRentalWebService?
Thanks!
ThomasHI
Find here.
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/9fc0e990-0201-0010-199c-e38fc6dafb5d
Thanks
Lohi. -
A problem when start web dynpro application....
each time I start web dynpro application, I always be asked to provide username and password,
but one of my colleague was only ased that for the first time.......
it puzzled me very much, anybody helps me out?the box is checked by default , isn't it.......
but it seems that the checkbox is not work.....i still have to asked to provide username/password
thanks for your answer.. -
Problem while navigating the different portal Web Dynpro application
Hi .
while navigating from one application to another.
my IE browser stuck with the error.
Can't execute the code from the freed script.
it occurs:
when i navigate from tree structure 's child to another web dynpro application.
what to do ...
RegardsHi John,
How have you added the required jar files. For DC projects you cannot use project properties and add the jar files to the build path (In case you have followed this method).
You will have to add the public part (i believe it is ejbclient.jar and is generated automatically when you create an EJB DC) of the EJB DC as used dc.
Regards
Sidharth -
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 -
Adobe form data not being retrieved by Web Dynpro application
Hi,
I have created an online interactive Adobe form embedded in a Web Dynpro ABAP application. The Web Dynpro application calls a function module to update data in SAP. My problem is that the ABAP code that was generated to retrieve the data from the Adobe form and call the function module does not retrieve the data if it has been typed into any of the input fields. Oddly enough, it does work if the data is entered by using the value helps that have been placed on the form.
I would appreciate any suggestions.
Thanks!
RussellUse messageboxes on various events to find out when your value dissapeears.
If you´re not sure about the binding, you can always drag/drop from data view tab onto the layout and check the binding which the system generates for you. Just to make sure.
Regards Otto -
Wrong URL in Web Dynpro Application explorer
Dear Team,
The Web Dynpro Application explorer is showing wrong URL:
URL HTTP://server2.domainname.COM:1090/sap/bc/webdynpro/sap/zz_pt_hello
And this is not a correct URL.
Where as the actual URL should be :
https://server1.domainname.com:8030/sap/bc/webdynpro/sap/zz_pt_hello
But when I test the service, /default_host/sap/bc/webdynpro/sap/zz_pt_hello, in sicf t-code, the test works successfully with the desired URL i.e. https://server1.domainname.com:8030/sap/bc/webdynpro/sap/zz_pt_hello.
the profile parameter: icm/host_name_full has value server1.domainname.com.
Please guide me to resolve this problem.
regardsHi,
The hostname for the application server is checked by the following parameters in this order. Can you please verify that the SAPLOCALHOSTFULL is the correct hostname.
(1) SAPLOCALHOSTFULL
(2) icm/host_name_full
If both of these are correct can you check the Hosts file in the /etc/hosts folder for the correct entry.
Michael -
Sequencing Problem in Web Dynpro ABAP
Hi Web Dynpro (ABAP) Guru's,
Can anyone tell me how to read a parameter from the WDA url in my view? The situation is like this: My WDA is being rendered in the Portal EP 6.0 as an iView. When my WDA is called the portal also appends in the URL the plant number. I want to grab that plant number and use it in my view to show some default data.
As per other weblogs/forum posts I defined a parameter "PLANT_NO" in the "Default" startup plug of my Main window. I'm using the Get_Data method to read this parameter in the plug. I'm able to read the URL parameter here and so far it is good. Read below for the problem..
If I understand the order of operations correctly, doesn't the views get created, then the default plug code is run, then the views are placed on the window and then shown to the user. Since my views are created before my default plug is run I DO NOT get the URL parameter value in the WDDOINIT of my view. When I debug the application, the WDDOINIT of the embedded view gets called before the Default startup plug. Am I missing something here?
If someone can tell how to read the URL parameter in the WDDOINIT (instead of Default Startup) of the view I could default in the data I want to display. OR any other suggestions to get past this problem would be appreciated.
Does this make any sense and does anybody have an idea of where I could find some info about how to do this?
Thanks much for your help. Points will be awarded.Thanks Klaus for the response.
I don't want to read the parameter from the default plug, but need to access the URL parameter and display default data in my view. Let me explain the scenario:
My Web dynpro application is called from the Portal. The Plant number is passed in the URL as:
http://...../sap/bc/../../<Web Dynpro Application name>?PLANT_NO=0012
I want to show Material Stock values in the view for Plant "0012". To access this value I've defined a parameter with same name (PLANT_NO) in the default startup plug of my main window. I get access to the URL parameter through this plug parameter.
I have only ONE view embedded in this window where the Stock values are selected from table MARD for the specified plant. I want to get the plant value from URL in my WDDOINIT method to make this selection from database. I'm then binding the results to the view table UI element. My problem is that the URL parameter is read in the Default plug, but the data selection and view binding happens before in the WDDOINIT method where I don't know the plant.
Again, I don't want to read the plug parameter, but I want to get the URL parameter (PLANT_NO) and then render the view based on the data selected for this parameter. Please let me know how this can be achieved by reading the URL parameter in WDDOINIT method (Constructor) so that it can be used subsequently in the application.
Thanks for your help and looking for a resolution.....
Maybe you are looking for
-
Exception in a compliance policy
Hello all, As part of my operational compliance policy definition, I want to create a policy and deploy it to a set of servers. for ex: I want to create a policy for a collection of windows servers to disable SMTP service on all of them but create an
-
How can I add dimensions to adobe illustrator.
just want to add dimentions for the graphics. like CAD programs and Corel draw.
-
hi Experts, What is BAPI?How can i create BAPI?Can u provide me step by step procedure regarding this? thanks Surya
-
When I start my iBook G4(mac os x 10.4.6) I put in the Leopard install disk and it lets me click on the install icon and then asks to restart, but instead of begin install when the system boots it the screen turns grey and idles with spinning rainbow
-
I may have downloaded a virus/malware by mistake. How do I check to see?