<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem when I copy Data from App server to IT - Dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187716#M1001069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO I havent used the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am abit confused on ur comment. The problem is whicle creating the file. U mean when we write the file on APP server we are doing it wrong. If so what could be a solution to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you let me know when is this FM used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 16:37:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T16:37:50Z</dc:date>
    <item>
      <title>Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187708#M1001061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a program to copy the data in a table to APp Server and its workign fine. The program is Dynamic and I pass the table name on the selection screen. IT had problems when writing to APP server for data Type P but that is now solved and am able to write. but Ma having problem in the other way. I mean copying the same data to IT from Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code&lt;/P&gt;&lt;P&gt;Ster.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ywmm_table_dump.

TABLES :
        dd03l.
* Type spool declaration
TYPE-POOLS :
        abap, slis.

DATA : i_table_data1  TYPE REF TO data,
       i_table_final  TYPE REF TO data.
DATA : it_dd03l LIKE dd03l OCCURS 0 WITH HEADER LINE.
DATA : i_fcat   TYPE STANDARD TABLE OF lvc_s_fcat,
       l_fcat   LIKE lvc_s_fcat OCCURS 0 WITH HEADER LINE,
       l_dr_line         TYPE   REF TO data,
       l_v_as4vers       TYPE as4vers.


FIELD-SYMBOLS: &amp;lt;f_field&amp;gt; TYPE ANY.

DATA : BEGIN OF i_output OCCURS 0.
DATA :  sdata(10000) TYPE c.
DATA : END OF i_output.
DATA line_cursor TYPE lvc_s_fcat-intlen.

FIELD-SYMBOLS: &amp;lt;f_table_data1&amp;gt;     TYPE STANDARD TABLE,
               &amp;lt;f_wa_table_data1&amp;gt;  TYPE ANY,


               &amp;lt;f_table_final&amp;gt;     TYPE STANDARD TABLE,
               &amp;lt;f_wa_table_final&amp;gt;  TYPE ANY.

SELECTION-SCREEN: BEGIN OF BLOCK bl1 WITH FRAME TITLE text-001.
PARAMETERS: rb_copy RADIOBUTTON GROUP map DEFAULT 'X',
            rb_rest RADIOBUTTON GROUP map.

SELECTION-SCREEN: END   OF BLOCK bl1.

SELECTION-SCREEN: BEGIN OF BLOCK bl2 WITH FRAME TITLE text-002.
PARAMETERS: p_table  TYPE tabname OBLIGATORY,
            p_plfld TYPE dd03l-fieldname.
SELECTION-SCREEN SKIP 1.
PARAMETERS: p_bkfile TYPE localfile OBLIGATORY.
SELECTION-SCREEN: END   OF BLOCK bl2.

*Start of Selection
SELECT *
  FROM dd03l
  INTO TABLE it_dd03l
 WHERE tabname   = p_table
   AND as4local = 'A'
   AND   as4vers = l_v_as4vers
   AND   ( comptype = 'E' OR comptype = space ).

PERFORM get_data.
IF rb_copy = 'X'.
  PERFORM backup.
ELSEIF rb_rest = 'X'.
  PERFORM database_update.
ENDIF.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_data
*&amp;amp;---------------------------------------------------------------------*
FORM get_data.

  CLEAR   i_fcat.
  REFRESH i_fcat.

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
            i_structure_name = p_table  " Table Name
       CHANGING
            ct_fieldcat      = i_fcat
       EXCEPTIONS
            OTHERS           = 1.

  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
  EXPORTING
    it_fieldcatalog = i_fcat
  IMPORTING
    ep_table        = i_table_data1.
  IF sy-subrc = 0.
    ASSIGN i_table_data1-&amp;gt;* TO &amp;lt;f_table_data1&amp;gt;.
  ELSE.
    WRITE: 'Error creating internal table'.
  ENDIF.

  IF rb_copy = 'X'.

    SELECT  * FROM (p_table) INTO CORRESPONDING FIELDS OF
              TABLE &amp;lt;f_table_data1&amp;gt; UP TO 20 ROWS.

  ELSEIF rb_rest = 'X'.

    CREATE DATA l_dr_line LIKE LINE OF &amp;lt;f_table_data1&amp;gt;.
    ASSIGN l_dr_line-&amp;gt;* TO &amp;lt;f_wa_table_data1&amp;gt;.
*Get Data from Application Server

* Opening the dataset P_BKFILE given in the selection screen
    TRANSLATE p_bkfile TO LOWER CASE.
    OPEN DATASET p_bkfile FOR INPUT IN TEXT MODE." ENCODING DEFAULT.
    IF sy-subrc NE 0.
*    MESSAGE:
    ELSE.
      DO.
* Reading the file from application server
*        READ DATASET p_bkfile INTO &amp;lt;f_wa_table_data1&amp;gt;.
        READ DATASET p_bkfile INTO i_output.
        IF sy-subrc = 0.
*          APPEND &amp;lt;f_wa_table_data1&amp;gt; TO &amp;lt;f_table_data1&amp;gt;.
          APPEND i_output.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
* Closing the dataset
      CLOSE DATASET p_bkfile.
    ENDIF.

****
    LOOP AT i_output.        *" Problem is here*
      MOVE  i_output TO &amp;lt;f_wa_table_data1&amp;gt;. " dyn table using p_table
      APPEND &amp;lt;f_wa_table_data1&amp;gt; TO &amp;lt;f_table_data1&amp;gt;.
    ENDLOOP.

  ENDIF.
ENDFORM.                    " get_data

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  backup
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM backup.

  TRANSLATE p_bkfile TO LOWER CASE.

  OPEN DATASET p_bkfile FOR OUTPUT IN TEXT MODE.

  IF sy-subrc NE 0.
    WRITE: text-017.
    STOP.
  ELSE.

    LOOP AT &amp;lt;f_table_data1&amp;gt; ASSIGNING &amp;lt;f_wa_table_data1&amp;gt;.
      CLEAR : line_cursor.
      LOOP AT i_fcat INTO l_fcat.
        IF l_fcat-inttype EQ 'P'.
          ASSIGN COMPONENT l_fcat-fieldname
              OF STRUCTURE &amp;lt;f_wa_table_data1&amp;gt; TO &amp;lt;f_field&amp;gt;
              TYPE     l_fcat-inttype
              DECIMALS l_fcat-decimals.
        ELSE.
          ASSIGN COMPONENT l_fcat-fieldname
              OF STRUCTURE &amp;lt;f_wa_table_data1&amp;gt; TO &amp;lt;f_field&amp;gt;
              TYPE     l_fcat-inttype.
        ENDIF.
*        WRITE &amp;lt;f_field&amp;gt; TO i_output-sdata+line_cursor(l_fcat-intlen).
*        line_cursor = line_cursor + l_fcat-intlen.
        WRITE &amp;lt;f_field&amp;gt; TO i_output-sdata+line_cursor(l_fcat-dd_outlen).
        line_cursor = line_cursor + l_fcat-dd_outlen.
      ENDLOOP.
      APPEND i_output.
    ENDLOOP.

    LOOP AT i_output.
      TRANSFER i_output TO p_bkfile.
    ENDLOOP.

  ENDIF.
  CLOSE DATASET p_bkfile.

ENDFORM.                    " backup
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 15:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187708#M1001061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T15:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187709#M1001062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the error you are getting in the below mentioned code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at i_output.        " Problem is here*
      move  i_output to &amp;lt;f_wa_table_data1&amp;gt;. " dyn table using p_table
      append &amp;lt;f_wa_table_data1&amp;gt; to &amp;lt;f_table_data1&amp;gt;.
    endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 15:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187709#M1001062</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-21T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187710#M1001063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ARS for getting back on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no visible error.&lt;/P&gt;&lt;P&gt;When I look into the data in the fields the data is not passed correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Z table with this types,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAR&lt;/P&gt;&lt;P&gt;NUMC&lt;/P&gt;&lt;P&gt;QUAN&lt;/P&gt;&lt;P&gt;DEC&lt;/P&gt;&lt;P&gt;DATS&lt;/P&gt;&lt;P&gt;CUKY&lt;/P&gt;&lt;P&gt;UNIT&lt;/P&gt;&lt;P&gt;CURR&lt;/P&gt;&lt;P&gt;FLTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 2 is passed corrctly an there is a mismatch from the third one.&lt;/P&gt;&lt;P&gt;I also see some weird values from the third one.&lt;/P&gt;&lt;P&gt;Please check a mismatch from the third field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I read from database.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
1	VBELN	C	10 	0000000003
2	POSNR	N	6 	000010
3	SMENG	P	7 	1234567890.000
4	UMZIZ	P	3 	12345
5	ABDAT	D	8 	20080719
6	WAERK	C	5 	12345
7	VRKME	C	3 	ST
8	WAVWR	P	7 	12345678901.00
9	UMREF	F	8 	  0.0000000000000000E+00
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I read from App&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
1	VBELN	C	10 	0000000003
2	POSNR	N	6 	000010
3	SMENG	P	7 	313233342&amp;gt;.353
4	UMZIZ	P	3 	372&amp;gt;3
5	ABDAT	D	8 	90,000 1
6	WAERK	C	5 	2345
7	VRKME	C	3 	19.
8	WAVWR	P	7 	30372&amp;gt;32303.03
9	UMREF	F	8 	 1.2825375740867240E-153
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this explains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 15:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187710#M1001063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T15:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187711#M1001064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How is your file in the application server looks? Copy the file from app server to presentation server using CG3Y and check whether all values are ok ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Please check the values here are okay&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
READ DATASET p_bkfile INTO i_output.
        IF sy-subrc = 0.
*          APPEND &amp;lt;f_wa_table_data1&amp;gt; TO &amp;lt;f_table_data1&amp;gt;.
          APPEND i_output.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 15:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187711#M1001064</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-21T15:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187712#M1001065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every this is OK on the application server and even when I copy to i_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File on App Server,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
00000000030000101234.567.890,000 12345 19.07.200812345ST 12.345.678.901,00  0,000000000000000E+00
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Structure,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
VBELN	VBELN_VA	CHAR	10	0
POSNR	POSNR_VA	NUMC	6	0
SMENG	SMENG	                QUAN	13	3
UMZIZ	UMZIZ	                DEC	5	0
ABDAT	ABDAT	                DATS	8	0
WAERK	WAERK	                CUKY	5	0
VRKME	VRKME	                UNIT	3	0
WAVWR	WAVWR	                CURR	13	2 
UMREF	UMREFF	                FLTP	16	16
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we are changing all the "P' type to char format when we write to APP so I am assuming we  might have to do some thing similar to get it back from Char type to "P" type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 15:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187712#M1001065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T15:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187713#M1001066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Try using FMs  DX_FILE_READ --- read file from AP&lt;/P&gt;&lt;P&gt;                          DX_FILE_WRITE -- to write a fikle to AP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above FMs can READ and WRITE upto 750 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187713#M1001066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T16:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187714#M1001067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks Chandrasekhar  &lt;/P&gt;&lt;P&gt;However 750 characters would not satisfy my need. I need more than that. However I will give a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187714#M1001067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T16:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187715#M1001068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen the issue. Now i also confused. and arrive a solution to this dynamic scneario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So problem is while creating the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have to tried fm RFC_READ_TABLE to arrive the output table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187715#M1001068</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-21T16:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187716#M1001069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO I havent used the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am abit confused on ur comment. The problem is whicle creating the file. U mean when we write the file on APP server we are doing it wrong. If so what could be a solution to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you let me know when is this FM used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187716#M1001069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T16:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187717#M1001070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use here instead of this select use fm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    SELECT  * FROM (p_table) INTO CORRESPONDING FIELDS OF
              TABLE &amp;lt;f_table_data1&amp;gt; UP TO 20 ROWS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and comment out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    LOOP AT &amp;lt;f_table_data1&amp;gt; ASSIGNING &amp;lt;f_wa_table_data1&amp;gt;.
      CLEAR : line_cursor.
      LOOP AT i_fcat INTO l_fcat.
        IF l_fcat-inttype EQ 'P'.
          ASSIGN COMPONENT l_fcat-fieldname
              OF STRUCTURE &amp;lt;f_wa_table_data1&amp;gt; TO &amp;lt;f_field&amp;gt;
              TYPE     l_fcat-inttype
              DECIMALS l_fcat-decimals.
        ELSE.
          ASSIGN COMPONENT l_fcat-fieldname
              OF STRUCTURE &amp;lt;f_wa_table_data1&amp;gt; TO &amp;lt;f_field&amp;gt;
              TYPE     l_fcat-inttype.
        ENDIF.
*        WRITE &amp;lt;f_field&amp;gt; TO i_output-sdata+line_cursor(l_fcat-intlen).
*        line_cursor = line_cursor + l_fcat-intlen.
        WRITE &amp;lt;f_field&amp;gt; TO i_output-sdata+line_cursor(l_fcat-dd_outlen).
        line_cursor = line_cursor + l_fcat-dd_outlen.
      ENDLOOP.
      APPEND i_output.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187717#M1001070</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-21T16:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187718#M1001071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks ARS. this dosent work the way we expect it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the same example the data on the app server looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
0000000003000010#4Vx####4\2008071912345ST #4Vx##################
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 17:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187718#M1001071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T17:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187719#M1001072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ster,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am out of ideas or possible hint to your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 17:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187719#M1001072</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-21T17:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I copy Data from App server to IT - Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187720#M1001073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ster for all your efforts in helping this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is very simple but we digged deep into it and were to find out a reason which was not Valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need not do any type conversions even when we write the file to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just the normal coding to write the file and read the file back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when we go to AL11 and see the file it has #######....&lt;/P&gt;&lt;P&gt;but that is OK. When we read the same file from the app Server which has #######.....it comes with the data and the correct data is seen back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if this file is to be send to a diffrent party we might have issues but since we r just keeping it as a back up all is good since it retrives the correct data back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Anyways thanks for all you suggestions and ur patience in looking so deep into my issue.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 17:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-i-copy-data-from-app-server-to-it-dynamically/m-p/4187720#M1001073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T17:39:43Z</dc:date>
    </item>
  </channel>
</rss>

