‎2008 Jan 30 7:34 AM
Hi ALL
i have these following statements, and they are giving obsolete in my system, now i have to correct them , can anybody suggest any solution to this
MOVE space TO xvbplk.
xvbplk-venum = shenr.
READ TABLE xvbplk.
vbplk = xvbplk.
MOVE vbplk-brgew TO v_groswt.
i have declared the internal table like this....
types: begin of ty_xvbplk,
include INCLUDE STRUCTURE vbplk.
end of ty_vbplk.
DATA : xvbplk TYPE TABLE OF ty_xvbplk,
wa_xvbplk LIKE LINE OF xvbplk.
‎2008 Jan 30 7:40 AM
Hi,
MOVE space TO xvbplk.
xvbplk-venum = shenr.
READ TABLE xvbplk. ---> Use "INTO wa_xvbplk Transporting no fields" here
vbplk = xvbplk.
MOVE vbplk-brgew TO v_groswt.
i have declared the internal table like this....
types: begin of ty_xvbplk,
include INCLUDE STRUCTURE vbplk.
end of ty_vbplk.
DATA : xvbplk TYPE TABLE OF ty_xvbplk,
wa_xvbplk LIKE LINE OF xvbplk.
One more thing rather than using MOVE statement you can directly assign the value
Regards
Gaurav
‎2008 Jan 30 7:42 AM
Hi,
Can you explain what exactly you wanted?
As far i understood, here is the code
Clear : wa_xvbplk.
READ TABLE xvbplk INTO wa_xvbplk WITH KEY venum = shenr.
v_groswt = wa_xvbplk-brgew.
‎2008 Jan 30 7:43 AM
Hello,
Try defining the structure as follows:
types begin of typ_zfi_details.
include structure zdetails.
types end of typ_zfi_details.
Regards
Ashish
‎2008 Jan 30 7:48 AM
H,:
below is the corrected code:
clear wa_xvbplk.
xvbplk-venum = shenr.
READ TABLE xvbplk INTO wa_xvbplk Transporting no fields.
vbplk = wa_xvbplk.
v_groswt = vbplk-brgew .
i have declared the internal table like this....
No need to declare types*************************
types: begin of ty_xvbplk,
include INCLUDE STRUCTURE vbplk.
end of ty_vbplk.
**********************************************
DATA : xvbplk TYPE STANDARD TABLE OF vbplk,
wa_xvbplk TYPE vbplk.
Regards
Gaurav