Skip to Content
avatar image
Former Member

Assign Internal table to field symbol

Hi experts

The assignment for the internal table to the fields symbol gets failed. Please find my below code where I tried all posiblities of field symbol declaration even though the values are in the internal table XVBPA the ASSIGN ('(sapmv45a)xvbpa[]') TO <y1> statments fails and gives sy-subrc 4.

Please let me know any code need to change or provide the code for this

I declared the field symbol like below.

FIELD-SYMBOLS: <y1> TYPE any TABLE .

ASSIGN ('(sapmv45a)xvbpa[]') TO <y1>.

Thanks in advance.

Sai

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 25, 2010 at 10:58 AM

    Hello

    Try like this:

    data: FIELD_SYMBOL(40) TYPE C VALUE '(SAPMV45A)xvbpa[]'.
    FIELD-SYMBOLS: <y1> TYPE any .
    
    ASSIGN (FIELD_SYMBOL) to <y1>.
    

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 25, 2010 at 11:39 AM

    I agree to what Dzed has given.

    Regards,

    Uma

    Add comment
    10|10000 characters needed characters exceeded