‎2018 Dec 05 4:57 AM
DATA: PASS1(6) TYPE C,
CRR(6) TYPE C,
PF(5) TYPE C,
DED(4) TYPE C,
PFP(4) TYPE C,
PD(6) TYPE C,
ABS(2) TYPE C,
ABSC(4) TYPE C,
NETS(5) TYPE C.
PF = '13.75'.
WHEN 'SAL'.
NETS = CRR - PFP - ABSC - DED.
PD = CRR / 30.
ABSC = ABS * PD.
PFP = CRR * PF / 100.
my errror is statemwnt is not accessible
‎2018 Dec 05 7:41 AM
What are you trying to do ? why is this "WHEN 'SAL'." hanging in middle of the code like an orphan.
‎2018 Dec 05 7:45 AM
in real life, you also need when what = what so only WHEN 'SAL' doesnt make any sense. you should read more about CASE...WHEN.
‎2018 Dec 07 10:58 AM
‎2018 Dec 05 8:34 AM
Hello and welcome.
If this is your whole code, I think you should learn a bit more about ABAP, reading books or attending some courses, before jumping here and dropping the code like this.
Which is the aim you are trying to achieve with that code?
Why declaring variables as strings and then perform math operations with them?
Which statement is not accessible? The syntax check tells you which one and, once you got it, place your cursor on it and press F1 to obtain the help about that statement.
‎2018 Dec 05 9:44 AM
‎2018 Dec 05 1:39 PM
Maybe asking again with more information about your problem leads to better answers to your problem.
J.