12-02-2005 4:51 PM
hi all
i want to explain the exact problem.
i want to pass itab_deblo table records into t_blocked through 'perform and form'.
example.
perform authority_check tables itab_deblo
this i am writing in perform.
now i want to know what should i write in form so that t_blocked which is internal table (not type-pool) will get data from itab_deblo.
thanking u all for helping.
12-02-2005 4:56 PM
Hi Raj,
You shall write
First of all the internal table shall be declared as global internal table. I mean it should be in the top include. Now, While declaring use this code :
Form authority_check
tables p_itab_deblo structure itab_deblo(declared as global table).
Endform.
This will definitely work...
Please reward appropriate points....
Lokesh
12-02-2005 4:53 PM
12-02-2005 4:55 PM
12-02-2005 4:56 PM
Hi Raj,
You shall write
First of all the internal table shall be declared as global internal table. I mean it should be in the top include. Now, While declaring use this code :
Form authority_check
tables p_itab_deblo structure itab_deblo(declared as global table).
Endform.
This will definitely work...
Please reward appropriate points....
Lokesh
12-02-2005 4:59 PM
Sorry one correction,
Declare a type of the internal table globally and then use that type for reference.
eg.
declare the type globally.
Types : begin of ty_deblo
field1 type c,
field2 type c,
........
end of ty_deblo.
Form authority_check
tables p_itab_deblo structure TY_deblo(declared as global table).
Lokesh
12-02-2005 5:39 PM
hi all
i could solve my prob with your help. i am really greatful to u all.
thanx.
12-02-2005 5:44 PM
Hi Raj,
That is what the forum is for, helping each other. Can you please close your other posts regarding the same issue?
Thanks,
Srinivas
12-02-2005 5:08 PM
Hi Raj,
You can continue in the same post instead of opening three posts for the same issue.
Here is how you can do your code, assuming your t_blocked and itab_deblo are declared globally.
perform authority_check tables itab_deblo.
....
...
form authority_check tables itab_deblo structure <your structure>.
loop at itab_deblo.
move-corresponding itab_deblo to t_blocked.
append t_blocked.
clear t_blocked.
endloop.
endform.
Regards,
Srinivas
12-02-2005 5:18 PM
Hi,
When u write the perform authority_check tables itab_deblo.
declare t_blocked as the same structure like that of itab_deblo.
data : t_blocked type standard table of itab_deblo with header line.
When u create this perform it creates a form...endform
form authority_check tables p_itab_deblo.
t_blocked[] = p_itab_deblo[].
......
......
endform.
U can use directly p_itab_deblo for ur addition data modifications or else move data and use the t_blocked for addition data modifications.
if u want only particular data fields to be moved then use
loop at p_itab_deblo.
t_blocked-<field1> = p_itab_deblo-<field1>.
t_blocked-<field2> = p_itab_deblo-<field2>.
t_blocked-<field5> = p_itab_deblo-<field5>.
......
......
append t_blocked.
clear : t_blocked, p_itab_deblo.
endloop.
If this helps U Pl. award points.