‎2008 Nov 12 9:36 AM
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.
‎2008 Nov 12 9:42 AM
‎2008 Nov 12 9:42 AM
‎2008 Nov 12 9:45 AM
Hi
i want to get data from bsik between s_budat-low to s_budat-high.
here i am not getting.
‎2008 Nov 12 9:50 AM
‎2008 Nov 12 9:42 AM
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
‎2008 Nov 12 9:47 AM
Hi,
Just debug your code and see what the output is coming. And according to that make the relevant changes.
Thanks.
Nitesh
‎2008 Nov 12 9:48 AM
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 thisAll 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
‎2008 Nov 12 9:54 AM
LOOP AT ibsik where budat in s_budat.
Your Logic
ENDLOOP.Regards,
SAPient
‎2008 Nov 12 11:38 AM