Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Declaration problem

Former Member
0 Likes
1,035

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.

4 REPLIES 4
Read only

Former Member
0 Likes
945

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

Read only

Former Member
0 Likes
945

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.

Read only

Former Member
0 Likes
945

Hello,

Try defining the structure as follows:

types begin of typ_zfi_details.

include structure zdetails.

types end of typ_zfi_details.

Regards

Ashish

Read only

Former Member
0 Likes
945

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