Data conversion program
can u give idea about data conversion program for inventory management program stocks,which reads legacy extract file and the valuation master file from pc gets issue storage location valuation details and output a file with these details
regards,
phani
Hi Phani,
Make sure that the data from legacy system is stored in a TXT file in a specific format.
In SAP, create a program to upload the file using FM GUI_UPLOAD. The structure of the internal table will be same as that of the file.
Upload the data and update the necessary tables.
Best regards,
Prashant
Similar Messages
-
What is Data conversion ? What are data conversion programs ? please give
What is Data conversion ? What are data conversion programs ? please give me some sample code?
Hi,
I think you mean "Data Acquisition"...
"The Data Acquisition IT process allows you to connect heterogeneous sources (SAP systems, database management systems, files, relational data, multidimensional data) to BI. You can transfer data straight into BI from the source or use SAP NetWeaver XI to transfer data. Furthermore, the process supports direct access to source data, without having to load it into BI."
http://help.sap.com/saphelp_nw04s/helpdata/en/aa/1fb042e745ca6ae10000000a155106/frameset.htm
[Data AcquisitionTechniques in SAP NetWeaver BI|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/329fcd87-0c01-0010-4a9c-86f038e11d23]
Regards
Andreas -
How to master data conversion in ABAP/4 programming
I only know there is no special syntax to data conversion and put an "=" between destination data object and source object.
But I don't know whether the conversion is legal or not.
Who can help me?For conversions between structured fields or a structured field and a singlefield , flat structures were previously treated like C fileds, With the implementation of Unicode this approach has become too error prone, since it is not clear if programs can be executed with platform-independent semantics.
aRs -
I am thinking of buying a iPad but my main desktop machine uses Windows 7 and MS Office. How easy or difficult is it to transfer data files between the iPad and Windows? Are there obvious problems or the need for some form of conversion programs?
Many thanks for any advice.
DavidYou don't need conversion programs, iTunes can copy most of your content over to the iPad via the file sharing section, and some apps also support Dropbox, email attachments, transfer via your wifi network. There are a number of apps that you can get that support Microsoft office file (microsoft don't make an app versions of their software) e.g. from Apple there are Pages (word support), Numbers (excel) and Keynote (powerpoint), and from third-parties there are apps such as Documents To Go and QuickOffice HD
-
Date Conversion Routine in Transfer Rules
Hi,
Could you help me writing ABAP code for converting date field MM/DD/YYYY in to
the same format. But my InfoObject is 8digit and displays into 10 digit DATS type Object. After loading data it is looking different formats at different loacations. Example:
Data input from Flatfile: 11/18/2007 (MM/DD/2007)
Data in PSA : 11/18/20
Data in ODS: 11/18/2020.
Please flash some light on it, I will assign points.
Currently I wrote some code on it,
PROGRAM CONVERSION_ROUTINE.
Type pools used by conversion program
TYPE-POOLS: RS, RSARC, RSARR, SBIWA, RSSM.
Declaration of transfer structure (selected fields only)
TYPES: BEGIN OF TRANSFER_STRUCTURE ,
InfoObject ZENTRY_ID: CHAR - 000018
/BIC/ZENTRY_ID(000018) TYPE C,
InfoObject ZCREA_EDT: CHAR - 000008
/BIC/ZCREA_EDT(000008) TYPE C,
InfoObject ZPRIORITY: CHAR - 000010
/BIC/ZPRIORITY(000010) TYPE C,
InfoObject ZC_EDT_TI: CHAR - 000006
/BIC/ZC_EDT_TI(000006) TYPE C,
InfoObject ZMODI_GMT: CHAR - 000008
/BIC/ZMODI_GMT(000008) TYPE C,
InfoObject ZDD_DIFF: CHAR - 000016
/BIC/ZDD_DIFF(000016) TYPE C,
InfoObject 0RECORDMODE: CHAR - 000001
RECORDMODE(000001) TYPE C,
END OF TRANSFER_STRUCTURE .
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
FORM COMPUTE_/BIC/ZCREA_EDT
Compute value of InfoObject ZCREA_EDT
in communication structure /BIC/CSZ_IS_REMTEST
Technical properties:
field name = /BIC/ZCREA_EDT
data element = /BIC/OIZCREA_EDT
data type = DATS
length = 000008
decimals = 000000
ABAP type = D
ABAP length = 000008
reference field =
Parameters:
--> RECORD_NO Record number
--> TRAN_STRUCTURE Transfer structure
<-- RESULT Return value of InfoObject
<-> G_T_ERRORLOG Error log
<-- RETURNCODE Return code (to skip one record)
<-- ABORT Abort code (to skip whole data package)
FORM COMPUTE_/BIC/ZCREA_EDT
USING RECORD_NO LIKE SY-TABIX
TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
G_S_MINFO TYPE RSSM_S_MINFO
CHANGING RESULT TYPE /BIC/OIZCREA_EDT
G_T_ERRORLOG TYPE rssm_t_errorlog_int
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
$$ begin of routine - insert your code only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
<b> RESULT = TRAN_STRUCTURE-/BIC/ZCREA_EDT.
REPLACE ALL OCCURRENCES OF '/' IN RESULT WITH ''.</b>
returncode <> 0 means skip this record
RETURNCODE = 0.
abort <> 0 means skip whole data package !!!
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
FORM INVERT_/BIC/ZCREA_EDT
Inversion of selection criteria for InfoObject ZCREA_EDT
This subroutine needs to be implemented only for SAP RemoteCubes
(for better performance) and for the Report/Report Interface
(drill through).
--> I_RT_CHAVL_CS Ranges table for current InfoObject
--> I_THX_SELECTION_CS Selection criteria for all other InfoObjects
<-- C_T_SELECTION Selection criteria for fields of
transfer structure
<-- E_EXACT Flag: Inversion was exact
FORM INVERT_/BIC/ZCREA_EDT
USING I_RT_CHAVL_CS TYPE RSARC_RT_CHAVL
I_THX_SELECTION_CS TYPE RSARC_THX_SELCS
CHANGING C_T_SELECTION TYPE SBIWA_T_SELECT
E_EXACT TYPE RS_BOOL.
$$ begin of inverse routine - insert your code only below this line-
DATA:
L_S_SELECTION LIKE LINE OF C_T_SELECTION.
An empty selection means all values
CLEAR C_T_SELECTION.
L_S_SELECTION-FIELDNM = '/BIC/ZCREA_EDT'.
Selection of all values may be not exact
E_EXACT = RS_C_FALSE.
$$ end of inverse routine - insert your code only before this line -
ENDFORM.Date is getting truncated in PSA due to /BIC/OIZCREA_EDT being defined as DATS with length 8.
Try changing the date format in the flat file to MMDDYYYY(remove '/' in the file format).
Take a look at this link as well...
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/01ed2fe3811a77e10000000a422035/frameset.htm -
Data Conversion in SAP E-Recruiting.
Hi SAP E-Recruiters,
Our client is using a Legacy application for recruiting candidates where it has 5000 candidates data base (internal and external candidates' applications).
Now they are asking for movement of this whole data to the newly implementing SAP E-recruiting system. We are exploring various data conversion methods and found that BDC, LSMW will not work for E-recruiting data upload as we have every thing in BSP/Web Dynpro pages here.
We need your help in finding a solution for moving this data from legacy to SAP E-Recruiting. Pls do the needful.
Thanks,
SudheerSudheer,
So far there are no SAP delivered migration methods or BAPI's available conversion of candidates/applications, as you have already specified BDC's wouldnot work. Internal candidates always can be brought over in eRecruitment with integration techniques between PA and eRecruit depending upon the landscape.
However, for external candidates custom conversion programs have to be written by making use of methods/function modules that are used in BSP/WebDynpro.
regards
Sridhar -
VA41 Conversion program using BAPI's.
Hi Friends,
Could u please tell to develop/create conversion program to transfer data using BAPI's by using trx VA41(CREATE CONTRACT), I have Contract Document number(ID).
This is one time conversion.
Please tell step by step.
Thanks in advance.
Points rewarded for ur kind assistance.
regard. VishnuHi Vishnu,
There is a standard BAPI called <b>BAPI_CONTRACT_CREATEFROMDATA</b> available for VA41. Use that BAPI for the conversion. Get back to me if you got any doubts.
Reward if useful.
Thanks
Aneesh. -
Conversion program generated with errors
in lsmw idoc method at the step 11 convert data iam getting error as conversion program generated with errors can some body help me .i assigned port ,partnertype and partner number and activated inbound processing but still getting this error.somebody pls help me its urgent.
Hi Mamidi,
Go to the LSMW you have choosen and if it is Recording Method you are getting this error.
Select Goto-->Recordings.
Select the Recording you have choosen in the Edit Mode.
Click on the Defaults All Button and save the recording.
Now go to the option Convert Data and check .
You will receive a message ..Conversion program successfully generated.
Thanks,
Sri -
Data Conversion for Project Module
Dear all,
I have a requirement to perform data conversion for Project module from 11.5 to R12. I am new to this module. Can anybody can outline (or provide documentation reference):
1)Source tables in 11.5
2)Data Selection for source tables in 11.5
3)Validations need to be performed for data clean up
4)Interface tables and interface programs in R12
Thanks,
SudipSee the following links for information on all R12 interfaces
Oracle Integration Repository Documentation Resources Release 12 (Doc ID 396116.1)
Note: 462586.1 - Where are the Oracle® Release 12 (R12) API Reference Guide?
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=462586.1
Note: 458225.1 - Release 12 Integration Repository
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=458225.1
If you are on 11i, go to irep.oracle.com
Hope this helps,
Sandeep Gandhi -
Data Conversion Design Patters
I'm looking at building a conversion program that will import data from several different formats and convert into one common format. The convertor should simply be pointed to a database or a flat-file and it will extract the data and populate tables in the target database. All the logic is mind-numbingly simple, but as far as an overall design, what are your thoughts?
For example, should I build a separate tool that does validation of source data? Or should the validator be part of the convertor?
Are there design patterns out there that anyone can recommend?This problem u can go for strategy pattern. A strategy is nothing but an algorithm to reach the soution.
Strategy pattern deals with different algorithms(strategies) to achieve the same result.The client will have some indicator. Using the indicator, stategy manager will decide which algorithm to invoke.
In ur case,the algorithm may differ depending on the data format. For (eg) if you have five different formats of data , then you may have to write five different type of logic to achieve the solution.
So firt of all u need to identify the strategies u r going to use.
Now you may require following classes
1) SourceReader -- > this class is responsible for getting the data either from file/database.It just reads and holds data.
It identifies which strategy to use by parsing the data . No data processing happens here
2) StrategyManager --> Strategy manager is the one who reads the data from source reader and decides and instantiate the strategy to use.
3) Strategy --> It could be an interface or an abstract class. It can be decided upon any common operation involved irrespective of data format.
4)ConcreateStrategy --> This implemenattion class, here actual data extraction process will happens.
5) DataLoader --> this calss loads the data in to the destination database
6) YurEntity --> The data to be populated can be kept in the form object. if ur object contains many attributes, we can have data in the form objects. (this class is required only if all the data are realted and fall in to same logical group).
Class SourceReader{
Vector data;
public void do(){
readData()
StrategyManager.getInstance().process(data,findStrategy());
public void readData()
read from file or db and populate data
public int findStrategy()
logic for identifying format
class StrategyManager
public static StrategyManager sm = new StrategyManger();
public StrategyManager getInstance()
return sm;
public void process(Vector data,int indicator)
//read the indicator and instantiate the appropriate startegy class
Strategy s = new Strategy1();
s.process();
abstract class strategy{
public abstract void parse();
public void validate{};// if the validation logic is common, u can have implemenation here itself.
public updateDB()
update destination db;
public void process()
validate();
parse();
updateDB();
} -
Data conversion of open checks
Hello,
We are preparing our data conversions for a new implementation of SAP in the US. A question came up as to whether we should enter check masters for checks we have printed and mailed to our vendors but haven't been cashed at the time of go-live. The other option would be to put the balance of these open checks into a GL account and manually enter journal entries when they are cashed.
Our normal business process will be to use FCHR to process a file we receive from our bank with cashed checks. If we don't create check masters for our open checks, then FCHR will not be able to automatically process cashed checks from before go-live.
My question: is it best practice to load these open checks during the data conversion into SAP so that FCHR will clear them out, or is this normally handled as an exception using manual journal entries?
And, if it is best practice to load the check masters in SAP, what transaction code would we use to enter the open checks?
Thanks,
JBHI
We have developed an ABAP program to set deletion indicatior in PO in mass. You can do the same by consulting your ABAPER.
Regards
Anil -
UTF8 encoding Issue in the conversion program
Hi all,
Our requirement is to get data from a file stored in application server and update the SAP database.
The flat file has some special characters such as u2122, ® etc.
In the conversion program, we are using the encoding format as UTF-8. This means it will only handle UTF-8 file ( byte order mark (BOM) 8).
After running the conversion program, we came to know that the special character u2122 is getting replaced wtih #.
And when we modified the format of flat file to UTF-8 instead of ANSI or UTF-16 or 32.
We were able to get the trademark symbol in correct look in addition with other special characters.
Since this involves a manual of processing modifying the flat file to UTF-8 format and then running the conversion program for getting all the special characters in good look, we are thinking to make this process "automatic" in the conversion program itself i.e. whatever the format of flat file may be, we would convert that file to UTF with BOM 8 format and then go ahead with the next updating processes.
So, can anybody let me know if we can make this an automatic process? Can we convert each non UTF-8 record read from flat file to UTF-8 record in the program itself by any means and then update that record in the database? Is there any FM for this? Or can we convert the flat file to UTF-8 file programmatically irrespective of the original file formats?
Any inputs on this would be greatly appreciated.
Thanks,
ShamimSham,
Try with the class CL_BCS_CONVERT and the method STRING_TO_SOLIX.
Regards,
Kiran Bobbala -
Hi,
what kind of data conversion/migration are we looking in plant maintenance and inventory management?
Regards,
VijayDear Vijay Srikanth,
I think you are asking for all such activities in Plant Maintenance which can be automated using some data conversion / data migration programs. Where by the user will just upload his data and the activity is achieved by the program. Please refer to the following documentation and search for the term 'Activites in Plant Maintenance'.
http://help.sap.com/printdocu/core/print46c/en/data/pdf/MYSAP/SR_PM.pdf
You will find all the required information there. Thank you.
Regards,
kartik -
Hi,
I have a file where fields are wrapped with ".
=========== file sample
"asdsa","asdsadasdas","1123"
"asdsa","asdsadasdas","1123"
"asdsa","asdsadasdas","1123"
"asdsa","asdsadasdas","1123"
==========
I am having a .net method to remove the wrap characters and write out a file without wrap characters.
======================
asdsa,asdsadasdas,1123
asdsa,asdsadasdas,1123
asdsa,asdsadasdas,1123
asdsa,asdsadasdas,1123
======================
the .net code is here.
========================================
public static string RemoveCharacter(string sFileName, char cRemoveChar)
object objLock = new object();
//VirtualStream objInputStream = null;
//VirtualStream objOutStream = null;
FileStream objInputFile = null, objOutFile = null;
lock(objLock)
try
objInputFile = new FileStream(sFileName, FileMode.Open);
//objInputStream = new VirtualStream(objInputFile);
objOutFile = new FileStream(sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString(), FileMode.Create);
//objOutStream = new VirtualStream(objOutFile);
int nByteRead;
while ((nByteRead = objInputFile.ReadByte()) != -1)
if (nByteRead != (int)cRemoveChar)
objOutFile.WriteByte((byte)nByteRead);
finally
objInputFile.Close();
objOutFile.Close();
return sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString();
==================================
however when I run the bulk load utility I get the error
=======================================
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).
==========================================
the bulk insert statement is as follows
=========================================
BULK INSERT Temp
FROM '<file name>' WITH
FIELDTERMINATOR = ','
, KEEPNULLS
==========================================
Does anybody know what is happening and what needs to be done ?
PLEASE HELP
Thanks in advance
VikramTo load that file with BULK INSERT, use this format file:
9.0
4
1 SQLCHAR 0 0 "\"" 0 "" ""
2 SQLCHAR 0 0 "\",\"" 1 col1 Latin1_General_CI_AS
3 SQLCHAR 0 0 "\",\"" 2 col2 Latin1_General_CI_AS
4 SQLCHAR 0 0 "\"\r\n" 3 col3 Latin1_General_CI_AS
Note that the format file defines four fields while the fileonly seems to have three. The format file defines an empty field before the first quote.
Or, since you already have a .NET program, use a stored procedure with table-valued parameter instead. I have an example of how to do this here:
http://www.sommarskog.se/arrays-in-sql-2008.html
Erland Sommarskog, SQL Server MVP, [email protected] -
Data conversion- GL , GL Open Line Item Upload
Hi,
For Objects GL Upload , GL Line item Upload : LSMW- BAPI,IDOC Methods possible .Is any standard Bapi , Idoc available.
And also share the advantage and disadvantage in using Ecatt for dataconversions.
Please share link which gives details for doing standard master data conversions.in LSMW we have Idoc method and batch input method
IDOC
Message Type GLMAST Master data G/L accounts
Basic Type GLMAST01 Master data G/L accounts:
Enhancement
Batch Input
Object 0010 GL A/C Master Record
Method 0002 Flat structure
Program Name RFBISA00
Program Type B Batch Input
Maybe you are looking for
-
Issuing during invocation of WS
All, Version:10.1.3.4 Requirement: 3rd party application sends a PurchaseOrder thru WS channel, BPEL PM has to consume it, transform it and send it to Oracle Apps As I summarized before, my requirement is that the 3rd party application generates the
-
Placing buttons in a region displaying an Interactive Report
Hi, I have a page on which I am displaying an interactive report.I would like to place buttons on this region where the report is displayed- - The first button right of the search bar of the interactive report - The second button right of the first b
-
Order Data Ware House SD report?
Hi all kindly give a solution for this scenario If there are no quantity on the request, it will not show a u201C0u201D order quantity there u2013 it will show the first promise quantity by its side and show the promised quantity there. Please cha
-
Help! My DW site displays in FireFox, but does not work in IE
Help! My DW site displays fine in FireFox, but only the background loads in Internet Explorer and I get an error message that the site cannot open. The site is www.bransonareagolfcouncil.com
-
Clock App: No Barcelona in World Clock?!?
Why is Barcelona not an option in world clock? Am I the only one missing this city as an option?