Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

develiop a program

sivakrishna_boddapati
Participant
0 Likes
853

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
823

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.

7 REPLIES 7
Read only

Former Member
0 Likes
824

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.

Read only

sivakrishna_boddapati
Participant
0 Likes
823

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

Read only

0 Likes
823

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. "MAIN

Hope above will solve out your problem and Please Use Meaningful Subject Next time.

Kind Regards,

Faisal

Read only

Sm1tje
Active Contributor
0 Likes
823

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

Read only

sivakrishna_boddapati
Participant
0 Likes
823

i know that function module , and i check itab and it contain the data but how to pass to smart form using that module

Read only

0 Likes
823

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

Read only

0 Likes
823

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