Totaling Different Currencies in Smart Forms

Hi Experts,
I am able to print smart form in the form of table ,
Country | Employee No. |Visa Type |Amount| Currency
USA        1                     B1             500       USD
USA        1                     L1             200       USD
UK          1                     WP            100      GBP
UK          1                     BV             500       GBP
NL          1                      BV             500      EUR
DK          1                     BV             100       EUR
But I want to sum up differnet currencies total wise.
Please advice.
Regards,
IFF

IFF,
can you not create program line in Smartforms and use
At end of for summing up?
Amit.

Similar Messages

  • Dynamically call different pages in smart forms

    Hello Abap Gurus:
    I am creating a smart form for cobra letters, in which i need to display one letter for hourly employees, and other for salaried employees.
    For example in my variant if i have two employees one salried and other hourly then my cobra letters should print different letters for salried and hourly employees.
    Any suggestions are helpful.
    Thanks,
    Ratna.

    Hi,
    I am assuming that before coming to the Smartform you know the Status of the Employee. May be you can get the status from the Smartform Interface Parameters or else set the Variable (Used for comtroling the page printing) in the Driver Program and Import that variable to the Smartform.
    Now once 4 letters are printed after the 4th Letter Create a New Page Command and Check the New Page Check and give Page as "5th Letter Page Name" and Under the Condition Tab give your Variable Name with the Set Value.
    Similarly follow the same process for 6th Letter.
    I suggest to set the Variables Values in Driver Program and IMport this Variable to the Smartform unsing the Form Interface.
    Under the Condition Tab V_GROSS_HRLY(Say Identifier)  NE ' '. This is will take of Printing the New Pages. I think this logic should work.
    Let me know in case if you face any problem on this.
    Regards,
    Srinivas

  • Dispalying different field at SMART FORM report

    hi,
    i have created a code for displaying GRTXT i-e(Reason for Movement) in smart from from table T157E.This is the code:
    SELECT SINGLE GRTXT FROM T157E
      INTO GV_GRTXT
      WHERE GRUND eq '1'
      or    grund eq '2'
      or    grund eq '3'
      AND   SPRAS eq 'E'.
    where GV_GRTXT is a Global Definations at smart form.when i execute it,it gives me filed in GERMAN even tough i restricted it with SPRAS field and given me wrong REASON FOR MOVEMNT.for example at MIGO application it shows me INCOMPLETE
    with GRUND(Reason for Movement) 2 and at my report it shows me Qualität mangelhaft with GRUND(Reason for Movement)  2.
    Kindly tell me in the coding what is the mistake which had been made by me.
    Thanks.
    sappk25

    hi Suhas Saha,
    If i have to display GRUND (1,2,3) in my coding how can i display it because when i use AND conidition in coding it gives null values:
    SELECT SINGLE GRTXT FROM T157E
      INTO GV_GRTXT
      WHERE bwart eq '122'
      AND GRUND eq 001
      AND GRUND eq 002
      AND GRUND eq 003
      AND SPRAS eq 'E''.
    and if i used OR condition it gives me result in GERMAN i-e:
    SELECT SINGLE GRTXT FROM T157E
      INTO GV_GRTXT
      WHERE bwart eq '122'
      AND GRUND eq 001
      or GRUND eq 002
      or GRUND eq 003
      AND SPRAS eq 'E'
    and in the last if i used IN condition it gives the result of wrong REASON OF MOVEMENT at smart form which i verify from MIGO.i-e:
    SELECT SINGLE GRTXT FROM T157E
      INTO GV_GRTXT
      WHERE bwart eq '122'
      AND GRUND in (001,002,003)
      AND SPRAS eq 'E'
    Thanks,
    sappk25

  • Problem in printing amount in different currencies in adobe form

    Hi All,
    I have a requirement to print the amount as space for thousand seperator and comma for decimals.
    I have set the pattern format such that the amount is printing in below format as required.
    Locale---Italian.
    Space as thousand seperator and comma as decimal seperator.
    for example 1 234,45
    As some of the Currencies will not have decimals, now users would like to print amount without decimals. For example in my case amount  printing in KRW ( Korean currency ) is also similar to the above format which is wrong.
    for example Now amount is printing as 55 000,00. But actually it should be 550 000. Similarly for JPY currency also, as it doesnot haves decimals ( checked in TCURX table ).
    I have written some logic in the interface. below is the logic.
    WRITE:
        wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
    *READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
      IF sy-subrc  = 0.
      IF lwa_tcurx-currdec = '0'.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      else.
       REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
        REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
    endif.
    ENDIF.
    a. when the write statement gets executed amount will be in ,. ( 1,234.45 )format. Then my logic gets executed correctly. In this company code is CH10 ( EUR ) and KR10.
    b. But sometimes after the write statement gets executed amount will be in ., format ( 1.234.45 ). In this case my logic works, but gives the wrong value. In this case company code is VN10 ( EUR )
    In both the cases currency is EUR.
    Will the decimal format change accordingly based on the company code code currency.Can anyone please tell me why write statement behaved differently.
    Do I need to change any locale in the adobe form, or any other logic to be written in interface. ?  I am trying it out from long time, but not able to fix it. I will have to fix it ASAP.
    Can anyone kindly please help me how to achieve this ?
    Thanks and Regards,
    Karthik Ganti.

    Hi Ayan,
    Thanks for your reply.
    I have already made the locale to default in adobe form and tried. In the interface I have written the logic to print the amount in particluar currency.
    WRITE:
        wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
    *READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
      IF sy-subrc  = 0.
      IF lwa_tcurx-currdec = '0'.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      else.
       REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
        REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
    endif.
    ENDIF.
    I dont know why the above write statement is behaving differently. In one case the value is shown as 1,234.00, but in another test case it shows 1.234,00.
    In both the test cases the currency is 'EUR'. In case if the above write statement works correctly, my issue will be solved.
    Can anyone tell me why the write statement is behaving differently. Will the currency be dependent on any other factor ( for example company code,customer )
    I would like to fix this ASAP.
    Thanks and Regards,
    Karthik Ganti.

  • Displaying text in different languages using smart forms

    hi,
      I am working on smartfroms.
      I have to display the text in different languages using smartforms.
      how to proceed ?
    thanks,
    Aruna.

    To Display in Different Languages:
    Smartforms:
    In the Smartform you create:
    In General Attributes, in Translate, select the radiobutton 'Into Selected Languages' and specify the lang for which you want the translation to be available.
    To translate:
    Go to SE63.
    In menu, Translation -> ABAP Objects -> Other Long Texts.
    In the Object Type Selection window that appears, expand FS ( Forms and Styles) and choose SSF (SAP SmartForms)
    Specify your form name in Object Name and select the source and target lang and click on Edit button.
    In the editor screen specify translated text in the lower half.
    After you are done, click on Save Active button.
    To view your form in the translated language, specify that language when you login.
    SAPscripts:
    Goto SE76.
    Specify the script name, source and target language. Click on Create/Change button.
    Specify all the translations. Click on release.
    It will prompt you to translate window contents.
    Double click on the window and translate the contents. When you are done, the Translation Status will become COMPLETED. Click on Release again.
    (You can edit and check too)
    Now when you preview by choosing the desired language, the translated script is displayed.
    Hope this helps
    Edited by: Jayanthi K on Jan 15, 2009 9:34 AM
    Edited by: Jayanthi K on Jan 15, 2009 9:35 AM

  • GRAND TOTAL SOULD BE DISPLAYED ON THE LOST PAGE OF THE SMART FORM

    Hi friend,
                    i calculated the grand total value in my smart form, i want to display it in a smartforms lost page only can any one help me pls.
    In my footer i gave the grand total in a separate line type and condition i gave only before end of main window check box activated but in every pages i got the grand total value.
    kindly any one help me to accuire the exact value.
    Thanks .
    M.S.Amirtharaj Vijay.

    HI Vijay,
    What Sowmya said is correct
    check the table SFSY
    and PAGENO holds current page no
    FORMPAGES holds all page numbers
    Check the condition like
    SFYS-FORMPAGES > SFSY-PAGENO
    or
    SFYS-PAGENO > SFSY-FORMPAGES
    any of above condition will work
    Thanks
    Surendra

  • Smart forms in different languages

    Hi all,
    i have an issue
    I hav to convert my smart form in 8 different languages.
    i know se63 but i dont want to use it as i have to maintain texts manually in different languages in se63.
    is there any FM or code with which i can convert my smart form in different languages.
    my smart form is originally made in EN language n i hav to convert it to german , italian , french , spanish etc.
    please tell me any SAP note no that would be really helpful.

    Hello,
    if you do to want to use se63, you have 2 way:
    1. use modul text ( see Transaction smartforms, 3°option on the screen)
    2. Use a standard text (so10 transaction)
    I mean that on smartforms you have to use only this 2 kind of text and, of corse, translate it.
    regards

  • Amount in words in Smart form

    My requirement is to print the sales order details.In dat in last page i hav to get the amount in words of total value with in Smart form.
    Tanx,
    Santu.

    Hi Santosh,
       There is one function module and the explanation to this is given below.
    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
      EXPORTING
        amt_in_num               = var_tot1
    IMPORTING
       amt_in_words             = v_total
    EXCEPTIONS
       data_type_mismatch       = 1
       OTHERS                   = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Here (a) <b>var_tot1 is the vbrp-netwr basically a currency field</b>.
            (b) <b>v_total is a character type length 64 (string) field</b> which holds the words for number in var_tot1.
    Hope this solves your query.
    Reward points if useful.
    Thanks,
    Tej..

  • Smart forms-copies&final windows

    hi! please give me info on copies and final windows in smart forms with examples if possible.

    Hi,
    <b>Copies Window</b>
    Use
    You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.
    Prerequisites
    You use this window type only if you want to print copies of your form. In the spool dialog in the Number input field of the Copies group box enter the number of copies (including the original).
    Features
    You can determine where to print the inferior nodes of a copies window:
    Both on the original and on the copies ( Original and Copies )
    Only on the original ( Only Original )
    Only on the copies ( Only Copies )
    You can use the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 to query whether the current output is the original or, respectively, which number the copy has.
    Extras
    You frequently print a graphic on the copies to flag them as copies. If, independent of the copy, the graphic is always the same, SAP Smart Forms can buffer the graphic before printing the page and thus increase performance. To do this, you must flag the copies window accordingly:
    If you mark Identical Copies SAP Smart Forms buffers the output to increase performance. Within such a window, any queries of the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 have no effects.
    If you mark Different Copies SAP Smart Forms generates the contents again for each copy. You use this option if, for example, you want to number your copies consecutively (Copy 1, Copy 2, Copy 3, and so on).
    <b>Final Window</b>
    Use
    You may want to display or query values on the first page that are determined only during processing. For example, you may want to name the grand total in the letter text of an invoice. However, this amount is determined only after listing all individual items. Or you may want to query on the first page within a condition the total number of pages, which the system calculates only after processing all pages.
    In such a case, you use the final window: Processing first skips all windows of this type in the tree and works its way to the end of the tree. Only after the actual processing is finished, the final windows are processed in the order in which they appear in the tree (from top to bottom). Now any information is available that is known only at the end of the form processing.
    Integration
    As of Release 6.10 you can set this window type using a radio button on the General Attributes tab. For Releases 4.6C and 4.6D you must first upload a Support Package. Selection of this window type differs for these releases. For more information, refer to Note 359009 in SAPNet.
    Activities
    Create a window.
    To set the window type, use the Window Type list box on the General Attributes tab.
    For further details refere the smart form documentation...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • Smart Form - operator not followed by value

    Hi all,
    in smart form --> Global definition --> initialization
    i have written this code....
    select belnr gjahr bukrs blart bldat budat waers into corresponding fields of
    table tbkpf from bkpf where
    bukrs = ubukrs and gjahr = ugjahr and budat in ubudat.
    Here cmp code and fiscal year is parameter but posting date is select-options.
    Its gives error :- The IN operator with "BUDAT" is followed neither by an internal table nor by a value list.
    i have taken input parameters also.
    Edited by: Julius Bussche on Nov 13, 2008 10:56 AM

    select-options should be handled in a different manner in smart forms.
    declare 2 variable say
    1) budat_low
    2) budat_high.
    Pass the low value of posting date to budat_low and high value of posting date to budat_high.
    then handle the above 2 variables in select query using BETWEEN.
    eg: budat between budat_low and budat_high.

  • Smart form w.r.t PO document types

    Dear Experts,
    I have a scenario where in I need different po prints ( smart forms ) for different PO document types. So I have created new Purchase Order Output Type ZNEU & assigned seperate smartform. Further while creating output condition records for purchase order thru MN04, getting a message saying Transportation is not defined for master data. ( information ). I have maintained that also. But still in PO this output type is not picked up. ALso if i try to maintain in po thru Me22n, i am getting an error saying Output ZNEU is not defined. Please help me to rectify this. I need different PO forms for different PO document types.

    Can you check any steps missed in configuration.
    Re: PO OUTPUT CONFIGURATION
    You can develop different smart forms dipperent document types.

  • How  can i print currency symbol in smart form?

    how  can i print currency symbol in smart form?
    i want to print the currency symbol with grant total based on the vendor currency.
    pls hepl............

    Hi,
    think You can't print the symbols for currency like $ and Pound etc
    see this doc if needed
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    Reward points for useful Answers
    Regards
    Shiva Kumar

  • How to mention two different next pages in smart forms

    Hi
    In our scenario there is smart form in which we have one main window, after that we need to print two different pages one for instructions and other for delivery address.
    In main window we can add a command and mention the condition for a next page e.g Instructions page. but for  delivery address page we are unable to specify condition in main window or in secondary window  in instruction page/main page.
    Kindly help us
    Regards
    Ammad

    Hi Ammad,
    Create two pages(page2 and page3), page2 for printing the "Instructions" and second(page3) for "delivery address".
    in the first page, at the end of main window create the command and specify as below
    general attributes->check the go to new page check box->choose the page which u wanted to be print on the second(for your case it is page2).
    In the page2->general attributes->next page->give "page3".
    Thanks,
    Prabhakaran
    Edited by: prabakar1998 on Dec 12, 2011 9:42 AM
    Edited by: prabakar1998 on Dec 12, 2011 9:44 AM

  • Smart form with 2 different pages

    Hi Experts
    I have a requirement, I need to develop a smart form with 2 different pages, and each page has different data and presentation of the data also is different.
    In the first page I need to display the contract data with the line items and amounts and in the second page I need to display the partner details with their contact details. From second page onwards it may go further based on the partners exists for that contract.
    Plesae advice me best possible way to achive this.
    Thanks
    Praveen

    Hi Praveen,
    Create two Pages:
    First Page:
    In general Attributes section- Keep page2 as next page
    Create Main window and under that
    Keep the text elements for contract data of line item and amounts as required
    Second Page:
    In general Attributes section- Keep page2 as next page
    create main window and under that
    get all the partner details of line item into an internal table(using program lines node).
    Now use 'Tables' node which behaves as loop for this internal table (so that it continues further if it contains date more than 1 page)
    And display the values in smartform using Text node
    Regards,
    Swarna Munukoti.

  • Converting smart forms as a pdf in different languages

    Hi Experts,
    I have been created a smart form and later on i converted it to in pdf also, but how can i convert a smart form output into different languages (English(defualt), German, Italian, French, Spanish,). Can anyone tell me about the idea behind this or a simple demo program???????????
    do i need to maintain each text on the smart form into these languages already through SE63 or somewhere any idea that can help me without translating the whole text into those languages, could be able to do pdf conversion.
    Thanks and Regards,
    Shakun

    The OTF data needs to already be in the target language - the conversion process is a process of changing the document format only, not a translation tool.

Maybe you are looking for

  • Reading file in UFT-8 format using OWB

    Is it possible to read a flat file having data in UFT-8 format with OWB?

  • Commvault issue with JobResults on NSS volume

    Hi all, we see an issue with Commvault 9R2 (sp10) using a Linux i-data agent client on OES2SP3 x64 backing up (clustered) NSS volumes. For speed we, this case, do not want to use a NSS i-data agent, so we just leverage the Linux i-data agent. The iss

  • Albums ... More questions than answers

    Still looking for some answers to what's changed in Photos with albums ... and how these are different than Events and Albums in iPhoto. A couple of simple questions. 1. If I delete a photo from an album does it delete the photo completely or is the

  • So won't need "sh" or "bat" files, make jar's MANIFEST take params!!

    Right now a jar file's manifest can have a "main-class" which makes the jar truly executable - you can double-click it. The problem is, if you need environment variables, there is no way to pass them in to your main-class' "args." So why don't we mak

  • Are the Help pages supposed to look this way?

    I think I may have one something to foul up the fonts - ? If I did, anyone know how to reduce them to original size? Here's a screenshot: http://i623.photobucket.com/albums/tt320/_dash/Screenshot2010-04-30at94526PM.png