Sometimes the '-' sign needs to be relocated for numerical data, especially financial downloads. The following...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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.
Dig Deeper on SAP ABAP