‎2010 Jun 03 8:05 AM
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..
‎2010 Jun 03 8:09 AM
‎2010 Jun 03 8:12 AM
hi suhas,
the field symbol is defined as below
FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE.
please help me
‎2010 Jun 03 8:36 AM
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
‎2010 Jun 03 8:47 AM
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.
‎2010 Jun 03 9:07 AM
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> ?
‎2010 Jun 03 11:57 AM
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)