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

dates between data & days

Former Member
0 Likes
946

hi,

can you please suggest me where i am wrong in this code.

loop at ibsik.

if IBSIK-BUDAT ge s_budat-low and IBSIK-BUDAT le s_budat-high.

if ibsik-shkzg eq 'H'.

ibsik-dmbtr = ibsik-dmbtr * -1.

endif.

case ibsik-umskz.

when 'G' or 'H' or '1' or '2'.

move-corresponding ibsik to ibsik_q.

ibsik_q-days = ibsik_q-days + s_budat-low.

collect ibsik_q.

clear : ibsik_q,ibsik.

when 'X'.

move-corresponding ibsik to ibsik_x.

ibsik_x-days = ibsik_x-days + s_budat-low.

collect ibsik_x.

clear : ibsik_x,ibsik.

endcase.

endif.

endloop.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
917

what is the problem u r facing???

8 REPLIES 8
Read only

Former Member
0 Likes
918

what is the problem u r facing???

Read only

0 Likes
917

Hi

i want to get data from bsik between s_budat-low to s_budat-high.

here i am not getting.

Read only

0 Likes
917

loop at ibsik where budat in s_budat.
  xxx
endloop.
Read only

Former Member
0 Likes
917

Hi

It will be better , u define what u exactly want from code and how it is differing from that in Output .

or u can do DEBUGGING to find flaw in ur code.

Regards

Sachin

Read only

Former Member
0 Likes
917

Hi,

Just debug your code and see what the output is coming. And according to that make the relevant changes.

Thanks.

Nitesh

Read only

MarcinPciak
Active Contributor
0 Likes
917

Try chaning first condition.

if IBSIK-BUDAT ge s_budat-low and IBSIK-BUDAT le s_budat-high.

with

if IBSIK-BUDAT in s_budat.  "s_budat I guess is a selection options right? therefore you have to include the sign and option. this statement will solve this

All in all, as my precedors said, would be easier to help you when knowing your requirements.

Do you encounter syntax errors or logic ones?

Regards

Marcin

Read only

Former Member
0 Likes
917
LOOP AT ibsik where budat in s_budat.
Your Logic
ENDLOOP.

Regards,

SAPient

Read only

Former Member
0 Likes
917

yes i got it