‎2009 Sep 12 7:36 AM
Hi,
By using TRANSFER statement we can transfer the data record to the application server.
my question here is .. Can we transfer set of records as a whole (at once) to application server...?
if yes.. please let me know the procedure.
Thanks in advance..
Ramana
‎2009 Sep 12 7:50 AM
Hi
Take the set of records whichever u wish to transfer to the Application Server in one text file at your desktop and use the Tcodes: CG3Y/CG3Z to transfer that file to Application Server Directly.
Regards,
Sreeram
‎2009 Sep 12 7:53 AM
‎2009 Sep 12 8:06 AM
Hello,
No offence to the users who posted. But if you debug these transactions inside may be they use TRANSFER stmt or call FMs (EPS* for e.g.) which in turn use TRANSFER.
So the bottomline is if you want to code you have to use TRANSFER (i dont think its complicated anyways) or if you just want to upload some files you can use the Tcode: CACS_FILE_COPY or CG3Z.
BR,
Suhas
‎2009 Sep 13 12:14 PM
Hi Janaki,
I understand your question that way that you want to avoid multiple TRANSFER commands but transfer all data together.
This is possible by first concatenating all records to a string and then transfer it. For table structured with all CHAR components it may look like this:
DATA:
lv_all TYPE STRING.
FIELD-SYMBOLS:
<field> TYPE ANY,
<rec> TYPE ANY.
LOOP AT itab ASSIGNING <rec>.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <rec> to <field>.
IF SY-SUBRC <> 0.
EXIT.u201DDO
ENDIF.
* insert a TAB character between compoinents
CONCATENATE
<field>
cl_abap_char_utilities=>horizontal_tab
TO lv_all.
ENDDO.
AT LAST.
TRANSFER lv_all TO <your file open for output or append>.
ENDAT.
* insert a linefeed character after each line of internal table
CONCATENATE
lv_all
cl_abap_char_utilities=>linefeed
TO lv_all.
ENDLOOP.If you do not want the tab character at the end of each record, you may remove it.
Regards,
Clemens