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: 

copy the data

Former Member
0 Kudos

hi friends.

i have doubt about i am copying the value from the function module internal table

and displaying the output as report.

i have to filter the result regarding some conditions.

i declared

data: CRITICAL_STATEMENTS type standard table of bamstatem with header

line.

from this internal table i want to copy to another table with some conditions.

please reply as soon possible.

thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Declare another internal table ITAB into which you wants to move records based on some condition

Loop at CRITICAL_STATEMENTS .

If CRITICAL_STATEMENTS-f1 < condition>

move fields from CRITICAL_STATEMENTS to ITAB.

Append ITAB.

endif.

clear ITAB.

endloop.

Reward points for useful Answers

Regards

Anji

2 REPLIES 2

Former Member
0 Kudos

Hi,

As per my understanding you want CRITICAL_STATEMENTS to be copy into other table by filtering the data.

Tehn

loop at CRITICAL_STATEMENTS where <condition>.

append CRITICAL_STATEMENTS to itab.

endloop

Show it in output.

Reward if useful!

Former Member
0 Kudos

Hi

Declare another internal table ITAB into which you wants to move records based on some condition

Loop at CRITICAL_STATEMENTS .

If CRITICAL_STATEMENTS-f1 < condition>

move fields from CRITICAL_STATEMENTS to ITAB.

Append ITAB.

endif.

clear ITAB.

endloop.

Reward points for useful Answers

Regards

Anji