Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Currency declaration in SmartForms

Former Member
0 Likes
449

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.

1 REPLY 1
Read only

Former Member
0 Likes
318

Hi

When you created the structure in SE11 have you give the reference fields for this field KBETR or not?

check it? generally when we create a table or structure with CURR and UNIT fields it is a must to give the refrence table and field for them.

So against the KBETR field give some table and field name like VBAK-WAERK

and for UNIT (quantity) fields give as EKPO-MEINS

it will work fine.

In smartforms you can declare an internal table in Global definitions as

IT_VBAK TABLE TYPE (or type table) KONV.

check the syntax as I don't have system in front of me.

<b>Reward points for useful Answers</b>

Regards

Anji

Message was edited by:

Anji Reddy Vangala