Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP Code Error

former_member381412
Participant
0 Likes
499
Hello Guru,
Please help me urgently,
if my final value is less then 110 then add to 25 Rs and show my final value is 135.
if my final value is grater then 110 then not add 25 Rs. please give me suitable example
my code is
         GIT_HFINAL-DMBTR2 =  GIT_HFINAL-HPPC3    .                              
         LV_RATE = GIT_HFINAL-DMBTR2  * '0.25' .
         GIT_HFINAL-DMBTR2 = GIT_HFINAL-DMBTR2 + LV_RATE + 4.
-----------------------------------
GIT_HFINAL-DMBTR2 = 110 (How to add 25 Rs)
Regards,
Richa
1 ACCEPTED SOLUTION
Read only

former_member187748
Active Contributor
0 Likes
458

Hi Richa,

check through, you can modify it as you wants.

DATA : dmbtr1 type dmbtr.

               dmbtr1 = 25.

if

GIT_HFINAL-DMBTR2 < 110.
GIT_HFINAL-DMBTR2 =  GIT_HFINAL-DMBTR2 + dmbtr1.

else.

GIT_HFINAL-DMBTR2 =  GIT_HFINAL-DMBTR2.

endif.


2 REPLIES 2
Read only

former_member187748
Active Contributor
0 Likes
459

Hi Richa,

check through, you can modify it as you wants.

DATA : dmbtr1 type dmbtr.

               dmbtr1 = 25.

if

GIT_HFINAL-DMBTR2 < 110.
GIT_HFINAL-DMBTR2 =  GIT_HFINAL-DMBTR2 + dmbtr1.

else.

GIT_HFINAL-DMBTR2 =  GIT_HFINAL-DMBTR2.

endif.


Read only

0 Likes
458

Dear Sanjeev,

Thanks alot my issue is DONE.

Regards,

RIcha