cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Form Formatting Problem

former_member628395
Active Participant
0 Kudos

Hi ,

I am printing a Custom Adobe Form(ZPTRV_EXPENSE_FORM), which is a copy of standard form(PTRV_EXPENSE_FORM), through PR05. The problem here is in the subform for additional trip information, where the comments entered by the user are getting displayed, is not getting frmatted properly.

for example.

2.Had a joint meeting with Mr.ABC, Mr.PQR, Mr.XYZ.

is getting displayed as

2.Had a joint meeting with Mr.ABC, Mr.PQR, M r.XYZ.

I have not changed any property of the said text area.

I found a SDN post which says it has been done in the interface. In this case, I am using a standard interface which does not

have any code in code initialization or Form routine.

Could you please guide me through.

Regards,

Sagar

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Hello,

so the part of the form we are talking about is completely dynamic, right? Like coming from the backend into the form table where in the line, there are some text fields, right? You can debug this easily in this case, you can turn the trace on (in transaction SFP there is a form trace) with maximum detail level and you will get the debug information attached to the generated form. Here you can check the format of these text. If they´re wrong in these files (there is xml data file attached here), that means the problem occurs in the backend. That means you should debug the ABAP code which prepares the data. And I hope that is not a problem for you. Just find if this is a form problem or backend problem and (slicing method, find the right slice to examine:))) debug it out.

Hope this helps a bit, Otto

former_member628395
Active Participant
0 Kudos

Hi Otto,

I have debugged the ABAP code and there is no problem with the data coming from the backend.

As you said, there is some problem in the form. The text while getting displayed in the form is aligned in a strange manner.

As i gave an example if I write Mr. ABC in the comments in PR05, it is displayed as M r.ABC in the PDF preview, tough

there is no space between M and R. Also what I have noticed is, this happens mainly in cases where comments are copy

pasted from Word Document i.e. Rich Text. I have also tried to change the text format from Plain Text to Rich Text. But this did

not help.

Also the text is not being sent through the import parameters or tables in the form interface. Is there any other possible way it

can be passed?

Regards,

Sagar

OttoGold
Active Contributor
0 Kudos

Hello again,

first: try to change the font and paragraph attributes. Maybe there something strange with the default values. Try the setting you would use and if doesn´t help, try courier new because it has the fixed character width.

next: if that doesn´t help, my idea is that through the clipboard you copy some unwanted characters? But you said there is no SPACE or blank/ weird character in the form?

The text can be loaded into the form through the context element, there are three types of texts you can use in your Adobe forms, look for a icon "book and a pencil" or something like that:)) There are details provided in the bottom if you click on the text element in the context. Maybe there is some weird style (like smartform style?) copied from the text into the form.

If you find these details, you can examine the standard text (and a style?) which is a source for the form text. Which element is the source you can see in the form text binding.

Regards, Otto

former_member628395
Active Participant
0 Kudos

Hi Otto,

First of all thanx for your prompt and kind reply. As I said the text hs been copied from MS Word. There are two boxes in the

text, wierd characters as you pointed out. But there is a part of text which does not hav those characters, yet there is a space

infact multiple spaces that appear in the preview.

I tried typing the part of the text manually in the comments box without the spaces. Then too, some of my words are split into

two or two words put togather.

I have also checked changing the font, but that didnt help. And the binding of the text field is set to 'EDITOR'. But if you check

the context, there is no element called 'EDITOR' not does the form interface have a parameter which passes the long text meant

for comments . That was the reason I was asking, what are the possible ways we can populate data in a form.

Regards,

Sagar

OttoGold
Active Contributor
0 Kudos

Maybe you would like to send me your preview PDF to the email, so we can speed this up:)) you´re welcome to do that.

If I undertand this well, the problem exists even if you type the text into the form fields? That sounds VERY crazy. Maybe if you can send me the preview PDF, I can find up something but there is no garantee:)) Please go to the data view and check there if there is something called the EDITOR. Maybe there was something called that name but that doesn´t exist anymore. Then if there is no interface source for data and no context source for data, it must be done through scripting. Have you checked the scripts too?

Otto

former_member628395
Active Participant
0 Kudos

Hi Otto,

Thanks for your time and readiliness to help me out.

I have mailed you the screen shot of the same. Please chek it.

Thanks,

Sagar

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

Hello, did you get your answer and sove your problem? If so, please close the thread and please share your solution and experience with us so the other members of the community benefits from that too. Otto

former_member628395
Active Participant
0 Kudos

Hi,

Sorry for not closing the thread. I hav'nt received any solution for the same.

Closing the thread.

Regards,

Sagar