Skip to Content
0
Jun 21, 2020 at 05:47 PM

abap routine convert to amdp

415 Views

Dear Experts,
could i convert my abap routine to amdp script?

DATA: lv_matnr TYPE c LENGTH 18.
    lv_matnr =
SOURCE_FIELDS-material.
    SHIFT lv_matnr RIGHT
DELETING TRAILING space.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        input        = SOURCE_FIELDS-material
      IMPORTING
        output       = lv_matnr
      EXCEPTIONS
        length_error = 1
        OTHERS       = 2.
    RESULT = lv_matnr.

thanks