Smartform1

hi ,
iam creating new form in existing in form i.e adding supplentmental form to existing ,this means adding page to existing smartform ,iam i correct ?
1.now do i need change the driver program ?
2.can add new form in existing one r copy original one and and add ?
3. if i need to change driver prgm ,can i do in existing one r copy and change ?
4. where do i write select statements in smartform ?

Hi,
1.If u write the logic for data population in smartfrom itself then no need to change the driver program.
2.can add new form in existing one r copy original one and and add ?
Ans: You have to Copy the form and then make change
3. if i need to change driver prgm ,can i do in existing one r copy and change ?
Ans: You have to make Zcopy and change.
4.where do i write select statements in smartform ?
Ans: Write perform in Global Definations-->Initialization and in Form routines write select statements
Regards
Sandipan

Similar Messages

  • Problem in multiple PDF downloads in BSP.

    Hi,
             My BSP application downloads the outputs of three smartforms as PDF files. The BSP contains three checkboxes and a button. Each checkbox is the option to download the output of a smartform. I have declared three Page Attributes - w_chk1, w_chk2 and w_chk3 which stores the value of the checkboxes (i.e. whether they are checked or not) and I have checked their "Auto" values. My requirement is, if the user selects one or more checkboxes, then the corresponding PDF files will be downloaded. And problem that I am facing is, if the user checks more than one checkbox, then the PDF file of only the last checked checkbox is getting downloaded and the first ones are getting ignored.  Please suggest what could possibly be the problem.  I have used the following code to implement the download functionality -
    Code in the OnInputProcessing method -
    ****Some codes go here here.*********
    if not w_chk1 is initial.
    **** Some codes go here to get the pdf output of the smartform 1 ***
             CALL METHOD cl_bsp_utility=>download
                   EXPORTING
                      object_s            = w_pdfdata1
                      content_type        = 'application/download'
                     content_disposition = 'attachment;filename=smartform1.pdf'
                     res ponse            = is_m_response
                     navigation          = is_navigation.
    endif.
    if not w_chk2 is initial.
    **** Some codes go here to get the pdf output of the smartform 2 ******
             CALL METHOD cl_bsp_utility=>download
                   EXPORTING
                      object_s            = w_pdfdata2
                      content_type        = 'application/download'
                     content_disposition = 'attachment;filename=smartform2.pdf'
                     res ponse            = is_m_response
                     navigation          = is_navigation.
    endif.
    if not w_chk2  is initial.
    **** Some codes go here to get the pdf output of the smartform 3 ******
             CALL METHOD cl_bsp_utility=>download
                   EXPORTING
                      object_s            = w_pdfdata3
                      content_type        = 'application/download'
                     content_disposition = 'attachment;filename=smartform3.pdf'
                     res ponse            = is_m_response
                     navigation          = is_navigation.
    endif.

    Hi,
    Declare a internal table and try to append the checkbox values..and run once..
    check the last conditon once agian
    if not w_chk2  is initial.
    Hope this is helpful.let me know if you still have any problem
    Thanks
    kalyan

  • How to print multiple smartforms ( 2 or 3 SM )  in one page serially .

    My requirement is -  I want bank-branch wise smartforms that too serially one after another . Depending on  space of  page it should print no. of smartforms on pages upto the last smartform.
    for example
    smartform1 takes only 10 lines .
    smartform2 takes only 15 lines.
    and 1st page has 30 lines.
    then  smartform1 &  smartform2 should  get printed on the same 1st page serially one after another.
    And if  smartform3 has 25 LInes then it should printed on next page alone and  smartform4 on next page and so on,.
    Right now I am getting  smartform1 on page1 ,
                                         smartform2 on page2,
                                         smartform3 on page3
                                         correctly branch-wise.
    So how to obtain the above requirement , can ANYBODY tell me ?
    With Regards,
                             Ashish G.

    Hi,
    I am sorry, I use wrong word. Similarly like Protect.. end protect there is a same concept like PAGE PROTECTION in smartforms.
    So you can use that.  PAGE PROTECTION work exactly as Protect.. end protect in script.
    You can achieve this functionality through style also ( Just check checkbox of PAGE PROTECTION and add that style in ur loop).
    So it will work..
    No need of triggering smartforms multiple times. Put ur logic, as if 1 loop will act as 1 smartform and use PAGE PROTECTION and when 2nd time loop will be triggered, will print as 2nd smartform, So you might be able to achive your functionality...
    Thanks & regards,
    Mihir.
    Edited by: mihir6666 on Jul 11, 2011 11:19 AM
    Edited by: mihir6666 on Jul 11, 2011 11:23 AM

  • Debugguing of Smartform

    Hi Friends,
      Please explain me how to debug a smartform

    1) One way to debug smartform is to debug the Function Module of that smartforms.
    If you want to debug particular smartform node that the solution would be,
    insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
    So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    2) SFTRACE can be used for debugging SMARTFORMS.
    1)goto tcode SFTRACE --> click "trace on"
    2) Get the function module name and set break points in function module name.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    or
    Try with this:
    In the form Utilities->debugger / RSTXDBUG FM for debugging
    or
    You can set break "sy-uname" within your smart form code sections and this will take you to the code sections in the function module of the smart form when the break point is reached. This way by timing the break points you can look at the code of the various nodes of your smart form.
    BREAK-POINT can be used only in own program lines in smartform - not very helpful because it always stops until removed and generated again.
    Or you can use transaction SMARTFORM_TRACE.
    1. use transaction SMARTFORM_TRACE
    2. in the SMARTFORMS, use utilities to show the function name. You can analyze this function in SE37 and set dynamic breakpoints as required. Lok at the SMARTFORM_TRACE to decide where to set break points.
    or
    SMARTFORMS DEBUGGING
    For smartforms debugging you can do this.
    1. Execute the smartform (execute button in SMARTFORMS transaction)
    2. Take the generated function module and display it in SE80.
    3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
    Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
    Tcode - SFTRACE
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    Debugging of a subroutine pool.
    regards,
    srinivas
    <b>*reward points for useful answers*</b>

Maybe you are looking for