Skip to Content
author's profile photo Former Member
Former Member

smartform

hi dudes,

i created a smartform to print some detials k now i have to put this smartform in a transaction so that when the transaction run n if i fill all the required fields in it then it should print this form.

my question is where should i have to add this smartform logic which i defined in a report form how to identify the concerened includes

please guide me

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Mar 24, 2006 at 03:37 PM

    I was under the impression that it is as easy as calling the associated function module for the Smartform in your program.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • For example. Here I am working with the standard smartform SF_EXAMPLE_01, the function module which is generated when the form is activated was /1BCDWB/SF00000002. You can see this in the smartform, under Envirnoment, Function Module Name. You can see in this example, that I'm just getting the data and calling the function module, that's it.

      
      report zrich_0001 .
      
      data: iSPFLI type table of SPFLI.
      data: isbook type table of sbook.
      data: iscustom type table of scustom.
      
      parameters: p_carrid type spfli-carrid default 'AZ'.
      
      select * from spfli into table ispfli where carrid = p_carrid.
      select * from sbook into table isbook where carrid = p_carrid..
      select * from scustom into table iscustom.
      
      
      call function '/1BCDWB/SF00000002'
        exporting
      *   ARCHIVE_INDEX              =
      *   ARCHIVE_INDEX_TAB          =
      *   ARCHIVE_PARAMETERS         =
      *   CONTROL_PARAMETERS         =
      *   MAIL_APPL_OBJ              =
      *   MAIL_RECIPIENT             =
      *   MAIL_SENDER                =
      *   OUTPUT_OPTIONS             =
      *   USER_SETTINGS              = 'X'
          customers                  = iscustom
          bookings                   = isbook
          connections                = ispfli
      * 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.
      
      

      Regards,

      Rich Heilman

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2006 at 03:42 PM

    Hi Naveen,

    Just check for the values in the internal table & call the FM's required for the smartform.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2006 at 03:55 PM

    hey Rich,

    thanks alot for ur reply

    i finished all the coding now i want to call this report program into a transaction program so that whenever the transaction is exeuted by enterening the data then i should get the output this smartform for this i need to call this report program into that transaction program right

    ya here my question how to recognise the program includes of the transaction, where should i call this report program, in those includes i have to define somemore code to give someoptions to print this smartform

    so how to find out these things

    thanks in advanse

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Phani

      i don't want to call the report program any other transaction

      i am having some specific transaction, this is for an application to create some tax payer so when v enter the required data into it the program should ask me weather to take a printout r not so for this i have to callthis report program into that transaction program

      so for this i need to know the includes in that program

      in those includes i should call this

      so how to know these includes

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.