2010 May 13 7:03 PM
Hello folks,
I am new to the OO ABAP and trying to write outbound interface for couple of HCM tables. It is the piece of cake for me if I do it in regular ABAP but I choose the to it hard way because I want to do it in OO ABAP. I have read several post from Narish . They were great.
Letu2019s get the point , how I will go off writing an outbound interface ..
I have looked the class CL_RSAN_UT_APPSERV_FILE_WRITER and its methods
APPSERVER_FILE_WRITE
CONSTRUCTOR
FREE
OPEN
CLOSE
WRITE
But it seems like I canu2019t use my internal table because u201CI_DATA_TABu201D type in method APPSERVER_FILE_WRITE.
Any help will be appreciated.
Thanks,
UA
Hello folks,
I am new to the OO ABAP and trying to write outbound interface for couple of HCM tables. It is the piece of cake for me if I do it in regular ABAP but I choose the to it hard way because I want to do it in OO ABAP. I have read several post from Narish . They were great.
Letu2019s get the point , how I will go off writing an outbound interface ..
I have looked the class CL_RSAN_UT_APPSERV_FILE_WRITER and its methods
APPSERVER_FILE_WRITE
CONSTRUCTOR
FREE
OPEN
CLOSE
WRITE
But it seems like I canu2019t use my internal table because u201CI_DATA_TABu201D type in method APPSERVER_FILE_WRITE.
Any help will be appreciated.
Thanks,
UA
2010 May 13 11:02 PM
In order to use the method WRITE or APPSERVER_FILE_WRITE, you need to fill the table TYPE RSANM_FILE_TABLE by concatenating your fields of internal table using the separator (e.g. Horizontal tab, pipe sign, comma) which would be understood by the reader of the file.
Like:
data: li_data_tab TYPE STANDARD TABLE OF string.
LOOP at itab into wa_tab.
CONCATENATE wa_tab-field1
wa_tab-field2
into lwa_file separated by cl_abap_char_utilities=>horizontal_tab.
APPEND lwa_data_tab TO li_data_tab.
endloop.
Regards,
Naimesh Patel
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |