研究、分享我学习零售业SAP的历程
------------打造中国第一个零售SAP博客

REPORT ZEXAMPLE.

DATA: V_HEAD(10), V_TAIL(10).

PARAMETERS: P_STR(20),

            P_DEM.

CALL FUNCTION 'STRING_UPPER_LOWER_CASE'

     EXPORTING

          DELIMITER = P_DEM

          STRING1   = P_STR

     IMPORTING

          STRING    = P_STR

     EXCEPTIONS

          NOT_VALID = 1

          TOO_LONG  = 2

          TOO_SMALL = 3

          OTHERS    = 4.

IF SY-SUBRC EQ 0.

  WRITE:/ P_STR.

ELSE.

  WRITE:/ 'ERROR CONVERTING STRING'.

ENDIF.

posted on 2007-08-22 11:58  会东  阅读(6632)  评论(4编辑  收藏  举报