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: 

perform statement using tables changing values

Former Member
0 Kudos

Hi All,

I have 2 internal tables(3 out of 10 fields are same in each ITAB) and both has to be processed seperately but has to read same database tables(FOR ALL ENTRIES IN ITAB1 and ITAB2 where field1 EQ ITAB1-FIELD1......) using the key fields.

Can anyone tell me how to use the PERFORM statement USING ITAB CHANGING values.

It is a requirement else I wouls have processed them seperately.

Will definitely rewards point if useful. I Tried to find some help from previous posts but could not.

Thanks,

Shaan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Do you want to know how the interface of the perform should be ?

PERFORM <form_name> USING <it_table>.

FORM <form_name> USING <table_name> TYPE <table_type> or 'ANY TABLE'.

Similarly you can also use 'CHANGING'.

3 REPLIES 3

Former Member
0 Kudos

Do you want to know how the interface of the perform should be ?

PERFORM <form_name> USING <it_table>.

FORM <form_name> USING <table_name> TYPE <table_type> or 'ANY TABLE'.

Similarly you can also use 'CHANGING'.

Former Member
0 Kudos

Hi Shaan,

try something like below

PERFORM data_sel tables itab1.

PERFORM data_sel tables itab2.

PERFORM data_sel tables itab3.

FORM data_sel tables p_itab type any.

field-symbols <fs> type standard table.

assign p_itab to <fs>.

...further processing

ENDFORM.

Former Member
0 Kudos

Dear Shann,

Instead of using <b>CHANGING</b> statement, you can use the following statement...

PERFORM frm1 USING itab.

FORM frm1 USING tab TYPE <table_type> or 'ANY TABLE'.

Reward points if it is Useful.

Regards ,

Gokul