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

Length error occurred in IMPORT statement.

Former Member
0 Likes
2,908

Hi All,

while exexuting a program i got dump saying that Length error occurred in IMPORT statement. through ST22 i came to know that both import and export structres are not same. Import structure is longer than the export structure.

I tried in SDN but i coudnt find any solution. can you please suggest how to solve this.

Thanks in advance,

Sreekala.

Hi All,

while exexuting a program i got dump saying that Length error occurred in IMPORT statement. through ST22 i came to know that both import and export structres are not same. Import structure is longer than the export structure.

I tried in SDN but i coudnt find any solution. can you please suggest how to solve this.

Thanks in advance,

Sreekala.

7 REPLIES 7
Read only

former_member194416
Contributor
0 Likes
1,773

Is this a standard program ? Both structures must be in exactly same type and length.

Read only

0 Likes
1,773

No, it is not a standard program. Both are Z programs. But if i change the target structure, it will effect somewhere else.

If there any way to prevent the dump.

Read only

0 Likes
1,773

Create one more structure in same type import export using this then assign values to the structure you want to use.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,773

Try import (paramter_list : here read more about ptab i.e dynamica mapping]

Read only

Former Member
0 Likes
1,773

Hi,

Maybe what you can do si....

Program X

data: v_var(20) type c.

export v_var.

Program Y

data: v_var(20) type c,

v_var2(50) type c.

import v_var.

v_var2 = v_var.

Create a variable that is exactly the same with the exporting parameter, then just assign it to a local variable declared in the 2nd program.

Hope this helps.

Benedict

Read only

Former Member
0 Likes
1,773

Hi,

Check the structure of the imports.Formal and actual paramaters structures Should be same and the order of the fields and TYPE and length should be same.

Thanks

Read only

Former Member
0 Likes
1,773

Thanks for your help.