Skip to Content
avatar image
Former Member

error in smart form with currency fields

while i am using with currency fields in samrt forms error is comming in while i am giving print-preview in se38 "<b>Reference field WA_EKPO-NETPR unknown in form."</b>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • avatar image
    Former Member
    Oct 06, 2007 at 03:24 PM

    Hi

    It seems you have not declared that field in the smartform global definitions.

    May be declared as local structure.

    It is the data declaration problem of that field

    Make it global field then check.

    Double click on it, if it navigates to the declaration it's fine.

    Regards

    Anji

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 06, 2007 at 05:03 PM

    In smart forms if we want to display quantity and currency fields. We cannott directly display currency field and quantity fields.

    To display the mdo like this

    Ex: GLOBAL Definitions

    WA_NETPR LIKE EKPO-NETPR

    For that we have to create an extra variable in global definitions

    Ex: netpr FIELD of EKPO

    CREATE program lines and specify WA_NETWR = itab-netpr.

    Close the thread once your question is answered.

    Regards,

    SaiRam

    Add comment
    10|10000 characters needed characters exceeded

    • > I know that the post is already outdated, quick question

      Why didn't you open a new thread, and make a reference to this thread? (though it is not related but you couldn't know)

      > if you define the currency in the global definition, currency tab, I noticed that the decimal notation does not correspond automatically to the settings in defined in the user's SU3 settings.

      That's normal, they are not related. SU3 settings are about the characters to be used to represent thousands and decimal separators. While currency field is just used to indicate the number of digits after the decimal separator (there is none decimal separator if it's zero of course).

  • avatar image
    Former Member
    Oct 07, 2007 at 02:04 AM

    in smartform, if you want to display Quantity field, in global define, in Quantity and Currency field, you should define the reference field for this, wish can help you.

    Monson

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 05, 2010 at 11:35 AM

    Copy the CURR and QUAN values into a variable(say var1) of TYPE TEXT and display that variable(var1).

    This will solve the problem.

    Add comment
    10|10000 characters needed characters exceeded

  • May 05, 2010 at 02:12 PM

    Go to the Global Definitions of ur Smartform and Currency/Quant Fields Tab

    Give ur Currency field as CURR Field for it.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Declare a variable of type Char in global defnitions say wa_netpr and transfer the value of netpr into this variable .Use this variable for printing.

      This will definitely work.

      Please revert in case of any issues.

  • avatar image
    Former Member
    May 06, 2010 at 12:14 PM

    Hi,

    If you want to populate "QUAN" and "CURR" type field values. Move these field values into char fields in the a new internal table .

    Declare all the fields in "CHAR" type fields in Global Definitions Table or Work area . then your problem will be solved .

    Regards

    vishnuvardhan

    Add comment
    10|10000 characters needed characters exceeded

  • May 06, 2010 at 09:25 PM

    Check this wiki: http://wiki.sdn.sap.com/wiki/display/ABAP/HowcurrencycodeisdeterminedinSmartFormsforagivenamountfield

    You'll see that your error message is "case 5". Choose one of the 4 other cases.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 06, 2010 at 09:29 PM

    Potential responders - please note the date of the original post 😉

    Rob

    Add comment
    10|10000 characters needed characters exceeded

    • Thx Rob. I wonder if Otto Gold proposed to display an alert at the top of the threads when they are older than 30 days in his blogs about what he would love to see in SDN...