Multiplication in smartforms

Hi Guru's,
I am working on 4.7c. My requirement is i want do multiplication between two columns and result should be display in third column which is not included in structure in smartform. Presently i achieved this by adding that third column as field in table structure and i am doing multiplication in calling program itself. But i wanted to know can i achive this in smartform(can we do math calculation like devide,add,multiply etc. between fields on smartform)
Regards,
SUDHIR MANJAREKAR

Hi
u can do manipulations in smartforms.
if u double click on table u can see one of the tab name is calculations. there u have to mention like
total    itab- netwr   totl   afterloop.
declare the variable for  totl  in global definition.
finally u can have the totla  in  totl  field now u can print  totl.

Similar Messages

  • Multiple languages - Smartforms - Invoices

    Hi,
    I'm having problems getting the following scenario to work:
    All the texts on the form are displayed like this::
    Polish phrase / foreign translation
    Foreign translation: language taken from invoice (i.e. English or German or Italian ).
    The problem arises when i want to print Polish characters: 'ąęńś'' etc, some other characters are printed instead, but not hashes ('#').
    When a German invoice is to be previewed/printed the OTF instructions contain 'D' language suffix - it screws Polish character set. On the other hand if I modify substitute 'L' for 'D' (thus forcing Polish language) both Polish and German characters are displayed correctly.
    Is it possible to configure the system in such a way that regardless of suffix 'D', 'E' or any other the system will always display / print the proper characters  in this scenario ? ( system is not unicode )
    Cheers,
    Bart

    Hi,
    Project Online comes out-of-the-box with all languages for the project templates, evenif your instance is configured for a specific language. As far as I know, there is no way to "clean" this up. In my point of view, this is not annoying since
    only admins can access to the EPT configuration pages.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Single spool for multiple smartforms

    Hi,
    I am using Function modules SSF_open and ssf_close for creating single spool for multiple smartforms but when i try to run the program in background then the job is getting cancelled...........and if i run the program in foreground then the program is running fine giving single spool for multiple forms........
    so the problem is that job should run in background if i run it in background instead job is getting cancelled.
    please tell me the solution how can i get the single spool for and multiple smartforms as well as the job should run if i am doing so.

    Moved to the correct forum

  • Print multiple copies of a smartforms in a one spool request

    Dear all,
    I've a network printer "HP Laserjet 4250" configured with an output accessory "Sheet Stapler/Stacker".
    With these accessory all pages of the same spool are stapled together.
    For transaction VL02N we would print n copies of the same delivery using smartforms in this printer, so all copies will be stapled.
    The problem is that in SPAD Copy Counter options if we set the choice "Pass copy counter to the host spool system" only one copy is printed;
    it seems that copy counter parameters has no effects.
    If we set the choice "Pass copies as separate Output Requests", the spool system will send a separate print request for each copy of a document to be printed; but with this option multiple copies are not stapled since they belong to different spool.
    SAP System is ERP 6.0 EHP5 based on windows /SQL 2008 and the last kernel patch.
    Any idea to solve the problem ?
    Thanks
      Maurizio Manera

    Hello,
    By default the number of copies is transferred to the OS host spooler
    and handled by it.
    The flag to pass copies is set in the Output Device definition via
    transaction SPAD as follows:
      SPAD -> Output Device -> <Output Device name> -> Output Attributes ->
              'Pass Copy Counter to Host Spool System'
    Can you please change this flag to:
       'Pass Copies as Separate Output Request(in SAP System)'
    regards,
    John Feely

  • How to print multiple Smartform Templates

    Good day Gurus,
    I have 5 Smartform templates combined in one program. During printing if 1 data for each template is available, The pop-up screen also appears 5 times for me to print the templates. My question is how can I print the 5 templates using 1 pop-up screen. What I want is after pressing the PRINT button, all of the templates will automatically print.
    Note that P_V_CONTRACTTYPE varies depending on the template to be used. That's why this procedure appear 5 times also.
    For the controls, these are my inputs.
    - control-no_dialog = ' '.
    - control-preview   = ' '.
    - w_aux-tddest      = 'LP01'.
    determine smartform function module for service request
      call function 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = p_v_contracttype
        IMPORTING
          fm_name            = lf_fm_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          others             = 3.
       MESSAGE 'For Multiple Contracts, Only First 10 pages will be displayed.' TYPE 'I'.
      call function lf_fm_name
        EXPORTING
           output_options     = w_aux
           user_settings      = space
           control_parameters = control
          it_noutput          = it_noutput2
          var_lessee_rep      = var_lessee_rep
          var_uses            = var_uses
          var_basic_monthly   = var_basic_monthly
          var_secdep          = var_secdep
          var_lessee_add      = var_lessee_add
          var_other_charge    = var_other_charge
        TABLES
          it_lessee_rep       = it_lessee_rep
          it_noutputrent      = it_noutputrent
          it_uses             = it_uses
          it_basic_monthly    = it_basic_monthly
          it_percentage_rent  = it_percentage_rent
          it_secdep           = it_secdep
          it_noutputrentB     = it_noutputrentB
          it_lessee_add       = it_lessee_add
          it_other_charge     = it_other_charge
          it_noutput          = it_noutput2
           it_adv_rent         = it_adv_rent
        EXCEPTIONS
          formatting_error    = 1
          internal_error      = 2
          send_error          = 3
          user_canceled       = 4
          others              = 5.
    Thanks in advance.

    Use tdnewid in the control parameters to create spool number on each template.

  • Error in smartform when printing multiple pages

    Hi,
    I m using a smartform which have two pages in it,
    i m able to save and activate it without any error message and when i run the function module generated to chk my smartform
    it runs fine and diplays two pages i m using.
    but as i m attaching this form with my driver program it is giving an error message while running . the error message is " No other output defined in main window."
    Please help me out to resolve the issue.

    Re: error in smartform when printing multiple pages
    dharani tadikonda
    Thanks for this answer. It is absolutely correct.

  • Problem in printing multiple main window in smartforms

    Hi Experts,
    I have requirement form client to print PO which consists of 4 page.
    First page is cosists of header and some text.
    In second page different header and line item.
    Thirs page different header and line item.
    4th page different header and line item.
    I have printed tex in main window of first page and called command to trigger
    second page main window, but i am getting dump.
    How to print the line item in the multiple page of smartforms.
    Regards,
    Udupi

    Hello ,
    To print the text below are following steps which you can follow for your requirement :
    1. Create the Four pages having the Main Window, but take care that Logic should be in First Page Main window only , other pages main window will be blank.
    2. Create the Secondary Window in second, third & fourth page  which will be same size as the main window having the text which need to be print in respective pages.
    3. Logic Part - in the main window of first page fill all the data which you need to print in 1st to 4th page in different internal table. Now for example you need to print text in first page then in Main window create table having the data of 1st page.
              To print data in Second page create one more table having data of secondpage and put the Command there (follow the same for next pages,)
    I hope this will  help you
    Thanks
    Romit Raina

  • Multiple page formats in smartforms

    we say that multiple page format is possible in smartforms but not in SAP Script. What does this multiple page format exactly means and whar does label means exactly in smartforms.
    Please help.

    multiple page formats in smart forms means...
    the first can be landscape, and the second one portrait...viveversa is also possible
    label means... for example u want to print addresses of employees in an organisation... then through scripts ypu can print the labels...

  • Create multiple pages layout in Smartforms?

    Hei guys,
    I need to create a Smartform which has two parts. The top portion will remain the same, but it could possibly be more then one page because of size of text. The second part will have different values but the size will always be the same.
    Now we need to print multiple pages where the second the part will be different.
    I know that i will need to create a first page and a next page. But do i need to create two main windows in first page, one for each part. And what do i need to have in next page?
    Any help/suggestion will be appreciated.
    Thanks
    Nahman

    Hei,
    I have now worked on the Smartform. I am still struggling little bit. This is what i have now:
    I have one main which have 3 tables. The first two tables are displayed in the top portion of the page. As they are based on internal tables the number of rows will be different, so we dont know the exact size.
    In the bottom portion i have a table which is also based on an internal table. Now in this case we only want to print one row and then jump to next page where i want to display the top portion again and the next line of bottom portion. The issue i have right now is that the bottom portion needs to be printed on a fixed place of page. But what happens is that after first row is printed, and it goes to next page and starts printed on top of the next page. I dont want that.
    What i need is that the third table prints once on each page on a fixed position. Because once these pages are printed, they are not printed on a blank pages but a on a form where bottom portion values needs to be printed on specific fields.
    Thanks

  • Printing Standard TEXT  with multiple paragraphs in smartform

    Hello all,
    I have a requirement that, there is a very long standard text stored in a notification of an order in SAP ISU system. The text contains multiple paragraphs with indentations. I want to print this text directly into the smartform WITH SAME INDENTATION AND PARAGRAPH FORMATTING.
    First i am reading the entire text using FM READ_TEXT.
    My first  problem is even if i read the text into a variable of type STRING , it just prints 255 characters of it.
    And secondly if i try to printout it using LOOP AT node in smartforms, it prints the entire content but without any formatting .
    Please let me know whether it is possible to print standard text in smartforms or not
    Thanks
    Nilesh Puranik

    Hey ,
    Well thanks for that but my replies got posted 2-3 times unknowingly, could'nt help it.
    Coming to the problem, i  guess you did not get my point when i say dynamic texts for each service order.
    In my Report i am using LOOP AT ITAB ..where in itab i  am storing a service order no i.e. ITAB-ORDER_NO
    Now for every order there is standard text maintained in SO10 starting with order name
    so my code goes like this.
    LOOP AT ITAB.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = 'LTXT'
        LANGUAGE            = 'E'
        NAME                      = ITAB-order_no
        OBJECT                   = 'QMSM'
      TABLES
        LINES                         = LINES .
    CALL <SMART FORM Fm>
    ENDLOOP.
    Hence whatever Standard text maintained for that service order i  want to display it as it is in the smartform with same paragraphs formatting and indentation.
    IF i use a variable in smartform and pass the entire text  after using READ_TEXT , it does not format the text  and it just prints only 255 characters even if i define it of type STRING .
    Hence i am stuck in this scenario.
    Appreciate ur help though.
    Thanks
    Nilesh

  • Printing smartform for multiple customers

    Hi Experts,
    can anybody send me the code for printing the smartform for multiple customers, i need print the customer data by pagewise means in selection screes if user enter multiple customers ,i need to print by each customer, if customer 1 is different from customer 2 need to start in new page .
    pls guide........
    thanks in advance.

    Hi,
    You can handle it in your form by checking the customer.
    Write code in your main window there you check the present customer with previous one. if not equal then trigger the next page
    Regards
    SHiva

  • Printing multiple PR with different line items in smartform

    Hello all,
    I have an requirement to print multiple PR with different line items on different pages.
    So,suppose two PR are there,PR1 and PR2 with n no of line items,then i should get each PR on different page with its line items.
    Note: One loop processing is already there on line items.
    Best Regards,
    Anurodh

    Hi,
    Fetch all the PRs and its corresponding items into 2 different table. Then Loop at the internal whihc contains the PRs and  call the 2nd internal table for its items and call the FM for smartforms and pass them.
    LOOP AT it_PR.
      fetch all the items into it_PR_item
      Call Function Fnam
      Passign the it_PR_item
    ENDLOOP.
    Regards,
    Aditya

  • How to print multiple pages in single spool in smartforms

    Hi all,
      I have a issue on to print multiple pages in single spool,i can able to print multiple pages in multiple spool .I am doing Check Print smartforms in that i need to print Multiple pages in single spool.Currently i am using the below code please help to solve this issue.
    IF gv_tabix = 1.
    lwa_outp_option-tdnewid = 'X'.
    ELSE.
    lwa_outp_option-tdnewid = ' '.
    ENDIF.
    Thanks,
    Deesanth

    Hi
    TABLES: spfli.
    DATA:
      t_spfli type STANDARD TABLE OF spfli.
    DATA:
      fs_spfli TYPE spfli.
    DATA:
      w_form TYPE tdsfname,
      w_flag TYPE i,
      f_nam TYPE rs38l_fnam,
      w_input TYPE ssfcompin,
      w_control TYPE ssfctrlop.
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
    SELECT-OPTIONS s_carrid FOR spfli-carrid.
    SELECTION-SCREEN END OF BLOCK blk .
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
    PARAMETERS:
      p_single RADIOBUTTON GROUP rad1,
      p_ind RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK block1.
    START-OF-SELECTION.
    PERFORM display_data.
    PERFORM ssf_function_module_name.
    PERFORM spool_request.
    *& Form display_data
    * text
    * --> p1 text
    * <-- p2 text
    FORM display_data .
    SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid IN s_carrid.
    ENDFORM. " display_data
    *& Form ssf_function_module_name
    * text
    * --> p1 text
    * <-- p2 text
    FORM ssf_function_module_name .
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING formname = ' '
    IMPORTING fm_name = f_nam
    EXCEPTIONS no_form = 1
    no_function_module = 2.
    * IF sy-subrc NE 0.
    * MESSAGE 'Form cannot be displayed' TYPE 'E' .
    * ENDIF. " IF sy-subrc eq 0
    ENDFORM. " ssf_function_module_name
    *& Form spool_request
    * text
    * --> p1 text
    * <-- p2 text
    FORM spool_request .
    w_input-dialog = 'X'.
    CALL FUNCTION 'SSFCOMP_OPEN'
    EXPORTING input = w_input
    EXCEPTIONS error = 1.
    *" LOOP AT t_spfli .....................................................
    LOOP AT t_spfli INTO fs_spfli.
    w_control-no_open = ' '.
    w_control-no_close = ' '.
    *"Single spool request..................................................
    IF p_single EQ 'X'.
    w_control-no_open = 'X'.
    w_control-no_close = 'X'.
    ELSE.
    *"Individual spool request.............................................
    IF w_flag NE '1'.
    w_control-no_open = 'X'.
    w_control-no_close = ' '.
    w_flag = 1.
    CALL FUNCTION ' '
    EXPORTING control_parameters = w_control
    fs_spfli = fs_spfli
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    endif. " IF w_flag ne '1'
    ENDIF. " IF p_single eq 'X'.
    CALL FUNCTION ' '
    EXPORTING
    control_parameters = w_control
    fs_spfli = fs_spfli
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    ENDLOOP. " LOOP at t_spfli into ...
    *&This function module close the spool request *
    CALL FUNCTION 'SSFCOMP_CLOSE'
    EXCEPTIONS error = 1.
    ENDFORM. " spool_request
    Regards,
    Sravanthi

  • Regarding Smartforms printing - multiple pages

    Hi Friends:
        Please help me out on this query. I know how to make a smartform. I've made smartforms but the condition is that it triggers only one smartform. I've a requuirement that I've to trigger smartform for multiple vendors.The format of the smartform will be the same.Logo will be same. The address of the vendors will be changed.The line items in the main window will be changed.Footer will be constant. There will be a select option on the selection screen, which will select a range of the vendors.There will be some other parameters.I tried using loop, but every time it triggers one smartform & then again displays "print preview dialog box". I want all the smartforms to generate in one go.once the smartform for one vendor finishes, it should trigger a new one on the next page.Please help me out urgently.If anyone has a sample program, please send it to me.Reward points will be there.

    Hi,
    Pass the select-option as a input to smartform.
    Check this link.Here I am explaining how to do this.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    If you want to restrict print dialog box,you can achieve it by the following coding.
    *& Report  ZZZ_JAYTEST1                                                *
    REPORT  zzz_jaytest1 NO STANDARD PAGE HEADING MESSAGE-ID zhrt.
    Variable Declaration
    DATA : v_form_name TYPE rs38l_fnam,
           itab TYPE STANDARD TABLE OF pa0001,
           w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl.
    SELECT * FROM pa0001 INTO TABLE itab UP TO 5 ROWS.
    SORT itab BY pernr.
    DELETE ADJACENT DUPLICATES FROM itab COMPARING pernr.
    DATA: control TYPE ssfctrlop,
    control_parameters TYPE ssfctrlop,
    output_options type SSFCOMPOP.
    control-preview = 'X'.
    control-no_open = 'X'.
    control-no_close = 'X'.
    control-no_dialog = 'X'.
    control-device = 'PRINTER'.
    output_options-tddest = 'LOCL'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
       USER_SETTINGS            = ' '
       OUTPUT_OPTIONS           = output_options
       CONTROL_PARAMETERS       = control
    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.
    output_options-tddest = 'LOCL'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
    CALL FUNCTION '/1BCDWB/SF00000066'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = control
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       OUTPUT_OPTIONS             = output_options
       USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            = w_return
      JOB_OUTPUT_OPTIONS         =
      TABLES
        itab                       = itab
    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.
    CALL FUNCTION 'SSF_CLOSE'.
    Kindly reward points if it helps.

  • Calling smartform multiple times from driver program

    Hi Experts,
    In a internal table i have multiple records, and my requirement is i need to call the smartform by looping the internal table and i'm geting output N times based on the N record in the internal table
    But my output i need to club all these output into single output i.e Instead of getting a print preview screen N times... i need to get the output during the last record of the internal table displaying all the pages.
    I tried searching the SDN, but the answers were not convincing for my requirement.
    Please advise. Thanks
    Regrds
    Balaji R

    Hi Sravanthi
    Thanks for your quick reply.
    I found your code interesting....
    but in my requirement spool will not be created..
    In my requirement
    I receiving the print preview for each record of the internal table, say 5 page for 5 records in the internal table.
    Now i need to change that only at the end of the itab.....  i need to get the print preview with all the 5 pages...
    Please advise..
    Thanks

Maybe you are looking for

  • Error in updating Interactive form data

    Hi Friends, I have developed an interactive form using webdynpro ABAP, in the first view I have designed selection criteria based on the selection I am populating the table in second view. Few are editable fields and few are readonly fields. Here I g

  • Why can I drag and drop from Photos to Pages, but not to Microsoft Word 2011

    I'm unable, under OS X 10.10.3, to drag and drop pictures from Photo into Word for Mac 2011.  I can paste from Photos into Pages.  How can I add Word to the list of programs that can take pasted photos pasted from Photos

  • Exchange mail doesn't push unless opened

    Just got my iPhone 5s and setup my Exchange email on it. It's set to push email but it doesn't notify me of a new email unless I open the Mail app, then it syncs. I have an iPad 3 with ios 7 and it pushes just fine. Is there somewhere I can look to s

  • Nokia 3600 Slide Outlook contact address not trans...

    I am using Nokia Ovi Suite 2.0.2.42 and although the contact address appear in the Ovi software they do not transfer to the phone. Everything else seems to! Chris

  • Safari won't display PDF's

    Whenever I try to download PDF's from safari, the page turns up with a blank, black screen without the PDF. I can download the PDF and view it outside of Safari, so it's not the PDF and when I checked my internet plug-ins, I don't have any with 'pdf'