Application Development 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: 

hi friends can u tell me problem regarding offset.

Former Member
0 Kudos

here i am using spmon+4(2) fro selecting month and for validating. but it is only considering up to 9 th month. after that it is giving the values as zero when i am using this in case stmt.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Kalyan,

After taking the offset value to move it to a 2 digit character varaible.

Then it will work fine.

Don't forget to award points.

Regards,

Vasanth

6 REPLIES 6

Former Member
0 Kudos

Hello Kalyan,

After taking the offset value to move it to a 2 digit character varaible.

Then it will work fine.

Don't forget to award points.

Regards,

Vasanth

Vinod_Chandran
Active Contributor
0 Kudos

Can you check the value in SPMON without offset.

Former Member
0 Kudos

no i iam checking for the month values as 01 for jan 02 feb and so on. so i am testing it with spmon+4(2). to get two charecter value. but it is working fine up to 09, but after that it is not checking in the loop.

0 Kudos

Kalyan,

Declare a character mon instead of offset, like

<b>Data: mon(2) type c.</b> and move the month from <b>spmon</b> to that value and use that month for your further checking.

rgds,

TM.

0 Kudos

Hi kalyan,

1. The reason may be bcos

the financial/fiscal years

in sap are

customized NOT like this.

jan=01

feb=02

.

.

dec=12.

2. But rather, along with year, like this.

(as per indian fiscal year)

apr=01

may=02

jun=03

...

dec=09

jan=10 (of the next year)

feb=11 (of the next year)

mar=12 (of the next year)

regards,

amit m.

andreas_mann3
Active Contributor
0 Kudos

hi,

use that structure:

data: begin of idat,

year type bseg-gjahr,

month type bkpf-monat,

end of idat.

move spmon to idat.

-> so check value in idat-month

A.