how do you work with semi colon separated files in bdc ?
Answer / 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 |
how to validate either processing view is already exist or not?
1 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
what is the difference between function module alv and oop alv.
4 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
What are user exits? What is involved in writing them? What precations are needed?
how to create interactive report from alv ?
Which of the following is not an exit command? Exit, Back, Cancel, Stop
31)Explain the User master setting for date and Time formats?
Where do you code the hide statement?
what is the IDOC status code?
how to print only one line item at every page in smart forms in main window .for ex for sales order i will get so many items i need to display only at one page like 1st line at one page and second line at 2nd page .pls answer itttt.
Why defining Logical systems?
How to convert normal function module to bapi?
If you write more than one start-of-selection. what will happen?