Application Development and Automation 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: 
Read only

function module

Former Member
0 Likes
464

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

4 REPLIES 4
Read only

Former Member
0 Likes
444

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.

Read only

Former Member
0 Likes
444

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

Read only

Former Member
0 Likes
444

hi,

Create a new 'Z*' structure via SE11 with the required 5 fields to make use of the same.

REgards,

Santosh

Read only

Former Member
0 Likes
444

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