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

Passing Deap Structure Table to Function 'Read-Text'.

former_member186413
Participant
0 Likes
697

Hi Expert,

I was passing a deep structure table to the function 'read-text' as 'LINES',  It seems working for cup of days ago, but yesterday I've hit an exception  for passing parameters with different structure to.

If passing deep structure to function is forbidden, why It won't come in the first place? 

Meanwhile, It will be greatful to explain, whatelse is forbidden for deep structure!

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
640

Hi Hai,

The value passed to 'Tables' parameter i.e. 'LINES' in this case is not a deep structure. Deep Structures are tables within a table or more level of nesting.

The tables parameter should be declared like

Data : <Tab1> TYPE STANDARD TABLE OF tline.

Pass <Tab1> to the Read_text FM, it should work.

BR.

5 REPLIES 5
Read only

Former Member
0 Likes
641

Hi Hai,

The value passed to 'Tables' parameter i.e. 'LINES' in this case is not a deep structure. Deep Structures are tables within a table or more level of nesting.

The tables parameter should be declared like

Data : <Tab1> TYPE STANDARD TABLE OF tline.

Pass <Tab1> to the Read_text FM, it should work.

BR.

Read only

0 Likes
640

But, cup of days ago, the program worked perfetly fine.  why?

Read only

0 Likes
640

I cannot say why it was working couple of days ago and not now but i can only suggest that you try the declaration given by me and run the code. It will work.

BR.

Read only

0 Likes
640

Thanks,

Read only

0 Likes
640

Welcome ... HTH.