‎2009 Feb 19 5:07 PM
hi ,
this is siva krishna, i have a problem like . i create a module pool program with two screens in first screen user enters the custmer address and second screen is having his buying goods,and i create a transcation code for that scren and later i create a smart form and generate function, how to connet these module pool program and smartform .
plsee tellme.
thanks ,
sivakrishna.boddapati
Edited by: sivakrishna boddapati on Feb 19, 2009 10:39 PM
Please pick a more menaingful subject in the future. Everyone here is developing a program.
Edited by: Rob Burbank on Feb 19, 2009 2:22 PM
‎2009 Feb 19 5:11 PM
create a driver prgram for ur smartform which will be calling the smartform FM and printing it now in the PAI of the screen submit this print program report using submit statement.
‎2009 Feb 19 5:11 PM
create a driver prgram for ur smartform which will be calling the smartform FM and printing it now in the PAI of the screen submit this print program report using submit statement.
‎2009 Feb 19 5:36 PM
hi thanks for u r answer but i dont know how to create driver and connet that driver to that program plz can u send more information.
thanks once again
regards ,
krishna.boddapati
‎2009 Feb 19 5:58 PM
Hi,
You may create a button and on the Click event mean in PAI you can Perform the following Form for Smartform
*&---------------------------------------------------------------------*
*& Form show_form
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM show_form.
data: fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'SMART_FORM_NAME' " Here Give Name of you Smartform
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = fm_name
* EXCEPTIONS
* NO_FORM = 1
* NO_FUNCTION_MODULE = 2
* OTHERS = 3
.
CALL FUNCTION fm_name
EXPORTING
comp_date = cdate " Here you can Give the Exporting Values which you can use in Smartform Suppose Date Time etc
spy_grp = spy_grp " Here too
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* control_parameters = param
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
" USER_SETTINGS = 'X'
* sregio = sregio
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
itab = it_final[] " here the internal table with your final data to display in Smartform
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
.
ENDFORM. "MAINHope above will solve out your problem and Please Use Meaningful Subject Next time.
Kind Regards,
Faisal
‎2009 Feb 19 5:46 PM
Every smartform generates a unique function module. Retrieve this function module and call it. Now you have your data in an internal table. You can then convert it to other formats and display it in pop-up.
Some additional info:
1. Retrieve FM for smartform: SSF_FUNCTION_MODULE_NAME, function group STXBE.
2. Have a look at function group STXBC also.
Or better yet, in SE80 look for all packages with STXB*
Edited by: Micky Oestreich on Feb 19, 2009 6:52 PM
‎2009 Feb 19 6:55 PM
i know that function module , and i check itab and it contain the data but how to pass to smart form using that module
‎2009 Feb 19 7:04 PM
Hi Sivakrishna
Have you Created Smartform using T-Code: smartforms, if yes than have you tested my Above Form you just need to give the Smartform name and itab where you are getting the final data.
Please Reply if any Issue,
Kind Regards,
Faisal
‎2009 Feb 19 8:28 PM
JOB_OUTPUT_INFO
holds the actual smartform (OTF) data. The CONTROL_PARAMETERS parameters has a field with GETOTF. Put an 'X' in field and the OTF data will be retrieved.
With FM SSFCOMP_PDF_PREVIEW you can pass this OTF data from previous step to this new FM to display the PDF in adobe reader.
Edited by: Micky Oestreich on Feb 20, 2009 8:05 AM