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

TABLES parameter obsolete

Former Member
0 Likes
1,050

Dear all,

I noticed that in SAP ECC 6.0 the tables parameter is obsolete (warning about it).

After trying some things out and reading on the forum, i found that u can pass an internal table as a changing parameter for example, but the parameter has to be of type tabletype, as in.

CHANGING mytab type mytabletype.

Is it possible to define the mytabletype in a function group, or does it have to be defined in the dictionary?

apparantly you cant use changing mytab type mara if u want to pass an internal table with the same structure as mara.

So can i define in an include of the function group?

Types: mytabletype type mara. ( or something like that)

Or is it possible to define in my function module interface:

CHANGING mytab type standard table mara (or something like that) So i can make use of the tables allready in the dictionary...

Kind regards,

Joren

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
888

Hi Joren,

I think you have to create a table type in se11 only. If you are trying to create a table type for standard structures, just check if there is a standard table type already existing (IN SE11).

Regards,

Ravi

6 REPLIES 6
Read only

Former Member
0 Likes
888

Yes you can do that , it will work

Read only

Former Member
0 Likes
889

Hi Joren,

I think you have to create a table type in se11 only. If you are trying to create a table type for standard structures, just check if there is a standard table type already existing (IN SE11).

Regards,

Ravi

Read only

0 Likes
888

Hi,

thx for the replies. When i use a type from the dictionary it is working in the following way:

CHANGING mytab type tabletypefromdictionary.

It seems it doesnt work using 'type standard table of mara' in the function module interface.

Also,

when i define in the top include of my fuction pool the following:

types: begin of my_type,

myfield type i,

end of my_type.

I cant use it in my function module like this:

CHANGING mytab type my_type.

So is the only way the first method i mention (with type from the dictionary) or am i doing something wrong?

Kind regards,

J.

Read only

0 Likes
888

Hi,

got this from help.sap.com.

The interface parameters can be typed. You can do so either by referring to ABAP Dictionary types or elementary ABAP types.

this means that you can only use global types for your parameters, and none you defined in your top. Kinda makes sence, if you consider the fact that you will also need the type when you implement the fm to pass the parameters

this is where I found it.

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm</a>

Read only

0 Likes
888

hi Joren ,

As per ur post , i suggest u to do following things

types: begin of my_type,

myfield type i,

end of my_type.

data mytype type my_type occurs 0 with header line.,

then pass these 'mytype' in the changing filed , it will work.

I hope this wud solve ur problem

regards.

Note: Reward if useful

Read only

0 Likes
888

hi,

i think kevin is right, you cant make use of types that are not defined in the dictionary.

It makes sense indeed that the types have to be defined, because others have to use the types too when they create data to pass to the function module. (only exception when working with a generic table, you define the type standard table then)

Kind regards,

J.