Skip to Content
0
Former Member
Mar 04, 2009 at 03:56 AM

alv print preview has ****** in meins field

519 Views

Hi to all experts,

for meins field im using conversion routine CONVERSION_EXIT_CUNIT_OUTPUT in the alv output im able to see the conversion from ST to PC but when see the print preview im getting all ***** in the print preview in alv.

here is my code.

IF it_mara IS NOT INITIAL.
    IF c_1 = 'X'.
      LOOP AT it_mara INTO wa_mara.
        READ TABLE it_makt INTO wa_makt WITH KEY matnr = wa_mara-matnr.
        IF sy-subrc EQ 0.
          wa_output-maktx = wa_makt-maktx.
        ENDIF.
       READ TABLE it_mtbez INTO wa_mtbez WITH KEY mtart = wa_mara-mtart.
        IF sy-subrc EQ 0.
          wa_output-mtbez = wa_mtbez-mtbez.
        ENDIF.

  

        CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT'
         EXPORTING
           input                = wa_mara-meins
          language             =  'E'
        IMPORTING
*       LONG_TEXT            =
          output               = l_uom
*       SHORT_TEXT           =
        EXCEPTIONS
          unit_not_found       = 1
          OTHERS               = 2
                 .
        IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

        wa_mara-meins = l_uom.

        MOVE-CORRESPONDING wa_mara TO wa_output.

        APPEND wa_output TO it_output.

        CLEAR: wa_output,wa_mara,l_uom.

      ENDLOOP.