Formatting Long Text gets disturbed during Adobe form Printing
Hi Guru's,
I have developed Adobe Form for PM work Orders (IW32) printing using Code u2018SFPu2019. The Order Contains order Long Text or Operation Long Text.
In my case the user maintains some table like structure in the Long text .e.g. ( Here the tab means the actual space and the text length can vary. So basically he will draw a table cells one below another by adjusting tab's)
Text 2 Tab Tab |___|___|
Te TabTab Tab |___|___|
I am reading this using READ_TEXT and it gets perfectly read.( I mean the tab positions will be intact. Also it will remain intact by the time ADS will get called)
When i submit this for generating Adobe Form the formatting of the tab positions gets disturbed and it prints something like
Text 2 |___|___|
Te |___|___|
How to keep the Tab positions intact while printing the Adobe Form? For SAP script printing it comes perfectly but for Adobe form printing it gets disturbed. Any idea how to handle this situation?
Thanks
Pradeep
Tough request!
You have to calculate the widths of texts so that to determine to which tab position refers each tab character.
You might print the sapscript to OTF format, and read the OTF to get the exact positions (based on top left border of the page).
But now comes the second big issue: how to position a text in Adobe form at a dynamic position. That, I don't know. You might ask a question about this 2nd issue in forum
Similar Messages
-
Adobe Forms: Printing Header Text - Background as Dark
Hi,
We are upgrading our ECC system to Enahncement Pack 5.
We have Adobe forms for Sales Order, Delivery Notes,... In Border Palatte, we have set 'Solid' as a background fill for our header texts
After applying patches, Adobe forms started printing header texts background very Dark.We are not able to read the texts. If I view the document in the spool then they are displayed correctly. If I save spool document on the desktop and print it then also output is printed as we want. Only when we print it directly through VA01, VA02 ( directly from SAP ) then it gives this error.
I removed the background fill then it prints text correctly but then I loose the separation between header and content.
I will appreciate any help in this regard
Jitendra Pongurlekar
Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms".
Edited by: Thomas Zloch on Mar 4, 2011 10:55 AMHi mrudul,
as usual in programming, you got different ways to solve the problem. So if you work through the content here on SCN you will find a lot of examples how to decide between different letter heads. The easiest solution (and might be the best) is to pass the necessary data via the interface and do not add any condition in the form itself.
How to create a dynamic field and all the stuff is very basic knowledge, so I think you do not need any explaination how to do that. If so I refer you to the official documentation provided by SAP.
If you have some minutes please work through this blog Before You Ask - Just another guide and phrases like "urgent" or "do reply" are just not necessary to get an answer
~Florian -
How to use the separate symbol in the text field in the adobe form.
Hi,experts,
I dont know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
Action:
1. config the ADS successfully.
2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
3. create a WDA for invoke the form and transfer the 'remark' context data.
I use the following codes to display the paragraph in the PDF document:
CONCATENATE
'1、aaaaaaaaaaa;'
'2、bbbbbbbbb '
'3、ccccccccccc'
'4、ddddddddd'
INTO remark .
lo_nd_z_hr_php_payslip->set_attribute(
EXPORTING
name = `REMARK`
value = remark ).
But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
My email is : [email protected]
Best regards,
Tao
Edited by: wang tao on Apr 8, 2008 1:58 AMHi,
If it is just a one word value then you could use this in the exist event;
this.rawValue
= util.printx(">?<*",this.rawValue);
This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
If you wanted something more general ... if they could also enter a middle name then you could call a function like;
function toTitleCase(textValue)
return textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
This uses a regex to change all lowercase letters following a word boundary to uppercase.
Bruce -
Seperate Adobe Form printing for each order
Hi,
I have a scenario where i need to print Adobe Form for each order.
Right now i am handling this from print program(Executable) by looping at the Adobe form FM for each order.
So it will print seperate Adobe form for each order with corresponding Header & Item Data.
To get next order i need to hit on right & last arrows etc...
So right now i am handling it through Print Program.
Is there any way it can be handled directly at Adobe Form level.
By passing all orders to Adobe FM at a time (Intsead of looping) and handling Adobe Form printing for each order at Adobe Form level itself!
Thanks in advance.
Thanks,
Kumar.simple,
create one new program not driver program . Then u have to call that FORM
1.Get all the data created during the dates.
split the data into , based on the date ranges.
2.
loop at itab1.
perform open_form
write_form
close_form
endloop.
loop at itab2.
endloop.
1) I need to print the form automatically when an Order is created.<b>---->COnfig</b>
2) Every June 15th and Dec 15th I need to print the form for that Order
automatically with some other data.
<b>---> what ? what u split ?</b>
*--Similarly I need to trigger the form in this way automatically for all Orders.
<b>---> Config+ABAP</b>
How can I trigger the Form automaticall for the above requirement
Regards
Prabhu -
Adobe Form print/email - Attach IXOS .tif images via string table param?
I am attempting to create an Adobe Form print/e-mail output for Invoices, with zero, one or many attached pages from the IXOS archive. (TIFF files.) So far I have managed to attach exactly one IXOS image. Now I need to make the number of attached images dynamic.
This is in Netweaver 7.0 / ECC 6.0 ehp 3 / LiveCycle Designer 8.1.
My ABAP driver program is a copy of SD_INVOICE_PRINT01. In pseudocode, I've added:
Logic to identify correct IXOS image.
Logic to extract IXOS image to application server's file system.
OPEN DATASET image.tif FOR INPUT IN BINARY MODE.
READ DATASET image.tif INTO xstring.
CALL FUNCTION 'SSFC_BASE64_ENCODE' EXPORTING xstring IMPORTING string.
APPEND string TO string_table.
CALL FUNCTION form_name EXPORTING attachments = string_table.
The form interface is a copy of INVOICE_INTERFACE (ABAP dictionary-based.) I've added import param. ATTACHMENTS type STRING_TABLE.
In the form's context tab, interface import param. ATTACHMENTS was dragged & dropped onto the context pane, yielding:
- Table ATTACHMENTS
-- Structure DATA
--- Field ITEM.
In Adobe LiveCycle Designer 8.1, I *can* create an image field with binding ATTACHMENTS.DATA[1].ITEM - that prints the TIFF from IXOS just fine.
What *does not* work is placing ATTACHMENTS on the form as a table of image fields. I've tried several combinations - most look like this:
- Table or Subform ATTACHMENTS, binding ATTACHMENTS, repeat for each data item max = 1.
-- Row or Subform DATA, binding DATA[*], repeat for each data item min = 1.
--- Image field ITEM, binding ITEM.
The result is consistently one blank page. No more, no less.
Can anyone help?
Edited by: Eric Hopp on May 12, 2010 12:09 AMHello,
I have no experience regarding the table of pictures, but you could try a workaround if you don´t insist of displaying the images. You could attach the pictures as attachments (you know, the little attachments icon on the left in your Reader). The ABAP coding for this can be found in SE38 FP_* and when you check the descriptions you should be able to find the one working with the attachments.
Would be better than nothing I guess,
Otto -
Formated long text in Adobe PrintForms
I have a problem with the formatting of long texts in Adobe PrintForms.
On certain documents, for example, the basic data text of the article must be given.
This can contain words in UPPER CASE and then these must be given bold.
Does somebody have a tip, how is this to be moved?
Regards AndreasHi,
Yes you can include dynamic texte in your form . If your forms is based on DDIC interface on the context part you cann add node type Text . Fro each node of type Text you have to set if it's a dynamic text ( smartforms text ) , or include text ( sapscript's ) .
If your form is based on a XML interface just add a node with the all value required .
Hope this help you .
Regards -
Problem in formatting long text
Hi Experts,
I am printing quality notification using adobe forms.
The problem is that if there is any <TAB> in the longtext , then it is being printed as ',,'.
Ex. Test 1 is being printed as test,,1.
I am using READ_TEXT to read the text and in that itself I am getting the above format of ',,'.
Please suggest a way it could be printed as Test 1.
Many Thanks!
Parul.Hi Parul,
In the internal sapscript format the tab is represented as a ',,'. You should use function module CONVERT_ITF_TO_ASCII to convert the data returned by function READ_TEXT.
Reards,
Aidan -
Incomplete text displayed in interactive ADOBE form
Hi Guys,
I have an interactive adobe form where a drop down will display "EQUIPMENT NO" W.R.T to the selection screen i/p
uporn selection of the "equipment number" the "EQUIPMENT NAME"field automatically populates.
I used to get an error message "Entry is too long",
got rid of it by setting the value of TYPE property of attribue to "MAXLENGTH" , uporn doing this the drop down and the discription text is displaying only last 3 char of the values.
I tried increasing the size/characters of the fields in the table in the form but was of no use. Any inputs will be AppreciatedYes I have checked all the subforms Flowed. Text field is working good in Preview Pdf Option of NWDS.
But when I generate the pdf on server, when TextField flows to next page, on next page it repeats from first line. -
All Records are not getting displayed in adobe form from table
Hi All,
I Want to display records from table to Adobe Form Table .
But While Displaying only some of the records are getting displayed How can i display all the records in next pages of adobe form.
Its Urgent PLZ Reploy soon.
Thanks & Regards
Kirandear friend,
please check the adobe format, must be match to
the data base format.
pls go to the setting and adjust the data base table.
if nothing is going click the radio button
html format.
that will work.
rewards are expecting.
vivek -
Getting Error in Adobe Form as Script failed (language is formcalc:context
Hi Experts,
While acessing Adobe forms from MSS ,
After Selecting the Scenario
After Edit Form
Before the form is Displayed
I am getting a POP-UP message stating the following Error.
Script failed (language is formcalc;context is xfa[0].data[0].RequestSeparationEnhanced[0]. PCR_PAGE1[0].PCRheader[0].EmployeeDataCI[0].EmployeeDataCIContent[0].EmployeeInfo[0])
Script=concat($record.ENAME.DATA.FIELD,u201D(u201C,$record.PERNR.DATA.FIELD,u201D)u201D)
Error: acessor u2018$record.ENAME.DATA.FIELDu2019is unknown.
Script failed (language is formcalc;context is xfa[0].data[0].RequestSeparationEnhanced[0].PCR_PAGE1[0].PCR_DE[0].PCRDEContent[0].RequestSeparationEnhanceDDLOverlay[0])
Script=concat($record.MGTXT.DATA.FIELD,u201D(u201C,$record.MASSG.DATA.FIELD,u201D)u201D)
Error: acessor u2018$record.MGTXT.DATA.FIELDu2019is unknown.
ENAME & MGTXT are the fields which has to be displayed by default when the form is shown.
But when the Adobe form is displayed it comes without any Value for ENAME - Employee Name
MGTXT - Reason for Action Text .
Please provide me solution to over come this problem.
Thanking you in advance,
Suriya.This was fixed by commenting the script in the form since I don't require it.
Suriya -
Attaching same style in Standard text as well as adobe form
Hi Experts,
I have created 2 styles. One in se72 and second one in smatstyles.
But when i use 1st one in standard text, i can't see this style in adobe form to attach.
And 2nd one i can see it in adobe form but i can't see in standard text.
I want only 1 style to be used in both places.
Please help.
Thanks in advance.Hello,
You can achive this in two ways.
First - Go to the form interface and right click on the node create a text field in the form context.
In the properties tab on the right hand side of your form context you can specify Text Type.
Following Text type can be selected.
Include Text
Text Module
Dynamic Text.
As per your requirement select Include Text and then specify the NAME, LANG & TEXT ID for the text.
Once this is specified you can add this text field on the form layout.
NOTE: This normally works only if you maintain this text in the header or footer on the form but not at the line item level.
There are few issues when you try to print this text at the line item level.
To overcome this if your requirement is at the line item level follow second method mentioned below.
User READ_TEXT to read the standard text in your driver program. Then Pass the internal table returned with the text from this FM to another FM FORMAT_TEXTLINES.
This table is then used to map it on the adobe form. The second function module takes care of formatting.
Thanks -
PHOTO IS NOT GETTING REFLECTED IN ADOBE FORM
Hi experts
We have tried the below code to dispaly photo in webdynpro integrated with adobe forms
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
p_pernr = v_obj_id
* P_TCLAS = 'A'
* P_BEGDA = '18000101'
* P_ENDDA = '99991231'
IMPORTING
* P_EXISTS =
p_connect_info = l_connect_info
EXCEPTIONS
error_connectiontable = 1
OTHERS = 2.
CHECK sy-subrc = 0.
CALL FUNCTION 'SCMS_DOC_READ'
EXPORTING
* MANDT = SY-MANDT
stor_cat = space
crep_id = l_connect_info-archiv_id
doc_id = l_connect_info-arc_doc_id
* PHIO_ID =
* SIGNATURE = 'X'
* SECURITY = ' '
* NO_CACHE = ' '
* RAW_MODE = ' '
* IMPORTING
* FROM_CACHE =
* CREA_TIME =
* CREA_DATE =
* CHNG_TIME =
* CHNG_DATE =
* STATUS =
* DOC_PROT =
TABLES
access_info = lt_infos
* CONTENT_TXT =
content_bin = lt_image_bin
EXCEPTIONS
bad_storage_type = 1
bad_request = 2
unauthorized = 3
comp_not_found = 4
not_found = 5
forbidden = 6
conflict = 7
internal_server_error = 8
error_http = 9
error_signature = 10
error_config = 11
error_format = 12
error_parameter = 13
error = 14
OTHERS = 15.
CHECK sy-subrc = 0.
READ TABLE lt_infos INDEX 1 ASSIGNING <fs_info>.
CHECK sy-subrc = 0.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = <fs_info>-comp_size
first_line = <fs_info>-first_line
last_line = <fs_info>-last_line
IMPORTING
buffer = l_employee_photo_content
TABLES
binary_tab = lt_image_bin
EXCEPTIONS
failed = 1
OTHERS = 2.
but the photo is not getting reflected in the adobe forms .
and also i have tried the url method but it doesnt work .
please help me out .First, have you set a breakpoint in this code and made sure that you are getting data into lt_image_bin? That would seem to be the first place to start.
Then the question is how are you trying to pass the image into the Adobe Form? Are you passing an XSTRING context attribute into the form interface? Have you marked that part of the interface as an image? Are you setting the MIME Type parameter of the form interface as well. You really haven't posted any details about what you are doing on the Adobe Form side. -
Adobe Form - Print page at the end for every record of a Z table with Text
Hello friends, I am facing a challenging here and I need to develop the following below. Mind you, I don't have much exposure/experience with Adobe Forms
Scenario: Standard REAL ESTATE Contract Form
I have a Z table containing RENTAL OBJECTS, in my case 3 records and I want, at the end of the form print one page like below to each record that i have in my Z table.
"Dear Z-field1 one, regarding your contract for Z-field2, Address Z-field3, blah blah blah"
In essence, print a page for each one of them at the end, with the text above using the fields from the z table.
I searched the forum and couldn't find any thing like it.
If someone can help it would be much appreciated.
Thanks, MarcoHi Marco,
You must be having the ztable fields in the context or in the data heirarchy of the adobe form.
Assume that your main form is on the page1.
Create a table bound to ztable with 3 rows in it and make it invisible on the form.
Below the form create 3 pages page2, page3 and page4.
Create a ISR text display and on the initialise event write the code such as:
this.rawValue = data.page1.Table2.Row1.Cell1.rawValue;
Create as many ISR texts as you want and initialize it using the above method.
Page1
form
Page2
Row1 values
Page3
Row2 Values
Page4
Row3 Values
Hope this helps. -
Auto Response emails: How to get rid of Adobe Forms Central Banner
Please if someone could help, that would be greatly appreciated.
So my company uses these forms ( a total of 10) for different purposes when getting new resellers for our manufacturers. With a few of these forms our manufacturers want a copy of the new applications sent to them
We have created them accounts and they recieve notifications by email just as we do. The only issue is we wish to get rid of the banner on top that says "Adobe Forms Central". The issue is we do not want our manufacturers to see we are using an outside source, no matter how well it works.
Please if anyone has experience with this let me know. I am attaching a screen shot of the banner in case I am not using the propper term.
Thanks in advance..Sorry, there currently isn't anyway to get rid of the branding in the email notifications.
-
Long Text getting truncated in IW32
We are using BAPI_ALM_ORDER_MAINTAIN to createa orders with long text.
When reviewing the long text in the Office integration screen, We can see that all text is there.
If, a user modifies the long text in the long text window of IW32, any text that does not display is lost when the order is saved
If a user modifies teh long text in the office integartion screen, no text is lost.
Any help on the cause and how to prevent this would be appreciated.
Scotthi ,
thanx for the reply,
text gets truncated in print preview itself.
i put breakpoint in se38 and in sapscript.
in se38 the variable shows full text, but in sapscript, it gets truncated.
coding in sapscript
/: POSITION WINDOW
/: POSITION XORIGIN '-0.5' CH YORIGIN '-0.10' LN
/: SIZE WIDTH '+0.3' CH HEIGHT +0.85 LN
/: BOX HEIGHT '9.0' LN FRAME 10 TW
/: PERFORM PO_TEXT_DISP IN PROGRAM ZTEST_DRIVER
/: USING &EKKO-EBELN&
/: CHANGING &PO_TEXT&
/: ENDPERFORM
/: IF &PO_TEXT& NE ''
S7 &PO_TEXT&
/: ELSE
/: ENDIF
regards
senthil
Maybe you are looking for
-
Could you point me to a ADF development best practice recommendation doc
Could you point me to a ADF development best practice recommendations document for ADF 11g that could be used as a guideline for developers. Naming conventions Usage of Models, Implement validation in BC... Best practices for the UI with ADF Faces...
-
Sub: Our Client wants to change the existing Release procedure.
Dear Friends, Requirement: Our requirement is to remove one of the Release Code from the existing release sequences, with out affecting the old Purchase Orders.(including Released and Partially Released) Changes we done: Once we remove the specific r
-
SCCM 2007 patch update deployment concern with shutdown PCs
Suppose we have scheduled to deploy MS patch update in SCCM on 1-Jan-14. In deploy software update wizard values provided like Date and Time = 1-Jan-14 @ 01.00 and Set deadline 2-Jan-14 @ 01.00 .But one Pc from collection was shutdown from 31-Dec-
-
Error Message 607 Archive log mode
Hi, I would like to know what kind of problem have this error message, "Backup Agent Error" -- 607 "Oracle Server Archive Log mode is not set" How to solve it ? Many Thx Newbiew
-
Hello i want to write a query like that here is my table test1 FNAME PTYPE adeel a adeel a qasim a qasim b asim b