Application Development 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: 

Passing field names to a smartform via a selection screen

Former Member
0 Kudos
153

Hi Experts, it's about manipulating smartforms.

The idea is the following :

1 - via a selection screen we enter as a value "a technical name" for exemple SY-DATUM or VBRP-POSNR ...

2 - inside the smartform we have have a parameter in the interface form section called "UserChoice".

3 - the program sends the value "SY-DATUM" to the parameter &UserChoice&

Now while printing the form it shows a text SY-DATUM but I expected to see the date !

how can I proceed so that the smartform interprets the value  SY-DATUM not as a text but as a field name ?

Thanks.

Regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
128

Thank you Kenneth Moore.

I proceeded this way :


DATA UserChoice (20) type c,

FIELD-SYMBOLS: <f1>, TYPE ANY.

ASSIGN (lv_t1) to <f1>.


and under the exporting within the function module

       FAZ2L1 = <f1>


and inside the form interface

and it worked.

3 REPLIES 3

kmoore007
Active Contributor
0 Kudos
128

Check into the ASSIGN command.

Former Member
0 Kudos
128

please refer the below link for edit mask.

Former Member
0 Kudos
129

Thank you Kenneth Moore.

I proceeded this way :


DATA UserChoice (20) type c,

FIELD-SYMBOLS: <f1>, TYPE ANY.

ASSIGN (lv_t1) to <f1>.


and under the exporting within the function module

       FAZ2L1 = <f1>


and inside the form interface

and it worked.