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

Field symbol data to function module

Former Member
0 Likes
1,712

hi all,

i am using the function module SF_SPECIALCHAR_DELETE to remove the special characters.

whereas we have the data in the field symbol <fs_data>.

In the selection screen i will enter the field which has the special character, for suppose if i enter

SGTXT field in selection screen that field as a special character.

whereas in field symbol <fs_data> the field SGTXT has special character , so that need to be removed.

i am using the FM SF_SPECIALCHAR_DELETE but it is going to dump if i pass the values as below.

CALL FUNCTION 'SF_SPECIALCHAR_DELETE'

EXPORTING

WITH_SPECIALCHAR = <fs_table>

IMPORTING

WITHOUT_SPECIALCHAR = <fs_table>

  • EXCEPTIONS

  • RESULT_WORD_EMPTY = 1

  • OTHERS = 2

please suggest me how to pass the field symbol data to above function module .

thanks in advance..

6 REPLIES 6
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
962

How is the field-symbol '<fs_table>' defined ?

Read only

Former Member
0 Likes
962

hi suhas,

the field symbol is defined as below

FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE.

please help me

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
962

Did you check the TYPEs of the interface params for SF_SPECIALCHAR_DELETE.

You cannot pass internal tables to the FM. Can you explain your req. in simple language ?

BR,

Suhas

Read only

Former Member
0 Likes
962

suhas,

i have to remove the special characters for the fields exists in the field symbol <fs_table>

for suppose BELNR = 123#456@ the BELNR value should be replaced as 123456 means special characters need to removed.

Read only

0 Likes
962

Can you make it more clear

What is <fs_data> then ?

Why are you usin a field symbol of type table ?

How the data is stored in <fs_table> ?

Read only

adrian_dorn
Advisor
Advisor
0 Likes
962

The import parameter of SF_SPECIALCHAR_DELETE is of type CHAR(40). This means that you cannot use this FM with a FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE.

Instead you need a field symbol like this to call the FM:

FIELD-SYMBOLS: <f> TYPE sf_searchw. "CHAR(40)