cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForms parameters not reached

Former Member
0 Kudos

Hello Expoerts,

I have a smartform where I should pass a variable per_num.

1- I have put p_per_num in smartform Form Interface in tab Import as follows:

p_per_num TYPE PERNR-PERNR (PASS-VALUE = checked)

2- in my driver program I'm doing this:

CALL FUNCTION FM_NAME

EXPORTING

p_per_num = per_num

EXCEPTIONS

FORMATTING_ERROR = 1 etc.....

where per_num is input from login user of type PERNR-PERNR.

3- In the smart form I have created a window (not under MAIN) and in this window I created a TEXT. In this text I only printed the p_per_son as follows: &p_per_num& in addition to some text

when the form appears after clicking print preview I'm having &p_per_num& printed instead of its value!!!!!!!!!! seems that the & is not understood or considered as a normal text and printed as is

Am I missing something? I'm not able to get the parameter value, please help.

Thanks and best Regards,

Accepted Solutions (0)

Answers (2)

Answers (2)

Himayatullah
Active Participant
0 Kudos

HI Samir,

Just click on Insert field button and type &p_per_num& . Save it and then check once again.

Best Regards

Himayat.

Former Member
0 Kudos

Hi,

Did you type &p_per_num& direct into the editor? If so it will treat this as text.

There is an icon in the top left corner of the editor to Insert Field. Click this and enter &p_per_num& into the popup.

Regards,

Nick

Former Member
0 Kudos

wooooowwww Thank you a lot, I did not know this, you are my hero,

Regards,