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 Read the table inside the structure SSFCRESCL

Former Member
0 Kudos

Dear Gurus,

I am trying to get the spool number from the smartform. The spool number is passed through the structure.

This is the structure i am using SSFCRESCL.

The structure has a table inside it called spoolids. This spoolids has the spool number.

While debugging i see like this. SSFCRESCL-spoolids[1] = 5074

I need to get this 5074 into a variable.

Please help me.

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

Hello

This is quite simple:


DATA:
  ls_smart   TYPE SSFCRESCL,
  ls_spoolid LIKE LINE OF ls_smart-spoolids,  " or: ls_spoolid   TYPE RSPOID.
  ld_id         TYPE RSPOID.
  ...
  LOOP AT ls_smart-spoolids INTO ls_spoolid.
    ld_id = ls_spoolid.
...
  ENDLOOP.

Regards

Uwe

4 REPLIES 4

uwe_schieferstein
Active Contributor
0 Kudos

Hello

This is quite simple:


DATA:
  ls_smart   TYPE SSFCRESCL,
  ls_spoolid LIKE LINE OF ls_smart-spoolids,  " or: ls_spoolid   TYPE RSPOID.
  ld_id         TYPE RSPOID.
  ...
  LOOP AT ls_smart-spoolids INTO ls_spoolid.
    ld_id = ls_spoolid.
...
  ENDLOOP.

Regards

Uwe

0 Kudos

Thanks. It worked perfect.

Former Member
0 Kudos

Hi,

DATA : l_SSFCRESCL TYPE SSFCRESCL.
DATA : T_TSFSPOOLID TYPE TSFSPOOLID.

T_TSFSPOOLID = l_SSFCRESCL-SPOOLIDS.

0 Kudos

Thnx