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

SmartForms002 Error when activating uploaded form

Former Member
0 Likes
1,771

When I create a smartform with an address element in our pre-dev env, download it and then upload it into our Dev environments, it syntax checks fine but I get a SmartForms002 Error ... Internal Error (Illegal structure of data storage). It is fine in our pre-dev environment. I have figured out it only happens when I have an address element and it happens even when downloading/uploading forms within the same env. We are running SAP ECC 5.0, Basis Support Pack 13. I have included the steps below to re-create this problem. Does anyone have any ideas?

- enter transaction smartforms

- type zqmjunk55 as smartform name and click on the create button

- click on Page 1, Right Click, select create and address

- put 60000353 in as the address #, click save and local object, activate form

- click on page 1, right click, select create and Page

- Expand Page 1, right click on main window, select copy

- click on Page 2, right click and select paste

- activate form

- click on utilites, download form and save form on C:\ drive

- click back arrow to go back to initial smartforms screen

- type zqmjunk5 as smartform name and click on utilities, upload form, click green check mark on create form prompt

- select zqmjunk55.xml file you had previously downloaded and click on open, click on local object

- click on change button and then activate form -- error occurs here

9 REPLIES 9
Read only

Former Member
0 Likes
1,359

Hi Janice,

Please OSS there is anote avilable on this. I don't remember that now.

May be try to repair the function group some times this contains error.

path: T/code "SMARTFORMS"--Enter name of the form > Test> Utilities(Menubar)> Repair function group> Repair.

Hope this will help you.

Lanka

Read only

0 Likes
1,359

thx for your Response. Their is an OSS note on SmartForms002 errors, but it is related to SAPScripts migrated to SmartForms. This SmartForm was created from scratch so the OSS note has no applicability.

I tried the repair function group you suggested, but as I cannot even activate the form, I cannot repair it because the function itself is not even generated. I did try the repairing the original smartform (not the uploaded one) and downloaded/uploaded it again and the problem still exists.

Any other ideas?

Read only

0 Likes
1,359

Hi Janice,

OK. your error is "illegal structure of data storage".

first do the syntex check of the form.

Please check ADDRESS number "60000353" --You have pass this to a variable and add to address text element as &V_ADDRNUMBER& --check the syntax.

Can you check your smartform --> Form interface and check tables/import and export parameters.

Check --Global definitions -> types and global date.

Lanka

Read only

0 Likes
1,359

Syntax Check and activation of the original form that I downloaded (zqmjunk55) was totally fine.

Syntax Check of uploaded form (zqmjunk5) was fine, just got error on activation.

Address # "60000353" is also fine ... in other examples i have tried i do pass it as a variable and both cause the same problem.

Form interface, import and export parameters etc. are all identical in both forms zqmjunk55 which works and zqmjunk5 which does not.

If I delete the address window in zqmjunk5 and then re-create it then it works just fine. In real life though in my real smartform (not the example one) this would not be realistic to do as we would need to re-build our addresses everytime there is a change to the form and we need to move it through our environments.

It seems to me that there is a problem with the download/upload utility. I have previously logged a call with SAP, but so far they have been no help so I thought I would try here just in case anyone else has had the same problem.

Read only

0 Likes
1,359

hi Janice,

these things are happening some time. ay be try to repair function group of your original smartform(zqmjunk55) before downloading and reloading in to another form.

After reair activete the smartform and then down load.

Lanka

Read only

0 Likes
1,359

nope, that didn't help either. thx though

Read only

0 Likes
1,359

Turns out this is a bug in the system. SAP is currently working on a patch.

Read only

0 Likes
1,359

Hi Janice,

Just wondering if you ever reached a satisfactory solution with this issue? I have the same problem now except that deleting the address did not resolve my issue.

I also noted that after downloading the form module into XML from Dev and uploading it into Test, the system added an extra 'IF' statement which produces an error on test / check. At present I don't have a developer's license so can't manually edit it.

Regards,

Dan Colgan

Read only

Former Member
0 Likes
1,359

Problem overcome (sort of). Transporting the smartform, rather than using the (what would have been handy) download / upload feature does not result in dodgy code being introduced.