UDF for this mapping rule
Hi Friends,
I have one difficult issue which have one mapping rule to write user defined function. I am sending mapping rule Please give me java coding to create udf for this mapping rule which is following below:
CRFT.COSTR = M_ORD_01 and
CRFT.CRID = CRHE.CRID and
CRFV.FTNO = CRFT.FTNO and
CRFV.ATNAM = ZPPI_ORDER_SCHED_EN_DATE
And
CRFT.COSTR = M_ORD_01 and
CRFT.CRID = CRHE.CRID and
CRFV.FTNO = CRFT.FTNO and
CRFV.ATNAM = ZPPI_ORDER_SCHED_EN_TIME
From ATWRT of ZPPI_ORDER_SCHED_EN DATE+ ATWRT of ZPPIORDER_SCHED_EN_TIME
In format yyyy-MM-ddTHH:mm:ss
using this mapping rule, ATWART field can map with target field "End Time" i think.
Actually source field is CALCULATE but this field is not in Source structure
target field is "End Time" this field is in Target Structure.
I will wait for ur response
Thanks adn regards
Sai
Hi Jagadish,
This RFC is CONTROL_RECIPE_DOWNLOAD
in this RFC, i want to map ATWRT field to Target field "End Time" with mapping rule which i had already given.
In Graphical mapping, i am doing . but i can not get it because mapping condition is difficult. if you have any idea in graphical mapping give me early
before that i have to give explantion about this is date value and time value passed through this ATWRT field as different records.
i am doing as a condition ie first i have taken date condition. from that condition, first two fields CRFT.COSTER and M_ORD_01 has given to "equals" funtion like that have done remaining fileds then the output of those "equals" functions given to "and" functions finally i get one output of "and" function. while sending DATE values from RFC this output of "and " function.
Like this, for Time condtion i have done mapping same way and giving a TIME values from RFC as Second record then output of this "and" function while sending second record with time value.
here mainly i am getting problem is .....
here i am taking source field ATWRT( in this field i am sending date format adn time format as different records) with the outputs of the mapping conditons as input vaules of another function. i dont have any idea for another function why because is first date record should be wait until the time record comes in this function.after then both vaules should concat .
now here whenever you send date value through this field ATWRT as first record and after satishfy the date condition form mapping rule, The date value of ATWRT should go to input of concat function. next i will send time value like date value through ATWRT as second record . It should go to another input of concat function. Then here both date value and time value concat with T and should be come output in the format yyyy-MM-ddTHH:mm:ss and this will go to Target field "End Time".
I will be wait for ur possitive reply
thanks for giving response
Thanks adn regards
sai
Similar Messages
-
Hi,
The following is my source structure :
Recordset 1..1 -> Idoc 1..unbounded -> Segment 1..1
<Recordset>
<Idoc>
<segment>abcdefgh</segment>
</Idoc>
<Idoc>
<segment>klmno</segment>
</Idoc>
</Recordset>
I have a requirement where in I have to pass the data from the various segments as an input to the RFC.Is there any UDF which I can use to concatenate the values from the different segments and map it to the input for the RFC.There can be many idocs under one Recordset and each idoc has one segment.
Appreciate if you could help.
Thanks in advance.
IndujaHi,
Please use below TestUDF code
Here pass the input parameter as Segment ---> TestUDF ---> Target field
And select the cache parameter as queue
String temp = new String("");
for(int i = 0; i<a.length;i++)
temp = a<i> + temp;
result.addValue(temp);
Thanks
Swarup -
Hi Guys,
I am doing scenario File to Idoc, i have to sort date in acending order, the date format will be in either 22.10.2007 or 22/10/2007 . can any one send UDF for this.
Regards,
venu gopalHi Venu
You can execute this without UDF. Use " Transform" function in the Date functions.
When you are using the UDF....you keep the strucure as "yyyMMddhhmmss" for that clickon Trnasform function and there you can see ShowAdvancedProperties...there u can find the format of the source which you are expecting and also change the strucutre of you target expected format.
You please try this and check the mapping it will get execute.
Use Standard Date Function DATATRANS. It have the property for format and input is the source date field. It will convert the date format to required specified format which you menstion in the DARTATRANS function
for UDF
Re: UDF for this mapping rule
Re: Problem in UDF please Help?
Thanks! -
UDF for Exchange Rates and Indexes window
It would be great to have an additional field in the Exchange Rates and Indexes window for every currency to store string title of the exchange rate table from a national bank. It could be also satisfied by allowing to create an UDF for this window. In Poland this is a tax law requirement.
Hi,
Kindly check if your issue relates to Note No. : [1088683|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1088683] or not.
Kind Regards,
Jitin
SAP Business One Forum Team -
What are rules of etiquette for this forum?
I have posted a few basic questions in recent times about java programming issues. Right now I am using JBuilder2005. I am relatively new to the Java progarmming community, and I don't know if JB2005 is considered evil over say, WebSphere, Eclipse, etc. But responses I have received for my basic questions (which I ended up finding my own answers to) have been less than friendly.
Case:
>>
Re: assing which servlet is the startup page? Author: IanSchneider Mar 11, 2005 3:54 PM (reply 1 of 1)
You gots to be crazy if you think I'm helping you with your assing. Whats JB2005 anyway? Whatever it is, it sounds like its an impediment to you knowing whats going on. Try looking in your web.xml and actually understanding how servlets work.
<<
I have received responses similar to this for other posts where people are conscientiously steering me in the wrong direction. Well, I am not posting to ruffle any feathers, but since I have not seen any specific rules on what to post/not post other than no disruptive stuff, my question is if this forum is like a Pay forum and/or an anti Borland forum (vs a forum for exchanging information on Java programming).
While I'm at it I am trying to use a DataExpress control from JB2005 to connect to an Access Database (for practice - we have Oracle but I am practicing on Access). I select the driver
sun.jdbc.odbc.JdbcOdbcDriver
then it asks for the URL, it gives me this option in the ...:
jdbc:odbc:MS Access Database
so where do I add the location of the mdb file? I can't get the control to connect. I can connect to Access if I just use code and read/insert rows of data, but I want to use a DataExpress TableDataSet control so I can load it up with rows of data from a database file in a client application. I can load up an html table of data in a servlet for display . But how can I display data the same way in a client app?
Is this forum even the correct forum for me to ask this question - or should I look for a Borland forum?
Thanks.I have posted a few basic questions in recent times
about java programming issues. Right now I am using
JBuilder2005. I am relatively new to the Java
progarmming community, and I don't know if JB2005 is
considered evil over say, WebSphere, Eclipse, etc.
But responses I have received for my basic questions
s (which I ended up finding my own answers to) have
been less than friendly.I don't think people care for your brand of IDE (I'm using both JBuilder 2005 and Eclipse). People might be wary of newbies using any IDE, as they're usually in over their heads.
You gots to be crazy if you think I'm helping you
with your assing. Whats JB2005 anyway? Whatever it
is, it sounds like its an impediment to you knowing
whats going on. Try looking in your web.xml and
actually understanding how servlets work.Obvious: you posted a homework assignment, and people kicked your butt. And I guess Ian just didn't recognize "JB2005" means JBuilder 2005. I wouldn't say it's his fault.
I have received responses similar to this for other
posts where people are conscientiously steering me in
the wrong direction.Didn't happen in the above case.
Well, I am not posting to
ruffle any feathers, but since I have not seen any
specific rules on what to post/not post other than no
disruptive stuff, my question is if this forum is
like a Pay forum and/or an anti Borland forum (vs aNeither. But I urge you to read the following link:
http://www.catb.org/~esr/faqs/smart-questions.html
It's not at all about the etiquette for this forum, but for fora in general.
then it asks for the URL, it gives me this option in
the ...:
jdbc:odbc:MS Access Database
so where do I add the location of the mdb file? IYou don't. That's a mapping provided by the OS. Go to "System Controls" -> "Data Sources (ODBC)" or search the help for it if you don't find it, and set up the Access driver. -
Hi XI Gurus,
I hav to create a UDF.This is an IDOC - XI - FILE seerio. In this senerio is I have an IDOc whose 7th segment contains a field. This field can store values in between 0 - 9. On the other hand I have a file structure in my left hand side from Messge mapping prespective , which contains 9 similar sized fields.
Now the logic is if the field in the segment of the idoc has value say '3', then the file structure in the left hand side would have 3 in the field no 3 and all other fields 1, 2, 4, 5, 6, 7, 8, 9 would be zero.
Can u guys suggest some logic for this???
Thanks in advance !
Poits would be rewarded.
ArnabHi Mohd,
Select the Queue option for getting individual nodes
public void test(String[] a,ResultList result,Container container){
if (a<i> == 7) { //This is for selecting the node
for(i=0;i<10;i++){ //This is for collecting the correct value
ifIi==3){
write what ever u have to done
else{
write the exceptional condition
Dont to Reward points if this helps
Regards
Pragathi. -
I am looking for a map app that will allow me to place pins where my clients offices are on a map and keep them save every time I open the app. Does anyone out there know of an app that will do this?
"Motion 5" is your friend.
Michael Wohl has a nice 15 video series (free) about Motion 5 at http://www.macprovideo.com/tutorial/motion5101-overview-and-workflow-guide (right side)
This is a "teaser" series to sell his tutorials but it is really good. Just saw it yesterday for the first time.
While all you want is just to place pins, realize that Motion has so much more. All kinds of effects and they can be really customized. Maybe put their street address, contact name, and phone number by the pin?
Motion 5: cheap at $49.99 (just got my download two days ago)
Motion 5: Support Community athttps://discussions.apple.com/community/professional_applications/motion_5
If you're using the map for, say, deliveries, and use an iPad, what you could do is have a general map of the area imported into Motion, create the pins and whatever, then save (share?) it to the iPad.
Disclaimer: I have virtually no relationship with anything connected with this tutorial product, developer, or anything. -
When displaying a Google map I get about four vertical strips that alternately display good and in gray bands. The gray area displays the message "we are sorry, but we don't have maps at this zoom level for this region." Zooming out doesn't get rid of the gray areas.
I've had this problem for over a year and get around it by using either MS Internet Explorer or Google Chrome which work Ok. Otherwise Firefox works fine and I use it for everything else except Google Maps.
I've tried an uninstall of FireFox and then reinstall but it didn't help. I don't remember what I was doing when this problem first showed up.You're welcome
-
UDF for leading zero's in message mapping
Dear team,
I need UDF for leading zero's in my message mapping.
Source and Target both structures contains matnr field.But we have to maintain total 18 chars at target matnr , because RFC in R/3 needed.So I want to add leading zero's when mapping. Can anybody provide the UDF code.
Matnr[source]--->split by value(eachvalue) ->UDF->Matnr[Target]
Ex::if source matnr conatains value "9846538" ; I need matnr value at target side like "000000000009846538"[total 18 chars].
-DrumiHi Ambrish,
Good day...
I have enterd what you said and I got below error... and I gave "input" in place of var1, 18 in place of filedlenght in below program...
=================================
int len = Integer.parseInt(18);
int inputLength = input.length();
try {
Integer.parseInt(input);
// If it is an integer, add 0 (len - inputLength) times
for (int i=0; i< len-inputLength;i++)
input = "0" + input;
return input;
} catch (NumberFormatException numForEx) {
// return as it is, if alphanumeric
return input;
====================================
ERROR:
Source text of object Message Mapping: Lubrisur_SHPMNT_SHPMNT05_TO_WMMBXY_WMMBID02_TransferPosting | urn:bp:xi:dwn:lu:common:Logistics:100 has syntax errors:
Function LeadingZeros, Line 1:
cannot find symbol symbol : method parseInt(int) location: class java.lang.Integer int len = Integer.parseInt(18); ^ 1 error
=======================
Please suggest -
Require a Message mapping for this Logic.
Hi Experts,
I require a Message mapping for this Logic.
In the Source there are 4 fields and, the Target side, the fields should appear like this.
Source Structure- File
Record
|-> Header
Order_No
Date
|-> Item
Mat_No
Quantity
Target Structure-IDoc
IDoc
|-> Header
|-> Segment
Delivery_Order_No
Recv_Date
|-> Item
|-> Segment
Delivery_Order_No
Material_Num
Recv_Quantity.
The Logic is for every Order number an IDOC is generated.And if the Material num matches then the quantity should be added. and important note is that the material numbers are different for every order number. That means if a material number is 2 in the order number A. Then the material number can never be 2 in any of the order numbers.Here is the following with an example for the above scenario.
For example:-
we have
Source Structure- File
Order-no Date Mat_No Quantity
1 01/02/2011 A 10
1 01/02/2011 B 15
1 01/02/2011 A 10
2 01/02/2011 C 10
2 01/02/2011 C 10
3 01/02/2011 D 20
3 01/02/2011 D 10
3 01/02/2011 E 25
Target Structure-IDoc
Delivery_Order_No Recv_Date Material_Num Recv_Quantity
1 01/02/2011 A 20
1 01/02/2011 B 15
2 01/02/2011 C 20
3 01/02/2011 D 30
3 01/02/2011 E 25
So for this example total of 5-Idocs created. That means for this example if Order_No is 1 When the Mat_No is A the quantity gets added. For this Scenario 1 IDoc with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) is generated by adding the quantity field in the Target Side. Similarly if Order_No is 1 when the Mat_No is B then separate IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) in the Target Side. Similarly, if Order_No is 2 when the Mat_No is C, an IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) by adding the quantity field in the Target Side. ike wise the process goes on upto 3.Kindly do the needy..
Thanq very much in advance..
Edited by: Prashanth Bharadwaj on Oct 17, 2011 1:29 PMHi Prashanth,
Concatinate the two fields OrderNo and MaterialNo and follow the below logic which will resolve your problem.
concatinationOfOrderNo&MaterialNo>removecontext>sort>splitByValueChange>collapseContext-->IDOC
concatinationOfOrderNo&MaterialNo>removecontext>sort>splitByValueChange>collapseContext>splitByEachValue>subString(0,1)-->Delivery_Order_No
formatByExample>collapseContext>SplitByEachValue-->Recv_Date
FormatByExample:
input1:resulrOfSortByKey
input2:concatination>removecontext>sort-->SplitByValuChange
sortByKey:
input1:concatination-->removecontext
input2:date-->removecontext
concatinationOfOrderNo&MaterialNo>removecontext>sort>splitByValueChange>collapseContext>splitByEachValue>subString(1,1)-->Material_Num
formatByExample>sum>Recv_Quantity
FormatByExample:
input1:sortByKey
input2:concatination>removecontext>sort-->SplitByValueChange
SortByKey:
input1:concatination-->removecontext
input2:Quantity-->removeContext
Regards,
Priyanka. -
HI Gurus,
I have a requirement like below desc, Is UDF required for this?!! or Can we manage with Node Functions?!!!
Source File: ( File )
a) PO_TYPE
b) Style1
c) Style2
Note: Style1 leads to Headernode and Style2 leads to ChildNode, Style1 and Style 2 are interconnected.
Target File: ( Idoc )
a) Header Node ( EHDRNDE)
b) Child NOde ( CHLDNDE)
And my question is.... I have to populate Header Node and Child Node in target side on certain conditions of the source file. they are;
I) Whenver a different style1 comes in file...I have to create a Headernode for that in target file. Style1 can contain number of Style2 nodes with the same node. like
Ex:
i) Style1 -
Style2a, Style2b, Style2c
ii) Style1 ....... Style2aa, Style2ab.
For this above requirement, I have to create corresponding target nodes for Header ( Style1 ) and as well as for Child ( Style2)
for ex1: it should be one Header node in target and 3 corresponding child nodes
for ex2 : It should be One Header Node and 2 child nodes
For this requirement...can we use node functions....if it is...could you please help me.
....Stallin
Edited by: stallin xavier on May 1, 2008 4:18 AMHi,
You can do it by using node function as well as UDF also.
1) If your sequence is sorted and always come in sorted order only e.g. 1st come only style1 node and child node and then come all nodes from style 2 then u can use node function.
2) for parent node use collpse context then remove context.
3) for child node 1st differntiat according to your condition and then use split by value(value change)
4) If occurance of style1 node and style2 node is not fixed then you don't have any option you have to write UDF.
I think this will help you.
Regards,
Rohit.
Reward points if helpful -
Mapping Error: Mappings are not required for this Integrator
Hi,
when I created my upload integrator with the Desktop Integrator Manager (12.1.2) I am not able to attach a mapping to it. I get the following error:
Mapping Error: Mappings are not required for this Integrator because the ability to download information has not been enabled.
Does anyone know what I've missed?
cheers
JeroenHi ,
Without creating the content if you are trying to do mapping this error will come.
Solution:
Create the content and then do mapping..
Regards,
Sreekanth.S
Edited by: user12045904 on Dec 9, 2010 10:55 PM -
My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!
Hi,
You could use FND_FLEX_LOADER_APIS.UP_VALUE_SET_VALUE to upload them from staging table (I suppose you mean value set values...).
You can find a sample scripts if you google around.
What do you mean "how to map any API to our staging table" ?
You should do at least the following mapping (which column(s) in the staging table will provide these information):
- the 3 value sets name which you're going to update/upload (I suppose these are existing value sets or which have been already created)
- the value set values and description
Try to start with something and if there is any issues the community could then help... but for the time being with the description of the problem you have provided, that's the best I can do... -
Which mapping pattern would work for this?
Hi,
i been trying to create a mapping program.
the source structure is as
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns:MT_SOURCE xmlns:ns="http://test.bsa.demo">
<GT_ABC>
<field1>6</field1>
<keyfield>1001</keyfield>
<field2>2</field2>
</GT_ABC>
<GT_ABC>
<field1>6</field1>
<keyfield>1002</keyfield>
<field2>2</field2>
</GT_ABC>
<GT_XYZ>
<field1>7</field1>
<keyfield>1002</keyfield>
<field2>3</field2>
</GT_XYZ>
<GT_XYZ>
<field1>12</field1>
<keyfield>1003</keyfield>
<field2>3</field2>
</GT_XYZ>
<GT_XYZ>
<field1>15</field1>
<keyfield>1004</keyfield>
<field2>4</field2>
</GT_XYZ>
</ns:MT_SOURCE>
</ns0:Message1>
</ns0:Messages>
and the desired target structure to be generated is based on the total no. of keyfield entries.
suppose that keyfied entry has values,
1002 for substructures GT_ABC and GT_XYZ
1001 for substructures GT_ABC.
then there should be 2 occurences of target structure for keyfields 1001 and 1002 respectively.
for the occurence of 1001 the structure MT_KEYFIELD should have substructure GT_ABC
for the occurence of 1002 the structure MT_KEYFIELD should have substructures GT_ABC and GT_XYZ since both of them have keyfield value as 1002
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<MT_KEYFIELD> 0..unbounded
<GT_ABC> 0..unbounded
</field1>
</keyfield>
</field2>
</GT_ABC>
<GT_XYZ> 0..unbounded
</field1>
</keyfield>
</field2>
</GT_XYZ>
</MT_KEYFIELD>
</ns0:Message1>
</ns0:Messages>
after mapping is executed the target strucuture should be as shown below
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<MT_KEYFIELD>
<GT_ABC>
<field1>6</field1>
<keyfield>1001</keyfield>
<field2>2</field2>
</GT_ABC>
</MT_KEYFIELD>
<MT_KEYFIELD>
<GT_ABC>
<field1>6</field1>
<keyfield>1002</keyfield>
<field2>2</field2>
</GT_ABC>
<GT_XYZ>
<field1>7</field1>
<keyfield>1002</keyfield>
<field2>3</field2>
</GT_XYZ>
</MT_KEYFIELD>
<GT_XYZ>
<field1>12</field1>
<keyfield>1003</keyfield>
<field2>3</field2>
</GT_XYZ>
</MT_KEYFIELD>
<MT_KEYFIELD>
<GT_XYZ>
<field1>15</field1>
<keyfield>1004</keyfield>
<field2>4</field2>
</GT_XYZ>
</MT_KEYFIELD>
</ns0:Message1>
</ns0:Messages>
which mapping pattern would helpful for this?????
Thanks & Regards,
BibinuI am an independent web designer/developer and have separate
clients with non-related websites each of which is hosted remotely.
Would I be able to set up a client as a Contribute user (assuming
they bought the software) and allow them to edit areas of their
site?
Yes, that is possible. Each client would have his own license
though. You could then administer the sites from your own copy of
Contribute.
This may seem like a dumb question, but in going through
several tutorials it isn't clear to me whether Contribute is
intended for content editors all of whom work within one
organization and who all access a web server within their
organization's IT network to do this editing. I can't quite
understand how the software on the desktop on my client's computer
interfaces at all with settings that I set on my own installation.
Is some server technology needed here?
The editors don't have to be working in the same organization.
The connection is made through ftp-like connections from the users
computer to the server, and the administration of the site is
maintained at the server and kept up to date at the clients
computer. I suggest you download the trial version of Contribute
CS3 to check it out. -
When I use Craigslist, my personal list of things being sold, and I try and renew my listings, I periodically get this: "Warning! Domain mapping upgrade for this domain not found. Please log in and go to the Domains Upgrades page of your blog to use this domain." Usually rebooting my computer makes it go away for a short time, but today that isn't working and following the commands on the warning doesn't work either...is this truly a firefox issue? How do I fix it.
Clear the cache and the cookies from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
Maybe you are looking for
-
Free goods structure not appearing while doing item proposal
Free goods assigment have been done for a material with respect to customer/sales or/dist channel.During ordinary sales order creation va01,for the line item b-7000 free goods trigger for qty of 10.But when a item proposal is created & called in the
-
I can't sync my iPhone and back up my data with my computer because iTunes says to enter the passcode into my iPhone to unlock it, but I am unable to unlock and enter in my passcode on my iPhone because the screen is shattered. I have my replacement
-
Query was changed! Requirement no longer available
hi frinds when i use 'SET_CONDITION' command i get 'Query was changed! Requirement no longer available' this type of waring . and i am not geting any result. so pls help me. thank's in adv.
-
Fidgity Hard Drive (2STF/1/4)
A couple weeks ago I moved my iMac G5 to a new location. A week ago I started hearing some extra hard drive spinning that would stall the computer for a few seconds. Not a big deal so I figured I was overworking it and kept going. It has gotten worse
-
Hi all I have 3 jsp's. The first one look a little like this: first.jsp: <%String productDesc =""; session.setAttribute("productDesc",productDesc); String productlist=""; session.setAttribute("productlist",productlist); %> <!--Here I call another jsp