‎2008 Mar 25 1:15 PM
hi mates
i need to create a FM where my t_outtab shoud be compatible to my internal table. that is t_outtab has some structure, now i need to create a t_outtab whose structure should be compatible with my i_tab ( internal table ) which has five fields [ 2 from mara and 3 from marc ]. can anyone guide me on the same.
thanks in advance
regards
mano
‎2008 Mar 25 1:18 PM
hi ,
create the structure with the data elemetns..like this ..from diff tables....into a single structure...
pernr type persno
begda type begda
endda type endda
regards,
venkat.
‎2008 Mar 25 1:20 PM
You can create a global structure in SE11(Data Types -> structures) with your fields and to give the type of the table parameter( t_outtab ) as this structure in the FM.
Edited by: Rengith Skariah on Mar 25, 2008 2:21 PM
‎2008 Mar 25 1:23 PM
hi,
Create a new 'Z*' structure via SE11 with the required 5 fields to make use of the same.
REgards,
Santosh
‎2008 Mar 25 1:26 PM
Hi,
1.Go to se11.
2.In The data Type Enter Some Structure Name(Ex:ZITAB_S)
3.Press Enter. Select Structure radio button.
4.Enter The Fieldname and data type as Your internal Table.Save and Activate.
5.After That Go back to se11 . Enter ZITAB_T in data Type .press create .Select Table Type.
6. There Give the line type as structure name.(zitab_s)
7. Save and Activate
Use This Table type in function module in changing tab
like
ITAB TYPE ZITAB_T
Revert back in case any problem.
Reward If helpful
Regards
sandipan