Application Development 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: 

How to assing a table

Former Member
0 Kudos

I want to assing a table from the call stack to a local table. How do I do that?

(SAPMV50A)xlips

And xlips is defined as:

DATA: BEGIN OF XLIPS OCCURS 15.

INCLUDE STRUCTURE LIPSVB.

DATA: END OF XLIPS.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Code like this

DATA : c(45) type C Value '(SAPMV50A)xlips[],

TYPES: i_XLIPS TYPE Standard table of <of type xlips >.

TYPES: wa_XLIPS TYPE <of type xlips >.

FIELD SYMBOLS:<fs_xlips> type i_XLIPS,

<wa_fs_xlips> TYPE wa_XLIPS.

Assign (C) TO :<fs_xlips>

3 REPLIES 3

Former Member
0 Kudos

Hi ,

Try this..


  data: begin of da_xlips occurs 0.
          include structure lipsvb.
  data: end of da_xlips.

can you little more specific...

Regards,

Prabhudas

Former Member
0 Kudos

Hi,

Code like this

DATA : c(45) type C Value '(SAPMV50A)xlips[],

TYPES: i_XLIPS TYPE Standard table of <of type xlips >.

TYPES: wa_XLIPS TYPE <of type xlips >.

FIELD SYMBOLS:<fs_xlips> type i_XLIPS,

<wa_fs_xlips> TYPE wa_XLIPS.

Assign (C) TO :<fs_xlips>

asik_shameem
Active Contributor
0 Kudos

Hi,

Try in a dirty way as below.

DATA: lv_mem TYPE string VALUE '(SAPMV50A)xlips[]'

FIELD-SYMBOLS: <fs_tab> TYPE ANY TABLE.

ASSIGN (lv_mem) TO <fs_tab>.
IF sy-subrc EQ 0.
 " ... xlips[] = <fs_tab>.
ENDIF.