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

dynamic internal table+function module

Former Member
0 Likes
442

Hi guys,

I need a help.Could u plz tell me how to pass a field symbol contexts inside an export parameter?

Points will be rewarded for helpful answers....

3 REPLIES 3
Read only

Former Member
0 Likes
410

Hi,

You can use the TYPE TABLE in the exporting parameters..If you use TABLE it assumes an internal table.

Ex..

ITAB TYPE TABLE

Thanks

naren

Read only

Former Member
0 Likes
410

Hi,

try this.

say fs_table_field is your field symbol.

data: l_field_value TYPE char40.

FIELD-SYMBOLS : <fs_table_field> TYPE ANY.

MOVE <fs_table_field> TO l_field_value.

Pass this l_field value to export parameter

Regards,

Niyaz

Read only

0 Likes
410
FIELD-SYMBOLS: <fs> TYPE table.
  DATA:  it TYPE REF TO data.
  CREATE DATA it TYPE STANDARD TABLE OF (tabname).
  ASSIGN it->* TO <fs>.
  SELECT * FROM (tabname)
           INTO TABLE <fs>.

This is my code.Plz tell me inthis case how do I do it?