on 06-07-2007 1:42 PM
Hai,
I am new to ABAP ,I am trying to display PO using smart form but I am unable to display currency field (netpr).there is no syntax error or runtme error but when i press print preview button
' Reference field X_EKPO-NETPR unknown in form'.
message is displayed.
can any one help me.
thanks in advance
regards
Swetha Singh
Hi swetha,
the reference field for ekpo-netpr is ekko-waers. but u dont have to mention that in the smartform.
In global data under currency/quantity tabs give
fieldname-> x_ekpo-netpr
reference field-> netpr
data type-> curr
Now under the global data tab give,
variable name->netpr
type assignment-> type
associated type->netwr
The smartform now understands that x_ekpo-netpr has a reference field netpr. So it will automatically take the properties of netpr from table which also includes its reference to the field ekko-waers. Remove all other declarations for the field x_ekpo-netpr. it will work now..
reward if useful
regards
anoop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swetha,
In Smart Form if you want to display quantity and currency fields. We cannot directly display this fields.
For this we have to create extra variable in Global definition.
Ex: wa_NETPR LIKE EKPO-NETPR
Create program lines and sepecify wa_netpr = <internal table field>
Now it will won't give error, it will work
Reward points!!
Regards,
SaiRam
hai
Thank u very much.
regards
Swetha Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai,
i think X_EKPO-NETPR has reference fields check it se11 if netpr has reference field you need to declare in smartforms.
go to global declaration in that go to currency/quantity fields
give field name x_ekpo-netpr and give reference field name( get it from the ekpo table reference field) and give data type ( currency or unit).
and one more thing
reference field is like this format tablename-fieldname.
you need to display this table name in the global data tab like the following format
tablename type tablename
it will work
regards
arul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi swetha,
if u r using the quantity and the currrency fields u should enter the referencing field in global definitions->currency/quantity fields.
So make the entry in this tab for the reference field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.