on 06-13-2008 6:53 PM
Hi!
I need to increase the lenght of the text in my smartform under my main window header 'Product and services" which at present is not able to give the entire text in the out put as the lenght is only 60 characters. I wnat to increase it to 170 characters . Can anyone tell me wher do I go and increase the output lenght so that when I print the invoice I get teh entire text and not justa part of it.
Thanks
Check the Window length.
Or split the text into 2 and try to print it.
Thanks,
Chaitanya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The window lenght is ok and I dont think that need s to be changed , as the text can flow into the subsequent lines , the problem is after 70 characters the text is not displayed , its cut after those 70 characters.How do I increase its lenght
Becaus eeven if I increase the column width to 160 still the text that will print on invoice will be 70 characters which truncates my half of teh text.
Any help?
Thanks
z
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to the window and see what is the variable that is used to print that text.
If it is of 60 characters, you need to modify the length of the variable to 170.
Activate the smartform .
YOu have to change the driver program also.
YOu have to pass the full 170 character text from the driver instead of the 60 character variable.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I find is that when I go to the billing document and see the details there(vf03) and chech the material text maintained , I see whats happening. Only the contents of the first line maintaned is printing in the smartform while the subsequent lines are not printed and the lenth of the text lines are 70 in each row thats why only that is getting printedand not the second and thrid lines even though there is lot of place in my smartform to print the entire text. How do i caputer the subsequent lines and not only teh first line. Please.
Thanks
This is what I have done:-
get material sales text
concatenate gs_gen_del-bil_number gs_gen_del-itm_number into l_product_key.
call function 'READ_TEXT'
exporting
name = l_product_key
object = 'VBBP'
id = '0001'
language = sy-langu
tables
lines = lt_lines
exceptions
not_found = 1
ohters = 2.
if sy-subrc = 0.
read table lt_lines into ls_lines index 1.
move ls_lines-tdline to g_kdmat.
Remove sapscript special characters
replace: '<(>' in g_kdmat with ' ',
'<)>' in g_kdmat with ' '.
exit.
endif.
get Material description
select single arktx into g_kdmat from vbrp where
vbeln = gs_gen_del-bil_number and
posnr = gs_gen_del-itm_number.
vbeln = gs_vbap-vbeln and
posnr = gs_vbap-posnr.
if sy-subrc <> 0.
g_kdmat = 'No Product service !!!!!'.
endif.
Do I need to to anything to it to increase the lentght or what do I need to do , im totally clueless as what to do to bring out the entire text.
Thanks
No nothing is oveerlapping or its not that space is not there on smart forms , .If you see in the code that I sent there is a field
gs_kdmat . In teh global field definbition I see the associated type as CHAR70 . This si what I ahve to change I beleiev.
There is enough space in teh smart form to take the entire text , nothing isoverlapping but teh lenght of this gd_kdmat is 70 which needs to be increased to 160 , that is what I dont know where to chanfge.
Thanks
In your code after calling the READ_TEXT FM do the following changes:
1. instead of using a variable i.e. g_kdmat here, use an internal (itab) table of CHAR70 (better to define a table type in DDIC). and populate this table by the entries of
lt_lines.
data: itab type standard table of char70 initial size 0.
data:w_itab type char70.
concatenate gs_gen_del-bil_number gs_gen_del-itm_number into l_product_key.
call function 'READ_TEXT'
exporting
name = l_product_key
object = 'VBBP'
id = '0001'
language = sy-langu
tables
lines = lt_lines
exceptions
not_found = 1
ohters = 2.
if sy-subrc = 0.
loop at lt_lines into ls_lines.
Remove sapscript special characters
replace: '<(>' in ls_lines-tdline with ' ',
'<)>' in ls_lines-tdline with ' '.
w_itab = ls_lines-tdline+0(70).
append w_itab to itab
endloop.
2. Pass this table (itab) to the smartform through smartform FM interface.
3. loop on this table in Smartform and display all the entires.
Hope aboe steps will help you to solve the prob.
Regards,
Joy.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.