Application Development 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: 

fields not displaying in some prints in smartforms

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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


13 REPLIES 13

Patrick_vN
Active Contributor
0 Kudos

Might the contents be too long? (compared to the space foreseen in the form)

0 Kudos

content is of same length . iI this variable VBELN is passed that is of 10 character.

former_member196331
Active Contributor
0 Kudos

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.

0 Kudos


This coding is done in smartform only. value is assigned to this variable in coding part of Smartform only.

former_member196157
Active Participant
0 Kudos

Check Value Assigned variable type is same as a GV_OBJ variable type. Means both the variable type should be same.

0 Kudos

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.

former_member185537
Participant
0 Kudos

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

0 Kudos

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.


former_member196331
Active Contributor
0 Kudos

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.




0 Kudos

yes in this way , its getting display correctly.

Former Member
0 Kudos

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.

former_member197916
Active Participant
0 Kudos

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.

Former Member
0 Kudos

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