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

Retrieve data from Complex Structures

Former Member
0 Likes
805

Hi everyone,

once the smartform is executed,a spool number is generated for the smartform which is stored in job_output_info in the importing parameters of the smartform FM. Now,it is a complex structure in the sense,the spool number is stored in SPoolids which is of the table type. So,I dont know how to retrieve the data. I mean when I try to move it says it is not compatible.

Please help on how to declare the complex structure and take data from there.

Regards,

S.

6 REPLIES 6
Read only

Former Member
0 Likes
720

HI ,

need to take offset of field wise from structure and put into internal table corresponding field.

ex...

t_int1-matnr = SPoolids+0(18).

t_int1-kunnr = SPoolids+18(28)

etc

u have to follow like this.

Thanks

shambhu.

Read only

0 Likes
720

Hi

I did not understand the answer. In this structure ssfcrescl, there is an field spoolids whose component type is an table type.

So,in runtime this structure populates data.So,please tell me how do I take the number from spoolids field.

Regards,

S.

Read only

0 Likes
720

Hi ,

U can store the value as like this.

var1 = ssfcrescl - spoolids+0(18).

Thanks

shambhu

Read only

0 Likes
720

Hi

Both the mentioned answers dont work. I want only the spool number.Any other suggestions.

Regards,

S.

Read only

Former Member
0 Likes
720

Hi S0006628118,

You need spool ID from that Complex Structure or What is else data you need.

Just a guess If you need spool ID try to get like

V_SPOOLID = SY-SPONO.

Regards,

Suneel G

Read only

Former Member
0 Likes
720

Hi

Could someone please respond on how to tackle this issue??

Regards.

S.