Time characterstis format in flat file
hi all,
can any one plz tell me the how we can give the format for time characteristics in flat file..
thanks & Regards
Follow this,
For Calendar year/month - 200612
For Fiscal year/Period - 2006012
This would be the format we would specify in flat files.Hope this helps.
Similar Messages
-
Dear All,
We are in the process of creating the flat file interfaces for hierarchies to load into BW. We have few hierarchies for customer, product and few hierarchies for custom time dimensions. I would like to know the format in which we can request the master data management team to give hierarchy data in that format. Can any body guide in creating the format for flat file hierarchy to load. Meanwhile can any body tell me whether any restrictions are there in BI7 for hierarchy load from flat file. I heard as part of BI7 hierarchy load from flat file is not yet introduced, is it true.
Regards
VijayHi Chandra,
Did you check this blog? Its a step by step example
/people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
hope this can be useful too.
http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/frameset.htm
Regards,
R.Ravi -
Hi gurus,
please tellme the Hierarchy format in Flat file.
ThanQ.
Regards,
Ramesh.Hi
1.Defining the source system from which you want to load data:
Create For a flat file, choose: File System, Manual Metadata; Data via File Interface.
2.Defining the InfoSource for which you want to load data:
Create Application Component.
Create InfoSource , Direct Update
Choose an InfoObject from the proposal list, and specify a name and a description.
3.Assigning the source system to the InfoSource
Assign Source System. You are taken automatically to the transfer structure maintenance.
The system automatically generates DataSources for the three different data types to which you can load data.
Attributes, Texts,Hierarchies (if the InfoObject has access to hierarchies)
The system automatically generates the transfer structure, the transfer rules, and the communication structure (for attributes and texts).
4. Maintaining the transfer structure / transfer rules
Choose the DataSource to be able to upload hierarchies.
Idoc transfer method: The system automatically generates a proposal for the DataSource and the transfer structure. This consists of an entry for the InfoObject, for which hierarchies are loaded. With this transfer method, during loading, the structure is converted to the structure of the PSA, which affects performance.
PSA transfer method: The transfer methods and the communication structure are also generated here.
5. Maintaining the hierarchy:
Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy.
PSA Transfer Method: You have the option here to set the Remove Leaf Value and Node InfoObjects indicator. As a result, characteristic values are not transferred into the hierarchy fields NODENAME, LEAFFROM and LEAFTO as is normally the case, but in their own transfer structure fields. This option allows you to load characteristic values having a length greater than 32 characters.
Characteristic values with a length > 32 can be loaded into the PSA, but they cannot be updated in characteristics that have a length >32.
The node names for pure text nodes remain restricted to 32 characters in the hierarchy (0HIER_NODE characteristic).
The system automatically generates a table with the following hierarchy format (for sorted hierarchies without removed leaf values and node InfoObjects):
The system transfers the settings for the intervals and for time-dependency from the InfoObject maintenance. Depending on which settings you have defined in the InfoObject maintenance, further table fields can be generated from the system.
The valid from and valid to field is filled if you select Total Hierarchy Time-dependent in the InfoObject maintenance. The time-dependent indicator is activated if you select the Hierarchy Nodes Time-dependent option in the InfoObject maintenance.
6. Save your entries.
Depending on which settings you defined in the InfoObject maintenance, additional fields can be generated from the system. Also note the detailed description for Structure of a Flat Hierarchy File for Loading via an IDoc and for Structure of a Flat Hierarchy File for Loading via a PSA.
Further Steps:
Maintaining InfoPackages
Result
You have uploaded the hierarchy data for the corresponding characteristic. -
Date format in flat file is MM/DD/YYYY
I want to to change date format in flat file from MM/DD/YYYY to in info cube YYYYMMDD.
What is the step by step procedure to do this.Hi,
The date format should be YYYYMMDD in flat file.
IF the date format is not the above mentioned way, then you can change setting.
Going to System in Menu
System->User Profile->Own data.
Under Owndata you can change the date format to your requirement.
Check the below link also for detain info of coding:
Mandatory for Date field
regards
shoba -
Hi Experts,
I need to load date from flatfile. In flatfile the date format is hh:mm:ss.
I have an infoobject with type TIMS which can store only 6 CHAR length.
How is it possible to read 8 characters length in file with this info object ??
Two solutions i have is to ask for a file in hhmmss format or
the second one is to read the date with a new infoobject and write a routine to convert date to the required format in the transforamtion.
Is there any better way to handle this situation with out asking for a change in file ??Hello Narasimha,
You can perform a conversion from 8 characters to 6 characters in the transfer rules of your flat file datasource.
In the transfer rule of the infoobject (with type TIMS), do the following:
1) Create an ABAP rule code
2) Select the 8 char field in the list of source fields
3) write the following ABAP code. This converts the data from the 8 char field to 6 chars:
concatenate trans_structure-<your 8 char field here>(2) trans_structure-<your 8 char field here>+3(2) trans_structure-<your 8 char field here>+6(2) into RESULT.
Hope this helps. -
Date format in flat file of bdc
Hi Folks,
In BDC I have a flat file which has to be uploaded from a flat file and 4 users are using each of one has their date format.
so inorder to get their required date format what i need to do .Hi,
use the below logic in your code.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-031.
PARAMETERS: date1 RADIOBUTTON GROUP rad1 DEFAULT 'X', "SAP date format YYYYDDMM
date2 RADIOBUTTON GROUP rad1, "Date format like aprial31, 2006
date3 RADIOBUTTON GROUP rad1, "Date format like 31 apr,2006
date4 RADIOBUTTON GROUP rad1, "Date format like DD/MM/YYYY
date5 RADIOBUTTON GROUP rad1. "Date format like DD.MM.YYYY
SELECTION-SCREEN END OF BLOCK b2
FORM getmonth .
SELECT mnr
ktx
ltx
INTO TABLE T_month
FROM t247
WHERE spras = 'EN'.
IF sy-subrc NE '0'.
MESSAGE I "Message - Not able to get month values from the table T247
ENDIF.
ENDFORM.
DATA : temp_date(16) TYPE c,
temp1_date(60) TYPE c,
year(4) TYPE c,
daymonth(11) TYPE c,
daymonth1(11) TYPE c,
month(9) TYPE c,
day(2) TYPE c,
mon LIKE t247-ktx,
len TYPE i .
MOVE date TO temp1_date .
CONDENSE temp1_date NO-GAPS.
MOVE temp1_date TO temp_date .
IF date2 EQ 'X'. "The date format is like Aprial 31, 2007
CONDENSE temp_date NO-GAPS.
SPLIT date AT ',' INTO daymonth year.
IF STRLEN( year ) NE '4'.
error = 'X'.
WRITE : 'Invalid date format.'.
ELSE.
daymonth1 = daymonth.
CONDENSE daymonth1 NO-GAPS.
_len = STRLEN( _daymonth1 ).
l_len = 13 - len.
SHIFT daymonth1 RIGHT BY len PLACES.
CONDENSE daymonth1 NO-GAPS.
month = daymonth1.
CONDENSE month NO-GAPS.
SORT t_month BY monthltx.
READ TABLE t_month WITH KEY monthltx = month.
IF sy-subrc <> 0.
error = 'X'.
WRITE : 'Invalid date format.' .
ELSE.
len = STRLEN( month ).
CONDENSE daymonth NO-GAPS.
SHIFT daymonth LEFT BY len PLACES.
day = daymonth.
CONDENSE day NO-GAPS.
CONCATENATE year t_month-monthnumber day INTO o_date.
ENDIF.
ENDIF.
ELSEIF p_date3 EQ 'X'. "The date format is like 31 apr, 2007
CONDENSE temp_date NO-GAPS.
SPLIT i_date AT ',' INTO daymonth year.
IF STRLEN( year ) NE '4'.
error = 'X'.
WRITE : 'Invalid date format.'.
ELSE.
daymonth1 = daymonth.
CONDENSE daymonth1 NO-GAPS.
SHIFT daymonth1 LEFT BY 2 PLACES.
CONDENSE daymonth1 NO-GAPS.
month = daymonth1.
CONDENSE month NO-GAPS.
TRANSLATE month TO UPPER CASE.
SORT t_month BY monthstx.
MOVE month to mon.
READ TABLE t_month WITH KEY monthstx = mon.
IF sy-subrc <> 0.
error = 'X'.
WRITE : 'Invalid date format.' .
ELSE.
CONDENSE daymonth NO-GAPS.
day = daymonth+0(2).
CONDENSE day NO-GAPS.
CONCATENATE year t_month-monthnumber day INTO o_date.
ENDIF.
ENDIF.
ELSEIF p_date4 EQ 'X' OR p_date5 EQ 'X'. "Date format is like DD.MM.YYYY or DD/MM/YYYY
CONDENSE temp_date NO-GAPS.
IF STRLEN( temp_date ) EQ 10.
o_date0(4) = temp_date6(4).
o_date4(2) = temp_date3(2).
o_date6(2) = temp_date0(2).
ELSE.
error = 'X'.
WRITE : 'Invalid date format.' .
ENDIF.
ENDIF.
IF STRLEN( o_date ) NE '8'.
error = 'X'.
WRITE : 'Invalid date format.'.
ENDIf.
ENDFORM.
regards -
Format of flat file!!!
hello friends!!!
We are uploading opportunities in our system from a flat file. I am using LSMW with CRMXIF_ORDER_save for that. All has been the test data is working fine.
But the problem i am facing is in which format the file should be for?? in regards to item and partner function?? one opportunity can have several products and many partner functions.... does it should have a seperate field name for each item and each partner function..???
Please help its a bit urgent and also if you have a sample file please send to me on [email protected]
i hope iwas able to define my requirement clearly;
Many many thanks!!
PankajThis is now going into a general discussion please input your views.
In my opinion the flat file will have all the fields sequentially including all the items. but the problem is if the company has 50 or more products to offer then it will be a mess in the flat file having 50 items in a row and then only have value for the one product we are offering to a particular opportunity.
My question can´t we somehow break flat files?? or have some solution for this??
many thanks
Pankaj -
Regarding the format of Flat file?
Hi frndz,
I have a requirement wherein i should create a flat file with around 20 characters and a time characteristic as Fiscal year variant. Which should be loaded to master data table.
So can anyone give me the idea about
1) How to create the flat file,Which include Fiscal year variant as a column in the file?
2) What should be the order of the columns in the flat file?
3) What are the other things that i should keep in mind while creating the flat file?
Thanks in Advance.
Thanks
VinayHi ,
One more imp thing is that , if you are seperating the fields by , then in the infopackage , external tab , we need to maintain as seperator as " , " or if you are seperating the fields by " ;" , then then in the infopackage , external tab , we need to maintain as seperator as " ; " .And also we need to put 1 for the no of header rows to be ignored . And maintain Escape sign as ' " ' or "*" .
Hope this helps out
Thanks
PT -
Date format in flat file recon
Hi,
I am trying to do Flat file reconciliation but i am getting some error related to date format. I have tried format like 20 march 2009, 02-02-2010,20 Mar 2009,2010-01-01,2010/01/01
can any one please suggest me which format i need to use.
ThanksHi sunny,
I get the same error during GTC Flat file recon. "java.text.ParseException: Unparseable date: "2009/01/25"
my xl.defaultDateformat=yyyy/MM/dd hh:mm:ss z and source Date Format is given as yyyy/MM/dd(2009/01/25) and the date format in my flatfile is given as yyyy/MM/dd. But i still get this error.
I also tried with the following dates in flatfile
2009/Mar/25
2009/01/25
2009/March/25
Did I miss anything here!
Thanks -
How to prepare the Format of Flat file(Excel or Text file) for sales order
Hi All,
My requirement is to prepare the Flat File formats(Excel or Text file) for sales order Conversion using BAPI by COB.
Needed Sample Excel or Text flat file .
Thanks for all.
Regards,
Chowdary
Moderator message : Search for available information. Thread locked.
Your similiar question [Flat files formats|Flat files formats] has been already locked for similiar reason. Read forum rules before posting.
Edited by: Vinod Kumar on Jul 8, 2011 9:36 AMHi,
You can use something like this:
switch(cell.getCellType()) {
case Cell.CELL_TYPE_STRING:
System.out.println(cell.getRichStringCellValue().getString());
break;
case Cell.CELL_TYPE_NUMERIC:
if(DateUtil.isCellDateFormatted(cell)) {
System.out.println(cell.getDateCellValue());
else {
System.out.println(cell.getNumericCellValue());
break;
case Cell.CELL_TYPE_BOOLEAN:
System.out.println(cell.getBooleanCellValue());
break;
case Cell.CELL_TYPE_FORMULA:
System.out.println(cell.getCellFormula());
break;
default:
System.out.println();
Hope it helps,
Daniel -
Changing time stamp format in the file receiver adapter file name
Hi all,
How can we change the standard date time stamp from
filename_yyyymmdd-hhmmss-mil
to
filename_yymmdd_hhmmss
i.e., I want "underscores" instead of "hyphens" and also I do not want the MilliSeconds.
I read in the forums that I have to use the combination of variable substitution and mapping functions to do this, but not sure how exactly.
Can the experts help me with this please?
Many thanks.Hello Ramesh,
You can make this possible using runtime filename creation using UDF.
Please go though the below steps.
Message mapping:
Create an UDF and include the piece of code that captures the Filename and Timestamp from source side via ASMA.
Modify them according to our requirement by adding the <Timestamp> at the end of <filename> with _.
Map the UDF to any of the top level node so that the modified filename will be available for the target communication channel
UDF Code is:
try {
String filename = "";
String timestamp = "";
DynamicConfiguration conf1 = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
DynamicConfigurationKey key2 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","SourceFileTimestamp");
filename = conf1.get(key1);
timestamp = conf1.get(key2);
filename = filenametimestamp".xml";
filename = filename.replaceAll( "-" ,"_" );
conf1.put(key1,filename);
return filename;
catch(Exception e)
String exception = e.toString();
return exception;
Click on Advanced tab and check the Option u201CSetAdapterSpecificMessageAttributesu201D in addition to that check the attribute that are required to be captured during run time. In our case File Name and Source File Time Stamp are required to be checked
In the receiver communication channel Mention u2018 * u2018as File Name Scheme.
Click on Advanced tab and check the Option u201CSetAdapterSpecificMessageAttributesu201D in addition to that check the attribute u201CFile Nameu201D which will carry the modified value in the UDF .
i hope this will help you.
Monica -
Font formatting for Flat file generated in PI
Hi,
We have a File receiver scenario in PI wherein we are generating a Flat file. While creating the file, the font needs to be of specific font type and size
eg:
Pyramid u2013 Lucida Console (Size 10)
Aspheria u2013 I5_10N (Size 10)
Is there any way this can be configured or implemented in PI?Hi ,
This requirement we can achieve using XSLT Mapping,we can define the font size in mapping program it self,select output method in xslt program as TEXT,no need of any file content conversion in Receiver Communication channel.
refer this link how to uses the methods for font sizes.
http://www.xml.com/pub/a/2001/01/24/xsl-fo/
Regards,
Raj -
Format of flat file to load to ODS
Good morning
Please give me guidance in the following?
1) I will received this from the user and need to develop the ODS and thereafter use the target and payout % with sales figures in reporting:
Target <80% =>80% =>90% =>100%
Payout Dealer group A 0.10% 0.20% 0.35% 0.50%
Payout Dealer group B 0.10% 0.20% 0.40% 0.60%
The above information must be loaded via a flat file to the ODS. What should the columns in the flat file look like? Do I create an InfoObject for each target and payout percentage? I do not really want to use Update rules or routines as the user wants to create the CKF's or RKF's himself, but want to keep it as easy as possile for the user to report on these figures and percentages.
Your assistance will be appreciated
Thanks
Cj FaurieHi Cj,
According to the requirements what u Hav written ,these key figures are not calculated one ,then u can make a flat fileusing comma as separator such that your file looks like:
Target %,Payout Dealer Group A %,Payout Dealer Group B %,
80,0.10,0.10
90,0.20.0.40
so on
Hope this helps,
Regards,
Baksh -
To change "package" file format to "flat" files for iDisk
First, let me thank Yvan Koenig for providing a great script to convert "Word2Pages"...
There is a problem at present discussed on the MobileMe forum page, with files not uploading to iDisk using Finder. One problem is that whereas "flat" files load, "package" files do not. (There is a choice in the Pages Preferences for these options.) This limitation also applies to emailling files.
I used Yvan's "Word2Pages" batch conversion script for hundreds of files which saved me days of work. However, to load these onto my iDisk I need to convert them to "flat" files.
Please can I humbly ask him to write a similar script for converting files from "package2flat". I am not so advanced as he in computer literacy and would surely appreciate his help.
Message was edited by: putnikYvan,
Thank you finding a solution to the default setting. I wonder how many Pages 09 files have been produced as packages with umpteen subfolders for things that will never be used. No wonder my Finder kept on crashing when I tried to upload to my iDisk.
I have written a bug report to Apple via Pages so hope they will change the default setting for "Copy Audio and Movies to the Document".
I am puzzled about your Word2Pages script still producing "package" files even after making the changes to default values that you describe. Could it be that the code is calling up old default values from somewhere else. There seems to be a plist in the Application folder and another in the User library.
Is this the relevant piece of code?
on getPlistValue(valName, default)
local thePlist, u
set thePlist to (path to preferences folder as Unicode text) & "com.apple.iWork." & theApp & ".plist"
tell application "System Events"
if exists file thePlist then
tell contents of property list file thePlist
try
set u to (value of property list item valName) (* Unicode Text *)
on error (* Here if Numbers never saved with the new preferences file. *)
set u to default
end try
end tell -- to contents of…
else (*Here if there is no preferences file. *)
set u to default
end if
end tell -- to system events
return u
end getPlistValue
Well I am trying to learn Applescript but not finding it easy.
Message was edited by: putnik -
Revaluate data record at the time of loading from flat file or BI Cube
Hello Friends,
I want to revaluate a data record at time of loading using Transformation or Conversion File, based on some condition.
Like, I have a rule to identify that a record is supposed to be multiplied by -1 or not.
For example,
*if (ID(1:5) = str(00070) then(Record-1)
ID(1:5) = str(00071) then (Record-2)
Can you please guide me how can I achieve this by using Transformation file or Conversion file?
Regards,
Vishal.Hi Nilanjan,
Thanks for reply.
I tried the script you suggested in conversion file for Account.
But It is not working for me.
Even I tried simple multiplication and also addition in Formula column it is not working.
External --> *
Internal --> *
Formula ---> Value * -1
Above conversion file for Account was not working for me.
then I tried
Formula --> Value + 100
It also did not work for me.
Kindly suggest if I am doing anything wrong in above file.
Thanks,
Nilanjan.
Maybe you are looking for
-
Why would I get ReferenceError #1065: "Variable title is not defined."
Well of course it's not defined. It's a dynamic class, and strict mode compilation is turned off so that I don't have to declare the property to compile it. I've created a library item named "Page" with a single TextField instance named "title". Pag
-
Question about automatic payment program
Hi Experts, Need your help to solve below issue. Compmnay code "1111" is central compasny code,which is making payments to vendor "dddd" through automatic payment program on behalf of other company codes(2222 and 3333). Issue1:Company code "1111" has
-
My iphone 5 turns itself off even with full charge
My iPhone 5 turns itself off even with a full charge. Any help would be appreciated.
-
Text disappearing and reappearing InDesign CC
Hi there, this being my 1st post please excuse any errors in eticate... I have an issue within InDesign CC when editing text in text boxes. Intermitently it seems that when highlighting text it seems to dissapear before oyu can edit it, BUT it is in
-
HP Pc 3010 Microtower VN 969EA - Hard Disk Reporting failure
The folloing hard disks reporting failure - Disk nameT3320418AS ATA Device volume C:\ D:\ E:\