2014 Sep 01 1:05 PM
Hi Experts,
Kindly check the screen shots and help me with solving the issue .
everything is going well but the time when I'm giving the reference fields with type as QUAN & CURR its giving me error.
Kindly suggest me .....
Thanks in Adv..
Bunty
2014 Sep 01 1:10 PM
In global data you have declared wa_vbrk type vbrp, for this reason you can't declare that same fields as currency. I'm not sure, but looks like you don't need it, you can use netwr and fkimg directly, because they have a table reference.
If you need that work-areas, try to declare as variables. (something like v_netwr type vbrp-netwr in that currency tab)
2014 Sep 01 1:16 PM
Hi,
In your third screen shot you have mentioned Associated type as ty_vbrk, Check this
2014 Sep 01 1:32 PM
hi,
do like this..
don't change under currency tab....
under Global tab declare like this,
wa_vbrp-fkimg type VBRP-FKIMG.
wa_vbrp-netwr type VBRP-NETWR.
again don't declare WA_VBRP...in global data...
i think this should solve u r problem...
2014 Sep 02 3:23 PM
Hi Vinay ,
thanks a lot for your quick response...but when I'm giving wa_vbrp-fkimg in global tab its showing error saying that "Name wa_vbrp-fkimg is Invalid" .
Is there any other changes I should try ???!!!!
Thanks
Bunty
2014 Sep 02 8:27 AM
Hi Bunty,
This is a very common error.
Do like this:
1. wa_vbrp should be of type ty_vbrp.
2.In Global definitions currency tab:
2.
3. in your ty_vbrp , declare two fields as Meins and Waerk .
Then activate all this and run.
Regards,
Pankaj
2014 Sep 02 3:41 PM
Hi Pankaj,
Thank u for your reply , I tried all the steps you suggested but its still showing error.
then
then
Kindly note the error in the third screen shot. Am I missing something Pankaj,
After doing a small research on FKIMG & NETWR , I came to know that (from se11)..
| REFERENCE FIELD FOR CURRENCY/QUANTITY | ||||
| FKIMG | VBRP | VRKME | ||
| NETWR | VBRK | WAERK | ||
Kindly suggest me ..what should I do now ...
Thanks
Bunty
2014 Sep 02 4:37 PM
I get no error when I'm entering the definitions as shown in the last 3 screenshots. Can you post the screen shot of SF interace definition? Somewhere in that SF WA_VBRP-FKIMG is already defined, I believe.
cheers
Janis
2014 Sep 02 7:53 PM
Hi Bunty.
I think it should not give error.
Maybe you've already declared WA_VBRP-FKIMG elsewhere even though I do not know where it could be.
Regards,
Genaro.
2014 Sep 03 3:39 AM
Hi Bunty,
In your third screenshot, can you please change field names to V_FKIMG and V_NETWR instead of WA_VBRP-FKIMG and WA_VBRP-NETWR and hopefully this should resolve your issue.
Thanks
Sri
2014 Sep 03 7:08 AM
Hi Sri,
I tried the steps you suggested, but now its showing that " Field v_fkimg is already defined".
In global tab I declared V_FKIMG type VBRP-FKIMG & V_NETWR type VBRP-NETWR and
then in currency/quantity tab I declared
V_FKIMG---------->wa_vbrp-fkimg----------->QUAN
V_NETWR--------->wa_vbrp-netwr----------->CURR .
ERROR - Field v_fkimg is already defined.
In FORM INTERFACE I've declared only
WA_VBRK type VBRK.
I've tried all the steps suggested, but still its showing error.
Is it due to the version of SAP, Actually I'm creating the FORM in SAP 4.7 version.
Thanks
Bunty.
2014 Sep 03 7:48 AM
2014 Sep 03 8:00 AM
Try in currency tab
wa_vbrp-FKIMG VBRP VRKME
wa_vbrp-NETWR VBRK WAERK
2014 Sep 02 3:34 PM
hi,
the reference is wrong.
if you use netwr (amount), need to refer to waers (currency)
Regards
Miguel
2014 Sep 02 8:14 PM
hi if you create one row then if you need delet you must click in button ' - " (it is red)
if you only type other name the that error occurs.
2014 Sep 03 7:10 AM
Hi All,
Thanks for your suggestions,
In FORM INTERFACE I've declared only
WA_VBRK type VBRK.
I've tried all the steps suggested, but still its showing error.
Is it due to the version of SAP, Actually I'm creating the FORM in SAP 4.7 version.
Thanks
Bunty.
2014 Sep 03 7:16 AM
Hi Bunty,
remove the fields under currency tab, it should work. You declared those field under global data already.
2014 Sep 03 7:23 AM
Hi Ranjana ,
I've tried that also . After removing the fields under currency tab, its showing NO ERROR while activating the form , but when I'm executing my Driver Program in SE38 its showing ERROR saying that " Reference Field WA_VBRP-FKIMG is missing/unknown" .
Thanks
Bunty
2014 Sep 03 7:28 AM
Bunty, Are you getting error in smartform or program . If it is in program then please check your program.
2014 Sep 03 7:42 AM
Ranjana, The program is syntactically correct , Actually the error comes after clicking " Print Preview" button .
2014 Sep 03 7:56 AM
2014 Sep 03 7:30 AM
2014 Sep 03 9:22 AM
Hello Bunty,
Its may be your IDES 4.7 version problem ,so please go and check it in ecc 6 version IDES system and create the same form as in 4.7.
Thanks ,
Abhisek
2014 Sep 03 9:51 AM
You can declare a variable of character type in global variable and then in Currency/Quantity tab refer to that variable. This will work.
-SS