Skip to Content
author's profile photo Former Member
Former Member

Declaration problem

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 07: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.