cancel
Showing results for 
Search instead for 
Did you mean: 

How to print value of a field in adobe form

former_member182485
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

chintan_virani
Active Contributor
0 Kudos

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

former_member182485
Active Contributor
0 Kudos

letus make it more clear

I display variable TEXT1 TEXT2 TEXT3 TEXT4 and

if TEXT2 AND TEXT3 is blank at run time then space should not be printed.

it should be TEXT1 TEXT4.