Skip to Content
avatar image
Former Member

Currency in SmartForms

Hi all,

I have made a smartform in which i have got itab and i am printing this in a table.

In itab i have got one field and that KBETR and thats Number of Units.....Whenever i try to print this smartform through my abap code then it gives me error that no reference found for KBETR.

Can any body please tell that where should i clarify this field in SMART FORM under which tab and most of all how to reference it with the Units. i tried to give it under "Global Definition'--->'Currency and Quantity' but useless cuz it gives me error. To display data in smartform i have already created a structure in SE11 and that is working fine but at smartform it is giving me errors at runtime on UNIT and CURR fields.

Thanks and points will be rewarded.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 21, 2007 at 07:53 PM

    Hi,

    eventhouh u have a reference field defined in structure/table for currency or quantity fields, you should assign reference field agin in smartforms.

    <b>You can print currency and quantity fields in smartforms.</b>

    I've printed a qauntity field in my form and i used the following code:

    smartform-> global defintions-> v_meins type ekpo-meins

    (declare a varibale with type quantity field)

    smartform ->currency & quntity fields-> itab-meins v_meins( type ) QUAN

    now i can print quantity field itab-meins in my form.

    regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 20, 2007 at 02:21 AM

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

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

    Ex: netpr FIELD of EKPO

    CREATE program lines and specify

    Note: quantity and currency fields cannot be displayed directly in smartforms.

    Regards,

    SaiRam

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 19, 2007 at 07:39 AM

    Hi ,

    I hope u have declated a structure containing fileds kbetr and waers .

    In smartforms u have declared a work area with reference to that structure in dictionary . say is_konv is the work area u have declared in smartforms .

    so

    doule click on global definitons

    In currency/quantity fields tab

    give field name = is_konv-kbetr

    reference field = is_konv-waers

    data type = curr .

    kbetr is the currency field and waers is its currency key field .

    This will solve ur problem .

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 19, 2007 at 07:47 AM

    ur right this should work but bad luck it is not working.

    i really dont understand where should i go and put KBETR of KONV table in SmARTFORM for Currency and UNITS

    Add comment
    10|10000 characters needed characters exceeded