Application Development 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: 

Subroutine that can accept different types of internal tables

Former Member
0 Kudos
76

Hey guys!

I'm creating a subroutine that takes input and sends it off to be converted but I am getting a syntax error: <tab> is not a STANDARD TABLE. I'm designating it with TYPE ANY TABLE, so I don't quite understand what is wrong.

Here is the relevant subroutine:

FORM conv_and_down USING name TYPE string tab TYPE ANY TABLE.

CONCATENATE cfd_name name INTO temp_str.

CLEAR tb_converted.

CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'

EXPORTING

i_field_seperator = fid_char

TABLES

i_tab_sap_data = tab

CHANGING

i_tab_converted_data = tb_converted

EXCEPTIONS

CONVERSION_FAILED = 0

OTHERS = 0.

....

ENDFORM.

Any help is appreciated, as I am still fairly new to ABAP.

Edited by: gilthan3 on Feb 9, 2012 4:31 PM

1 REPLY 1

Former Member
0 Kudos
47

Nevermind, I figured it out