‎2006 Aug 07 7:40 PM
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.
‎2006 Aug 07 7:47 PM
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.
‎2006 Aug 07 7:48 PM
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
‎2006 Aug 07 7:52 PM
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.
‎2006 Aug 07 8:07 PM
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
‎2006 Aug 07 8:12 PM
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.
‎2006 Aug 07 8:25 PM
Srinivas,
My proposal is to convert it to another variable.
data MYSTRING(20).
WRITE W_VALUE TO MYSTRING CURRENCY W_CURRENCY.
Regads,
Naveen
‎2006 Aug 07 8:27 PM
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.
‎2006 Aug 09 4:59 PM
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.