‎2006 Oct 27 4:32 PM
In my smartform Driver program , I created an internal table that includes VBAP structure and an extra field called "total". I populated the table and pass it via the Form FM to the smartform .
On the Smartform side :
In se11 i created a structure type ztest: that has vbap include and same field "total".
In the Form Interface , I declared my recieving table it_vbap to be of type ztest .
Now , i loop at this internal table into a local structure ( that also of type ztest ) on the table and print the value : &gs_vbap-total&.
I activate the form ...it is fine ...as well as program !!
Now , when i do the print preview of the form , It gives an error :
<b>
Reference field GS_VBAP-TOTAL unknown in form.</b>
Can anyone help on this one ?
‎2006 Oct 27 4:38 PM
You declared GS_VBAP in the Global definitions of the smartform, correct?
‎2006 Oct 27 4:40 PM
Hi Matt,
yeah , GS_VBAP is in the global declarations of the form.
Thnx
‎2006 Oct 27 4:41 PM
Hi,
Make sure you have declared your structure in the "Global definition section"..
Is the field TOTAL a currency field..I think it is looking for a currency reference field..
When you created the structure with the vbap and TOTAL..if the total is a currency field..which reference field did you give for TOTAL??
THanks,
Naren
‎2006 Oct 27 4:45 PM
Hi ,
Its a quantity total , so i reffered to the vbep BMENG the type definition ( se11 ).
Now , during activation i get this error :
ZTEST2-QTOTAL (combination reference table/field VBEP-BMENG does not exist)
Message was edited by: SAP BEE
‎2006 Oct 27 4:50 PM
‎2006 Oct 27 4:53 PM
No , I am printing the GS_VBAP-TOTAL field , which is defined to be of type : Quant 13 3 in the Type Structure ZTEST2(se11) !! after defining it , when i am trying to set the reference for it to say vbep-bmeng field ..I get this error :
ZTEST2-QTOTAL (combination reference table/field VBEP-BMENG does not exist)
‎2006 Oct 27 5:08 PM
Hi,
Try this..
Create a variable GV_TOTAL_QTY of type char16.
Use the program lines to write this code..
WRITE gs_vbap-total UNIT gs_vbap-meins TO
gv_total_qty.
Hope this works..
Thanks,
Naren