Doubt in Conversion
I am converting my Date parameter into the following format : YYYYMMDD to fit in the table name. But i am not able to convert the same. The following are the details:
rundt in date -- IN Parameter
V_bkp_table_nm varchar2(30);
v_rundt DATE;
Set of statements...
SELECT TO_CHAR(rundt,'YYYYMMDD') INTO v_rundt FROM DUAL;
V_bkp_table_nm :='C'||Id||'_MM_'||rundt;
My Traget format should be like: YYYYMMDD
For Ex. If i pass the values : 6430 and 9/29/2008 format of date; its not able to run this Procedure.
Thanks in Advance!
--Theyag.
If you do a TO_CHAR(rundt,'YYYYMMDD') into a date then you're turning a date into a string with your explicit TO_CHAR conversion and then doing an implicit conversion from that string to a date based on your NLS_DATE_FORMAT.
TO_CHAR returns a string.
You just need to do this:
V_bkp_table_nm :='C'||Id||'_MM_'||TO_CHAR(rundt,'YYYYMMDD');or if you really have to then this:
v_rundt VARCHAR2(8) := TO_CHAR(rundt,'YYYYMMDD');;
V_bkp_table_nm :='C'||Id||'_MM_'||v_rundt
...
Similar Messages
-
Doubt in conversion of SQL query to oracle
Hi guys,
I'm new to oracle. I have a SQL query like the following,
Select * From my_table With(Index(PK_my_key))
I want to convert this to oracle. How can I specify the syntax *'With(Index(PK_my_key)) '* in oracle.
Please advice.
RamIs it possible to test that and find out the performance of the query? You need to check the execution plan of the query.
See these informative threads that explain in more detail :
When your query takes too long... When your query takes too long ...
How to post a SQL statement tuning request HOW TO: Post a SQL statement tuning request - template posting
Also, please post your database version (the result of: select * from v$version; ).
INDEX hints are nowadays (almost) never needed, unless you're on ancient database version.
As SomeoneElse already said: let Optimizer decide. -
Hi Experts
I need to do content conversion in the sender file adapter for the following Data type
Dt_Details
> X
>Y (Subelement of X)
>Z (Subelement of Y)
> A
>B
>C
My doubt is that is it possible to to do content conversion for a structure that has a three level hireachy as given
Thanks in advanceHi
If the the fieldseperator and end seperator parameter is '. How can i give it in the FCC.
Ex. if the incoming data is like
'IBNRNDA:84580505257068:247780507126723:24878508:0377DX6148900656328HI'IBR18+ASDE05:P:895F:58W:GASMI'
AND IT SHOULD BE SPILLED AT THE ' AS
IBNRNDA:84580505257068:247780507126723:24878508:0377DX6148900656328+HI
AND
IBR18ASDE05:P:895F:58W:GASMI
IN THE xml what should i do...?
Thanks in advance -
Doubt about unicode conversion
Dear Friends,
I have a doubt about the unicode conversion. I have read (one server strategy) that I have to do export (R3load), delete the ECC 6.0 non-unicode, install an unicode database and then import with R3load. My doubt is about the deletion of ECC 6.0 non unicode. Why? can I convert to unicode only with an export (R3load) and subsequent import (R3load) without any deletion?. Obviously I must to change the SAP kernel with a unicode one. Is it correct?
Cheersyou can not convert a SAP System to unicode by just exchanging the executables from non unicode to unicode ones.
a non unicode SAP Oracle database is typically running with a database codepage WE8DEC or US7ASCII (well this one is out of support).
so every string stored in the database is stored using this codepages or SAP-Internal codepages.
When converting to unicode you have to convert also the contents of the database to unicode. As unicode implementation starts at a time where Oracle did not support mixed codepage databases (one tablespace codepage WE8DEC the other one UTF8) inplace conversions are not possible. To keep things simpler, we still do not support mixed codepage databases.
Therefore you have to export the contents of your database and import it to a newly created database with a different codepage if you want to migrate to unicode.
regards
Peter -
Doubt regarding Sender adapter file content conversion to RFC
Hi Experts,
Below is the my Source and Target XML structure ( i have creaated source structure same as target RFC structure), This scenario is working fine when i give XML file as input. File -> XI -> RFC , xml file is able to update the information in R3.
How should i configure sender file adapter for file content conversion for above structure(in this case input is fixed lenth text), and i could able to change source structure according to our req, without changing target RFC strucuture.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT_I>X</COMMIT_I>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>testxml</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
I have configured sender file adapter with FCC like :
Document name as: MT_HSA_IDNumber
Document name space as: urn:passhe.com/UpdateIdNumberISA32
Record structure as: COMMIT_I,1,IDENTIFICATION,1
COMMIT_I.fieldNames : COMMIT_I
COMMIT_I.fieldFixedlengths: 1
IDENTIFICATION.fieldNames: STUDENT,ID_TYPE,ID_NUMBER,VALID_FROM,VALID_TO
IDENTIFICATION.fieldFixedlengths: 12,6,60,8,8
i am getting error like this: even when i change source structure like below metioned:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT>
<COMMIT_I>X</COMMIT_I>
</COMMIT>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>idnumber1</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'COMMIT_I.fieldFixedLengths' or 'COMMIT_I.fieldSeparator' is missing Consistency check: no. of arguments in 'COMMIT_I.fieldFixedLength' does not match 'COMMIT_I.fieldNames' (0 <> 1)
Please help me out
thanks
dhanushHi Dhanush,
Try giving the Sender FCC this way for the source structure you have mentioned above.
Record structure as: COMMIT,1,IDENTIFICATION,1
COMMIT.fieldNames : COMMIT_I
COMMIT.fieldFixedlengths: 1
Hope this helps.
Thanks and Regards,
Induja -
Doubt regarding Recever file adapter file content conversion (FCC)
Hi Expetrts, below is the my target structure.
<?xml version="1.0" encoding="TF-8"?>
<ns1:MT_StatusChange xmlns:ns1="urn:passhe.com/ChangeOfStatusISA26">
<IV_ST_OBJID>65390091</IV_ST_OBJID>
<IV_BEGDA>25082008</IV_BEGDA>
<LT_STUDENT_STATUS>
<item>
<HS_CAMPUS>65</HS_CAMPUS>
<STOBJID>65390091</STOBJID>
<STUDENT12>michal</STUDENT12>
<HS_STATUS>MISC</HS_STATUS>
<item>
<LT_STUDENT_STATUS>
</ns1:MT_StatusChange>
How to configure in File Content Conversion Recever File Adapter for above target structure. i have done as below, but i am getting error. please correct me where i did mistake.
Recordset Structure : IV_ST_OBJID,IV_BEGDA,LT_STUDENT_STATUS,item
IV_ST_OBJID.fieldNames : IV_ST_OBJID -> for this field there is no subfield
IV_ST_OBJID.fieldSeparator: , (comma)
IV_BEGDA.fieldNames : IV_BEGDA -> for this field there is no subfield
IV_BEGDA.fieldSeparator: , (comma)
LT_STUDENT_STATUS.fieldNames : HS_CAMPUS,STOBJID,STUDENT12,HS_STATUS
LT_STUDENT_STATUS.fieldSeparator: 'nl'
item.fieldNames : HS_CAMPUS,STOBJID,STUDENT12,HS_STATUS
item.fieldSeparator: , (comma)
I am getting below error:
'Conversion configuration error: Unknown structure 'ns1:MT_StatusChange' found in document', probably configuration error in file adapter (XML parser error)'
Thanks
Dhanush.Hi Dhanush,
It is better always if u have a structure with Header and trailers if u have a subsrtuctures in it & always try make it in this format:
<?xml version="1.0" encoding="UTF-8"?>
<MT_ContentConversion_Test>
<Header>
<F1>HF1</F1>
<F2>HF2</F2>
</Header>
<Item>
<F1>IF1</F1>
<F2>IF2</F2>
<Item>
<Trailer>
<F1>TF1</F1>
<F2>TF2</F2>
</Trailer>
</ns0:MT_ContentConversion_Test>
Try to go through this blog it will be very helpful to u :
/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
Regards,
Vinod. -
Doubt regarding sender file content conversion
Hi Experts
This is my source XML structure, how to define Sender file adapter (Content Conversion) and filed lenths: COMMIT_I 1, STUDENT 12, ID_TYPE 6, ID_NUMBER 60, VALID_FROM 8,VALID_TO 8
<?xml version="1.0" encoding="UTF-8"?>
<ns0:IDENTIFICATION_ADD_Req_MT xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT_I>X</COMMIT_I>
<IDENTIFICATION>
<STUDENT>Student</STUDENT>
<ID_TYPE>New</ID_TYPE>
<ID_NUMBER>12345</ID_NUMBER>
<VALID_FROM>12/03/2008</VALID_FROM>
<VALID_TO>13/04/2008</VALID_TO>
</IDENTIFICATION>
</ns0:IDENTIFICATION_ADD_Req_MT>
Please suggest me how to configure Sender file content conversion
Thanks
Dhanush.hi sekhar,
Just go through this blogs & links.
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
reward points if found helpfull
regards
chandra.k -
Doubt on Record set in File Content Conversion
Hi
Please give me the procedure for Deleting record set in file conet conversion means hoe can i delete Recordset(tag) using File conent conversion.
Thankshi
<documentName>...
<recordset>
<NameA>
<field-nameA1>field-value</field-nameA1>
<field-nameA2>field-value</field-nameA2>
<field-nameA3>field-value</field-nameA3>
</NameA>
<NameB>
<field-nameB1>column-value</field-nameB1>
<field-nameB2>column-value</field-nameB2>
<field-nameB3>column-value</field-nameB3>
</NameB>
</recordset>
<recordset>
</recordset>
</documentName>...
In above file record set i want to delete usind sender side.
Thanks -
Doubt regarding file content conversion Recever File adapter.
target structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_ChangeOfAddress xmlns:ns1="urn:passhe.com/ChangeOfAddressISA28">
<BUSINESS_PARTNER>
<item>
<CAMPUSCODE>65</CAMPUSCODE>
<STUDENTNUMBER>6500000192</STUDENTNUMBER>
<ST_OBJID>732298498</ST_OBJID>
</item>
</BUSINESS_PARTNER>
</ns1:MT_ChangeOfAddress>
target structure is look like this.
MT_ChangeOfAddress
BUSINESS_PARTNER (1,1)
item (0 to unbounded)
CAMPUSCODE (0,1)
STUDENTNUMBER (0,1)
ST_OBJID (0,1)
I have given below parameters in recever file adapter (file content conversion)
Recordset Structure : item
item.fieldNames : CAMPUSCODE,STUDENTNUMBER,ST_OBJID
item.fieldSeparator: , (comma)
i am getting first two digits in my output file: that file has only first two digits that is : 65
may i know how hould i define file contente conversion recever adapter to get proper data in file adapter.
thanks,s
DhanushHi,
Go through these blogs:
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
Thanks,
Satya -
Doubt in jms content conversion
Hi ,
I m doing content conversion in sender jms channel.
My input is of the format
AAAAAAA#bbbbbbb#ccccccc#
I want to map it to XML Structure
<Root>
<Record>
<item>AAAAA </item>
</Record>
<Record>
<item>bbbbb</item>
</Record>
<Record>
<item>CCCC</item>
</Record>
</Root>
Is it possible?Resolved
-
Hi All,
I am new to XI.I need some clarifications on content Conversion ASAP.In my input Flat file i have four fields and the format of input file looks like FirstnameLastnameAddress*Email where * is the delimiter seperating fields.But my output Flat file should be as "Firstname","Lastname" where every field should be in double quotes and * should be replaced with , truncating last two fields namely address and email.How is this Possible.Can you please explain every step in Detail starting from Data type and also specifying conversion parameters.
Thanks in Advance
DinakarDinakar,
Please find the below strucure and config needs to be done.
Input Data type.
DT_Input
Root <b>1</b>
Details <b>1..Unbounded</b>
Fname <b>1</b>
Lname <b>1</b>
Address<b> 1</b>
EMail <b>1</b>
DT_Output
Root <b>1</b>
Details <b>1..Unbounded</b>
Fname <b>1</b>
Lname <b>1</b>
Use Mapping Program and Map Details , Fname,Lname alone. Don't map Address and EMail. Also use the logic for adding "Fname" & "Lname" in your mapping program.
I think rest of the design parts u can manage.
<b>Config:</b>
<b>Sender Comm.Channel</b>
Document Name : MT_Input (Your Message type name)
Document namespace : urn:yournamespace
Recordset Name : Root
Recordset Structure : Details,*
Recordset per Message : *
<b>Parameters</b>
Details.fieldNames : Fname,Lname,Address,EMail
Details.fieldSeparator: *
Details.endSeparator: 'nl'
<b>Receiver Comm.Channel</b>
Recordset Structure : Root,Details
Details.fieldSeparator : ,
Details.endSeparator : 'nl'
Root.fieldSeparator : 'nl'
The above config is working fine. I checked and suggesting you the same.
I hope it helps.
Best regards,
raj. -
in bapi process when taking contract reference to sales order conversion errors are
if suppose my Quantity is '12' .... i am entering quantity as 12 in contract it reflects as 0.012 in order for this i am entering like this "0000000012000" then only its taking as 12 .please share ur ideas
thnks in advanceHi Naveen,
Are you using this bapi from external system.check user profile parameters.If you did directly in sap most of the times there is no need of any conversions.
Regards,
Madhu. -
Hi,
I am Using BI 7.0.
I am Using BC cube 0PUR_C04
Data sources 2LIS_02_HDR, 2LIS_02_ITM, 2LIS_02_SCL.
I need a Report in Local Currency ie: USD only (US dollers),
Here what I am getting in my Report is all different currencies
ie: EUR, JPY, USD,INR and all other country currencies
but I need only in USD(US dollers)
For these I followed the steps like this
I created a translation key using transaction RSCURR
These are settings I maintained
In Exchange Rate Tab
Exchange Rate Type I have selected <b>M</b> (My FI Consultant adviced )
In Currency Tab
<b>Source Currency</b>
Source Currency from Data Record ( I have selected this Radio button)
<b>Target Currency</b>
Fixed Target Currency <b>USD</b>
no other options are not selected
In Time Ref Tab
<b>Fixed Time Ref</b>
Current Data (I have selected this Radio Button)
after saving All.
In My Transformation
Mapping done Like this NETWR Net Order Value to 0NET_PO_VAL
WAERS Order Currency to 0NET_PO_VAL
Now When I try to Assign the Conversion
In Rule Details of 0NET_PO_VAL <b>Currency</b>
I need to select from Conversion
But here I am receiving Message
<b>Info Obejcts must be assigned to the Data source Fields</b>
Then
<b>In Conversion Type</b> I enter My created conversion type ie: <b>USD_VAR</b>
i received the <b>Error</b>
<b>Rule 10 (target field: 0NET_PO_VAL): Field NETWR must be assigned to an info object</b>
any idea why this Error.
and at the same time Is I am following the Right procedure ?
Help me to solve this Issue.
sure you will get the Points
thanks
PrasannaHi Karthik,
Thanks for the immidiate responce,
Mapping done Like this
NETWR Net Order Value to 0NET_PO_VAL and
WAERS Order Currency to 0NET_PO_VAL.
Do I need to concentrate any thing when I select <b>USD_VAR (conversion type)</b> In Rule Details of 0NET_PO_VAL Currency -- from Conversion.
Thanks
prasanna -
Doubt In File Content Conversion
HI,
I need a help on creating a header line with tab spaces
example
name <tabspace> NO <tabspace> EMP ID
i know the option of using addHeaderLine but in this how to leave the tab spaces between the header fileds.
i have tried with \t and ASCII code between the header fileds but it was not working
Kindly help me on this.
thanks in advance..
With regards
Pradee N.Hi Pradeep,
I did like this:
i took data in notepad with tab space as field separator. copy those spaces from notepad and copy in FCC in xi
in FCC, row.fieldSeparator copy those whitespaces in the value column
this worked out for me...
try like this
ravi. -
Doubt regarding File Content Conversion.
Hi Experts,
my scenario is : XML - >XI -> FCC
my input is:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:FCC_MT xmlns:ns0="urn:passhe.com/TestXMLtoFCC">
<Name>
<Fname>firstname</Fname>
<Lname>last name</Lname>
</Name>
<Address>
<Street>springford dr</Street>
<Zip>1234567</Zip>
</Address>
</ns0:FCC_MT>
Parameter i have given in Recever File Adapter:
Record Structure: Name,Address
Name.fieldNames: Fname,Lname
Name.fieldFixedLengths: 15,15
Address.fieldNames: Street,Zip
Address.fieldFixedLengths: 20,10
I am getting below Out put.
firstname last name
springford dr 1234567
My requirement is out put shoule come in a single row like:
firstname last name springford dr 1234567
Please advice me how to do get desired output. i have searched in SDN, i am not able to get how to get record in sigle row.
thanks
dhanush.ns0:FCC_MT xmlns:ns0="urn:passhe.com/TestXMLtoFCC">
<Name>
<Fname>firstname</Fname>
<Lname>last name</Lname>
</Name>
<Address>
<Street>springford dr</Street>
<Zip>1234567</Zip>
</Address>
</ns0:FCC_MT>
Use recordSet Structure : FCC_MT,Name,Address
FCC_MT.fieldNames : Name,Address
FCC_MT.FieldSeparator:
then name and address fields
Maybe you are looking for
-
I found an album that I have been looking for on itunes. I wish to buy this album, but itunes dos not give an option to but the whole album. Instead there is a tab with the word "view" on it. When I click the tab, A list of all of the tracks comes up
-
Child Table Cache Problem - Only in Environment
Hi All, I have master-child tables in a page. Master table is based on a VO and child table is based on pl/sql EO. When user updates any child table row and hits on save, I load the same page again by releasing AM. The problem is when the page loads
-
Map Viewer SRS Parameter (WMS service)
Hello, In MapViewer WMS documentation it is mentioned, that two SRS parameter values are supported: SDO:8307 and EPSG:4326. We try to access WMS server using MapInfo Professional as client, but it reports that SDO:8307 projection is not supported by
-
Faces out of order in iOS 8.1 photos app
Has anyone else encountered a problem where faces (which I tagged and organized in Aperture and iPhoto) are completely out of alphabetical order in the iPhone photos app? I've tried unsyncing, resyncing, and deleting the 'iPod photo cache' from the i
-
Call procedure with MS SQL from linked Oracle server
I have a procedure on a remote server that I can call from SQL*PLUS set serveroutput on declare rez varchar2(99); msg varchar2(99); begin radar.test('AL25',rez,msg); dbms_output.put_line('Rez='||rez); dbms_output.put_line('Msg='||msg); end; it gives