Sometimes the '-' sign needs to be relocated for numerical data, especially financial downloads. The following routine can be placed as necessary.
This code was written in 3.1H and has been successfully used in 4.0B and 4.6C. It should work on all presently support SAP versions.
PERFORM SEARCH_MINUS changing p_mth6. ... FORM SEARCH_MINUS CHANGING PARAM. DATA: ZJUNK(21) TYPE C. SEARCH PARAM FOR '-'. IF NOT SY-SUBRC IS INITIAL. EXIT. ENDIF. SPLIT PARAM AT '-' INTO PARAM ZJUNK. CONCATENATE '-' PARAM INTO PARAM. CONDENSE PARAM. ENDFORM.
This was first published in February 2003