Using a lookup for mapping program to retrieve the specific value
Hi All,
I have a scenario like
I need to use a lookup for mapping program to retrieve the specific value based on the input parameters.
Here I have got some rough idea like
1. Creation of java program to connect the DB table and access the values, Import this java program as archive into XI.
2. Creation of user defined function to use the above java program
3. Include the user defined function in the interface mapping.
Here I feel it needs some more info to complete this scenario, so can anyone provide the step by step procedure for the above scenario.
Thanks in advance.
Vijay.
Hi Vijay,
Basically you have embed Database lookup code in the UDF. For all kind of Lookups refer to below links..
Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
SOAP Lookup - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0
Lookups in XI made simpler - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
/people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
/people/sravya.talanki2/blog
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
How we have to create the lookups?
Check this weblogs with some screenshots on how to achieve this:
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
/people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
/people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
Ranjeet Singh.
Similar Messages
-
BAPI to trigger VF06 through a program and retrieve the net value
I'm working on a report program where I provide the SD contract and the billing date and need to pull out the net values (with pricing done) . For this purpose , is it feasible to trigger VF06 proforma runs for the contracts using any standard BAPI ? If I use a BDC, I need to make sure I get either the billing document or the net value so that I can display them in the report.
Please assist.Hi ,
It looks there are two to three questions included.Can you explain.
Regards,
Madhu. -
I have been thrilled to use file sharing for tv programs downloaded on my home pc. I have not been able to sort the program list on the ipad2 to make the list appear in order of showtime or live appearence. Any suggestions?
I have been thrilled to use file sharing for tv programs downloaded on my home pc. I have not been able to sort the program list on the ipad2 to make the list appear in order of showtime or live appearence. Any suggestions?
-
How to write the java program to retrieve the last 7 days dates
Hi,
I am having requirement that how to write the java program to retrieve the last 7 days dates. Please help me.
Regards,
AhamadIt needs any jar file.Of course!
I did using jscape.My program is running fine.But it
requires jar file.Which is licensed version.Maybe you should follow the link the the 'license' on the site I posted!
>
I have the doubt is apache provides jar file free
versionMaybe you should follow the link the the 'license' on the site I posted! -
I have been using XBOX Live for 3 months and recently the...
I have been using XBOX Live for 3 months and recently the NAT has been set to Moderate and I need it to be open. I contacted Linksys via phone and said I need port numbers from Xbox Support but I can not contact XBOX via phone. The number I am using is 1 - 800 - 4MY-XBOX. My router motel is WRT 300N and using the 360 with Call of Duty 4 and Halo 3. Someone know how to fix the NAT setting to Open. Please make it easy to understand?? Very tried and thinking of swiching routers to anything different!!
http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&thread.id=74742
-
I'm using 3G3 16gb and just upgraded to 4.3.3. Tried activating bluetooth to use Personal Hotspot for my laptop. But the iphone keep searching for devices thou my laptop can detect the phone. Does anyone know how to solve this?
Hi NWL1,
Thanks for the question. If I understand correctly, the iPhone won't update and is stuck. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
Thanks for using Apple Support Communities.
Have a great day,
Mario -
How do you retrieve the USR_LOCK value?
How do you retrieve the USR_LOCK value, it cant be mapped directly on the process task right?
You writed custom JAVA code?
Thanks in advance.If by any change you want this with 11g APIs then you can use http://docs.oracle.com/cd/E14571_01/apirefs.1111/e17334/oracle/iam/identity/usermgmt/vo/User.html#getManuallyLocked__ and http://docs.oracle.com/cd/E14571_01/apirefs.1111/e17334/oracle/iam/identity/usermgmt/vo/User.html#getAccountLockedDate__
HTH,
Bikash -
How to retrieve the procedure value and pass the value to a form field
How to retrieve the procedure value and pass the value to a form field?
Set property for the field and the value is the actual procedure/function.
Cheers -
"An error occurred while attempting to retrieve the KPI value from the list"
Hi all.
when I used KPI, this error occured:
An error occurred while attempting to retrieve the KPI value from the list
what happened?
any suggestion.
thanks.Hello,
Unfortunatly, I don't have the option to re-create my SP list. I have created my KPI list in the same site as the targeted list. I have made all items available in the list view, I've tried several different list views, I still get the
An error occurred while attempting to retrieve the KPI value from the list.
message.
I am at a loss here, I've search the internet high a low and haven't found any helpful info.
In MOSS 2007 I've created a list with about 24 columns. I need a KPI based on one of the columns. I've tried to creat a view with that one column, I've tried to creat a view with all columns
and make it the defualt column... I don't know what else to try here.
Any help would be very appriciated!
Cheers,
~Bryan -
Retrieving the score value from the captivate into flash
Hi,
We have used Captive 2 to built course & publishing it as
a non e-learning output
and loading the published swf file in custom built flash
movie (wrapper).
We have accessed some of the captivate variables to control
the captivate swf.
Does anyone know how to retrieve the score value from the
captivate into flash ?
Thanks
Regards
ChetanHello,
Use the Object Browser in .NET and search on "Summaryinfo" and you'll find the API to use.
Thank you
Don -
How to create an online program according to the specification mentioned be
Create an online program according to the specifications mentioned below.
Initial screen: 9000
Screen 9000: next screen = 9001
As you are creating this online program, try to identify each component you are creating: radio buttons, check boxes, frames, and pushbuttons.
The u201CInstructoru201D input/output template should be 30-length character field. The u201CEvaluationu201D input/output template should be a scrollable field with a defined length of 60 characters and a visible length of 30 characters. The u2018Submit Evaluationu2019 pushbutton should have an icon and be assigned the function code u201CEVALu201D. The radio button group should have only one selected as shown in screen below.There must be something fundamentally wrong with you.
Previous posts by have been blocked yet you still continue to post nonsense. I suspect this time round though your account will be deleted.
Calling all moderators! Show this guy the door please and not to return. -
XI 3.0: Additional libraries for mapping program
Hello,
I got the scenario that the program within my Interface Mapping is making use of additional custom java resources (jar's).
I know that in XI 2.0 I had to put these additional libraries into the directory:
..\j2ee\cluster\server\additional-lib
and register them in the files:
..\j2ee\cluster\server\managers\library.txt and
..\j2ee\cluster\server\managers\reference.txt
Now in XI 3.0 I don't have these folders and files anymore. Therefore I simply imported the jar files into the repository...But I do neiter know wether that is the right way at all for registering additional libs in XI 3.0 nor I don't know if I have to import them into the same software component or namespace then the mapping program.
Does anybody know how to make use of additional libraries within a XI 3.0 Stack 5 landscape? I would very much appreciate any recommendations on that!
Kind regards,
Sven LattermannHi Advait,
From the below what I understand is that you are not able to do value mapping for the follwoing
1 A
2 A
3 B
As value mapping allow one to one mapping only. Please do it like as mentioned below
1 1*A
2 2*A
3 3*B
Then in the graphical mapping of Integration Repository do the mapping for the same as shown below
source field > VALUEMAPPING> UDF--> TARGET Field
In UDF suppress the value of 1* , 2* , 3* which can be done as follows
create one UDF with one input field
//write the code as below to suppress the field
return input.substring(2);
Here the davantage of using 1* , 2* , 3* etc is that you have the option to use value mapping for 100 values which I think is not normally the case for any Interface.
If you have same source you can do the same thing for that.
Hope this helps you to resolve your query.
Thanks & Regards
Prabhat -
Retrieve the same value for all rows
Hi Folks,
I am a newbie to Kodo JDO. I have a little but important problem. I use a
query to retrieve data with a simple filter like PName=='A'. Normally it
should retrieve 3 rows with 3 different values but it does not. Instead I
got 3 rows but with all the same value of one row???
Do I have a configuration problem?? Oh, I forgot, I use postgresql 8.0 on
Windows...
Thx a lot....
JuergenHi,
You may want to turn on the SQL log (use the kodo.Log property, and set
the SQL channel to TRACE... for more details on logging, check out
chapter 3 in the Kodo Ref Guide) and see what SQL is being generated.
Once you see the SQL, does it look right? If you run the generated SQL
in your SQL command line, do the results match what you expect? If that
doesn't help, maybe post the SQL and some info about your mapping.
Thanks,
Greg
J wrote:
Hi Folks,
I am a newbie to Kodo JDO. I have a little but important problem. I use a
query to retrieve data with a simple filter like PName=='A'. Normally it
should retrieve 3 rows with 3 different values but it does not. Instead I
got 3 rows but with all the same value of one row???
Do I have a configuration problem?? Oh, I forgot, I use postgresql 8.0 on
Windows...
Thx a lot....
Juergen -
How to Retrieve the Selected Values from selectOrderShuttle using ADF 11g
Hi Every One,
Does anyone has idea how to retrieve the selected Items using shuttle and Order of the items using 'SelectOrderShuttle' component ?
Thanksshuttle's valuechangeevent would fire when you shuttle items back and forth.
public void selectOrderShuttle1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
if (list != null){
for (int i=0; i<list.size(); i++) {
int l = list.size()-1;
val = list.get(l).toString(); //returns , delimited string
if (val != null){
val = val.replaceAll("[\\[\\]]", "");
StringTokenizer st = new StringTokenizer (val, ",");
int nto = st.countTokens ();
for (int j = 0; j < nto; j++)
String token = st.nextToken ();
.......... -
How to See logs for custom programs from without the logviewer in NWA
Hello Experts,
The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
Thanks
Jibin.Hello Jibin,
Your developers should familiarize themselves with the Logging Framework of the J2EE Engine.
Here is the guide:
http://help.sap.com/saphelp_nw04/helpdata/EN/a2/15ab41d60bcb46e10000000a155106/frameset.htm
If they use the Logging Framework you would be able to access the logs through NWA.
Regards,
Ventsi Tsachev
Technology Development Support (J2EE Engine)
SAP Labs, Palo Alto, Ca (USA)
Maybe you are looking for
-
We have Weblogic 8.1 SP2. The application has several entity beans. I just upgraded it from SP2 to SP3 and when I try to use these ejb's I am getting the following exception: Root cause of ServletException. java.lang.NoSuchMethodError: weblogic.ejb20
-
Is it weird that I can see the pixels on my I pad air's screen ?
I'm not sure if I'm just crazy or if it's actually possible that I'm seeing the individual pixels up close ?
-
hi all, while making stock posting it asks for derivation rules not defined what should i do to continue my programming? regards bye
-
Hi What are the configuration steps for mapping excise in SAP? Regards Vaibhav
-
Data Source definition weblogic 10
Hello everbody, When i try to open datasource form page the page can not open and in the weblogic console i took the following error: There is any configuration i should do? thanks in advance. java.lang.RuntimeException: Instruction unknown: load²nst