Value helps in UI(Dynpro) from MDM using webservice
Hi,
I have a UI developed in Webdynpro which takes value helps from MDM SP04. For the value helps i have a webservice which has the code, description and table name. Could anyone help me out on what to do after importing the websevice model..
thanks.
return arraylist from web service and poarse in side webdynpro
Similar Messages
-
Value Help for a field from custom table in BSP
Please let me know, the procedure to create value help for a field from a custom table in BSP using HTMLB.
Thankshi prodigy,
check this code using drop down list.
<b>layout for first page</b>
<htmlb:dropdownListBox id = "ddlist"
table = "<%=t_mara%>"
nameOfKeyColumn = "matnr"
nameOfValueColumn = "matnr"></htmlb:dropdownListBox>
<b>event Oninitialization event of first page</b>
SELECT MATNR UP TO 10 ROWS
INTO TABLE T_MARA
FROM MARA.
<b> event Oninputprocessing event</b>
**Load the manager class
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
DATA: V_EVENT TYPE REF TO CL_HTMLB_EVENT.
DATA: DATA TYPE REF TO OBJECT.
DATA: V_DATA TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
CALL METHOD CL_HTMLB_MANAGER=>GET_EVENT
EXPORTING
REQUEST = RUNTIME->SERVER->REQUEST
RECEIVING
EVENT = V_EVENT
IF V_EVENT->NAME = 'button' AND
V_EVENT->EVENT_TYPE = 'click'.
DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST =
RUNTIME->SERVER->REQUEST
NAME = 'inputField'
ID = 'matnr'
V_DATA ?= DATA.
IF V_DATA IS NOT INITIAL.
V_MATNR = V_DATA->SELECTION.
ENDIF.
NAVIGATION->SET_PARAMETER( NAME = 'v_matnr' VALUE = V_MATNR ).
NAVIGATION->GOTO_PAGE( 'detail.htm' ).
ENDIF.
<b>in the onInitialization event for detail page</b>SELECT MATNR
ERSDA
ERNAM
LAEDA
AENAM
VPSTA
PSTAT
LVORM
MTART
FROM MARA
INTO TABLE T_MARA
WHERE MATNR = V_MATNR. -
How to retrieve data from MDM using java API
hi experts
Please explain me the step by step procedure
how to retrieve data from MDM using java API
and please tell me what are the
important classes and packages in MDM Java API
thanks
ramuHi Ramchandra,
You can refer to following links
MDM Java API-pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
webinr of java API
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
Following Fourm Threads will also help.
Java API
Java API
Re: usage of java API ,
Matching Record
Need Java API for Matching Record
Thanks and Regards,
Shruti.
Edited by: Shruti Shah on Jul 16, 2008 12:35 PM -
How to create value help in web-dynpro-abap
Hi ,
can anybody tell me detailed step for creating value help in web-dynpro-abap .Hi,
Web Dynpro provides two types of pre-implemented search helps :
1. ABAP Dictionary Search help
2. OVS
Input Help for WDA
http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm
There is a blog on implementing OVS help in WDA. You can refer below link for sample code.
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
In addition, you can also provide help through Drop Downs and Select options.
Working with Select options in WDA
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e
Plz reward if helpful.
Thanks.
Raj. -
Value Help in Web Dynpro Runtime
Hi all,
I have added value help in form. While running that application in an flash compiler,it is working correctly. But if i run in Web Dynpro Runtime . it shows the Internal Server Error. What may be the problem?
Whether i have to do any configuration?
Help me in this regard
Thanks & Regards,
Hemalatha JHi,
as Govindu mentioned only webservices are suported in the webdynpro runtime. Check [this wiki page |https://wiki.sdn.sap.com/wiki/display/VC/Flashvs.WebDynpro] for more details.
Best Regards,
Marcel -
How to disable calculator value help in Web Dynpro Java
Hello ,
Does anyone know if it's possible in CE 7.2 to disable the automatic help calculator when using input fields of the type integer or decimal?
I ve done SAP Note 1406153 in server. But it doesnt work.. value help is still appear..
Best Regards,
Rasim1. Create a smart form in the R/3 side
2. Now create a function module with the corresponding export parameter:
3. Make sure that the function module is marked remote enabled.
4. In NWDS create an Adaptive RFC model which points to the FM created in R/3 under the webdynpro application
5. Now create an application and view inside it to display the PDF and Insert a frame inside the view
6. Create a value node and an attribute say url of type string inside that node and bind it to the source
7. In the doInit() method place the following code
> ZTest_Pdf_1_Input input = new ZTest_Pdf_Input();
> wdContext.nodeZTest_Pdf_Input().bind(input);
> try {
> wdContext.currentZTest_Pdf_InputElement().modelObject().execute();
> }
> catch (Exception e) {
> e.printStackTrace();
> }
> wdContext.currentInternalElement().setUrl(convert(wdContext.currentOutputElement().getBin_File()));
Inside that view create a method to convert the string to url so that it can be passed as a string to the setUrl method of the currentContextElement() , say convet(byte[] doc_content) which return a string.
Inside that methos write the following code,
> String url = "";
> WDWebResourceType webResType = WDWebResourceType.PDF;
> IWDWebResource webResource = WDWebResource.getWebResource(doc_content, webResType);
> try {
> url = webResource.getURL();
> }
> catch (Exception e) {
> e.printStackTrace();
> }
> return url;
Hope It will be helpful
Regards,
Sam Charles J. -
Need help in retrieving attributes from LDAP using JNDI
I am trying to retrieve attributes from LDAP using JNDI, but I'm getting the following error when I try to run my Java program.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/NamingException
I have all the jar files in my classpath: j2ee.jar, fscontext.jar and providerutil.jar. The interesting thing is that it gets compiled just fine but gives an error at run-time.
Could anyone tell me why I'm getting this error? Thanks!
Here's my code:
import javax.naming.*;
import javax.naming.directory.*;
import java.util.*;
import java.io.*;
class Getattr {
public static void main(String[] args) {
// Identify service provider to use
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
// user info
String userName = "username";
String password = "password";
// LDAP server specific information
String host = "ldaphostname";
String port = "portnumber";
String basedn = "o=organization,c=country";
String userdn = "cn=" + userName + "," + basedn;
env.put(Context.PROVIDER_URL, "ldap://" + host + ":" + port + "/" + basedn);
env.put(Context.SECURITY_PRINCIPAL, userdn);
env.put(Context.SECURITY_CREDENTIALS, password);
try {
System.setErr(new PrintStream(new FileOutputStream(new File("data.txt"))));
// Create the initial directory context
DirContext ctx = new InitialDirContext(env);
// Ask for all attributes of the object
Attributes attrs = ctx.getAttributes("cn=" + userName);
NamingEnumeration ne = attrs.getAll();
while(ne.hasMore()){
Attribute attr = (Attribute) ne.next();
if(attr.size() > 1){
for(Enumeration e = attr.getAll(); e.hasMoreElements() ;) {
System.err.println(attr.getID() + ": " + e.nextElement());
} else {
System.err.println(attr.getID() + ": " + attr.get());
// Close the context when we're done
ctx.close();
} catch(javax.naming.NamingException ne) {
System.err.println("Naming Exception: " + ne);
} catch(IOException ioe) {
System.err.println("IO Exception: " + ioe);That doesn't work either. It seems its not finding the NamingException class in any of the jar files. I don't know why? Any clues?
-
Workflow approval process from outlook using webservice
Hi All,
I am trying to find a solution, for approval of worklow workitems from outlook. DUET is not a solution recommended by IT team.
I need information regarding approval and rejection of workitems using webservice
How can we send workitem for approval and rejection to outlook using webservicie?
Please propose a solution or tell me where can I find document regarding this scebario.
Thanks.Hi Pawan
I have a question regarding this thread.
In case we are using the webservice BWSP to send every user a hyperlink and I have passed the hyperlink in the mail step in workflow , so that on clicking on it they will be able to view their business workplace.
1.Where should we do the setting for the logon credentials that is on clicking the link every user is asked for their user id's and password and then the business workplace opens up.
2. Will he be able to execute the workitems or any other setting is also require.
Also,I was going through your post on using web service to send a link to outlook where in you mentioned a piece of code to generate the hyperlink dynamically since details of host and port may change.
Now how should the above setting for user credentials be maintained in that code.
Your comments would be valuable on this.
Thanks and Regards
Aman
Edited by: AmanGupta on Apr 21, 2010 6:57 AM
Edited by: AmanGupta on Apr 21, 2010 7:11 AM -
Please Help:(,Unable to capture from camcorder using Audigy 2 ZS Video Edi
Hi there! Well I have been trying to use the Sound Blaster Audigy 2 zs video editor to transfer Hi8 tapes from my camcorder (Samsung SLC860) to my laptop (Compaq presario, AMD Athlon 64 3200+, .25 GB RAM, xp). I have successfully done this before *sort of*. Before i was able to capture video from my camcorder without the sound. But now I cant even capture video! I get an error when using Ulead VideoStudio 8 SE reading: 5065:29:0. Please help, anything would be great! Thank you! Oh, i've tried reinstalling the drivers already, didnt work. P.S. I connect the camcorder to the Creative Audigy using S-Video. I have also tried A/V out from the camcorder to video-in on the Audigy. I have also downloaded VidCap and other driver updates from Creative but those didn't work either. I've tried VidCap other capture programs, none worked. Any help would be great. Thank you!
Message Edited by DjShadowalker on <SPAN class=date_text>06-06-2006 <SPAN class=time_text>:09 AM
Message Edited by DjShadowalker on 06-06-2006 :09 AMHi there! Thanks for the reply, unfortunately, I've tried VidCap and it wont let me capture either. The Start button on Step 3 isn't acti've. Its not bold, and when i click on it nothing happens. But under device manager and Sound, Video and game controllers, there are alot of things. They are as followed: Audio Codecs, Legacy Audio Drivers, Legacy Video Capture Drivers, Media Control Devices, Sound Blaster Audigy 2 ZS Video Editor Audio Device, Sound Blaster Audigy 2 ZS Video Editor Video Device, SoundMAX Intergrated Digital Audio, Video Codecs. Do you think any of these could be interfering with one another? If so, which ones can be safely disabled? I've also tried downloading all the necessary updates for VidCap and I've even tried reinstalling the Audigy card many times. I am able to see the preview of the video on both programs VidCap and VideoStudio but I just can't capture. Once again, the error message on VideoStudio is: 5065:29:0. Thank you so much, hopefully I hear from ya soon and this can be fixed.
-
Send Datetime2 value to a SQL Procedure from Java using Hibernate
Hi All,
I Have a Procedure which takes a parameter of type datetime2.
The procedure is called from Java Hibernate.
How can I Pass datetime2 value to SQL procedure from Java?
Thanks in advance,
Shraddha GoreYou may define a global empty array in some package. Then you can do:
SQL> CREATE OR REPLACE PACKAGE pkg
AS
g_empty DBMS_SQL.varchar2_table;
END pkg;
Package created.
SQL> CREATE OR REPLACE PROCEDURE p (
p_tuids IN DBMS_SQL.varchar2_table "DEFAULT pkg.g_empty"
AS
BEGIN
NULL;
END p;
Procedure created.
SQL> BEGIN
p ();
END;
PL/SQL procedure successfully completed. -
Need help with Services (email from finder using unibox)
I have scoured the discussions and googled to find a solution to my problem and have had zero luck.
Basically I want to be able to right-click on a file in finder and go to services and choose Unibox (my default email app) to send the file. I remember being able to do that using one of the other apps I used to use for email, but have been unsuccessful finding the steps to creating the service.
Any and all help to create that context menu option is appreciated.Mail/Preferences/General - do you have Unibox set as your default e-mail application?
-
EREC: Help Posting job in a web (using webservice)
Hello,
I'm new in HR and I need help to posting job in a web (like moster.com),
SAP HR -
> Posting job -
> web (like monster.com)
(web service)
I know this standard eRecruting interface: IF_HRRCF_PUBLISHER
But I not how it is used. Please, can anyone explain to me how do this. step by step?
Thanks!Hello Nicole,
No, I'm not using XI, I need implement this class IF_HRRCF_PUBLISHER / CL_HRRCF_PUBLISHER_EXT (External posting publication)
Can you help me?
Thanks. -
Read data from MDM For Lookup and Flat table using MDM ABAP API
Hi,
I have requriment to read data from MDM from FLAT and Lookup table using MDM ABAP API. My design is like this ,
I have one ITEMS (Main table in MDM) and inside that i have one Lookup flat table ITEM_TYPE , my requriment is to read Item number and its related Item type.
From ABAP.
Please help if any body has any idea.
Regards,
ShyamHI Guys,
I found my solution by myself. Below is the solution , hope this will help others:-
Retrieve data from MDM using MDM ABAP API.
Step- 1. Create structure in SAP with the same name as that of MDM field code for MDM Main table.
Step-2. Create another structure in SAP having all lookup fields of MDM , fieldname in ECC must be same as that of MDM field
code.
Step-3.Create structure in SAP for individual lookup field(Single Field only) with the same name as MDM Field code.
Step-4.
DATA: IT_QUERY TYPE STANDARD TABLE OF MDM_QUERY, "MDM_QUERY_TABLE,
WA_QUERY TYPE MDM_QUERY,
WA_CDT_TEXT TYPE MDM_CDT_TEXT,
IT_RESULT_SET_KEY TYPE MDM_SEARCH_RESULT_TABLE,
WA_RESULT_SET_KEY TYPE MDM_SEARCH_RESULT,
WA_STRING TYPE STRING.
DATA:<Internal table> TYPE STANDARD TABLE OF <SAP Str Having all LOOKup Fields>
DATA: :<Internal table>TYPE STANDARD TABLE OF <SAP Str one LOOKup field>,
<Workarea> LIKE LINE OF :<Internal table>.
*PASS LOGICAL OBJECT NAME.
V_LOG_OBJECT_NAME = 'Logical object name defined in Customization'.
Define logon language, country & region for server
WA_LANGUAGE-LANGUAGE = 'eng'.
WA_LANGUAGE-COUNTRY = 'US'.
WA_LANGUAGE-REGION = 'USA'.
TRY.
CREATE OBJECT LR_API
EXPORTING
IV_LOG_OBJECT_NAME = V_LOG_OBJECT_NAME.
ENDTRY.
CONNECT to repository. Apply particular logon language info
CALL METHOD LR_API->MO_ACCESSOR->CONNECT
EXPORTING
IS_REPOSITORY_LANGUAGE = WA_LANGUAGE.
*NOW PASS ITEM NO AND GET KEY FROM MDM.
CLEAR WA_QUERY.
WA_QUERY-PARAMETER_CODE = <MDM FIELD CODE>. "Field code
WA_QUERY-OPERATOR = 'EQ'. "Contains
WA_QUERY-DIMENSION_TYPE = 1. "Field search
WA_QUERY-CONSTRAINT_TYPE = 8. "Text search
WA_STRING = <Field Value>.
GET REFERENCE OF WA_STRING INTO WA_QUERY-VALUE_LOW.
APPEND WA_QUERY TO IT_QUERY.
CLEAR WA_QUERY.
*PASS ITEM NUMBER AND GET RELATED KEY FROM MDM.
TRY.
CALL METHOD LR_API->MO_CORE_SERVICE->QUERY
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_QUERY = IT_QUERY
IMPORTING
ET_RESULT_SET = IT_RESULT_SET_KEY.
CATCH CX_MDM_COMMUNICATION_FAILURE .
CATCH CX_MDM_KERNEL .
CATCH CX_MDM_NOT_SUPPORTED .
CATCH CX_MDM_USAGE_ERROR .
CATCH CX_MDM_PROVIDER .
CATCH CX_MDM_SERVER_RC_CODE .
ENDTRY.
Pass record id into keys.
LOOP AT IT_RESULT_SET_KEY INTO WA_RESULT_SET_KEY.
WA_KEYS = WA_RESULT_SET_KEY-RECORD_IDS.
ENDLOOP.
WA_RESULT_SET_DEFINITION-FIELD_NAME = <Look field name>.
APPEND WA_RESULT_SET_DEFINITION TO IT_RESULT_SET_DEFINITION.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_RESULT_SET_DEFINITION = IT_RESULT_SET_DEFINITION
IT_KEYS = WA_KEYS
IMPORTING
ET_RESULT_SET = IT_RESULT_SET.
LOOP AT IT_RESULT_SET INTO
WA_RESULT_SET.
*PASS KEYS INTO MAIN TABLE TO GET Structure for FALT or Look up Table
TRY.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_KEYS = WA_KEYS
IMPORTING
ET_DDIC_STRUCTURE =<SAP Strct having all Look up fileds of MDM>
ENDTRY.
LOOP AT <SAP Strct having all Look up fileds of MDM> INTO <Work area>.
CLEAR WA_KEYS.
APPEND <Work area>-field name TO WA_KEYS.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Lookup table name>
IT_KEYS = WA_KEYS
IMPORTING
ET_DDIC_STRUCTURE = <Single Structure in SAP For Lookup field>.
READ TABLE <Single Structure in SAP For Lookup field>. INTO <Work Area> INDEX 1.
Here you can get the value of realted lookup fields associated with main table data.
ENDLOOP.
ENDLOOP.
LR_API->MO_ACCESSOR->DISCONNECT( ).
Edited by: Shyam Babu Sah on Nov 24, 2009 4:52 AM -
Initialising F4-Value-Help for date
I want the F4-Help for a date field to show a month different from the current one.
By default the month containing sy-datum is displayed.
I want the popup to start in another month.
I tried already to create a search help and setting the startdate in a function module of it's group.
This worked in SAPGui, but did not in Web Dynpro.
Does anybody have an idea, how to implement this.
Thanks in advance
BernhardYou would have to create Freely Programmed Value Help and within the layout of the Value Help create your own Data Picker using the DataNavigator UI element. With the Freely Programmed Value Help approach, you can ignore the current value in the bound context and start with any values you want. The downside will be that it won't be quite a user friendly. Instead of the quick calendar pop in place, you will get the full value help popup window.
-
Hi gurus,
I'm trying to create a input value help with the records from my internal table but I woulkd like also to put the short when the popup displays.
Actually I only have the records.
SELECTION-SCREEN BEGIN OF BLOCK ref WITH FRAME TITLE text-t03.
SELECT-OPTIONS:
s_kstar FOR i_cska-kstar.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_kstar-low.
PERFORM search_kstar USING s_kstar-low.
FORM search_kstar
using kstar type cska-kstar.
SELECT * FROM cska
INTO CORRESPONDING FIELDS OF TABLE i_cska
WHERE kstar LIKE '08%'
OR kstar LIKE '008%'
OR kstar LIKE '0008%'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'KSTAR'
dynprofield = 's_kstar'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = i_cska.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'HELP_VALUES_GET'
EXPORTING
fieldname = 'KSTAR'
tabname = 'i_cska'
IMPORTING
SELECT_VALUE = kstar.
ENDFORM. " SEARCH_KSTAR
Anybody would a solution.
Thx in advance for your help.
Mohamed.Hi Mohamed,
Check the Following.
" Implement your own search Help as below
PARAMETERS : carrid TYPE spfli-carrid,
connid TYPE spfli-connid,
fldate TYPE sflight-fldate.
DATA : itab TYPE TABLE OF sflight WITH HEADER LINE.
DATA : fmap TYPE TABLE OF dselc WITH HEADER LINE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR carrid." If it is a selection Screen
else in PROCESS ON VALUE REQUEST
SELECT * FROM sflight INTO TABLE itab.
SORT itab BY carrid connid fldate.
DELETE ADJACENT DUPLICATES FROM itab
COMPARING carrid connid fldate.
fmap-fldname = 'CARRID'.
fmap-dyfldname = 'CARRID'.
APPEND fmap.
fmap-fldname = 'CONNID'.
fmap-dyfldname = 'CONNID'.
APPEND fmap.
fmap-fldname = 'FLDATE'.
fmap-dyfldname = 'FLDATE'.
APPEND fmap.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
ddic_structure = 'SFLIGHT'
retfield = 'CARIID'
* PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
DYNPROFIELD = 'CARRID'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
value_tab = itab
* FIELD_TAB =
* RETURN_TAB =
dynpfld_mapping = fmap
* EXCEPTIONS
* PARAMETER_ERROR = 1
* NO_VALUES_FOUND = 2
* OTHERS = 3
." Just Execute this pilot program and verify
IF sy-subrc 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Cheerz
Ram
Maybe you are looking for
-
Can I share my iCloud with my family in another state?
Can I share my ICloud with a family member in another state?
-
UCCX 8.5 to 9.0 Redhat Change in vmware?
When you upgrade from UCCX 8.5 to 9.0, the Linux operating system is upgraded from Redhat Enterprise 4 to 5. If you were to deploy an ova for a new install of version 9, the OS would be red hat enterprise 5 (32-bit). For similar refresh upgrades in C
-
PC Suite & Nokia N95 Backup/Restore
My N95 doesn't seem to want to do a Backup let alone restore... Keeps hanging at 66% backup when it hits 'phone specific' stuff - the last one on the list. I have the most recent PC Suite - has anyone else suffered from this problem? Yup, life sure m
-
First of all I'm running OS X Tiger 10.4 I just got my 5th gen. iPod video today, and I sync'd it and everything, the iPod works just fine. Although, everytime I plug it in, my iPod will be listed on the source list in the left of iTunes, it will tak
-
Ultra search for my application
Hello, I have a JSP application and I want to use Ultra search for my application. How can I customize and use it from my application? Any help is highly appreciated. Thanks Newbie