2009 Jul 22 7:51 AM
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.
2009 Jul 22 7:53 AM
Is this a standard program ? Both structures must be in exactly same type and length.
2009 Jul 22 7:55 AM
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.
2009 Jul 22 8:01 AM
Create one more structure in same type import export using this then assign values to the structure you want to use.
2009 Jul 22 7:54 AM
Try import (paramter_list : here read more about ptab i.e dynamica mapping]
2009 Jul 22 7:59 AM
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
2009 Jul 22 8:00 AM
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
2009 Sep 30 12:17 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |