‎2008 Apr 18 6:40 AM
Hi All,
I want to pass one variable to smartform.
I have one date field in driver program which i take it as input from user.
I want to pass the same date to smartform.
I have mentioned it in import parameter in smartform but its value showing null.
What can i do to solve this?
Is there any other solution?
Please suggest me the solution.
Regards,
Deepak.
‎2008 Apr 18 6:48 AM
Hi,
have u passed ur parameter to the function module that calls ur smartforms returned by SSF_FUNCTION_MODULE_NAME FM in driver program.
data: /1bcdwb/sf00000339 type rs38l_fnam.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = form name
VARIANT = ' '
DIRECT_CALL = ' '
importing
fm_name = /1bcdwb/sf00000339
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
call function '/1BCDWB/SF00000339'
exporting
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
is_lifnr = p_lifnr
is_spras = p_spras
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
pls reward points if useful.
‎2008 Apr 18 6:46 AM
Hi Deepak,
If you are sending any value as an import parameter while calling the FM of the Smart Form it should be taken in and it would not be null unless the sent variable is a locally declared variable.
Try declaring the date variable as a global variable in your driver program. and then make use of that variable in the FM as an import parameter. I am sure ur problem would be solved.
Please reward points if you've got ur solution,
Kiran
‎2008 Apr 18 6:48 AM
Hi,
have u passed ur parameter to the function module that calls ur smartforms returned by SSF_FUNCTION_MODULE_NAME FM in driver program.
data: /1bcdwb/sf00000339 type rs38l_fnam.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = form name
VARIANT = ' '
DIRECT_CALL = ' '
importing
fm_name = /1bcdwb/sf00000339
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
call function '/1BCDWB/SF00000339'
exporting
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
is_lifnr = p_lifnr
is_spras = p_spras
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
pls reward points if useful.
‎2008 Oct 08 10:31 AM