cancel
Showing results for 
Search instead for 
Did you mean: 

Warning message 'Field ... has no defined value' in Smartform

Former Member

Hi,

I have a Smartform issue.

I defined a simple structure in TYPES.

TYPES: BEGIN OF TY_ZDIP,

VTEXT TYPE KOMVD-VTEXT,

KWERT TYPE KOMVD-KWERT,

END OF TY_ZDIP.

In global data I refer to this type structure.

The smartform works correctly but while compiling I get a warning message 'Field ZDIP-VTEXT has no defined value'.

I tried with default value but it didn't help.

Any suggestions?

Thanks in advance.

Kind regards,

Amel Alic

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Amel,

you need to do the following:

Go Global Defininitions. Now go to INITILIZATION tab here clear this structure & field. This will resolve your problem.

Reward points for helpful answers.

Ashvender

0 Kudos

Hi,

i too faced the same problem.

10q very much ...

Regards,

Balu.

Former Member
0 Kudos

hi Ashvender,

your answer is help full...

thankq

regards,

uday

hassan_nia
Explorer
0 Kudos

Thanks, it works.

Regards

Hassan

Answers (6)

Answers (6)

Former Member

Hi

It means there's no abap node where you fill that field.

It's a variable created inside of the smartform, so the system supposes you need to create an abap node where you'll inizialize it.

If you don't need it you can delete it, if you need it you should use the INIZIALIZATION or create an ABAP node and transfer the value to it.

Max

Former Member

hi,

Give the field name in the input and output parameters of the initialization of the global definitions.

Thanks,

Vamsi

Former Member
0 Kudos

Hi ,

This issue is faced due to  one more reason .When in the main window TEXT NODE is defined above the Programme lines . So switch the position of TEXT node and keep it below the Programme logic.And execute the smart form this issue will be resolved.

sagar_bagale
Explorer
0 Kudos

Field SEATS_AVAIL has no defined value


Hi Deepak,

this is what I was searching for.

thanks! it was helpful.

mainly for those who have Field SEATS_AVAIL has no defined value as their query while solving this exercise on SAP TECHNICAL.

please refer to the answer given by Deepak for this query-


Deepak Soni wrote:

Hi ,

This issue is faced due to  one more reason .When in the main window TEXT NODE is defined above the Programme lines . So switch the position of TEXT node and keep it below the Programme logic.And execute the smart form this issue will be resolved.

hassan_nia
Explorer
0 Kudos

If you can not Clear your variable (comes from mail program):

Define a global variable in SmartForms and move your original-variable to "SmartForms defined variable.

It solve the problem.

Regards

Hassan

Former Member
0 Kudos

Hi,

I solved the problem(issue) by clearing the structure in the initialization.

Thanks everybody.

Regards,

Amel

Former Member
0 Kudos

hi amel,

actually this message generally comes when u are not exporting the field

ZDIP-VTEXT in output parameters....

just check the field where u are getting this value..and in that output parameter just define ZDIP-VTEXT...

this will solve ur problem...

please reward in case usefull...

regards,

prashant

amit_khare
Active Contributor
0 Kudos

This warning comes when the defined Variable dont have a fixe value or whose value cannot be defined till runtime.

This warning can be ignored. This comes for almost all the local variables and locally calculated fields in SMARTFORMS.

Regards,

Amit

Reward all helpful replies.

pashattec
Explorer
0 Kudos

Thanks. Yes we can ignore it and we still get the result.