cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP code error

Former Member
0 Kudos

HI Guys,

Can you please check the code error ?

Select MBLNR MJAHR CPUDT CPUTM

where werks = p_werks

and cpudt = sy-datum

and cputm > sy-uzeit and cputm < (sy-uzeit-p_hours).

error in brackets ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

modify your code as follows


Select MBLNR MJAHR CPUDT CPUTM  from dbtab into itab
where werks = p_werks
and cpudt = sy-datum 
and cputm > sy-uzeit and cputm < (sy-uzeit-p_hours).

calculate (sy-uzeit-p_hours). and assaign to a variable and use it.

dbtab---is a database table and itab should have the same structure

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi!

You should tell the system from which database table you want to read....

Regards,

Volker

Former Member
0 Kudos

Hi Vasu,

Someone in the forum can reply back to you for your question, but I guess this is not the right forum to post question related to ABAP.

Regards,

Neetesh