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

Error in smartforms

Former Member
0 Likes
1,049

Hi all

I have a problem to display the field mittelwert of table qamr of qm.

I have made a structure in abap dictionary.for the data of mittelwert i have define a field Result with

datatype QUAN.I m using the same structure at both places in the calling program and also in the

smartforms form.

I m filling the data from the table qamr in my internal table but when the data is transfer through the

function to smartform the smartform gives an error that reference field Itab-result is unknown.

I dont understand why this is happening cos in the program all the data is filled in the internal table.

and why smartform is raising this error.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,015

Hi Sohali,

Suppose your structure is having UOM field too..

then goto currency/quantity tab in global definition,

give field name as your quantity field (WA_TAB-QUANTITYFIELD)

reference field as that uom fileld (WA_TAB-UOM)

data type as QUAN.

if you don't have uom field than delare in global data and give that variable in reference field...

-Anu

9 REPLIES 9
Read only

Former Member
0 Likes
1,015

Hi,

Did you give the reference field for the QUAN field defined?

Check this. If the reference field for Quantity or Currency is missing, then it will throw error.

Thanks and Best Regards,

Suresh

Read only

0 Likes
1,015

I need to convert the data of that field cos the field data is in this format 2.3000000000000001E-01 and want to convert the data of this field in this format 0.23.this is the requirement.

I have used the quan datatype and also give the proper reference field.

in the program the data in the format 0.23 is retrieved but at level of smartform it gives the error message.

plz let me know why it is happening.

Read only

0 Likes
1,015

Hi

But you're using the reference field in the smartform?

Max

Read only

0 Likes
1,015

HI,

In the table which you are passing to the smartform FM need to have the Unit field in the internal table. If the unit field does not exist than it gives the error.

Add the unit field in the table which you are passing to the smartform FM. This will resolve your problem.

Read only

0 Likes
1,015

I have added the unit field but the problem is same.no change.

I have already added in the reference field in the structure for the quan.

should I also declare the quan reference field in the smartform too.If yes then how can I do that.

and can it resolve the problem.

Edited by: Sohail Sohail on May 29, 2009 6:40 PM

Read only

0 Likes
1,015

Hi,

If you have declared any Quan fields in the Global Definitions-> Gloabal Data tab ..for those field you need to mainatin the reference field in the Currency/Quantt Field tab.

Read only

Former Member
0 Likes
1,015

Hi

It seems the field with unit (measure) is missing: if you use e QUAN field, u need to use a reference field for it having the measure unit: a field like MEINS

Max

Read only

Former Member
0 Likes
1,015

use data type as currency

Read only

Former Member
0 Likes
1,016

Hi Sohali,

Suppose your structure is having UOM field too..

then goto currency/quantity tab in global definition,

give field name as your quantity field (WA_TAB-QUANTITYFIELD)

reference field as that uom fileld (WA_TAB-UOM)

data type as QUAN.

if you don't have uom field than delare in global data and give that variable in reference field...

-Anu