Hi,
The file format differ for different transaction. Basically you can have the field in any order. It matters how you upload into SAP. Use the function module GUI_UPLOAD to upload the flat file.
Please see this sites for more info.
http://www.sap-img.com/abap/learning-bdc-programming.htm
Help with BDCs and flat files.....
Cheers
Vinod
Message was edited by: Vinod C
Hi Rao,
the preparation of flat file is based on your application,i.e tcode, fields that you fill .etc.,
Flat file may be a txt file or prn file(Tab delimited or Space delimited ).
Prepare file with elements of same order and size as you fill it in screen while recording.
Use Upload function to upload the flat file into internal table.
In the internal table loop use call transaction for posting row by row data.
Hope this will help you.
Reg,
Viswanath Babu
file could have any format. the issue is only to read the file in one of your program internal tables and thereafter populating the BDCDATA structure for posting the transaction. Once u load the data from the file into your internal table, its up to you how u handle it.
rgds,
PJ
hai,
first of all for BDC THere are two Formats one is of DAT(tabspace is the delimeter) and the other ASC(where here there wont be any delmeter but the value of each field should be same lenght as taht of its data type )
once your flat file is ready then
you can make use of
1. upload
2. ws_upload...etc..
function modules to transfer the data from the flat file to the internal table ( you should declare the internal table of same structure as that of flat file .
then you should make use of BDCDATA structure to transfer he values of teh fields to teh transaction either through batch input method or call trnsaction method
any doubts pls return back
cheers
Add comment