05-31-2016 9:07 AM
Hi
In a smartforms there is variable &GV_OBJ& which is getting display for some prints while in very very few its blank. there is no condition for this variable.I checked in debugging the value is getting assigned to this variable and its not getting cleared. but not sure why not getting display.
please suggest on this.
Regards
Navdeep
06-01-2016 2:27 PM
Hi All,
thanks for your inputs.
issue resolved , actually for a specific document printing , functional configuration is different , for this smartform was getting executed in different language and on checking smartform in that language a different variable is used rest everything is same.and its value is blank . hence same is getting display.
Regards
05-31-2016 9:20 AM
Might the contents be too long? (compared to the space foreseen in the form)
05-31-2016 9:52 AM
content is of same length . iI this variable VBELN is passed that is of 10 character.
05-31-2016 9:23 AM
Debugging means Where you checked, Driver program, After driver program Again we can write in Smart form Coding also. Check it is there any coding in the Smartform.
05-31-2016 9:53 AM
This coding is done in smartform only. value is assigned to this variable in coding part of Smartform only.
05-31-2016 10:13 AM
Check Value Assigned variable type is same as a GV_OBJ variable type. Means both the variable type should be same.
05-31-2016 10:24 AM
yes, its same . moreover even if there is such issue this must be with all the prints , only for very few prints this value is not getting display.
05-31-2016 10:14 AM
Hi Navdeep,
Just check in debugging. Run the smartforms in the smartforms TCODE . This will generate the function module. In the function module place the debugger point and check the interface variable. Then run the driver program in another session
05-31-2016 10:22 AM
Hi Pras,
doing in this way only, value to this variable is assigned in coding in smartforms and used there only, it is not in driver program.
value is assigned correctly to this variable checked in debugging. but same is not getting printed in very few cases. in most of the case its getting printed correctly.
05-31-2016 10:37 AM
You Said.
while in very very few its blank.
While it is blank have you seen the size and Value of the Variable.
Suppose GV_OBJ Value is like 'TESTTESTTESTTESTTESTTESTTESTTEST1
You said some others are working fine.
Now .
See the value of GV_OBJ
Do small testing
In which document is coming value Change the GV_OBJ to TESTTESTTESTTESTTESTTESTTESTTEST1
Now tell me whether it is displaying the value or not.
05-31-2016 10:43 AM
06-01-2016 10:14 AM
Hi,
Please check the window size, variable length and value again.
Note down the value in debugging mode. Now execute the smartform function module by passing the value, you will come to know the problem is with window size or not.
Please send me the smart form code - the way you are assigning value to variable GV_OBJ.
06-01-2016 10:28 AM
hi,
As already stated above check size available and value coming in that variable.Sometimes the value is 'test' but length is 20 and availablevfor print is 15 so it would be like ' , test'.The words after , would not print.
try &gv_obj(C)& to condense the variable if length is ok.
for numeric values you can try removing leading zeroes.
06-01-2016 2:27 PM
Hi All,
thanks for your inputs.
issue resolved , actually for a specific document printing , functional configuration is different , for this smartform was getting executed in different language and on checking smartform in that language a different variable is used rest everything is same.and its value is blank . hence same is getting display.
Regards