on 12-17-2011 5:54 AM
Hiiii all 'smart forms' gurus...
how to declare table fields in global definition wat is to rite under variable name and associated type..
exp :
tabe name REGUP
field name : ZALDT
Please give me idea how to define global data....plz give me suitable example.
thanks in advance
regards,
richa
Hi Richa,
As per you post i understand you are trying to declare table fields in global definition,
refer to the following if this does not clear your doubts please revert back.
whatever you declare in the global data you can use those variables in the entire smart form logic (Program lines etc...)
if u want to declare a work area you can declare like
WA_TEST(Variable) TYPE EKKO (Associated Type).
This will create a global Work area called "wa_test like ekko " which u can use in the smart form .
if u want to declare a table feilds you can declare like
ZALDT(Variable) type regup-bldat(Associated Type).
Regards,
Kalyan TC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Richa,
have you declared a structure WA_REGUP in global definitions?
eg: wa_regup type regup
are u passing/fetching any values in to this structure?
if you are using this structure in the code lines/ program lines please declare(wa_regup) in the i/p and o/p parameters of it.
if you have done everything correctly and still giving
"field wa_regup-bldat has no defined value...how to solved this warnings error." as said by you.
in the initialization tab in the i/p and o/p parameters declare field "wa_regup-bldat".
hope this solves your problem....
reward points to the posts that helped you.
Regards,
Kalyan TC
Hi Richa,
The above threads explains how to declare a variable, structure and table in the global definition of a smartform. So I am not commenting on that.
Regarding your query about the warning, the variable you declared is used in the text for printing, but may not be passing any values in program lines explicitly. (Example : Declaring a structure and using it inside a table to print the values) . In such cases, smartform could not recognize the values passing to the variables and it gives the warning as ' Field <Variable name> has no defined values'. This warning does not create any issues in the execution and can be ignored.
If we need to remove the warning, we can write a clear statement for the parameter in any program lines or in initialization. While doing so, we will use the parameter in the 'Output parameters' of the program line. When the smartform executes the check it will think the variable is filled in the program line andavoid the warning message.
Thanks and Regards
Raghesh R S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.