Another method of relocating '-' signs in downloads

Sometimes the '-' sign needs to be relocated for numerical data. This routine can be placed as necessary.

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

Dig deeper on SAP ABAP

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close