Plan input with flat file
Hello,
This post is about entering the costs plan to SAP through a flat file. The costs plan shall be per Cost Element, Cost Center and Month. Tcode KP06 enables to key the plan manually, however since there are many figures to consider, I was looking for a way to send the plan to SAP with a flat file. Is it possible to do so?
Thanks for your help
Stan B
Yes, It is possible to enter the plan data from a flat file.
There are two methods:
1) Using the excel upload method
2) Writing an ABAP and using the planning BAPIs.
If uploading frequently, or, you are using over about 1500 cost center/cost element/activity type combinations, then, I would suggest option number 2.
Number 1 involves:
- setting up the planning layout to accomodate the upload.
- setting the planning profile to allow excel inplace and upload
- saving a 'master' copy of the excel
- entering the plan in excel
- executing KP06 and uploading the data
OSS Note 489867 - KP06 and following: Setting up an Excel upload
Has an excellent desciption of the process for setting this up.
Number 2 will require an ABAP programmer and use one or more of the following BAPI methods:
- PostActivityInput (this related to KP06 type of data input)
- PostPrimCost
- PostKeyFigure
Hope this helps you to get started.
Cheers!
Rick
Similar Messages
-
How to built a hierarchy with flat file?
Hi Experts,
for a better representation of the report, i need to built a hierarchy with flat file.
The Data load is via Flat file.
Do you have some documentation about that?
Thanks
Cheers
GiloHi Gilo,
Check these docs...
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb">How to Download a Hierarchy to a Flat File</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm">Uploading Hierarchies from Flat Files</a>
<a href="http://sapbwneelam.blogspot.com">More Docs...</a>
Hope it Helps
Srini -
Working with flat file as source in owb 10.2
Hi,
I am working with flat file as source . While validating the mapping i am getting the following error like
" to specify a data file configure the mapping , add a node under ' Source data file', type in the file name
and select the file location."
Please give me the suggestion . It is very urgent.Hi Venkat,
I tried the following stepts.
1. in Design Center select your mapping and right click and select configure
2. select sql loader data files and select create
3. On right hand side data file Name : enter your source file name (ex : source.csv)
4. click ok button.
5. open mapping and validate.
The mapping is validating. After validating I deployed the mapping. Up to this the mapping is working fine.
But when I start the mapping, It has completed with errors.
The error message is:
Status
Error Log
RPE-01013: SQL Loader reported error condition, number 1.
LRM-00112: multiple values not allowed for parameter 'control'
Job Summary
Updated : 2009-02-24 15:32:43.0 Job Final Status : Completed with errors Job Processed Count : 1 Job Error Count : 1 Job Warning Count : 0
Please give me the suggestions.
Thanks,
Venkat -
Plz send simple bdc code with flat file which is executable
plz send a simple code for upload bdc with flat file which is executable.
plz send a simple code for upload bdc with flat file which is executable.
-
Hi people, Anybody has a example how it works Key range with Flat file ? Tks
Hi All, I have one scenario to read the source file . The file delimiter is '|' . The no of pipeline for each line is 17. So if a line containing more than 17 , send an error email. For this first i am printing tota pipeline in ecah line to afile called pipelinecount.txt . Then i will read this file and send each value to while loop /for loop , where it will get > 17 , it will exit the process and send an email. But here in script i am getting error at while line. Could anyone help. #! /bin/kshset -x SOURCE_DIR=/vp01/SrcFilessed 's/[^|]//g' /vp01/SrcFiles/Test.txt | awk '{ print length }'> /vp01/SrcFiles/pipelinecount.txtcd $SOURCE_DIRwhile line in `cat pipelinecount.txt`; do if [ $line -eq 17 ];thenecho "No issue in pipeline"exit 0;fiif [ $line -gt 17 ];thenecho "No of pipelines exceeded the expected. Please verify the source file." | mailx -s "WKFS Load: Failed" [email protected]
-
Ragged right with Flat file in SSIS for last column
When I am importing from Flat file to OLEDB using DATA flow in SSIS,
It has fixed length for each column
but last column had length of 20
So I used for last column as {LF} and input width 0 & output width 20
but facing problem of last column has showing more data in preview so I am missing some some records
May I get any solution
ThanksHi Madhu,
I totally agree with Visakh. If your row delimiter is {CR}{LF}, you need to consider the two placeholders for the delimiter when defining the column length, that is to say you need to set the length of the last column to 22.
Regards,
Mike Yin
TechNet Community Support -
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. -
Validation Event Handler Not working with Flat File GTC Trusted Recon
We are created Event Handler for checking special characters in Telephone field.Its working fine when the user is created through Admin Console.but the event handler is not triggering while doing GTC Flat File Trusted recon.
Version: OIM 11.1.1.5.0
Can someone please help me out with this.
Thanks
Edited by: 790561 on 17-Feb-2013 09:01
Edited by: 790561 on Feb 17, 2013 9:35 PM
Edited by: 790561 on Feb 18, 2013 12:38 AMValidation Event handlers will not work with your trusted recon. You can use the GTC Validation provider, it is nothing but the plugins which you can insert with in your source field in GTC. I think you can easily get the steps for how to create a custom GTC Providers.
Edited by: iam37 on Feb 16, 2013 4:09 PM -
Problem with flat-file to oracle
Hi all,
Flat-file has 7 columns , all are varchar
SALE_2007
C1 VARCHAR2(255),
C2 VARCHAR2(255),
C3 VARCHAR2(255),
C4 VARCHAR2(255),
C5 VARCHAR2(255),
C6 VARCHAR2(255),
C7 VARCHAR2(255)
target also has 7 columns , first four column were varchar and the last 3 columns were numeric(20,2).
SALE
TIMECODE VARCHAR2(255),
CUSTCODE VARCHAR2(255),
SALECODE VARCHAR2(255),
PRODUCTCODE VARCHAR2(255),
AMOUNT NUMERIC(20,2),
COST NUMERIC(20,2),
SALEAMOUNT NUMERIC(20,2)
I have mapping the transformation on the staging with these function (ordering by order as above)
SALE_2007.C1
SALE_2007.C2
SALE_2007.C3
SALE_2007.C4
TO_NUMBER(REPLACE(SALE_2007.C5,',',''))
TO_NUMBER(REPLACE(SALE_2007.C6,',',''))
TO_NUMBER(REPLACE(SALE_2007.C7,',',''))
I have to use replace function because in the text file there is a comma in the data eg. 1,400.35
and the ODI will error in the step insert into flow table with error
+1722 : 42000 : java.sql.SQLException: ORA-01722: invalid number+
java.sql.SQLException: ORA-01722: invalid number*
Please advise
Thank you allHi-
It seems like there is non-numeric characters present in your C5-C7 columns. Please check your source data for these columns.
Thanks,
Saravanan Rajavel -
Conditional Interface Determination with Flat Files
Hello,
I have one sender interface (dummy) which could either hold a flat file or an XML file. On receiver side there is one system with two receiver interfaces, one should be used for the XML structure and one for the flat structure.
My requirement is to have a conditional interface determination with an (exclusive) OR logic. Pseudo code:
The XML structure has "submission" as root node. So I use the condition (/submissioin) EX to determine whether it is an XML file and I check with not(/submission) EX to determine whether it is a flat file. However the condition does not work using a flat file ("Unable to find an inbound interface"). Could it be, that the conditional expression never is true in case a flat file arrives? How can I achieve this requirement?
What I additionally do with the flat file is just calling a Java Mapping that sets dynamic attributes for a file receiver, the flatfile itself is dumped on a file system without any addtional conversion logic.
Thank you for your advice.How can I ingnore a message in case a condition applies? I am just aware of the fact that you can ignore messages in case NO condition applies.
Couldn't you simply reverse the logic and use "not equals"? Or perhaps you can use the EX operator to alter your conditions... here is more info on the EX (exists) operator
Re: ConditionEditor: Check if element is empty
What is best practice in this case? Should I use a "dummy receiver"? However if I use a dummy receiver I think I would receive a "interface determination not found" error. How would you do that?
I've never found the need to work with dummy receivers so I cannot comment there. -
How to load a sysdate with flat file
How do I load a sysdate with a flat file
I tried using a constant with a sysdate expression but it seems like OWB creates the ctl file with 'sysdate' as a text and not as a sysdate() functionOla Wernere,
Two things to check:
- is the data type of the constant a date?
- did you enter 'sysdate' or just sysdate (without the ampersands)?
Other thing that might help you is generate the intermediate result in the mapping. This will show you the results you'll expect to be loaded in the flat file...
Good luck & regards
Moscowic -
Problem with flat file loading/Special characters
Hi, All,
We just migrated from Version 3.0B to BI7.0, and I've a problem which I can't handle for the moment. We are in Unicode, current codepage of the server is 4103 and codepage of frontend is 4110 (from SNL1 Transaction).
I'm loading czech texts in my material, via CSV files. The CSV file is correct on my PC, I see the special characters.
The problem is on my loading, whatever Character set I choose in the Infopackage (I choose Standard or Character Set Setting User-dependant), I cannot see the good characters.
Does any one of you already encounter this kind of problem, and, if yes, how did you solve it ?
Thankshi,
check out with your flat file letter's type, if it's in lower case letter's change them in
upper case letter's. or otherwise change the infobject's type as-- select check box
corresponding to lower case letter's in infoobject.
if helpful provide points
regards
harikrishna.N -
Hello,
I am trying to load data via flat file. we have entries in a field which starts with 0s are skipped when we load in CSV format.
like i have an entry 00657, is being loaded as 657 .
How can i prevent this?
Thanks.
PraveenHi Praveen,
It is of lenghth 5. but when i upload CSV file it is not considering 00 infront. But i want those. I am loading hierarchy from flatfile.
Suggest me, if we can also load from text ?.
Thanks.
Praveen -
Installer Plug-in with flat file installer
Hi,
I am trying to integrate plug-in with PackageMaker generated flat file pkg file.
There are many samples/examples which talk about how to use plugin with meta-package and directory based pkg file.
I could not get any idea how to integrate installer plug-in with PackageMaker generated flat file installer.
Please give me some ideas to solve it.
Regards,
Anand ChoubeySunil,
use below fm to get current user date format:
data: idate TYPE sy-datum,
tdat8 type string.
CALL FUNCTION 'DATUMSAUFBEREITUNG'
EXPORTING
IDATE = idate
IMPORTING
TDAT8 = tdat8.
Amit. -
Hi,
I have a webpage with many UI Elemnts such as LinkToURLs, TextViews whose content is got from flat files present in the src/mimes folder of the project.
I need to keep the files secure so that no other person can change the details present in it.
Please help me how to proceed as i dont have any idea rearding this.
Thanks and Regards,
Padma Usha.Hi Usha,
You are asking about the security in WebDynpro while editing the file context in the views ? or talking about windows file security ?
If your question is on webdynpro, you can restrict the users from editing the files by using UME roles.
Ex: If you have view to show/edit the file, depending upon the logged in user you can disable/enable the file from editing.
Regards, Anilkumar
Maybe you are looking for
-
Webi report publication with org unit personalization mapping
Hi everyone, I have an HR Webi report whose source is a Bex query and is scheduled (published) weekly. The report is meant for managers so in the dynamic recipient report (another webi report) I have manager's name, email and org unit. Right now the
-
Media Encoder 4 führt zu schwarzem Strich
Beim Encodieren eines avis in ein flv mit dem Media Encoder CS4 entsteht am oberen Videorand ein unschöner halbtransparenter schwarzer Strich. Ich habe versucht ein Pal Video 4:3 mittels Cropping in ein 480x360 flv zu konvertieren. Ein schwarzer Stri
-
Link to URL -- How to use it?
Hi Experts, I have created LinktoURL UI element in my WD program1. I have to call WD program2 from WD program1 using this LinktoURL UI element. I had earlier written code like as below. The code was working fine. Now my problem is that code is not wo
-
Select data fields with delimiter
hi, im new to oracle. I'm working on unix oracle 11g. I need to know the way to fetch records with delimiters. I'd worked with informix before, and thr i use UNLOAD TO <filename> SELECT.... Is there any equivalent one in oracle. I just need the data,
-
Database connection error in Tx DB02
Hi All, I am using ECC6.0 with Windows 2003 64bit and database is SQL Server 2005. In Development server Tx DB02, connected of database showing in Yellow colour. but system is working fine. When i click on DB Connection tab and test connection, the e