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

Problem creating function module in ECC6.0! Please help.

Former Member
0 Likes
648

I am trying to create a new function module that was there in the previous version(4.6C) but the function module does not let me add parameters in "TABLES" section! It sayd TABLES is obsolete! Any help would be great. I am putting function module declaration in old version below if this could help. thanks.

Function Module declaration in old version:

""Local interface:

*" IMPORTING

*" VALUE(EINF_MEHRF) DEFAULT 'E'

*" VALUE(START_COLUMN) DEFAULT 4

*" VALUE(START_ROW) DEFAULT 4

*" VALUE(WINDOW_TITLE) DEFAULT ' '

*" VALUE(HEADER_LINE) LIKE ZSELTB STRUCTURE ZSELTB OPTIONAL

*" VALUE(HEADER_LINE2) LIKE ZSELTB2 STRUCTURE ZSELTB2 OPTIONAL

*" EXPORTING

*" REFERENCE(SEL_LIN1) LIKE ZSELTB STRUCTURE ZSELTB

*" REFERENCE(SEL_LIN2) LIKE ZSELTB2 STRUCTURE ZSELTB2

*" TABLES

*" SEL_TABLE STRUCTURE ZSELTB OPTIONAL

*" SEL_MULT STRUCTURE ZSELTB2 OPTIONAL

--Mithun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
623

HI,

It allows.. it only a warning message..Press Enter when the warning message shown.

u can use changing instead of tables..

Regards

SAB

Message was edited by:

Syed A

5 REPLIES 5
Read only

Former Member
0 Likes
624

HI,

It allows.. it only a warning message..Press Enter when the warning message shown.

u can use changing instead of tables..

Regards

SAB

Message was edited by:

Syed A

Read only

Former Member
0 Likes
623

Hi,

Create a table type in SE11 for the structure ZSELTB & ZSELTB2..

INstead of TABLES use CHANGING parameter and give the table type in the TYPE...

1)

Go to SE11

Choose the radio button data type..

Give ZSELTB_T.

Press create..

Choose the radio button..Table type..

Give the structure name ZSELTB..in the row type..

Press save and activate the table type..

Check the existing table type AFVC_T if you have any clarifications..

2)

In the function module..

choose the changing tab...

Give the table type name as below..

CH_ZSELTB TYPE ZSELTB_T

Thanks,

Naren

Read only

Former Member
0 Likes
623

what is your latest version?

What are you exactly trying to do in tables parameter? It should allow you to add the parameters. post the code what you are trying to add.

Read only

Former Member
0 Likes
623

Dah, I just had to hit enter because it was just a warning. Thanks for your time and I rewarded points to everyone.

Mithun

Read only

Former Member
0 Likes
623

hello,

This item was very helpful also for me.

Thx