Skip to Content
0
Former Member
Aug 01, 2005 at 05:08 AM

ABAP Code

49 Views

I am trying to run simple ABAP code. But it is not working.

-


SELECT single obknr INTO mpos-obknr

FROM mpos WHERE warpl = record-warpl.

if sy-subrc = 0 then.

SELECT equnr

INTO i_plan_data-equnr

FROM objk

WHERE obknr = mpos-obknr.

i_plan_data-warpl = record-warpl.

APPEND i_plan_data.

ENDSELECT.

endif.

-


record and i_plan_data are internal tables.

Code is not fetching obknr from mpos table.

Please suggest what can be the error.