Skip to Content
avatar image
Former Member

SmartForms parameters not reached

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,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 17, 2010 at 01:05 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 17, 2010 at 01:15 PM

    HI Samir,

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

    Best Regards

    Himayat.

    Add comment
    10|10000 characters needed characters exceeded