ls_taba_2-zjybs = floor( lv_zlssl / ls_taba_2-bstrf )."向上取整 CEIL 改为向下取整 FLOOR

 

DATA:a TYPE mseg-menge,
     b TYPE mseg-menge,
     c TYPE mseg-menge.


a = '1.36'.
b = '1.34'.

c = a / b.

c = CEIL( a / b ).
WRITE:/,c.
"输出 2.000

c = FLOOR( a / b ).
WRITE:/,c.
"输出 1.000

 

本人常年接收SAP运维和远程项目,ECC,S/4HANA,CRM,WDA. 远程人天可谈 !!请关注本人技术分享公众号:SAP翔子 每天分享新知识