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

SMART FORMS issue

Former Member
0 Likes
1,369

HI SMART FORMS experts:

My global declarations:in 4.6B:

WA_EKPO TYPE EKPO.

FINAL_EKPO TYPE ZTT_PO.

I created a table : for PO items

and iam printing like this.

&WA_EKPO-EBELP& &WA_EKPO-MATNR& &WA_EKPO-TXZ01&

&WA_EKPO-NETPR& &WA_EKPO-NETWR&

Iam getting the output of the following:

&WA_EKPO-EBELP& &WA_EKPO-MATNR& &WA_EKPO-TXZ01&

===================

But &WA_EKPO-NETPR& &WA_EKPO-NETWR& iam getting the following:

Reference field WA_EKPO-NETWR unknown in form.

Message no. SSFCOMPOSER 601

====================

How to solve my issue. If i get solved sure i will award points.

Vas.

8 REPLIES 8
Read only

Former Member
0 Likes
1,085

I have had trouble printing currency fields in the past, especially if you try to format them like (13.2). Try using a program lines node and moving the values of NETPR,NETWR to variables of type P.

Read only

Former Member
0 Likes
1,085

I think you will have to print the currency key as well here that will be in the EKPO table.

Regards,

Ravi

Note :Please mark all the helpful answers

Read only

Former Member
0 Likes
1,085

Hi,

This is due to the currency field which needs a reference field for identifying the currency key.

Use the Currency/quant fields tab in the Global definitions of smartforms to define the currency.

Regards,

Prakash.

Read only

Former Member
0 Likes
1,085

Hi,

When ever there is a currency field to be printed in smartform, you also need to refine a reference field so that system will use this currency unit. For this, goto

"Currency/Quant. fields" tab in Global definitions and declare as below

WA_EKPO-NETPR CURR

WA_EKPO-NETWR CURR.

This will create reference to currency fields and it will display the output without errors.

Hope this helps

Vamsi

Read only

0 Likes
1,085

I don't think the 'Currency/Quant. fields' tab exists in 4.5B. That's why I suggested moving the quantities to packed variables. This is what I had to do in 4.6C.

Read only

Former Member
0 Likes
1,085

Srinivas,

My proposal is to convert it to another variable.

data MYSTRING(20).

WRITE W_VALUE TO MYSTRING CURRENCY W_CURRENCY.

Regads,

Naveen

Read only

Former Member
0 Likes
1,085

Hi All,

Could you please show or post the screen shot the

<b>Curr/Qty</b> Tab in GLOBAL DEFINITIONS of 4.6B or 4.6C

I would like to know about that.

Vas.

Read only

Former Member
0 Likes
1,085

Hi ,

I would like to share my code here:For 4.6C:

When you are using this table:

Define wa_netpr type P

wa_netwr type p

in GLOBAL DEFINITIONS.

=================================

Insert the PROGRAM LINES in the table node:

And pass the values here.

wa_netpr = WA_EKPO-NETPR.

wa_netwr = WA_EKPO-NETwr.