Thursday, March 15, 2012

Display amount in ALV with front negative sign

# in SE37 create Z conversion Exit->

"CONVERSION_EXT_ZSIGN_OUTPUT"

function conversion_exit_zsign_output.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
*"----------------------------------------------------------------------

data: lv_value type char30.
lv_value = input.

* Fm to display sign at front it returns value in char
call function 'CLOI_PUT_SIGN_IN_FRONT'
changing
value = lv_value
.

output = lv_value.

endfunction.

In Fieldcat of ALV use:

gs_lvc_s_fcat-edit_mask = '==ZSIGN'.

2 comments:

  1. Playcasino | Review & Rating 2021 | $1000 Bonus + 150 FS
    Read our 김제 출장안마 in-depth 양주 출장샵 review about Playcasino and enjoy exclusive $1000 경기도 출장마사지 bonus + 150 free spins. Read the 영주 출장샵 casino review here! Rating: 4 · ‎Review 수원 출장안마 by TJ Hub

    ReplyDelete