Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how do you work with semi colon separated files in bdc ?

Answer Posted / ravi kanth @ reliance sap

There is FM GUI_UPLOAD which will help you in this.
Its has got one parameter calles has_field_separator . Here you can pass comma. So that this will take care while uploading the data in Internal table.

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = wf_file
filetype = 'ASC'
has_field_separator = ','
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
data_tab = it_data
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17

Hope this will help you.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find the return code of a statement in abap programs?

1102


What are the data types of the external layer?

1070


Explain what is an rfc?

1114


How many types of size categories and data classes are there? : abap data dictionary

1096


What is append structure?

1049


Can i Have Some Realtime Examples On Modulepool programming.

6117


A function module can be called from a transaction screen outside an abap/4 program. State true or false. : abap modularization

1036


Explain what is step-loop?

1220


Does the call transaction method allow multiple transactions to be processed by sap? : abap bdc

969


What happens if only one of the commands set screen and leave screen is used without using the other?

1092


What is processing class, where we do them and why? : sap abap hr

1137


What is the difference between leave transaction and call transaction?

1062


In a loop of an internal table, what is the use of at first & at last statements?

1967


What is the t-code for transaction recorder? : abap bdc

1058


What are the difference between tables and structures?

1219