Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data transfer to application server

Former Member
0 Likes
602

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

4 REPLIES 4
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
535

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

Read only

Former Member
0 Likes
535

use this TCode:

CG3Z Upload file

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
535

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

Read only

Clemenss
Active Contributor
0 Likes
535

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