Help need in osb transformation
HI guys,
I have a requirement wheree i want to transform the data from source tot target using xquery transformation.
The requirement is i get the source value from consumer for one of the element in source node is asset_id (0001-12345678-000), so i need to break this value and map to three elements in target .
Can you please me out how do i do it using xquery.
iam trying it do using if-then-else but not working.
So please help in transforming this.
Thanks in advance.
Regards,
Shaik
I think what Eric means is that BUKRS, ANLN1, ANLAN2 are not sequences, these are elements, from the way you explained your issue eric provided the solution to split the string based on the '-'. it sounded like you wanted to post into something like
<mytest>0001</mytest>
<mytest>12345678</mytest>
<mytest>000</mytest>
sorry I don't have access to eclipse workbook to help but you can get your expressions using commands such as lenght, and substring, etc.
the best way to do this is in eclipse create a new xquery. Added the schemas you want to map to. In the first instance ID to ANLN1, ANLN2, and BUKRS so it will look like this.
<ID>
<ANLN1>0001-12345678-000</ANLN1>
<ANLN2>0001-12345678-000</ANLN2>
<BUKRS>0001-12345678-000</BUKRS>
</ID>
This will provide the structure of the xquery code, now what you need to do is modify it so it only maps what you need.
Here is some psudo code that will need to be tested my may give to a start.
ANLN1
fn:substring(data($ID),1,4)
ANLN2
fn:substring(data($ID),6,8)
BUKRS
fn:substring(data($ID),15,3)
cheers
James
Similar Messages
-
Help needed in XLST Transformation
Hi All,
I am facing issues in converting my DB records into the xml format required for my web service input using XSLT transformations. Please help in this regard.
Here is how my DB data looks like.
Group
Header 2
Header 3
Header 4
Header 5
G1
h1
abc
abc
abc
G1
h1
def
ghi
jkl
G2
h2
abc
xyz
def
G2
h2
xyz
afa
afe
and now with this data i should call a web service and its input is something like this.
<Group>
<Header2>
<Header3>
<Header4>
<Header5>
</Header2>
</Group>
Basically for each group i should call the web service and send the data. I am using a DB adapter which gives me the select * from my table and I need to convert it to the hierarchy as shown above and call the 3rd party web service for each group.
Please help me in this regard. Is it something we can achieve with the DB adapter select operation/ can we get the required grouping using XSLT transformations in SOA. Need the help urgently.
Thank you in advanceI think what Eric means is that BUKRS, ANLN1, ANLAN2 are not sequences, these are elements, from the way you explained your issue eric provided the solution to split the string based on the '-'. it sounded like you wanted to post into something like
<mytest>0001</mytest>
<mytest>12345678</mytest>
<mytest>000</mytest>
sorry I don't have access to eclipse workbook to help but you can get your expressions using commands such as lenght, and substring, etc.
the best way to do this is in eclipse create a new xquery. Added the schemas you want to map to. In the first instance ID to ANLN1, ANLN2, and BUKRS so it will look like this.
<ID>
<ANLN1>0001-12345678-000</ANLN1>
<ANLN2>0001-12345678-000</ANLN2>
<BUKRS>0001-12345678-000</BUKRS>
</ID>
This will provide the structure of the xquery code, now what you need to do is modify it so it only maps what you need.
Here is some psudo code that will need to be tested my may give to a start.
ANLN1
fn:substring(data($ID),1,4)
ANLN2
fn:substring(data($ID),6,8)
BUKRS
fn:substring(data($ID),15,3)
cheers
James -
Urgent(Transformation help needed)
Hello
Can anybody help me in the transformation.
I am selecting data from the table, i used (Database adapter-Single table
selection).
I need to place that data into the text file of Fixedlength format.Each record is
of diffent types.
My target xsd is:
==============
?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd=..........>
<xsd:element name="Root-Element">
<xsd:complexType>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element name="REC_2701" minOccurs="0" nxsd:startsWith="2701" maxOccurs="unbounded" nxsd:style="array" nxsd:cellSeparatedBy="${eol}">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C3" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1">
</xsd:element>
<xsd:element name="C4" type="xsd:string" nxsd:style="fixedLength" nxsd:length="6">
</xsd:element>
<xsd:element name="C5" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5">
</xsd:element>
<xsd:element name="C6" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="REC_2702" minOccurs="0" nxsd:startsWith="2702" maxOccurs="unbounded" nxsd:style="array" nxsd:cellSeparatedBy="${eol}">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C3" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1">
</xsd:element>
<xsd:element name="C4" type="xsd:string" nxsd:style="fixedLength" nxsd:length="6">
</xsd:element>
<xsd:element name="C5" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
When i tranform the data I am getting result fixed length data file in the following format.
2701C50 50 MUVT01
2701C03451 03451SIMUL1
2701C44034 44034SIMUL3
2702C50 50
2702C03451 03451
2702C44034 44034
But i need to get the fixed length file data in the below format
============================================
2701C50 50 MUVT01
2702C50 50
2701C03451 03451SIMUL1
2702C03451 03451
2701C44034 44034SIMUL3
2702C44034 44034
Can anybody suggest me the solution to the above case ?
Thanking you
mkiOnly a guess, but could you try removing the nxsd:style="fixedLength" from the xsd?
Another option might be to concatenate the values in BPEL into one field, trimming the spaces. You could then have an xsd with the file adapter to write out this one column.
Toby
Message was edited by:
tobyc -
ABAP MAPPING:Help needed
Hi Friends,
I have a scenario where I need to pick up Idocs out of a packet of Idocs .The Idocs will be picked by checking for a certain condition for the Idoc Segement and of all the Idocs the Idocs which satisfy a particular condition should only be output and for this I have been asked to achieve this using ABAP Mapping.So any info in this regard would be of great help for me.
Packet of Idocs----
> Idocs satisfying the cond.
(sender)*********(Check for a condition)*****(Receiver)
Please do provide with me a sample coding if possible.Please take up this with some priority.
Thanks & Regards,
Pradeep.Hi All,
The output from the ABAP class needs to be transformed into a different message using Graphical Mapping .
Please provide me some inputs for creating this ABAP mapping.
Thanks & Regards,
Pradeep. -
Help needed using adobe exportpdf
The first time I used adobe export pdf it worked well. However the next time and every other time I try to convert a pdf doc to word docx I get the error message at the end of the uploading session. "pdf doc failed to export to m,icrosoft word. There was an unexpected problem.
Anyone overcome this problem?Hi Stacy
Thanks for that info. I was aware of the 100MB limit but
your response made me think again and go back to the problem and this is
what I found. The first pdf document I uploaded into Adobe export pdf was 43
MB and it went through fine. when I looked at the conversion to Word docx I
found it had been transformed into 83MB.
So the conversion (which was a children's book with lots of images in it)
resulted in an increase of MBs by a factor of 1.7.
The second pdf document I uploaded was 64MB and this failed. If I apply the
1.7 factor then the Word docx I wanted was going to be 109MB and therefore
over the 100MB limit.
I didn't know that converting pdf to word would increase the MB like that.
Why, I don't know so thanks for your help I've learnt something new.
Cheers
Garth
In a message dated 07/10/2013 04:42:36 GMT Daylight Time,
[email protected] writes:
Re: Help needed using adobe exportpdf
created by StacySison (http://forums.adobe.com/people/StacySison) in
Adobe ExportPDF - View the full discussion
(http://forums.adobe.com/message/5740689#5740689) -
Based on DB check I need to do transformation
Hi,
I am polling DB and transforming it to gtm.
Ques is:
I need to do transformation based on DB check ... If ITEM_ID exists in DB it should not do transformation for that particular ITEM_ID, The ITEM_ID's which are not present in the DB then it should do transformation ..
Its urjunt requirement, plz do need full.
Regards,
CherryIf you are implementing this in OSB:
Then in your XQuery you can use fn-bea:execute-sql() function to query the DB for existence of current ITEM ID within a if-else block and write transform logic in XQ accordingly.
If you are implementing this in SOA Suite:
Then in your XSLT you can use oraext:lookup-table() function within your XSLT to check the existence of current ITEM ID within a If node and write transform logic in XSLT accordingly. -
Help needed adding xml into website
I am looking for some help adding a few .xml files into my
website using Dreamweaver
First ..I would like to add the following RDS.xml file below.
I would like it to go into a box that is 100 x 100 px
<?xml version="1.0" encoding="utf-8" ?>
- <Playing station="HAWK">
- <item type="MUS">
<DateTime>Thu 10:52AM</DateTime>
<Cart />
<Artist>THE ROLLING STONES</Artist>
<SongTitle>JUMPIN' JACK FLASH</SongTitle>
</item>
</Playing>
Second ..an event.xml file that will scroll info with box
dimensions of 400 px w x 30 px h.
Both xml files would be on my site in a user_files folder
Any help would be greatly appreciated. Rob> To use Dreamweaver, you'll need to write some code to
transform the XML
> into
> HTML. What code to write will depend on the server-side
scripting language
> you are using.
It means that you can't just plop in XML in the middle of
your HTML. Your
pages are HTML, so the XML needs to be transformed in to HTML
first. There
are various ways to do this. Are you using PHP? ASP? Etc.
Once we know that,
we can narrow down a solution for you.
-Darrel -
I am not sure of the voltage of my iphone. I want to know if I need a special transformer to charge my phone in Norway.
Thanks for your help.I have just returned from Norway 1 month ago and had no trouble charging my phone both through computer and power pack.. Enjoy .. Its a beautiful country!
-
Troubleshooting help needed: My iMac keeps crashing and restarting with a notice: "Spinlock application timed out" What can I do?
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports. -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
But not sure that my lenses will work.
I have a 170mm/ 500mm APO Sigma.
A 10/20 ex Sigma HSM IF.
And a 180 APO Sigma Macro or do I have to scrap them and buy others.
ALL Help will be greatly received. Yours BRODIEIn short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
Weekend Travelers Blog | Eastern Sierra Fall Color Guide -
Help needed! Raid degraded again!
Hi!
Help needed! I hava made bootable RAID with two S-ATAII 250Gb HDD and its not working! Every now and then at bootup I get a message RAID -> DEGRADED... Must be seventh time! Rebuild takes its own time!
What am I doing wrong!
T: Ekku
K8N Neo4 Ultra
AMD 64 4200+
2 Gb RAM
2 x 250 Gb HDD (Maxtor)
nVidia RAID (in mb)
P.S. I wery SORRY with my poor language!I'm going to blame the nVRAID because I've seen issues with it in the past. If your motherboard has another non-nVidia RAID solution, use that instead. Using the nVidia SATA ports as BASE or JBOD is fine and dandy but RAIDing always had issues. It's not even a driver issue I think it's just instability. Latest drivers and even boxed drivers never helped. Granted, some will report success with their rig. But on a professional level I've seen nForce issues on different motherboards and different hard drives that had RAID disaster stories.
Good luck and if you don't have another RAID solution, my suggestion would be to buy a dedicated RAID controller card.
LPB -
HELP NEEDED WITH ADDAPTER-DVI TO VGA.
PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
......THIS ENSURES NO SMOKE!!!
THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!Quote from: BOBHIGH on 17-December-05, 09:21:31
Get over it mate !
I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
And why bother to reply...some people have nothing better to do.
Yes there chep and easy to come by...Ive already got a new one.
All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
NO NEED TO A WANKA !!
I feel a bann comming up.
Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
Google = your friend.
Quote from: BOBHIGH on 17-December-05, 09:21:31
it was a simple question and required a simple answer
Simple for who ? you (buying a new one) ? me ? we ? .really...........
Quote from: Dynamike on 16-December-05, 04:11:48
1: There are allot of diffrent types of those adapters.
If any of the mods have a problem about my reply.. please pm me. -
Help needed for grouping.
Hi,
Help needed .
I have an internal table having 6 .
Ex :
f1 f2 f3 f4 f5 f6
a aa 11 p1 10 10
a aa 12 p1 20 20
b aa 11 p2 30 30
b aa 12 p2 40 30
Now i want to sum the fields f5 and f6 individually and need to display based upon the fields f1 and f4.
To Display :
f1 f2 f3 f4 f5 f6
a aa 11 p1 30 30.
b aa 11 p2 70 60.
can anyone help me.How to do this..?
ThanksHere you go
DATA:
BEGIN OF cur_tab OCCURS 0,
f1 TYPE c,
f2(2) TYPE c,
f3(2) TYPE c,
f4(2) TYPE c,
f5(2) TYPE c,
f6(2) TYPE n,
END OF cur_tab.
DATA:
BEGIN OF sum_tab OCCURS 0,
f1 TYPE c,
f4(2) TYPE c,
f5 TYPE p,
f6 TYPE p,
END OF sum_tab.
DATA:
BEGIN OF final_tab OCCURS 0,
f1 TYPE c,
f2(2) TYPE c,
f3(2) TYPE c,
f4(2) TYPE c,
f5(5) TYPE c,
f6(5) TYPE c,
END OF final_tab.
START-OF-SELECTION.
cur_tab-f1 = 'a'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p1'.
cur_tab-f5 = '10'.
cur_tab-f6 = '10'.
APPEND cur_tab.
cur_tab-f1 = 'a'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p1'.
cur_tab-f5 = '20'.
cur_tab-f6 = '20'.
APPEND cur_tab.
cur_tab-f1 = 'b'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p2'.
cur_tab-f5 = '30'.
cur_tab-f6 = '30'.
APPEND cur_tab.
cur_tab-f1 = 'b'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p2'.
cur_tab-f5 = '40'.
cur_tab-f6 = '30'.
APPEND cur_tab.
LOOP AT cur_tab.
MOVE-CORRESPONDING cur_tab TO sum_tab.
COLLECT sum_tab.
ENDLOOP.
LOOP AT sum_tab.
READ TABLE cur_tab WITH KEY f1 = sum_tab-f1
f4 = sum_tab-f4.
IF sy-subrc NE 0.
WRITE:/ 'Something went very wrong'.
CONTINUE.
ENDIF.
MOVE-CORRESPONDING cur_tab TO final_tab.
MOVE-CORRESPONDING sum_tab TO final_tab.
APPEND final_tab.
ENDLOOP.
LOOP AT final_tab.
WRITE:/1 final_tab-f1,
AT 5 final_tab-f2,
AT 10 final_tab-f3,
AT 15 final_tab-f4,
AT 20 final_tab-f5,
AT 25 final_tab-f6.
ENDLOOP.
and the output
a aa 11 p1 30 30
b aa 11 p2 70 60 -
Help needed on installation of Oracle 9i on Sun Solaris 8
Hey,
Help needed on installation of Oracle 9i EE on Sun Solaris 8. The problem I met was: we followed the installation guide from the documentation. And we selected the choice "install software only". After it was done successfully, we run Database Configuration Assistant utility to create a database instance. But finally it always tried to create the instance at the root directory ( / ) which doesn't have enough space and then failed. The case was that we have set the enviroment parameters: $ORACLE_BASE = /export/mydata, $ORACLE_HOME = /export/apps/oracle9i. That means it should be installed at /export/mydata, but it didn't. Any help or advice are welcome. Thanks.
SimonI have downloaded Oracle 11G R2 version from Windows and extracted it in Windows and copied it into DVD after extraction in two folders. Now I am mounting that DVD in Solaris 10 installed in my VMware . I made a new directory named as 'installation ' under /export/home/oracle and copied the folders from DVD to 'installation' folder. Now I am entering installation folder and try to do ./runInstaller as 'oracle ' user and getting the error mentioned before.
Edited by: 916438 on Mar 31, 2012 5:55 PM
Maybe you are looking for
-
FCP doesn´t open with x264codec... help!
Hi all! I´ve installed the x264codec (fcp version 5.1.3) and when i try to open... "bum"! Does any of you guys have this problem? I know that fcp 5.1.3 is a "problematic" version and i should upgrade it to 5.1.4, but his is the first problem i have w
-
CO-PA transfer from SD - conditional transfer
Hi, We need to implement a new flow for 'early start' SD orders. These are uncommited towards the customer, but certain enough to start procurement activities. The point is to use a flag on SD order header to control 'early start' that prevents updat
-
COMPUTE_BCD_OVERFLOW
In ECM, the compensation planning iView, we get a runtime error when trying to apply a percentage adjustment to salary. Here is the error message. We're on ECC 6 EHP4, NW 7 EHP1. Runtime Errors COMPUTE_BCD_OVERFLOW Exception CX
-
Size of the select value window in the portal for a query
Hi, When I try to restrict the key figures structure in the portal (to select some key figures and hide others), the description of some key figures is truncated. It happens when the description of the key figure has been defined on several lines in
-
When is global context memory freed?
Hi: I've got a package that I call for each user on logon that gets their unique ID and then sets values particular to that user in a global context after setting the CLIENT_IDENTIFIER for the session. I'm basically using the "One Big App User" appro