Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Minus Sign in front

Hello all,

I have a requirement where in I need to bring the minus sign in front for the amount field in ALV Grid Display.

I used the FM CLOI_PUT_SIGN_IN_FRONT, but after I pass back the values, the sign gets set at the end. Moreover, I cannot create a character filed because the business might want to do sum on it.

Please advice.

Regards,

Salil

P.S. the below piece of code

DATA : gv_bill_rev  TYPE string,
         gv_balance   TYPE string.

  LOOP AT gt_master INTO gs_master.

    gv_bill_rev = gs_master-bill_rev.
    gv_balance  = gs_master-balance.

    CLEAR : gs_master-bill_rev,gs_master-balance.

    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
      CHANGING
        value = gv_bill_rev.

    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
      CHANGING
        value = gv_balance.

    MOVE : gv_bill_rev TO gs_master-bill_rev,
           gv_balance  TO gs_master-balance.

    MODIFY gt_master FROM gs_master INDEX sy-tabix
                                    TRANSPORTING bill_rev balance.

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question