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

Error in Smartform !!!!

Former Member
0 Likes
7,035

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

23 REPLIES 23
Read only

Former Member
0 Likes
6,496

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)

Read only

Former Member
0 Likes
6,496

Hi,

     In your third screen shot  you have mentioned Associated type as ty_vbrk, Check this

Read only

former_member185116
Active Participant
0 Likes
6,496

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...

Read only

0 Likes
6,496

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

Read only

Former Member
0 Likes
6,496

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

Read only

0 Likes
6,496

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
FKIMGVBRPVRKME
NETWRVBRKWAERK

Kindly suggest me ..what should I do now ...

Thanks

Bunty

Read only

0 Likes
6,496

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

Read only

0 Likes
6,496

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.

Read only

0 Likes
6,496

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

Read only

0 Likes
6,496

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.

Read only

0 Likes
6,496

Hi ,

You just declare like this .

Regards

Arun VS

Read only

0 Likes
6,496

Try in currency tab

wa_vbrp-FKIMG    VBRP    VRKME

wa_vbrp-NETWR   VBRK   WAERK

Read only

Former Member
0 Likes
6,496

hi,

the reference is wrong.

if you use netwr (amount), need to refer to waers (currency)

Regards

Miguel

Read only

ronaldo_aparecido
Contributor
0 Likes
6,495

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.

Read only

Former Member
0 Likes
6,495

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.

Read only

0 Likes
6,495

Hi Bunty,

remove the fields under currency tab, it should work. You declared those field under global data already.

Read only

0 Likes
6,495

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

Read only

0 Likes
6,495

Bunty, Are you getting error in smartform or program . If it is in program then please check your program.

Read only

0 Likes
6,495

Ranjana, The program is syntactically correct , Actually the error comes after clicking " Print Preview" button .

Read only

0 Likes
6,495

Hi,

Yes, try implementing 544572 - Error in check on currency/quantity fields please.

cheers

Jānis

Read only

AnoopMayamkote
Participant
0 Likes
6,495

Please check your program

Read only

Former Member
0 Likes
6,495

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

Read only

satyabrata_sahoo3
Contributor
0 Likes
6,495

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