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

if statement

Former Member
0 Likes
458

IF i_bsas-augdt(4) GE sgjahr+3(4)

IF i_bsas-augdt+4(2) GT pmonat.

what does this mean

3 REPLIES 3
Read only

Former Member
0 Likes
439

IF i_bsas-augdt(4) GE sgjahr+3(4)

IF i_bsas-augdt+4(2) GT pmonat.

consider i_bsas-augdt = '12345678' and sgjahr = '8765432'.

Then,

i_bsas-augdt(4) = '1234'

sgjahr+3(4) = '5432' and

i_bsas-augdt+4(2) = '56'.

These notations are used for getting offsets of character strings.

So your conditiopn becomes.

If '1234' >= '5432'

If '56' > pmonat

G@urav.

Read only

Former Member
0 Likes
439

Hi,

Offsetting and comparing the dates.

IF i_bsas-augdt(4) GE sgjahr+3(4) "Checking the year with sgjahr

IF i_bsas-augdt+4(2) GT pmonat. "Checking the period

Thanks,

Sriram Ponna.

Read only

former_member194797
Active Contributor
0 Likes
439

I think that SGJAHR is a select-option and PMONAT is a parameter.

If it is right, SGJAHR+3(4) is the same as SGJAHR-LOW.