hi friends,
In smart form how can we convert the decimal to whole no.
for ex. i have date like 5.456. now i want convert to whole
no. after point value more then 5 means the no should come
6. below 5 means its come 5. any body can help me with code.
its urgent.
Thanks.
Answer / komal sardar
try this code this will definately help you.
DATA: AD(10) TYPE C, " before Decimal
BD(10) TYPE C. " After Decimal
SPLIT VALUE AT '.' INTO BD AD.
IF AD+0(1) GE 5.
BD = BD + 1.
ELSE.
BD = BD.
ENDIF.
Is This Answer Correct ? | 4 Yes | 1 No |
what is the difference between user-exit & customer-exit?
4 Answers Cap Gemini, IBM, ITC Infotech, LGB, NTT Data, Sony, TCS, Tech Mahindra,
what is the unit of work
A field-groups statement or an insert statement reverses storage space and transfers values. State true or false. : abap modularization
is there any tping conversions in abp.and list them
BDC CALL TRANSACTION carry on synchronous processing and update the database both synchronously and asynchronously,where session method carry on asynchoronous processing and update the database synchrousnously.I want to know the meaning of synchronous and asynchronous processing and also the meaning of synchronous and asynchronous database update.
How do you write technical specs?
2 Answers Cap Gemini, IBM, PWC, TCS,
What are the 3 types of function modules in sap?
What is a type group?
what is the difference between bdc and rfc ?
list the important field symbol?
how many types of idoc'c?
Explain get pernr concept when we use logical data base? : abap hr