Currency fields in Smartforms.

Hi All,
This is the problem i encountered:
1) I create two internal tables of type EKKO and EKPO giving the names IH_EKKO and II_EKPO where EKKO and EKPO are the header and the item table for the purchase order respectively.
2) Then i use the FM SSF_FUNCTION_MODULE_NAME and give the smart form name.
3) Then i pass the internal tables to the FM generated by the smartform.
4) In the smart form i declare the workarea ZH_ITAB and ZI_ITAB.
The problem is that when i try to print the respective document number it throws up an error saying that the "Field ZI_ITAB-NETWR is unknown" and if i remove both the fields NETPR and NETWR from printing it works fine and it shows the print preview. I have also tried putting &ZI_ITAB-NETWR& in lower case as it had worked sometimes but not now.
What could be the problem ? Am on 4.7
Thanks in Advance
Sudhi

Hi Nablan,
yes the work area ZI_ITAB if of type stucture EKPO. I went through the standard smart form for Purchase order and SAP has made use of field symbols for the currency fields.. Is that necessary?

Similar Messages

  • Currency field in smartforms

    hi guyz,
    i have a field total_amount when iam putting in my text node it saying total_amount is unknown in the form...where as all other fields in the textnode works.
    total_amount is  currency field..
    plz advice
    regards

    Hi Sudheer,
    Declared it at the Global definitions.
    Initialize some value there itself.
    Just before the text node create one program lines node,
    and that,<b>In the import and export parameters of it give total_amount</b>.
    Regards,
    Rama.Pammi

  • Currency Field in Smart Form

    Hi,
    How to Display Currency Field in SmartForm  and how to declare

    You can display a field in GLOBAL data of TYPE I (v_menge).
    then in the related window of that Quantity field create PROGRAM LINES and in that write a small code such that
    MOVE ITAB-MENGE to v_menge.
    Now display this field v_menge in the smartform
    Regards
    Anbu B

  • Problem with currency  field in smart form

    hi
    friends ..
    i had problem with currency field in smartform iam printing 5 currecny
    fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
    each fields for ex.
    33,260.00
    120.00
    0.00
    0.00
    0.00
    i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i  get the value in char variable i get 2260.20 which i dont want .
    so pls help me how to condense or shift left and print the currency field on right place.
    regards
    answers will be rewarded points.

    hi,
    this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
    eve if not solve the problem use the TEMPLATE node..
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • Printing Currency Fields

    Hi,
    How to Print Currency Fields in Smartforms [in tables node]
    Thanks & Regards,
    Ajith

    hi
    use sth like this
    data: lv_neto type string,
             wa_tabla-to_neto like bseg-dmbrt.
    write wa_tabla-to_neto to lv_neto currency 'CLP'.
    then in ur text of the smartform write &lv_neto&, doing that ur amount will be showed fine.
    Regards

  • Smartform-currency field error.

    Hi folks,
      In My smartform i want to print the net value from vbrp table ( netpr) .but when iam executing the form it is throwing error as " reference field netpr " is unknown in form..
    where i have to declare reference field of netpr.
    Thanks,
    Neelima.N

    hi ,
      use the following documentation for your help.
    Displaying Fields That Refer to Currencies or Quantities
    Use
    In the ABAP Dictionary, you can assign a currency or quantity field to a table field if the table field contains a currency or quantity value. When printing these fields, SAP Smart Forms can take into account the assigned currency or unit:
    If the value field is in the same table as the assigned currency or quantity field, SAP Smart Forms automatically recognizes this and, during output, formats the value field according to the currency or unit in the assigned field.
    If the value field and the assigned currency or quantity field are stored in different tables, SAP Smart Forms cannot automatically recognize the relationship.
    In the second case, you must inform SAP Smart Forms about the relationship.
    Procedure
    As mentioned above, you only have to perform the following steps if a value field that is to be displayed in a table (for example, VALTAB) has a relationship to a currency or quantity field in another table (for example, CURTAB). In this case, you have to specify the relationship explicitly:
    In the form, define a global field of the same type as the table in which the currency or quantity field is stored, for example WA_CURTAB. Also define a work area for the output of your value field, for example WA_VALTAB.
    If you use a table with a header line, you do not need to define a work area. Instead, you work through the following steps with the header line of the relevant table. In the following step, for example, you would specify the field VALTAB-VALUE instead of WA_VALTAB-VALUE under Field Name.
    Create the relationship to the currency field by switching to the Currency/Quantity fields of the Global Definitions node and entering the following values:
    Field name: WA_VALTAB-VALUE if this is the value field of VALTAB that is to be output
    Reference field: WA_CURTAB-CURRENCY, therefore the currency field of CURTAB
    Use the work area WA_VALTAB on the data tab page of your table node or loop node.
    Create a program lines node before the event at which the value field is printed.
    In the program lines node, assign the currency or unit in which you want to format the value field WA_VALTAB-VALUE to the currency or quantity field of the global field WA_CURTAB-CURRENCY. You have to either select the value of WA_CURTAB-CURRENCY afterwards or have already passed it to the form interface.
    Display or print the value field WA_VALTAB-VALUE.
    Result
    During output, SAP Smart Forms formats the value field WA_VALTAB-VALUE according to the value assigned to the currency or quantity field of the global variable WA_CURTAB_CURRENCY.
    regards,
    Veeresh

  • Handling currency and quantity fields in smartforms

    Hi,
    can i know how to handle currency and quantity fields in smartforms.
    i have to display ZMENG field of VBAP table but it is not getting displayed.
    i have given the details in CURRENCY AND QUANTITY tab in the GLOBAL DEFINITIONS.
    Thanks,
    BJR.

    Hi
    Did u pass that value in the INPUT and OUTPUT parameters where u r calling that field...
    if u have not included that in The Currency/Quant Tab will get an Error Message.....
    and &VBAP-ZMENG& ..in the text
    surya

  • Displaying amount field in smartform output

    hi experts,
    i am printing amount field in smartform output. like this 11,200.
    but i need to display like this $11,200.
    i need to print $ with amount field .
    can u give me some idea?
    Thanks

    Hi,
    Try like this.
    Data : v_amount type i value 11200,
              v_final type string
    If u r getting currency, then check the currency.
    If Curr  eq 'USD'
    concatenate '$' v_amount into v_final separated by space.
    endif.
    Print V_FINAL where do u want.

  • Printing currency symbols in smartform

    Hi,
    I have a requirement like printing the currency code beside all
    currency fields.
    Ex: If customer is in us, $ should b printed.
    Can anyone please tell from where these fields can b retrieved.

    Hello,
    Please refer to this link:
    putting checkboxes in smartform?
    It talks about inserting sap symbols (concretely checkbox) , I don't know if $ is in standard sap symbols.
    However I think that you can have a look.
    I hope it will help you.

  • To Remove comma's from the Currency Field

    Hi,
    I Want to print the Currency Field in the smartform without
    comma's.
    Is there any Function Module to suppress comma's .
    Eg: 1,000.00 to 1000.00
    Regards
    Praveen.
    Edited by: praveen kumar on Jan 20, 2009 2:13 PM

    Hi,
    Following code will help you in this way,
    TABLES: aufk.
    TYPES: BEGIN OF t_aufk,
      user4 LIKE aufk-user4,
      withoutc(13),
      END OF t_aufk.
    DATA: it_aufk TYPE STANDARD TABLE OF t_aufk WITH HEADER LINE,
          wa_it_aufk TYPE t_aufk.
    SELECT user4 FROM aufk UP TO 10 ROWS
      INTO CORRESPONDING FIELDS OF TABLE it_aufk.
    BREAK-POINT.
    LOOP AT it_aufk INTO wa_it_aufk.
      wa_it_aufk-withoutc = wa_it_aufk-user4.
      MODIFY it_aufk FROM wa_it_aufk INDEX sy-tabix.
    ENDLOOP.
    LOOP AT it_aufk into wa_it_aufk.
      WRITE: / wa_it_aufk-user4,  wa_it_aufk-withoutc.
    ENDLOOP.
    Please test with your own table and field may be you will not able to get any amount in the above used itab, if you only want to test place a break point just before 1st loop and add some values in the debuger mode to the amount field.
    Please Reply if any Issue,
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Jan 20, 2009 6:46 PM

  • Currency field in alv report

    hi
    i have to display the currency field o/p with diff. currencies according to countries.how can i do that.

    Hi,
    see example program ERGP2070. It is doing something similar to your requirement.
    It is declaring currency as a separate field 'WRG'. and for amount field, setting CFIELDNAME field as 'WRG' and DO_SUM = 'X'.
    try this.
    Regards,
    Satish

  • Summary report treats a currency fields as text

    In the summary report I have three charts with the currency field. The two charts show 'average' and 'total' but the other chart shows 'percentage' of responses - in other words the report treats that field not as a number but as text. The filed is designated as a currency in the desing view. Why is it treated as text?

    Hi,
    The percentage of responses is a reference for the responses of that field.  If you don't want it to show, you can disable it.
    Hope this help,
    Perry

  • ROUND OFF IN CURRENCY FIELD

    Hi,
    In my report I am displaying the currency field NETWR in ALV Report.
    Now, the requirement is as such-
    For eg- If the value of NETWR field is 57,441.50 then I want to round it off to display only 57(assuming that all values in thousands) i.e 57,441.50 would be considered as 57,000 only.
    I think there is some functional module to solve this problem.
    Can somebody help me regarding the same,points will be rewarded.

    Hi friend
    Try this.
    Check this sample:
    DATA: WA_INPUT TYPE P DECIMALS 8,
    WA_OUTPUT TYPE P DECIMALS 2.
    WA_INPUT = '5678.65800341'.
    CALL FUNCTION 'ROUND'
    EXPORTING
    INPUT = WA_INPUT
    IMPORTING
    OUTPUT = WA_OUTPUT
    EXCEPTIONS
    INPUT_INVALID = 1
    OVERFLOW = 2
    TYPE_INVALID = 3
    OTHERS = 4.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE: WA_OUTPUT.
    OR this,
    DATA: I TYPE I,
    P TYPE P DECIMALS 2 Value '3.5'.
    I = P.
    Reward if helpfull.

  • Currency field in service PR

    hi
    currency field in service PR for item category D and B is greyed out, it cant be changed according  to sap note
    do u have any workaround or any other alternative how this can be chnaged?

    Hi,
    I hope I have understood your question correctly!!
    You can maintain Service or Limit in item details there you have the option of maintaining price.
    Please for your reference go thru this document: http://www.sap123.com/a/52/
    Hope you find these useful.
    Reetesh

  • Stock account currency field in MB5L report

    Hi!
    can any one tell me in MB5L report for field materials currency and stock account currency, from system will pick up the values?
    I think materials currency field will pick up from GL accounts?
    But stock account currency, from where it will pick up value?
    regs,
    ramesh b

    Hi!
    both are not GL account balances.
    I have studied the report and understood.
    the material currency field: just it will take total stock avialable * std price/MAV price ( it will be equal to value in material master, MB5B, MB51 )
    the stock account currency field: it will take GL account balance via valuation class ( OBYC setting BSX)
    Here for example if you select only one material in MB5L report , it won't show the GL balance pertaining to that material, it will simply show the total GL balances that means system won't check material number existed in line items ( BSEG table).
    any way thanks for your inputs.
    regs,
    ramesh b

Maybe you are looking for

  • Message Mapping - Fix Values Transport Issue

    Hi, There are few fix values in the Message mapping which is running fine in D, Q and P. As per an enchancement, couple of additional values are keyed into Fix values of the Message mapping. Exported the object into the Export directory. Basis had mo

  • Reporting Doubt on Condition.

    Hi , I have a doubt on applying condition on the summary level of the report: Here is an example, Claim No      Line of Business        Claim Count       Payment       Reserve       1                  Creditor                       1                 

  • Calendar 7.1.1 List of events

    Hello, I updated my iphone last night to 7.1.1, now i can't see my agenda as I used to. Why? The version 7.0 showed all my events sorted by date when I pushed the search icon, now I must write 'something' to look for it. I don't like it. How can I se

  • How do I make the font automatically get larger when it come to my screen?

    I am a senior citizen and I need a large font. I found out how to make the font automatically get larger sometime ago but have forgotten how it was done. I want the font automatically get larger each time a page come to my screen. For example, if I a

  • Ovi Suite Software Updates-Error No internet Conne...

    My Phone Nokia 5800 Xpress Music.. Ovi Software update fails while cheking for updates pops up Network Connection error dialog Nokia Ovi Suite software update service is not responding Make sure the internet connection is working or check firewall se