<?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: Transport Table content by program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051290#M722408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this program to transport the data from one system to another system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report YMNDTCOPY *
*&amp;amp; *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; *
*&amp;amp; *
*&amp;amp;---------------------------------------------------------------------*

REPORT YMNDTCOPY MESSAGE-ID US NO STANDARD PAGE HEADING.

PARAMETERS: TABLE LIKE DD02L-TABNAME,
MANDT_FM LIKE T000-MANDT DEFAULT '207',
MANDT_TO LIKE T000-MANDT DEFAULT SY-MANDT.

TABLES: DD02L, T000.

DATA: LINES LIKE SY-DBCNT VALUE 0.
DATA: ICURSOR TYPE CURSOR.
DATA: ICURSOR1 TYPE CURSOR.
DATA: BEGIN OF TMP OCCURS 1000,
MANDT LIKE T000-MANDT,
REST(8189) TYPE C,
END OF TMP.
DATA: BEGIN OF TMP1 OCCURS 1000,
MANDT LIKE T000-MANDT,
REST(8189) TYPE C,
END OF TMP1.
data : ws_flag, ws_ans.
*OPEN CURSOR WITH HOLD ICURSOR1 FOR
* SELECT * FROM (TABLE) CLIENT SPECIFIED WHERE MANDT = MANDT_to.
*do.
* FETCH NEXT CURSOR ICURSOR1 INTO TABLE TMP1 PACKAGE SIZE 1000.
* IF SY-SUBRC = 0.
* ws_flag = 'X'.
* CLOSE CURSOR ICURSOR1.
* EXIT.
* ENDIF.
*enddo.
*
*if ws_flag = 'X'.
* CALL FUNCTION 'POPUP_TO_CONFIRM'
* EXPORTING
** TITLEBAR = ' '
** DIAGNOSE_OBJECT = ' '
* TEXT_QUESTION = text-001
** TEXT_BUTTON_1 = 'Ja'(001)
** ICON_BUTTON_1 = ' '
** TEXT_BUTTON_2 = 'Nein'(002)
** ICON_BUTTON_2 = ' '
** DEFAULT_BUTTON = '1'
** DISPLAY_CANCEL_BUTTON = 'X'
** USERDEFINED_F1_HELP = ' '
** START_COLUMN = 25
** START_ROW = 6
** POPUP_TYPE =
** IV_QUICKINFO_BUTTON_1 = ' '
** IV_QUICKINFO_BUTTON_2 = ' '
* IMPORTING
* ANSWER = ws_ans
** TABLES
** PARAMETER =
** EXCEPTIONS
** TEXT_NOT_FOUND = 1
** OTHERS = 2
* .
* IF SY-SUBRC &amp;lt;&amp;gt; 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
* ENDIF.
*
*endif.
*if ws_ans = '1'.
DELETE FROM (TABLE) CLIENT SPECIFIED WHERE MANDT = MANDT_TO.
COMMIT WORK.
OPEN CURSOR WITH HOLD ICURSOR FOR
SELECT * FROM (TABLE) CLIENT SPECIFIED WHERE MANDT = MANDT_FM.
DO.
FETCH NEXT CURSOR ICURSOR INTO TABLE TMP PACKAGE SIZE 1000.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
CLOSE CURSOR ICURSOR.
EXIT.
ENDIF.
LOOP AT TMP.
TMP-MANDT = MANDT_TO.
MODIFY TMP.
LINES = LINES + 1.
ENDLOOP.
INSERT (TABLE) CLIENT SPECIFIED FROM TABLE TMP.
CALL FUNCTION 'DB_COMMIT'.
ENDDO.

WRITE: / 'for table', TABLE, LINES, 'lines are copied.'.
*endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if this helps,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 11:47:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-28T11:47:53Z</dc:date>
    <item>
      <title>Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051287#M722405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a transaction for maintain table content - now i like to write the data to a transporttask - i can't find any existing functionality. Cany anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 11:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051287#M722405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T11:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051288#M722406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to transport the table entries. Change Delivery Class to C and then re-enter all the value. This will attach them to transport. or take help from BASIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 11:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051288#M722406</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-11-28T11:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051289#M722407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i don't use a sm30 maintainview - i wrote an own abap program for maintain the data - so it dosn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 11:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051289#M722407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T11:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051290#M722408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this program to transport the data from one system to another system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report YMNDTCOPY *
*&amp;amp; *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; *
*&amp;amp; *
*&amp;amp;---------------------------------------------------------------------*

REPORT YMNDTCOPY MESSAGE-ID US NO STANDARD PAGE HEADING.

PARAMETERS: TABLE LIKE DD02L-TABNAME,
MANDT_FM LIKE T000-MANDT DEFAULT '207',
MANDT_TO LIKE T000-MANDT DEFAULT SY-MANDT.

TABLES: DD02L, T000.

DATA: LINES LIKE SY-DBCNT VALUE 0.
DATA: ICURSOR TYPE CURSOR.
DATA: ICURSOR1 TYPE CURSOR.
DATA: BEGIN OF TMP OCCURS 1000,
MANDT LIKE T000-MANDT,
REST(8189) TYPE C,
END OF TMP.
DATA: BEGIN OF TMP1 OCCURS 1000,
MANDT LIKE T000-MANDT,
REST(8189) TYPE C,
END OF TMP1.
data : ws_flag, ws_ans.
*OPEN CURSOR WITH HOLD ICURSOR1 FOR
* SELECT * FROM (TABLE) CLIENT SPECIFIED WHERE MANDT = MANDT_to.
*do.
* FETCH NEXT CURSOR ICURSOR1 INTO TABLE TMP1 PACKAGE SIZE 1000.
* IF SY-SUBRC = 0.
* ws_flag = 'X'.
* CLOSE CURSOR ICURSOR1.
* EXIT.
* ENDIF.
*enddo.
*
*if ws_flag = 'X'.
* CALL FUNCTION 'POPUP_TO_CONFIRM'
* EXPORTING
** TITLEBAR = ' '
** DIAGNOSE_OBJECT = ' '
* TEXT_QUESTION = text-001
** TEXT_BUTTON_1 = 'Ja'(001)
** ICON_BUTTON_1 = ' '
** TEXT_BUTTON_2 = 'Nein'(002)
** ICON_BUTTON_2 = ' '
** DEFAULT_BUTTON = '1'
** DISPLAY_CANCEL_BUTTON = 'X'
** USERDEFINED_F1_HELP = ' '
** START_COLUMN = 25
** START_ROW = 6
** POPUP_TYPE =
** IV_QUICKINFO_BUTTON_1 = ' '
** IV_QUICKINFO_BUTTON_2 = ' '
* IMPORTING
* ANSWER = ws_ans
** TABLES
** PARAMETER =
** EXCEPTIONS
** TEXT_NOT_FOUND = 1
** OTHERS = 2
* .
* IF SY-SUBRC &amp;lt;&amp;gt; 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
* ENDIF.
*
*endif.
*if ws_ans = '1'.
DELETE FROM (TABLE) CLIENT SPECIFIED WHERE MANDT = MANDT_TO.
COMMIT WORK.
OPEN CURSOR WITH HOLD ICURSOR FOR
SELECT * FROM (TABLE) CLIENT SPECIFIED WHERE MANDT = MANDT_FM.
DO.
FETCH NEXT CURSOR ICURSOR INTO TABLE TMP PACKAGE SIZE 1000.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
CLOSE CURSOR ICURSOR.
EXIT.
ENDIF.
LOOP AT TMP.
TMP-MANDT = MANDT_TO.
MODIFY TMP.
LINES = LINES + 1.
ENDLOOP.
INSERT (TABLE) CLIENT SPECIFIED FROM TABLE TMP.
CALL FUNCTION 'DB_COMMIT'.
ENDDO.

WRITE: / 'for table', TABLE, LINES, 'lines are copied.'.
*endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if this helps,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 11:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051290#M722408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T11:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051291#M722409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use se16 (DD02l-MAINFLAG = X)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 11:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051291#M722409</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2007-11-28T11:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051292#M722410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To transport table content by program, create a BDC of  SE16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto SE16&lt;/P&gt;&lt;P&gt;Enter table name&lt;/P&gt;&lt;P&gt;Hit enter&lt;/P&gt;&lt;P&gt;Click EXECUTE&lt;/P&gt;&lt;P&gt;select the checkbox&lt;/P&gt;&lt;P&gt;click Table entries=&amp;gt; Transport entries&lt;/P&gt;&lt;P&gt;Pass the TR no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 11:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051292#M722410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051293#M722411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forget about programs, and BDC of SE16.  There is a very simple way of transporting table contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your table is called Z_MY_TABLE, create an object entry in a transport manually, of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R3TR TABU Z_MY_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABU is the object type used by the Change and Transport System, for "Table Contents".  I use this method frequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify at the key level either "*" for all records, or you can specify just the keys of the records you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 12:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051293#M722411</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-28T12:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051294#M722412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use fm's:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TR_ORDER_CHOICE_CORRECTION&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;TR_APPEND_TO_COMM_OBJS_KEYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example FORM TRANSPORT_MARKED_LINES&lt;/P&gt;&lt;P&gt;in FUNCTION-POOL /1BCDWB/DBT005 = SE16 -Program of T005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 12:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051294#M722412</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2007-11-28T12:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transport Table content by program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051295#M722413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there an equivalent fm to 'TR_ORDER_CHOICE_CORRECTION' for webdynpro ABAP based applications?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 14:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transport-table-content-by-program/m-p/3051295#M722413</guid>
      <dc:creator>steffen_siegmund</dc:creator>
      <dc:date>2008-03-26T14:29:06Z</dc:date>
    </item>
  </channel>
</rss>

