Flat file load - filename in updaterule/transferrule
Hi there
I am working on a solution where i need to use a part of the file name to include it in the transfer structure or update rule. The filename contains a date which is to be used as a version concept.
Is there a table where i can select this information during loadtime?
Chris
hi Chris,
this is the 'how to' get the table name :
go to any infopackage with flat file upload, tab 'external data', cursor position on the box contains file path, press F1, will come out 'performance assistant' screen, click on 'technical info', in the next screen, see for Field Data : 'Transparent tabl' and 'Field name'. there table RSLDPSEL and field name FILENAME.
in this case, the table is transparent table(straight forward), if not transparent table then may take more effort or even unable to get the where the data filled.
with se16 view table RSLDPSEL, get another info LOGDPID may be neeeded, LOGDPID = Infopackge technical name.
since the file path name may contains "\", in your routine you may need abap statement "SPLIT AT \" to get the file name only.
can consider to make such name convention for file name and date always take current date (sy-datum) then can simplify the procedure ?
Similar Messages
-
Flat File loading Initialize with out Data transfer is disabled in BI 7.0
Hi experts,
When loading through flat file in BI 7.0 for Info Package Level Initialization Delta Process with data Transfer is coming by default,but when i want to select Initialization Delta Process without Data transfer is disabled. (in the creation of Data Source (flat file) in the Extraction Tab Delta Process is changed to FIL1 Delta Data (Delta Images).
please provide me Solution.
regards
Subba reddy.Hi Shubha,
For flat file load please go throught he following link:
http://help.sap.com/saphelp_nw70/helpdata/EN/43/03450525ee517be10000000a1553f6/frameset.htm
This will help.
Regards,
Mahesh -
What are the settings for datasource and infopackage for flat file loading
hI
Im trying to load the data from flat file to DSO . can anyone tel me what are the settings for datasource and infopackage for flat file loading .
pls let me know
regards
kumarLoading of transaction data in BI 7.0:step by step guide on how to load data from a flatfile into the BI 7 system
Uploading of Transaction data
Log on to your SAP
Transaction code RSA1LEAD YOU TO MODELLING
1. Creation of Info Objects
In left panel select info object
Create info area
Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
Create new characteristics and key figures under respective catalogs according to the project requirement
Create required info objects and Activate.
2. Creation of Data Source
In the left panel select data sources
Create application component(AC)
Right click AC and create datasource
Specify data source name, source system, and data type ( Transaction data )
In general tab give short, medium, and long description.
In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
In proposal tab load example data and verify it.
In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
Activate data source and read preview data under preview tab.
Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
3. Creation of data targets
In left panel select info provider
Select created info area and right click to create ODS( Data store object ) or Cube.
Specify name fro the ODS or cube and click create
From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
Click Activate.
Right click on ODS or Cube and select create transformation.
In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
Activate created transformation
Create Data transfer process (DTP) by right clicking the master data attributes
In extraction tab specify extraction mode ( full)
In update tab specify error handling ( request green)
Activate DTP and in execute tab click execute button to load data in data targets.
4. Monitor
Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used.
Loading of master data in BI 7.0:
For Uploading of master data in BI 7.0
Log on to your SAP
Transaction code RSA1LEAD YOU TO MODELLING
1. Creation of Info Objects
In left panel select info object
Create info area
Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
Create new characteristics and key figures under respective catalogs according to the project requirement
Create required info objects and Activate.
2. Creation of Data Source
In the left panel select data sources
Create application component(AC)
Right click AC and create datasource
Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
In general tab give short, medium, and long description.
In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
In proposal tab load example data and verify it.
In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
Activate data source and read preview data under preview tab.
Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
3. Creation of data targets
In left panel select info provider
Select created info area and right click to select Insert Characteristics as info provider
Select required info object ( Ex : Employee ID)
Under that info object select attributes
Right click on attributes and select create transformation.
In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
Activate created transformation
Create Data transfer process (DTP) by right clicking the master data attributes
In extraction tab specify extraction mode ( full)
In update tab specify error handling ( request green)
Activate DTP and in execute tab click execute button to load data in data targets. -
Hi Friends,
I am struggling with flat-file loading problem. I am trying to load a .csv file into data target. I took all pre-cautions while loading data. I look into preview and simulate the data. Everything is ok, but when i schedule the data, i found 0 records in the monitor. The following is the STATUS message of the above problem:
No data available
Diagnosis
The data request was a full update.
In this case, the corresponding table in the source system does not
contain any data.
System response
Info IDoc received with status 8.
Procedure
Check the data basis in the source system.
Can anybody help me what is the problem and procdure to resolve it?
Regards,
MaheshHi Eugene,
Thanks for the quick reply. The following screen-shot tells you the messages of detail tab;
OVER ALL STATUS MISSING WITH MESSAGES OR WARNINGS
REQUEST: MISSING MESSAGES
EXTRACTION
EVERYTHING IS OK
DATA REQUEST RECEIVED
NO DATA AVAILABLE DATA ELECTION ENDED.
PROCESSING
NO DATA
The above message was shown in details tab. Pls guide me to locate the problem.
Regards,
Mahesh -
Transformation not generating-Flat file loading
Hello guys, I hope you can help me with this little confusion I have on BI7 Flat file loading.
I got a File (CSV) on my workstation. I am trying to load Master Data. Here is the example of my file and issues:
Lets say, I have CSV file named "CarModel.CSV" on my PC.
This excel file has 10 Records and No atributes for this Field.
So the records should show like this and it is showing correctly in PSA level, DS level.
A
B
C
D
E
F
My goal is to load Flat file data to InfoObject (inserted in Infoprovider)
I created Source system, DS, all thats stuffs.
I am now on Display DS screen under Proposal Tab. I am putting 10 Records to show and hitting Load example data....it works fine by showing all 10 records. However in the bottom part of this screen, what should show as a Field ?In my case , First it was showing the First Record ("A")...i didnt think it was correct but i prceeded anyways. Transformation could not be generated.
I tried by deleting "1" from the field "No. of header rows to be ignored" and its the same result ..No transformations.. I mean i know its very simple to load this data but i am not sure what i am doing wrong..My question is:
1) What should show under Field/propasal tab in my case?am i supposed to create this Field?
2) Should the system to propse the field which is from my flat file header ?in my case i dont have any header..should i have include header in my csv file like "car model"? i am confused please give me some info thanks
dkHi,
In filed tab, u have to enter ur infoobject names in an order...and press enter it'll automatically give the description and its other factors...
i guess u shuld have some header in the sense eg: customer,cust ID like this..this only u have to enter as fields...in proposal tab...try that
rgds, -
Best practise around handling time dependency for flat file loads
Hi folks,
This is a fairly common situation - handling time dependency for flat file loads. Please can anyone share their experience around handling this. One common approach is to handle the time validity changes within the flat file where it is easily changeable by the user but then again is prone to input errors by the user. Another would be to handle this via a DSO. Possibly, also have this data entered directly in BI using IP planning layouts. There is a IP planning function that allows for loading flat file data but then again, it only works without the time dependency factor.
It would be great to hear thoughts or if anyone can point to a best practise document for such a scenario.
Thanks.Bump!
-
Unit Code, Commercial Code - Flat File loading vs BPS Loading
Hi SDN Community,
Recently, we have moved our flat file loading to be performed by BPS interfaces.
During flat file loads, the Commercial code of all units of measures, are verified.
eg.DAY
But when loaded by BPS, the UNIT code is verified.
eg. TAG.
In the display of the BPS upload, it displays DAY which is the commercial code.
The only thing, is the customer is forced to use TAG in the BPS upload files.
They wish to create another record in the transaction
CUNI to be
Unit code = DAY
Commercial code = DAY.
However, i have found that we cannot allocate the same commercial code to another unit code.
Is this a design constraint, or a process error that i am doing.
Thank you.
Simon04.01.2010 - 02:22:53 CET - Reply by SAP
Dear customer,
As i do not fully understand how this works, but the base table T006A
has 2 entries, 1 for english, 1 for German, should it not be that the
English EN entry field be working rather that the German DE, hence DAY
should be used? Can you please confirm my understanding on this?
>>> If you check my attachment "SE16.xls", you can see that it's for
language >>English<<, and the internal format is TAG while the external
format is DAY.
- Are there any plans to modify the BPS functionality in newer SAP BW
versions to allow the customer to indicate the same UOM as per flat
file laods? Or is an upgraded Support Pack that allows this?
- If not, would it be possible to make any customer enhancements to
allow this to take place depending on customer requirements.
>>> There is no plan at this moment to change this BPS functionality
in newer SAP BW versions or support packages.
We really recommend you to use internal format TAG in the upload file
in BPS which I think should be acceptable and feasible to you. All
other ways trying to use external format is risky and we cannot assure
you that it will work well as it's not SAP standard function. (I think
it's not worth the risk as the standard function which requires
internal format should not be too unacceptable)
Thanks for your understanding.
I also don't think my BC-SRV-ASF-UOM colleague would be able to help
you a lot regarding this.
Best Regards,
Patricia Yang
Support Consultant - Netweaver BW
Global Support Center China
SAP Active Global Support -
One Time Flat File load in a Cube that extracts from ECC
Hi,
I have a cube that is already extracting data from ECC on a daily basis. I am asked to load some historical data into the cube from their legacy system. My question is, how do i prepare that file from the legacy system to match the fields in the Cube? What are the technicalities that i need to look at?
For Example:
0MATERIAL in the Cube: Material Number in the Flat File
ZAMOUNT in the Cube: Cost of Product in the Flat File
How do I arrange to match these?
ThanksHi
Create DS and enter the required objects
Preview the Data
Create Transformations (Map DS fields to Targets Objects - direct assignemnt)
Create Infopack and extract data upto PSA
Create DTP and run - it will extract data from PSA to Target
No of Heade rows to be ignored : 1
File type : CSV
Data seperator : ;
Escape Sign: "
Thanks, -
Error while creating process chain for flat file loading
Hi All,
I had Created a process Chain to load Transactiion data(Full load) form flat file which is in my computer.
start>Load>DTP>DeleteIndex>DTP loading CUBE--> Create Index
but the system is throwing an error as "An upload from the client workstation in the background is not possible."
I dont know why this error is coming?
Can some one help me
Regards
MamtaHi Mamta,
Basically if you want to load the DS through FF using process chain, the FF has to be placed in Application server. We cant load the FF when it is located in the client local workstation(FF On your PC).
So better you remove the Infopackage step from the PC. Load the IP manually. Once it is completed you can start the process chain with the following steps:
start>DTP>DeleteIndex>DTP loading CUBE> Create Index
Hope it is clear & helpful!
Regards,
Pavan -
Hi Experts,
I am loading data from Flat File to DSO.I got the following error while activating Data in DSO.
"No SID found for value ' 0500136A' of characteristic 0MAT_SALES"
I have checked in Material sales master data I have the value 0500136A in .If you see above error it showing some space in front of 0500136A.I am not seeing that space in master data.I was edidted again and loaded to DSO and activated Then I got same error.Is it problem with Excel File formatting related.Pls through some light onthe issue.
Thanks,
Suryam.Hi All,
Thank you.
Khaja,
I got the data upto PSA is fine and I am able to load the data in to DSO but I got the error while activating DSO
Ashok,
I loaded master data before loading Transactional data.May be it problem with file format.How can I check these format issues.
Brian,
We are using Transformation in BI7.0.I tried put conversion in DataSource level i.e Alpha for the field.But still I am getting same error.
Pls advice me on the above issue.
Thanks,
Suryam. -
Regarding flat file load to DSO...
Hi Experts,
I am trying to load transaction data from flat file to DSO in BI7.0 that comprises two characteristics and one keyfigure. The characteristics type is char and keyfigure's type is int. Till PSA, data is fine. In transformation, I have just done one-to-one mapping with source field and target field, but while executing DTP, the error popped up as follows,
Data package 1:Errors during processing
Extraction completed, processing termination
Please help. I tried various combinations, but not able to schedule. Valuable answers would be awarded remarkably.
Thanks,Hi there...
Here are some ideas to Ur problem
Assuming that u defined info objects correctly, length and types... and u mapped transformations correctly
And ur data in flat file is absolutely correct...
Of course very common but suggestible is plz check the data lengths in flat file and defined length of the info object.. If yes
Come to Data source and check the settings for the flat file ,separater and escape sign and rows to ignored..and check the data preview...
Plz compare the data in PSA and Flat file... plz do this very carefully... If yes...
Go to data source and at the FIELDS tab and check whether u assigned info objects correctly...if yes...
Check the conversion routines in the same screen of the tab FIELDS.. if for key figure u see PER16.. Remove it and try to load to PSA and do load the cube..
Hope this can give u an idea...
Regrds...KP -
Issue in Flat File load through FTP set up
Hi All,
I am trying to load the flat file using FTP set up ( through process chain ).
I put a file in the FTP server, the file is being picked up from the FTP server but I cannt see the same in Interface file manager (ZIFM) under unfinished or comleted jobs.
I am not able to understand where is the eror?
any suggestion for this would be of great help.
regards
Amol
Edited by: Amol Jaiswal on Nov 8, 2008 12:33 PMi don't get you.
You are trying to FTP a file to your application server in your process chain; is that correct?
Marco -
Issue with flat file loading timing out
Hello
I have a scenario, where I am loading a flat file with 65k records into a cube. The problem is, in the loading process, I have to look up the 0Material table which has a million records.
I do have an internal table in the program, where I select a subset of the Material table ie around 20k to 30k records. But my extraction process takes more than 1 1/2 hrs and is failing (timed out).
How can i address this issue? I tried building indexes on the Material table and its not helping.
Thanks,
Srinivas.Unfortunately, this is BW 3.5, so there is no END routine option here. And I tried both .csv and notepad file methods, and both are creating problems for us.
This is the total code, do you guyz see any potential issues:
Start Routine (main code)
refresh i_oldmats.
refresh ZI_MATL.
data: wa_datapak type transfer_structure.
loop at datapak into wa_datapak. (** I collect all the old material numbers from my flat file into an internal table i_oldmats**)
i_oldmats-/BIC/ZZOLDMATL = wa_datapak-/BIC/ZZOLDMATL.
collect i_oldmats.
endloop.
sort i_oldmats.
SELECT /BIC/ZZOLDMATL MATERIAL (** ZI_MATL only has recs. where old materials exist, this gets about 300k records out of 1M**)
FROM /BI0/PMATERIAL
INTO ZI_MATL FOR ALL
ENTRIES in i_oldmats WHERE
/BIC/ZZOLDMATL = i_oldmats-/BIC/ZZOLDMATL .
collect ZI_MATL.
Endselect.
Sort ZI_MATL.
Transfer rule routine (main code)
IF TRAN_STRUCTURE-MATERIAL = 'NA'.
READ TABLE ZI_MATL INTO ZW_MATL
WITH KEY /BIC/ZZOLDMATL = TRAN_STRUCTURE-/BIC/ZZOLDMATL
BINARY SEARCH.
IF SY-SUBRC = 0.
RESULT = ZW_MATL-MATERIAL.
ENDIF.
ELSE.
RESULT = TRAN_STRUCTURE-MATERIAL.
ENDIF.
Regards,
Srinivas. -
Urgent: Flat file load issue
Hi Guru's,
Doing loading in data target ODS via flat file, problem is that flat files shows date field values correct of 8 characters but when we do preview it shows 7 characters and loading is not going through.
Anyone knows where the problem is why in the preview screen it shows 7 characters of date when flat file has 8 characters.
Thanks
MKHi Bhanu,
How do i check if conversion is specified or not and another thing is it is not just one field we have 6 date fields and all of them are showing 7 characters in PSA after loading where as flat file have 8 characters in all of the 6 date fields.
In PSA I checked the error message it shows 2 error messages:
First Error message:
The value '1# ' from field /BIC/ZACTDAYS is not convertible into the
DDIC data type QUAN of the InfoObject in data record 7 . The field
content could not be transferred into the communication structure
format.
em Response
The data to be loaded has a data error or field /BIC/ZACTDAYS in the
transfer structure is not mapped to a suitable InfoObject.
The conversion of the transfer structure to the communication structure
was terminated. The processing of data records with errors was continued
in accordance with the settings in error handling for the InfoPackage
(tab page: Update Parameters).
Check the data conformity of your data source in the source system.
On the 'Assignment IOBJ - Field' tab page in the transfer rules, check
the InfoObject-field assignment for transfer-structure field
/BIC/ZACTDAYS .
If the data was temporarily saved in the PSA, you can also check the
received data for consistency in the PSA.
If the data is available and is correct in the source system and in the
PSA, you can activate debugging in the transfer rules by using update
simulation on the Detail tab page in the monitor. This enables you to
perform an error analysis for the transfer rules. You need experience of
ABAP to do this.
2nd Error Message:
Diagnosis
The transfer program attempted to execute an invalid arithmetic
operation.
System Response
Processing was terminated, and indicated as incorrect. You can carry out
the update again any time you choose.
Procedure
1. Check that the data is accurate.
- In particular, check that the data types, and lengths of the
transferred data, agree with the definitions of the InfoSource,
and that fixed values and routines defined in the transfer rules
- The error may have arisen because you didn't specify the
existing headers.
2. If necessary, correct the data error and start processing again.
Thanks
MK -
FLAT FILE LOADING INTO TRANSACTION CUBE
Hi Guru's,
I'm working on bps to load flat file into trasaction cube.
when i'm actiavting init Functin module, i'm getting the following error.
'IS NO COMPONENT EXIST WITH THE NAME PARNM'.
THE ERROR IS COMING WHEN THE FM IS READING FILE NAME.
tHANKS IN ADVANCE.Hi Vijay,
Just check Function Module Parameters:
IMPORT: I_AREA TYPE UPC_Y_AREA
I_PLEVEL TYPE UPC_Y_PLEVEL
I_PACKAGE TYPE UPC_Y_PACKAGE
I_METHOD TYPE UPC_Y_METHOD
I_PARAM TYPE UPC_Y_PARAM
IT_EXITP TYPE UPF_YT_EXITP
ITO_CHASEL TYPE UPC_YTO_CHASEL
ITO_CHA TYPE UPC_YTO_CHA
ITO_KYF TYPE UPC_YTO_KYF
EXPORT: ETO_CHAS TYPE ANY TABLE
ET_MESG TYPE UPC_YT_MESG
Maybe you are looking for
-
Me and my sister have shared some songs and we got a new laptop and ive tried to sync all of my songs onto the laptop but it tells me that i am not authorized although i am. This has been going on for a very long time and i cant find the answer anywh
-
How do i connect an external usb webcam to my macbook air running OSX Yosemite
i have purchased a bird box with an external USB spy cam. My macbook isn't recognising it. i have downloaded VCR software as recommended by the manufacturer, but it doesnt matter if i open that software or photo booth it only gives the option of the
-
Hi, I have a DT with Recordset (0..unbounded). using File content conversion converting xml to txt file. In CC parameters have used fieldFixedLengths and gave lengths. The source file is not placed in source directory. When checking in CC monitoring,
-
i have a 27inch mac and recently upgraded to operatiing system 10.09. i game d3 and while playing the game it freezes sometimes and then shuts down the computer and restarts for no reason. sometimes with minutes, other times its after many hours. Any
-
I have just set up a kodak 7.1 printer on our home wifi system, our Mac works fine but how do set up my iPad2 to print using the same wifi system, both the ipad @ printer are on the same system. Thanks for your help Judith