Create data daynamic from field length
HI All
There is a way to create data dynamically if i have in parameter field length
like char10 or KUNNR or char25.
Thanks,
Joy
field-symbol: <fs_dyn_wa> TYPE ANY.
loop at lt_tab INTO ls_tab.
CREATE DATA kunnr TYPE (ls_tab-fieldname).
or if you have a fixed strucutre for the fields in the internal table, define the workarea and use the below code to push the values
MOVE ls_tab-fieldname TO ls_fieldname.
ASSIGN COMPONENT ls_fieldname OF STRUCTURE <fs_dyn_wa> TO <fs_val>.
endloop.
Edited by: ssm on Jul 26, 2011 7:51 PM
Similar Messages
-
Hey guys
i need to create Data Type from and XSD,in the beginning i had an XML document which i converted to XSD using Altova ,then i imported this XSD in IR under External definition,now how should i go ahead with creating Data Type?
my sample XSD is something like this
<?xml version="1.0" encoding="UTF-8"?>
<!W3C Schema generated by XMLSpy v2007 sp2 (http://www.altova.com)>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="WorkOrderNumber">
<xs:simpleType>
<xs:restriction base="xs:short">
<xs:enumeration value="10942"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="VendorNumber">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:enumeration value="109845"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Its not the complete XSD,just the first few lines.
thanx
AhmadHey Prabhu
my XSD looks like this
<?xml version="1.0" encoding="UTF-8"?>
<!W3C Schema generated by XMLSpy v2007 sp2 (http://www.altova.com)>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="WorkOrderNumber">
<xs:simpleType>
<xs:restriction base="xs:short">
<xs:enumeration value="10942"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="VendorNumber">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:enumeration value="109845"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="UnitPrice">
<xs:complexType>
<xs:sequence>
<xs:element ref="MonetaryAmount"/>
<xs:element ref="UnitOfMeasureCode"/>
<xs:element ref="CurrencyCode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UnitOfMeasureCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="EA"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TotalLineItems">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TaxTypeCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="GoodsAndServicesTax"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TaxReference">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="GST"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TaxAmount">
<xs:complexType>
<xs:sequence>
<xs:element ref="MonetaryAmount"/>
<xs:element ref="CurrencyCode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Tax">
<xs:complexType>
<xs:sequence>
<xs:element ref="TaxTypeCode"/>
<xs:element ref="TaxAmount"/>
<xs:element ref="TaxReference"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Requisition">
<xs:complexType>
<xs:sequence>
<xs:element ref="Number"/>
<xs:element ref="LineItemNumber"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Quantity">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:enumeration value="1.0"/>
<xs:enumeration value="2.0"/>
<xs:enumeration value="6.0"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PrimaryCurrency">
<xs:complexType>
<xs:sequence>
<xs:element ref="CurrencyCode"/>
<xs:element ref="ExchangeRate"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Pricing">
<xs:complexType>
<xs:sequence>
<xs:element ref="UnitPrice"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PaymentTerms">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="NT30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Number">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Q173849"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MonetaryAmount">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:enumeration value="1.98"/>
<xs:enumeration value="12.48"/>
<xs:enumeration value="12.63"/>
<xs:enumeration value="16.75"/>
<xs:enumeration value="24.96"/>
<xs:enumeration value="240.0"/>
<xs:enumeration value="33.84"/>
<xs:enumeration value="43.83"/>
<xs:enumeration value="5.64"/>
<xs:enumeration value="74.81"/>
<xs:enumeration value="87.66"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LineItemTotal">
<xs:complexType>
<xs:sequence>
<xs:element ref="MonetaryAmount"/>
<xs:element ref="CurrencyCode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LineItemNumber">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="10"/>
<xs:enumeration value="20"/>
<xs:enumeration value="30"/>
<xs:enumeration value="40"/>
<xs:enumeration value="50"/>
<xs:enumeration value="60"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LineItemMaterialNumber">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="108739"/>
<xs:enumeration value="192740-A"/>
<xs:enumeration value="380495"/>
<xs:enumeration value="43998"/>
<xs:enumeration value="54727S"/>
<xs:enumeration value="5746"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LineItemInformation">
<xs:complexType>
<xs:sequence>
<xs:element ref="LineItemMaterialNumber"/>
<xs:element ref="LineItemDescription"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LineItemDescription">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="ABSRBT PAD 17 IN X 19 IN X 3/8 IN UNIV P"/>
<xs:enumeration value="BSHG HEX 1 IN X 1/2 IN THD FS A105N"/>
<xs:enumeration value="GGE 4 IN 1M / 7000 DL SCALE 1/2 IN LM WI"/>
<xs:enumeration value="PEN REC RD MED GRAPHIC 39-202"/>
<xs:enumeration value="PL ORF 3 IN .5 IN ORF SER 500 316 SS"/>
<xs:enumeration value="WPR F-200 FLC NOV LABEL 20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Invoices">
<xs:complexType>
<xs:sequence>
<xs:element ref="Invoice"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InvoiceTypeCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="ProductOrService"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="InvoiceTotal">
<xs:complexType>
<xs:sequence>
<xs:element ref="MonetaryAmount"/>
<xs:element ref="CurrencyCode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InvoiceSummary">
<xs:complexType>
<xs:sequence>
<xs:element ref="TotalLineItems"/>
<xs:element ref="InvoiceTotal"/>
<xs:element ref="Tax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InvoiceQuantity">
<xs:complexType>
<xs:sequence>
<xs:element ref="Quantity"/>
<xs:element ref="UnitOfMeasureCode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InvoiceProperties">
<xs:complexType>
<xs:sequence>
<xs:element ref="InvoiceNumber"/>
<xs:element ref="InvoiceDate"/>
<xs:element ref="VendorNumber"/>
<xs:element ref="InvoiceTypeCode"/>
<xs:element ref="PrimaryCurrency"/>
<xs:element ref="PaymentTerms"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InvoiceNumber">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:enumeration value="98815236"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="InvoiceLineItem">
<xs:complexType>
<xs:sequence>
<xs:element ref="WorkOrderNumber"/>
<xs:element ref="LineItemNumber"/>
<xs:element ref="InvoiceQuantity"/>
<xs:element ref="LineItemInformation"/>
<xs:element ref="Pricing"/>
<xs:element ref="LineItemTotal"/>
<xs:element ref="Requisition"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InvoiceDetails">
<xs:complexType>
<xs:sequence>
<xs:element ref="InvoiceLineItem" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InvoiceDate">
<xs:simpleType>
<xs:restriction base="xs:date">
<xs:enumeration value="2007-01-25"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Invoice">
<xs:complexType>
<xs:sequence>
<xs:element ref="InvoiceProperties"/>
<xs:element ref="InvoiceDetails"/>
<xs:element ref="InvoiceSummary"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ExchangeRate">
<xs:complexType/>
</xs:element>
<xs:element name="CurrencyCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="CAD"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:schema>
can you please tell me how to nest the structures,i m fairly new to XSD and stuffs
thanx
ahmad -
Create data control from java class, not see "ADF Parameter Forms" option
Hi,
I have created a Fusion Web Application (ADF) in jdev 11g. In the application model project, I created a java class. Inside the java class, I have a public method as below
public Asset [] searchAsset3(SearchTerm s) // SearchTerm is a java bean. It implements java.io.Serializable.
I created data control from my java class. After that, I see an xml file generated under the same folder of my java class. Here is the xml content.
<?xml version="1.0" encoding="UTF-8" ?>
<JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.53.62"
id="AIAAsset" Package="oracle.apps.aia.oer.model"
BeanClass="oracle.apps.aia.oer.model.AIAAsset" isJavaBased="true">
<MethodAccessor IsCollection="true"
Type="com.flashline.registry.openapi.entity.Asset"
BeanClass="com.flashline.registry.openapi.entity.Asset"
id="searchAsset" ReturnNodeName="Asset"
CollectionBeanClass="UpdateableCollection">
<ParameterInfo id="name" Type="java.lang.String" isStructured="false"/>
<ParameterInfo id="version" Type="java.lang.String" isStructured="false"/>
<ParameterInfo id="description" Type="java.lang.String"
isStructured="false"/>
</MethodAccessor>
<MethodAccessor IsCollection="true"
Type="com.flashline.registry.openapi.entity.AssetSummary"
BeanClass="com.flashline.registry.openapi.entity.AssetSummary"
id="searchAssetSummary" ReturnNodeName="AssetSummary"
CollectionBeanClass="UpdateableCollection">
<ParameterInfo id="name" Type="java.lang.String" isStructured="false"/>
<ParameterInfo id="version" Type="java.lang.String" isStructured="false"/>
<ParameterInfo id="description" Type="java.lang.String"
isStructured="false"/>
<ParameterInfo id="type" Type="java.lang.String" isStructured="false"/>
</MethodAccessor>
<MethodAccessor IsCollection="true"
Type="com.flashline.registry.openapi.entity.Asset"
BeanClass="com.flashline.registry.openapi.entity.Asset"
id="searchAsset3" ReturnNodeName="Asset"
CollectionBeanClass="UpdateableCollection">
<ParameterInfo id="s" Type="com.flashline.registry.openapi.query.SearchTerm"
isStructured="true"/>
</MethodAccessor>
<ConstructorMethod IsCollection="true"
Type="oracle.apps.aia.oer.model.AIAAsset"
BeanClass="oracle.apps.aia.oer.model.AIAAsset"
id="AIAAsset"/>
</JavaBean>
Then, in application user interface project, I created a JSPX page. From the data controls palette, I want to drag and drop the searchAsset3 onto my page. However, I don't see an option for me to choose "Create -> Parameters -> ADF Parameter Form". I only see "Create -> Methods". Unlike other public methods (e.g.searchAssetSummary and searchAsset) which have simple data type as input, I can see the "Create -> Parameters -> ADF Parameter Form" option when I drag and drop to my jspx page. Is that something I missed while creating data controls?
Thanks.
Arnold.Then, my other question is how do you do the bindings? I drag and drop the attributes from SearchTerm bean. Now the pagedef file has the AttributeValues added but my method is actually expecting one input parameter of type SearchTerm. How do you bind the attributes to the input of the method? Thanks.
See below of my pagedef xml file.
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="11.1.1.53.62" id="SearchAssetBySearchTerm1PageDef"
Package="oracle.apps.aia.oer.view.pageDefs">
<parameters/>
<executables>
<variableIterator id="variables"/>
<methodIterator Binds="SearchTerm.result" DataControl="AIAAsset"
RangeSize="25"
BeanClass="com.flashline.registry.openapi.query.SearchTerm"
id="SearchTermIterator"/>
</executables>
<bindings>
<methodAction id="SearchTerm" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="SearchTerm"
IsViewObjectMethod="false" DataControl="AIAAsset"
ClassName="com.flashline.registry.openapi.query.SearchTerm"
ReturnName="AIAAsset.methodResults.SearchTerm_AIAAsset_SearchTerm_result"/>
<attributeValues IterBinding="SearchTermIterator" id="key">
<AttrNames>
<Item Value="key"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="SearchTermIterator" id="operator">
<AttrNames>
<Item Value="operator"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="SearchTermIterator" id="value">
<AttrNames>
<Item Value="value"/>
</AttrNames>
</attributeValues>
<methodAction id="searchAsset3" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="searchAsset3"
IsViewObjectMethod="false" DataControl="AIAAsset"
InstanceName="AIAAsset.dataProvider"
ReturnName="AIAAsset.methodResults.searchAsset3_AIAAsset_dataProvider_searchAsset3_result">
*<NamedData NDName="s"*
NDType="com.flashline.registry.openapi.query.SearchTerm"/>+
</methodAction>
</bindings>
</pageDefinition> -
Can't create Data Set from BI analysis
Hi,
I use BIP 11g and I want to create new Data Set based on Oracle BI Analysis. But when I choose my analysis (query) in BI catalog and click Ok button it show me Processing.. and then... nothing happends (Browser still show me window Create data set - Oracle BI Analysis )
So I can't create Data Set from BI analysis.
Is there anybody who made this well?
Any one has idead on how to resolve this?
Thanks,
DmitryHi,
Could you explain how you solved this issue. I am having the same problem but I am not using cyrilic symbols.
Regards. -
Problem in creating DATA Model from SQL SERVER 2008 in BI PUBLISHER
Dear Team,
I connect BI Publisher with SQL SERVER 2008 But On creating Report on BI,when we create data model...dataset,
i select the tables but when i click on RESULT i am geting this error.
error--
[Hyperion][SQLServer JDBC Driver][SQLServer]Invalid object name 'DBNAME.DBO.TABLE'.
please resolve this problem...
Thanks,
Him
Edited by: h on Aug 22, 2011 6:31 PMHi David,
The things I said are not a fix for this problem.
If your RCU installation worked, then you do not have to worry about modifying the createfr.sql.
Edit:
I've just tracked the problem. It appears that when using the query builder, BI forgets to add the " sign.
For example:
This query will give the hyperion error.
select "table"."field"
from "database.user"."table"
To correct it write it like this:
select "table"."field"
from "database"."user"."table"
Edited by: EBA on Nov 14, 2011 10:21 AM -
Is it possible to create data control from wsdl when complextype is used
Getting DCA-40015 error when trying to create a data control from WSDL file.
The error clearly says complextype is not supported . just trying to see if there are any workarounds . because creating data control will save time in developing user interface by dragging and dropping the the data control in jsf page. jdeveloper webservice tester is able to create user interface for me based on wsdl when i run it , trying to develop the user interface using jsf pages
oracle.adf.model.adapter.AdapterException: DCA-40015: Failed to create the structure for schema element "result". The complex type definition of the element is not supported.Hi,
I could reproduce what I did:
- created WebService from custom Pojo Model
- Made sure all entities implemented serializable
- In the WebServices Wizard, I created XML representations for my entities
- tested with OC4J WebServices tester
- Built ADF data control from WSDL file of deployed WebService
- Created dependency t project containing the POJO entities
- Selected result.xml of each method exposed in the WebService project
- In the structure window, selected "item" (result-->item)
- changed Bean class to my entity class name (absolute name)
This showed my entity in the DC palette
Frank -
Creating Data Source from MSsql system
Dear all,
I have created a connection between mssql server and my bi system, connection check is ok, when i create a data source and enter a table name in the db, from application server, system does not provide "proposal data" for given table.
When itry to add the column names in db, system deletes the names in the table.
Anything i am missing? Thanksalso when i try to F4 on table field on extraction tab, it gives me error message RSDS_ACCESS034 that is table names ar invalid in db, however it is not.
Diagnosis
The name of the table or view either
contains invalid character(s) or
its length is invalid or
it contains lowercase character(s).
System Response
Invalid names of tables and views are automatically removed from the selection.
Procedure
Table/view names that contain invalid characters such as @ # $ % are not supported. Furthermore, a maximum of 30 characters is allowed in table names. Lowercase characters are not supported.
If the name of the table/view you selected is not supported, create a new valid name for the table/view. -
Steps to create Data loading from Flat File to Info Cube in BI
Hi,
I am very new BW, I need some one help. When I am trying to create info source i am any pop window stating to create Transaction data or master data.
After creating Info source, I dont know how to assign this info source to source system (which i created).
When select the context menu of info source I dont have option to assign the datasource.
And one more thing is When I am creating the Info Cube. I cant understand how to create.
Please some one help me how to map the fields to Source system.
Regds
Dave.Hi,
For flat file upload, first you need to create the source system.
Then you need to create the infosource based on the format of the flat file you are going to upload or vice versa depending on your requirements.
Once your infosource is ready, right click on it and select assign datasource. Here you can assign your flat file datasource. Then create an infopackage and give the path from where the file is to be upload to BW (in the infopackage).
Also look at the thread below for procedure on flat file upload :
http://help.sap.com/saphelp_nw04s/helpdata/en/8e/dbe92341c84242be2c7d3917f1c197/frameset.htm
Cheers,
Kedar -
BI Publisher throwing error when creating data model from Oracle BI Answers
I'm having issues creating BI Publisher Datamodel using BI EE as a source. When i select the answer and put the inforamtion needed and hit OK ....it's start doing soehting and then it get there ....
In the logs:
It is weird that the Logs is having a message saying that path was not found "/users/mpoler/Data Model without Title.xmd"/_datamodel.xmd
Any clue on what is going on?
Thanks!
MatiasCan you try using a different account to run this report, if possible use someone from a different Application role.
The last Time I saw something similar was when the integration between BIP and Analysis was done incorrectly and a few roles were missed.
Letus know what you find out.. -
Creating xml file from fields of a fmb
Hi,
What i want to do is to create a "generic" button (which can work for all forms of my application) which ables the application to create a xml file completed with all fields on my form. The matter is that i can't know by advance all fields of my 1100 forms!
Is there a solution?
Kind regards
PS: i have forms6 but soon forms10
PS2: sorry for my poor englishHello,
It is easy to loop through all items of a form.
Have a look at the Dynamic Color Customization white paper on OTN. get the sources code and study the COLOR.PLL functions.
http://www.oracle.com/technology/products/forms/pdf/10g/community_colors.zip
Francois -
How to creat Data source from Multiple Tables in SAP BI ?
Hi Experts,
1. For Finance & Payments MIS tables are u2013 BSEG, BSIS,BSAS,PYAR ,BKPF
2. For Inventory tables are : MSEG MKPF.
3. For Invoices MIS tables are - RBKP & RSEG.
4. For Taxation MIS tables are u2013 J_1IEXCHDR, J_1IEXCDTL, J_1IPART2, J_1IPART1
5. For Master data tables are - : MARA, MAKT, LFA1, J_1IMTCHID
How to creat individual Datasource for 1.Finance & Payemnt Mis , 2. Inventory, 3. Invoices, 4. Taxation , 5. Mater data. ?Hi,
Go for the generic data sources.
1. first create the view on all the tables.
You can only use join conditions but not Union.
you can specify one table as primary table based on your requirement.
2. build the data source based on the view.
Regards,
Siva
Edited by: sivaramakrishna on Feb 2, 2012 3:54 PM -
Error While creating Data type from a XSD
Hi,
I am trying to import a XSD into my Data type. I have changed the namespace in the XSD to match that of the target namespace. I am getting the following error.
Global definition Element: http://ls.sbc.com/OMS/ProcessSalesOrderEFE004, orderRequest in the schema to be edited will be ignored
Schema to be edited defines qualified element names (elementFormDefault = 'qualified')
Could any help me out in this regard. I don't have much knowledge about XML and XSD.
Regards,
RavikanthHi Ravi,
please check once again your XSD file.
it should be like this.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://ls.sbc.com/OMS/ProcessSalesOrderEFE004, " targetNamespace="http://ls.sbc.com/OMS/ProcessSalesOrderEFE004, ">
<xsd:complexType name="DTO_Data type">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
725b8b10c99e11dc8ff3001cc43a8a68
</xsd:appinfo>
Please check the name of data type u mentioned in XSD while imporitng.
regards
mahesh.. -
Date fields and compare and get the later date of the fields
I am trying to compare these date fields and compare and get the later date of the fields
Tables are
TABCASER
TABCASER1
EVCASERS
Field
Are
TABCASER1.CASER_no
The dates are to be compared and then get the records with the highest or latest date value.
TABCASER1.CASERRECIEVEDDATE
EVCASERS.FINALEVDATES
EVCASERS.PUBLICATIONDATE
EVCASERS.PUBLICATIONDATE
TABCASER.COMPAREACCEPDATE
I have this code but I am trying to figure out what it all means.
I have several questions.
1.
1. greatest it is used here to compare right? How do I then output this ? do I store it to a var (coldfusion) ultimately , I wish to send it to a page of records
2. is it necessary to use todate? And to_date? What does this do?
3. decode, is this necessary too. What does this do? NULL?
4.
5.
6. when I do get the query results how do I send it to coldsuion and out put to a display.
Someone sent me this code.
is there abetter way of doing this? To compare the dates and store in a var to display. thanks
Here is my code below:
Greatest(
CASE
WHEN INSTR(TABCASER1.CASER_no,'-CE') > 0 THEN
decode(TABCASER1.CASERRECIEVEDDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER1.CASERRECIEVEDDATE)
WHEN INSTR(TABCASER1.CASER_no,'-ERNIE') > 0 THEN
decode(EVCASERS.FINALEVDATES,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.FINALEVDATES)
WHEN INSTR(TABCASER1.CASER_no,'-MONIE') > 0 THEN
decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
WHEN INSTR(TABCASER1.CASER_no,'-NADINE') > 0 THEN
decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
ELSE
decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE)
END
,decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE))
between TO_DATE('#dateformat(form.startDate,"mm/dd/yyyy")#','MM/DD/YYYY') and TO_DATE('#dateformat(form.endDate,"mm/dd/yyyy")#','MM/DD/YYYY')
is there abetter way of doing this? To compare the dates and store in a var to display. thanksHi
If you have date datatypes than:
select
greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
from TABCASER, TABCASER1, EVCASERS
where ...-- join and other conditions
1. greatest is good enough
2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
6. to format the date for display use to_char function with format modell as in the to_date function.
Ott Karesz
http://www.trendo-kft.hu -
Creating character variable with dynamic length
Hello Experts,
I need to send contents of an internal table via FTP in character mode,
the entire contents of a internal table is concatenated in a string(v_string) which needs to be moved to the character variable of same size say l_count = strlen( v_string ).
can anyone help me to define the character variable say of length l_count.
I have already tried creating a dynamic character variable using CREATE DATA.
eg DATA: dref TYPE REF TO DATA.
CREATE DATA dref TYPE c LENGTH l_count.
but this is not working.
Any response will be helpful.
Thanks & Regards,
Sumukh Kapoor.Hi Marcin,
Thanks for your response,
Reason i need character variable of dynamic length is because the requirement is to send data to client's Windows terminal . We already have FTP code in place and suddenly client has asked to send us data of an internal table in a single line.
I have concatenated the entire table into a string and then thought of moving the entire data from string to that character.. as the size in character goes beyond 60000 characters in many cases....
It seems this is not possible as the string cannot be converted to the data type of variable newly declared.
anyways your input was of great help.
Thanks & Regards,
Sumukh Kapoor.
Edited by: Sumukh Kapoor on Jul 26, 2010 7:56 AM -
APEND the file depending upon the source field length
Dear ALL,
Scenario is IDOC to FILE(using File Content Conversion in receiver side)
*Requirement:*
Payment Id is the field from IDOC.
1st time data for the field length is 6 digit that always end with '0' that is 6th character or 6th position '0'(this for the 1st transaction in a Day)
2nd time data for the same field length is 5 digit(this is the 2nd transaction in the same day.this can be many times)
End of the day the last transaction always the same field length should be 6 digit and end of the digit always 1.when the last transaction is over then appended files should be merged and send to target folder.
All this transactions always same file and should append.
Could you please give some idea.
Note: with out BPM.
thanks and regards
walter stephenHi Suraj
R3 TO File using file content conversion.
1st transaction to till last transaction all the file will store in local folder.As soon as the last transaction completed then the appended file file move to target folder using command line(DOS command)
Note:
all the transaction should be the same file.
File construction mode will be append.
this not merging using partner profile.
thanks and regards
walter stephen
Maybe you are looking for
-
Can I upgrade the chip and memory? if so what can I use. The system is a little too slow. Yes I have all the software to speed it up. Thanks HP 2000 Notebook PC Windows 8.1 64-bit [Edited for Personal Information] AMD E-300 APU with Radeon(tm) HD Gra
-
Navigation with Short URLs for T.Code Published in the portal()
Dear Expert We have the following issue: Requeriment: We created a report ABAP in the R/3. For this Report, the ABAP Team created a t.code ZPORTAL. For this t.code we created a service ITS in the t.code SICF, the name of this service is ZPORTAL. In t
-
How to download photos from samsung stratosphere so I can upload them on my new 5c
I can't seem to get my photos off my Samsung Stratosphere onto my computer so I can upload them onto my new 5C.
-
Management Studio Fails when added Integration Services step to SQL Server Agent Job
Hi, I have two new servers I've setup with Windows Server 2012, SQL Server 2012 SP1, Visual Studio 2012 SP4. I've previously been on SQL 2008 and VS 2008 so this is new to me. I am finding SSMS is throwing an exception on both machines when i do the
-
WPA2 security with EAP-TLS user cert auth
I am investigating the use of EAP-TLS for authenticating clients through a MS NPS radius server for WLC WLAN using WPA-WPA2 for security with 802.1x for auth-key managment. We're trying to decide whether to use PEAP and AD account authentication or r