cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms warning message

Former Member
0 Kudos

Dear experts,

In smartforms , i have discovered a warning and i actually could not find a way out to get rid out of this warning.Though it has no implications to execution but still its not acceptable.

At present i have warning

Field I_TOTSF-SUMG has no defined value

Now i have declared this table in global definition .If i try to give this particular field I_TOTSF-SUMG ,it says invalid value as a result i cannot put this in global definition or trying giving any default val.

Further thing is that i get this warning only if i put it in text control but not if i put it in table control.

I searched forums and i get declare it as import parameter and use pass by value as told by Swetha but on attempting to do

I_TOTSF-SUMG ,i get error invalid field entered and i have to delete that node.

Regards,

Aditya Sharma

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

you can always proceed futher not an issue but if you want to get rid of that message u can very do it.

just initialise that variable with a default value.

reward points if useful,

siri

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Adithya,

This warning occurs when you are displaying a particular field before working with it in any nodes that occurs before it. And it is just a warning so there would be no issues when you activate and execute the form. So you can continue to work with it.

Regards,

Swapna.

Former Member
0 Kudos

Can you pls tel me from where exactly you are passing this field??

I mean if its a internal table then you must pass this in form interface tables

Otherwise if you are passin it as a import parameter then in your print program-> smart forms function module pass it there as well.

Now if you are looping that internal table I_TOTSF seperately what i mean if you are creating a table- > main area -> create a loop here then in data of table give this i_totsf into wa_totsf(define wa_totsf in global definitions) under loop insert table line and rows. Make sure u pass under loop not after loop. There in a row create a cell under this text element and now insert your field name wa_totsf-sumg.

So this incase if you are printing in a table and you want to loop.

Now,

If you are passing as a variable. In print program you must be having smart forms dynamic FM there you must be having this

Exporting

i_totsf-sumg = i_totsf-sumg (this would be the variable which you used in program)

Importing

Tables

Now in import parameters give this variable type your relevent variable check both optional and pass by value. Only thn it will work. Otherwise you will end up in deleting node.

Former Member
0 Kudos

Thanx buddys,majority of you say that let it like that.

Its has to be agreed .We compile various java codes that

are deprecated with warnings too.

I think IT industry is learning to adopt such standards.

Former Member
0 Kudos

I usually get such warnings while i compile my forms and therefore i solve it everytime. It can be solved and you can see your forms without warnings.

Former Member
0 Kudos

it happens all the time..u can ignore that and activate..not a worry