on 01-08-2010 5:34 AM
Hi Experts,
I want to print value of a field in the print form like we do in smartform &VARIABLE NAME&
I know drag and drop method but this will take fixed length.
For example :
if data is AAAA BBBB CCCC it should print AAAA BBBB CCCC
if data is AAAA B CCCC it should print AAAA B CCCC not AAAA B...... CCCC
. = space
Regards
Bikas
Hello,
let me give you the list of options and pick up the right one for you:
1) do everything in the backend/ ABAP. Read texts, concatenate, remove blanks and everything in ABAP where (I guess) you can do this easily. If that is not possible in your scenario, tell us about that and why. I would like to know and maybe we can think deeper about the text backend operations.
2) use texts, like smartform texts, I mean SO10 transaction texts. These can be read in ABAP and work with that in ABAP or it can be read into the context elements - texts. There are three types of these texts, find out yourself which one fots your needs the best
3) manipulate the texts in Adobe form. There are multiple ways how you can work with texts in the form.
a) manipulate it with script. Use scripting to check the values, for concatenation, merging field values etc.
b) use floating values. place a text (the static text, not field) on your form, write the needed text into the text and next add the variables. You can do this clicking right mouse on the text and use "floating field". This will add variable like you used in smartform, this is equivalent to &variable&. A new field appear, this fields value will be put in the text and you can control this value in the new field. I can understand this description is a little bit weird, so please try it for yourself and ask for details if needed.
Regards, Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bikas,
What Chitan is said is correct. Whatever the data field is having will get displayed.
If you are not concateneating the value and still you are getting extra spaces there then try this FM
'FOPC_CONVERT_TEXT_TO_STR'
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not really able to get your question because if data is AAAA B CCCC why would Adobe diplsay spaces ? Are you concatenating these values in your form ?
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.