10-06-2007 11:05 AM
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
10-06-2007 11:11 AM
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'.
10-06-2007 11:11 AM
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'.
10-06-2007 11:11 AM
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.
10-06-2007 12:28 PM
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