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

Perform/Form using structures and illegal structure names

Former Member
0 Likes
1,144

hi,i want to avoid false declarations and ask you how to work with the following statements when switching over to a unicode system.

PERFORM xyz using Z-BLA

..

...

....

FORM xyz using Z-BLA

Z-BLA=.....

ENDFORM.

for what i understand PERFORM xyz using Z-BLA (structure element Z-BLA well defined) is ok,as i need to tell the form what data it has to work with.

unfortunately the validator tells me that Z-BLA in FORM xyz using Z-BLA is not allowed because of the minus so i change it to Z_BLA.

so now for what me newbie does not know for sure: Do i have to change Z-BLA=..... to Z_BLA ? I ask because the validator does not tell me to change that!

points will be of course awarded

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
565

In the form you have to change it to Z_BLA. You could also name it z_bla_input if you want. It is just a mapping.

Also you need to type it:

FORM xyz using z_bla_input type any. (or the exact type if it is known).

z_bla_input =.....

ENDFORM.

Regards,

Edwin.

2 REPLIES 2
Read only

Former Member
0 Likes
565

HI,

Declare the TYPE of datatype or structure in FORM and if Z_BLA is a structure then you can directly use the fields with the hyphen.

ex:

FORM form1 using VAR1 type <DATATYPE>.

ENDFORM.

PERFORM form1 using <VALUE1>

Reward points if it is helpful.

Read only

Former Member
0 Likes
566

In the form you have to change it to Z_BLA. You could also name it z_bla_input if you want. It is just a mapping.

Also you need to type it:

FORM xyz using z_bla_input type any. (or the exact type if it is known).

z_bla_input =.....

ENDFORM.

Regards,

Edwin.