cancel
Showing results for 
Search instead for 
Did you mean: 

Currency in SmartForms

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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