cancel
Showing results for 
Search instead for 
Did you mean: 

smartform - parameters

Former Member
0 Kudos

Hi Friends

Iam using parameter option in select statement at my zprogram.

how can i pass this parameters value to smartform.

CALL FUNCTION v_form_name

EXPORTING

XMATNR = p_matnr

tables

itab = itab

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

what r the steps needed in smartform...

i have declared the xmatnr in interface

but my output window display no records...

with regards

gowrishankar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi gowrishankar,

the only thing just pass the parameter value to the IMPORT option of smartforms...

and define the type of that imported parameter same as parameter variable...

just pass the parameter value in import option..

hope this will work...

please reward points in case useful...

Regards,

prashant

Answers (1)

Answers (1)

arul_murugan
Active Participant
0 Kudos

Call this function and then call smartform

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'FORM'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = fm

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

*************calling of smart forms********

CALL FUNCTION fm

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

f_vbeln = g_vbeln

  • 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

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

in the smartform

declare f_vbeln in the form interface import tab.

it will work.

regards

arul.

Former Member
0 Kudos

Hi Prashant and Arul Thanks for your reply..