‎2018 Aug 14 10:20 AM
Hello,
I am in BEFORE_UPDATE Method in class ZCL_IM_PP_WOUPDATE & I want to select
from IT_ITEM parameter the AUFNR , VAPLZ , ADPSP.
How can I do this?
‎2018 Aug 14 10:24 AM
‎2018 Aug 14 10:29 AM
IF_EX_WORKORDER_UPDATE~BEFORE_UPDATE ,I have my code inside this interface or method how will you call it,The fields that I want are in the IT_ITEM Parameter =>double click in assosiated type(COBAI_T_ITEM) has cobai_t_item TYPE TABLE OF cobai_s_item,=>double click again =>cobai_s_item LIKE afpob, Inside afpob are the fields I want.How do I use them in my code?
‎2018 Aug 14 10:46 AM
IT_ITEM is an ordinary internal table. So you use normal basic ABAP to read the information you need.
‎2018 Aug 14 10:48 AM
then it gives me this error "IT_ITEM" is not defined in the ABAP Dictionary as a table, projection view, or database view.
‎2018 Aug 14 10:57 AM
It is an internal table, I think you are using select on this.
You should use read table rather than select.
‎2018 Aug 14 11:06 AM
You are right but If I do this for example
READ TABLE IT_ITEM into lt_caufv WITH TABLE KEY aufnr = IT_ITEM_OLD-aufnr. it_item_old is a table without a header line.
‎2018 Aug 14 11:59 AM
I'm sorry but I can't give assistance to anyone who is visible as "former member".
‎2018 Aug 14 1:10 PM
‎2018 Aug 14 3:11 PM
As Horst Keller as commented below, reading internal tables is basic ABAP. Perhaps you should revisit your training notes.
Tables with header lines are obsolete and have been for years.
‎2018 Aug 14 2:54 PM
‎2018 Aug 14 2:56 PM
Learn some basic ABAP, working with internal tables?
https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenitab.htm