Application Development 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: 

MOVE TRANSPORTING

Former Member
0 Kudos
1,337

WHAT IS THE USE OF MOVE ...TRANSPORTING STATEMENT.WHAT IS THE EFFECT IN THE HEADER AND BODY OF AN INTERNAL TABLE

6 REPLIES 6

Former Member

0 Kudos
330

Hi,

When you use MOVE along with TRANSPORTING additon fields that you mention after the TRANSPORTING, only those fields values are move to the target.

If you are moving Table to table entire table gets effected else only the headerline.

Regards,

Sesh

former_member223537
Active Contributor
0 Kudos
330

Hi,

It is MODIFY & not MOVE.

MODIFY wa_tab to i_tab Transporting matnr.

Here internal table i_tab content is modified only for the field MATNR.

All the fields mentioned after TRANSPORTING are modified in the internal table.

Best regards,

Prashant

Former Member
0 Kudos
330

Hi Veera,

SAP currently provide two standard programs for you to transport the standard texts.

RSTXSCRP - SAPscript Export to Dataset/ SAPscript Import from Dataset

RSTXTRAN - Transfer of SAPscriptTexts to a Correction

4.6c

In SE10, tick the followings :-

Customizing requests

Workbench requests

Transport of copies

Modifiable

Released

Hit Enter and a changed request lists will be displayed (click Releaseddirectly button or press F9)

STMS - Transport request from Developerto Production (depending on your company settings)

Import Overview

Double the Target System

Select the request to transport and click Import request or Ctrl + F11

-


Transport ABAP Report from Developer to Production

Assuming that you wrote an abap report in developer 300 and would like to transport it to production 900.

The Step by step procedure to transport from developer to production :-

1) Go to Se80

2) Select the radio button for Program and give the program name in the input box

3) Press display

4) Now it will go to another screen, then place the cursor on program name and press

Shift+F6 OR Click transport Button.

5) Save the program in Existing request or Create a new request. After Saving the

Program in Transport request and come out of the screen

6) Goto se38, type the program name and activate it, press Control+F4

7) it will go to next screen, showing all your transport request.

😎 Select your request and click on folder to expand it, after expanding it will show

another request inside.

9) Expand that request also and check your program exist or not,

10) select the inner request and press Right click, it will show a list, plz select release

11) it will goto another screen there press save button and press back button.

12) now the color of the inner request is changed, and relese the outer request, it will take

some seconds . please wait..

13) once this is over, please tell this outer request no. to basis guys and ask them to move quality

or production server.

<b>Pls reward pts if found usefull:)</b>

Regards

Sathish

jayanthi_jayaraman
Active Contributor
0 Kudos
330

Hi,

If you use move statement, it will transfer the values to the varaible.But it is temporarily.

If you use modify statement with transporting in addition, the value will be permanently be written in the internal table.

Former Member
0 Kudos
330

<b>1.READ for any Internal Table</b>

Reads a line of an internal table.

Syntax

READ TABLE <itab>  FROM <wa>
                  |WITH TABLE KEY <k1> = <f1>... <kn> = <fn> 
                  |WITH KEY = <f>
                  |WITH KEY <k1> = <f1>... <kn> = <fn> 
      INTO <wa> [COMPARING <f1> <f2>... |ALL FIELDS]
                [TRANSPORTING <f1> <f2>... |ALL FIELDS|NO FIELDS]
     |ASSIGNING <FS>
     |REFERENCE INTO <dref>.

This statement reads either the line of the internal table with the same key as specified in the work area <wa>, the line with the key specified in the TABLE KEY addition, the line that corresponds fully to <f>, or the one corresponding to the freely-defined key in the KEY addition. The contents of the line are either written to the work area <wa>, or the line is assigned to the field symbol <FS>. If you assign the line to a work area, you can compare field contents and specify the fields that you want to transport.

<b>2.MODIFY for any Internal Table</b>

Changes the content of lines in internal tables of any type.

Syntax

MODIFY TABLE <itab> FROM <wa> [TRANSPORTING <f1> <f 2>...] 
                              [ASSIGNING <FS> | REFERENCE INTO <dref>].

Copies the work area <wa> into the line of the internal table with the same table key as <wa>. If you use ASSIGNING or INTO REFERENCE, field symbol <FS> refers to the modified line or the relevant data reference is stored in <dref> after the statement. You can use the TRANSPORTING addition to specify the exact components that you want to change.

MODIFY <itab> FROM <wa> TRANSPORTING <f1> <f 2>... WHERE <logexp>.

Copies the work area <wa> into the line of the internal table for which the logical expression is true. In each comparison of the logical expression, the first operand must be a component of the line structure.

<b>3.MODIFY for Index Tables</b>

Changes the content of lines in index tables.

Syntax

MODIFY <itab> FROM <wa> [INDEX <idx>] [TRANSPORTING <f1> <f 2>...] 
                        [ASSIGNING <FS> | REFERENCE INTO <dref>].

Copies the work area <wa> into the line of the internal table with the index <idx>. If you omit the INDEX addition, you can only use the statement within a LOOP. In this case, you change the current loop line If you use ASSIGNING or INTO REFERENCE, field symbol <FS> refers to the modified line or the relevant data reference is stored in <dref> after the statement.

<b> 4.LOOP THROUGH internal tables</b>

Starts a loop through an extract dataset.

Syntax

LOOP AT <itab> INTO <wa> WHERE <logexp>.

LOOP AT <itab> ASSIGNING <FS> WHERE <logexp>.

LOOP AT <itab> REFERENCE INTO <dref> WHERE <logexp>.

<b>LOOP AT <itab> TRANSPORTING NO FIELDS WHERE <logexp>.</b>

Loop through any Internal Table The loop ends with an ENDLOOP statement. If the logical expression <logexp> is true, each loop pass either assigns the current line content to the work area <wa>; assigns the current line to a field symbol <FS>; creates a reference to the current line by <dref>; or does not assign the line content at all. The first operand in each part of <logexp> must be a component of the internal table. Pointed brackets are part of the syntax for field symbol names.

With index tables, you can use the additions FROM <n> and TO <n> to restrict the lines that are read by specifying an index range.

reward points if it is usefull .....

Girish