Minus Sign Position change in SAP ABAP.

In sap by default minus sign display in the right side of the field. In case if users demands to change its position then need to use FM to fulfill the requirement. In  below example is given:

Functional Module : CLOI_PUT_SIGN_IN_FRONT

Report: Sign_Position_change.

Parameter : Number1 type I,
                   Number2 type I.
Data : Sum type I,
          Change_Sign(15) type I.

Sum = Number1 + Number2.

Change_Sign = Sum.

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
Value = Change_sign.

Write: / 'After Shifting: ',Change_sign.

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

BAPI to Change STO PO/ PO Delivery date in SAP

Decimal remove in a smartforms report