‎2006 Jul 17 6:13 AM
Hi,
Can you please explain how to upload the data in smart forms.Case is, I have to get the value of document number for a particular g/l account and where to write the conditions,declarations,constants.
‎2006 Jul 17 6:17 AM
u have to make the driver program or that where u capture all the require value in interna table ....
and rpint the smartform.
paas this internal table to smartform and display value a ur required format.
attech smartform and driver programm to output type.
‎2006 Jul 17 6:19 AM
Hi,
Go through the link,
http://help.sap.com/saphelp_srm40/helpdata/en/c9/452f2d33ca11d5b697006094192fe3/frameset.htm
Regards,
Azaz Ali.
‎2006 Jul 17 6:20 AM
Hi,
you have to pass the values form the calling program. then you can use them in smartforms.
Declare variables in 'FORM INTERFACE'. and pass these from calling program.
in function module.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZWA_FI_AG'
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
* <error handling>
ENDIF.
CALL FUNCTION fm_name
TABLES
itab_post = itab_post.Regards,
Wasim Ahmed
‎2006 Jul 17 6:21 AM
Hi Amit,
You have to select the value of the document number from the database table in an internal table in the print program.In that print program you will have to call your smartform.
In the form you have to create windows for displaying the values.There is condition tab in the smartform window there you can put the conditions.In types tab of the smartform you can declare all your types and the internal table.Constants you can declare in the global definitions.
‎2006 Jul 17 6:24 AM
‎2006 Jul 17 6:26 AM
You have to do one two things in the print program.
1.Select the record from the database tables to the internal table.
2.Call smartform and pass your internal tables in the tables parameter of the internal table.
The rest will be done in the smartforms.
Check the code.
SELECT matnr
INTO CORRESPONDING FIELDS OF TABLE i_mseg
FROM mseg
WHERE mblnr = wa_mkpf-mblnr.
DATA : g_fm_name TYPE rs38l_fnam,
g_form TYPE tdsfname VALUE 'ZPRINT',
g_output TYPE ssfcompop,
g_control TYPE ssfctrlop.
LOOP AT i_mseg INTO wa_mseg.
*Calling Smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = g_form
IMPORTING
fm_name = g_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
CALL FUNCTION g_fm_name
EXPORTING
control_parameters = g_control
output_options = g_output
user_settings = ' '
g_matnr = wa_mseg-matnr
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
endloop.
write this code in the print program.
in the form create a window,in the text element write &wa_mseg-matnr&.
Message was edited by: mukesh kumar
‎2006 Jul 17 6:33 AM
hi
1. Select the required data from Table and have it in ITAB.
2. Pass this Itab to the smartform thru SSF_Function_module_name
3.In trhe smartform get this itab by initialing in the Form interface.
4.Display this Itab.