Issue in adobe forms(Printing table)
Hi experts...
I have one requirement.I have two tables in the form.In first table after each row second table should appear.This is done.But one issue is if no records are there in second table it should not appear in the form.i have written scripting for this.but of no use..Can you pls help me to resolve this issue..thanks
Hi,
Read the respective table that has entries.If it has zero entries(doesnt contain any data) then set a FLAG.
In the conditions tab set a condition if FLAG NE 'X'.
Hope this Helps.
Pls donot forget to give points if useful
Regards
Akmal
Similar Messages
-
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 -
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
PradeepTough 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 -
ADOBE Form Using Table with dynamic number of rows
Hi All
First some information about our infrastructure:
- AdobeDesigner 7.1 in the Developerstudio
- SAP-Portal 7.0 SP15
I have a View with tabstrips and behind the tabs i have defined an event. On one Tab I included a ADOBE-Form with Table. The Data for the PDF sould only filled in the context for the Form when i jump to this Tab. I created the Form by using this documentation [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669].
To fill the tablecontext I use the following Code:
IPrivateAnlegenBANFView.IPositionenElement position = null;
IPrivateAnlegenBANFView.IPositionenNode posNode = wdContext.nodePositionen();
int NUM_5_TIMES = 5;
for (int i = 0; i < NUM_5_TIMES; i) {
IPrivateAnlegenBANFView.IPositionenElement posElement = wdContext.createPositionenElement();
+posElement.setMaterial("" + i);+
+posElement.setKurztext("Test" + i);+
+posElement.setWarengruppe("Warengr" + i);+
posNode.addElement(posElement);
If i put this code in the wdDoInit method it works fine and shows me 5 Rows. But if I put the code in the Action of the tabstrip it shows me only one row. I checked the entries of the context and there are 5 entries (showed them in a WD-Table).
Can someone tell me what im doing wrong?
Thanks for a answer and kind regards
PascalHi All
finally i found the solution for the problem.
When you define the interactive Form in the view do not define the property "dataSource" of UI-Element Interactive Form it seems, that the binding is static and not dynamic.
Add the following source to the viewCotroller
Global Part of the Source:
private static IWDInteractiveForm form = null;
Method wdDoModify:
if (firstTime) {
form = (IWDInteractiveForm) view.getElement("InteractiveForm");
When you have an Event where you fill your Contextnode which you want to display in the table of an Adobe Form Use this code:
Action:
public void onActionFillTab(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ){
//@@begin onActionFillTab(ServerEvent)
* Code to fill the Node for AdobeForm Table
form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
//@@end
If you want to clear your table and show it directly use in the action the following code:
wdContext.nodeTabelle().invalidate();
form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
Kind regards
pascal -
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 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. -
Adobe Forms : Adjacent Table printing
Hi All,
I have copied standard adobe form PYXXFO_SAP_PAYSLIP_US2 payslip into custom one.
in standard form output in page is as below
EARNINGS
wtno wttext rate number amount
TAX
wtno wttext rate number amount
DEDUCTIONS
wtno wttext rate number amount
What I want to do is print Earnings and Deduction adjacently on same line, can anyone help me in this, please?Hi Santosh,
Change the layout as per your requirement. Wrap the earnings and deductions table in subforms as below:
Subform1
->Subform2(Earnings_table, Earnings_total)
->Subform3(Deductions_table, Deductions_total)
The content type of subform1 should be flowed(Choose it from object->subform->content in subform property).
Flow direction should be Western text.
The content type of subform2 and subform3 should be flowed and flow direction should be top to bottom.
Adjust the size of individual columns of both tables so that they can fit in layout side by side.
Hope it will give you an idea to proceed further.
Regards,
Vaibhav -
Hi,
I have an issue with the Adobe Form Layout.Although I have added a field in the Context Menu of the Form Builder but the context has not been added to the Data View.
Could you please help me to understand how to include the parameters and structures that we define in the context and add them to the Data View in layout?As far as I know, it is done automatically.But in this case I don't understand what the problem is.
Please help me.
Thanks,
Sandeep.
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jul 14, 2009 4:10 PMit is normally done automatically. Do ANY of your fields show in your DATA VIEW? Or, are you just missing the new one?
If you're only missing the new one, make sure your Context has the field defined correctly and generated.. Then make sure you have updated the mapping in your View Context and generated that.
After those 2 things, your field should now show.
You cannot, as far as I know, define an attribute as any sort of TABLE - we have a common structure that has several Table Types in it. When we import that structure, we have to delete those attributes and create Nodes to mimick those tables.
If you've accidentally included a Table type as an attribute, you won't see any fields in your Data View.
EDIT: by the way, there's an Adobe Interactive Forms Forum where you should ask these kinds of questions.
Edited by: robert phelan on Apr 2, 2009 8:51 PM -
Adobe Form Print Problem - Header is cut off without print preview
We are currently experiencing a problem when trying to print Adobe forms. We have created several forms and are experiencing the same issue with all forms. The issue occurs when we are trying to print a form. If we choose a print preview prior to printing, the form looks normal and prints fine. However, if we do a direct print (i.e. no print preview), then the top part of the form is cut off. It's almost like all of that data on the form gets shifted upward, cutting off about 1/2" to an 1" from the top of the form. We have tried printing to different printers and are ending up with the same results each time. We do not experience this issue with SAPScript.
I have searched several threads and haven't been able to find an issue quite like the one we are experiencing.
Has anyone ever exeperienced a problem like this before?
Currently using Adobe LiveCycle Designer 8.1.2 and are on Netweaver 7.00 EhP1.
Thank you for any help.I am going to go ahead and close this thread as I believe we have found a solution. Sai is correct that there is an issue with the design.
If anyone else runs into this problem, take a look at note 968394 that talks about differences between print preview and printing from spool. When you are in the print preview dialog box, under "Page Scaling," the default is "Shrink to printable area." So if your form went outside the margins, it would shrink to fit giving you the impression that the problem is not with the print preview rather than the form itself.
After moving the header stuff down a bit everything is printing normal both through the spool and via print preview.
Thank you! -
Adobe Form - Print choice of bold or not bold font
We have an Adobe form that prints sales order line items that are followed by their scheduling data (if any). So, each order line item could be followed with one or more scheduling line items or none. Example:
(Order line) 10 9055450 7,000 EA <other data>
(Schedule lines Expected Ship Date: 5,000 EA 05/30/2011
for the order line) Expected Ship Date: 2,000 EA 07/16/2011
This is working fine using a subform but now we want to print the scheduling line items either as bold or not bold depending on some logic. So, we want this:
(Order line) 10 9055450 7,000 EA <other data>
(Schedule lines Expected Ship Date: 5,000 EA 05/30/2011
for the order line) Expected Ship Date: 2,000 EA 07/16/2011
We have an indicator set for each scheduling line item that indicates if the schedule line is to be printed as bold or not bold (schedules-bold_line = u2018Xu2019).
Is there any way to override the font settings in the Layout using Script Editor?
Weu2019ve tried using Script Editor (at a upper level subform) to set the presence (hidden/visible) of two different subforms (one to print as bold and one not bold) but that printed both subforms.
Weu2019ve tried using Alternative nodes (true/false) that check the bold line indicator. This works but it prints the wrong data because there are direct binding references to multiple levels of repeating data. That is, instead of printing the schedule lines for order line item 10, it prints the schedule line items for order line item 20.
(Order line) 10 9055450 7,000 EA <other data>
(Schedule line Expected Ship Date: 1,000 EA 06/01/2011
for the next order line)
How would I use relative binding in Alternative nodes?
Is there a better method to accomplish this task?
Any help is greatly appreciated.Radhika - Thank you so much for your answer! You helped me find the solution. I ended up using FormCalc and this is the code that worked in the Ready Layout event of the EXPECTEDSHIPDATE subform :
data.BODY_PAGE.TABLE.ITEM_VALUES.ZLINE.TEXTSUBFORM.EXPECTEDSHIPDATE::ready:layout - (FormCalc, both)
if ( $.BOLD_LINE_IND[*] == "X" ) then
$.ShipQty[*].font.weight = "bold"
$.ShipQty[*].caption.font.weight = "bold"
$.DelvDate[*].font.weight = "bold"
$.UOM[*].font.weight = "bold"
$.PlantName[*].font.weight = "bold"
$.PlantName[*].caption.font.weight = "bold"
else
$.ShipQty[*].font.weight = "normal"
$.ShipQty[*].caption.font.weight = "normal"
$.DelvDate[*].font.weight = "normal"
$.UOM[*].font.weight = "normal"
$.PlantName[*].font.weight = "normal"
$.PlantName[*].caption.font.weight = "normal"
endif
The EXPECTEDSHIPDATE subform is bound to the Schedules table that contains ShipQty, etc. The BOLD_LINE_IND field contains the value that toggles the print between bold and normal.
The key to making this work was to correctly format the condition and code and to find the right event to place the code in.
Thanks again for your help! -
Adobe forms prints part of one page 6 times on a sheet of paper
I am attempting to print a completed web based Adobe form and the 8.5x11 page prints part of the page about 6 times on one sheet of paper. This has happened before on Adobe documents and I was able to get around it by saving the PDF file (downloaded from a home utility website) then opening it in Adobe Reader XI and printing it. This time I do not have the ability to save it since I filled out an Adobe form (the system will not let me save the completed form as a PDF file.) My system: iMac 27-inch Late 2009; OS: OS X 10.9.4; Adobe Reader: XI, version 11.0.07; Printer: Canon Pixma MP490 (verified I have the latest drivers)
Print preview shows the document the way I would expect it to print.
The last time I called we never resolved the issue: Apple points to the printer or Adobe, Adobe points to the computer or the printer, and Canon points to the computer or Adobe.When I first open the form on the web it appears to be an Adobe file, but still on the web via Safari.
Even before I try to save the file there is a message at the top of the screen that reads, "Please fill out the following form. You cannot save data typed into this form. Please print your completed form if you would like a copy for your records." BUT, when I just saved a blank copy of the form to my desktop, opened it in Adobe Reader XI, filled in the form and then printed it the form printed nicely. Problem resolved, or at least a work-around handles the problem easily
It is frustrating that I cannot print directly from the Adobe file via Safari; i.e., I have to experiment to find a solution instead of just hitting the print button (yes, I'm lazy!).
Thank you!! -
Adobe forms: Printing Images (logos)
Experts,
Logo from Adobe form (PDF) preview prints sharp and colorful, when printed from the PDF (print-preview) reader. But when issuing output from SAP directly, the image is all messeed up and pixellated. Despite using all possible image formats - TIFF, GIF, BMP and PNG of 300 dpi resolution the print output when issued from SAP message processing has the logo image unclear.
Any ideas why?
Does it have anything to do with the device type associated to printers in SPAD?
NW
Edited by: NW on Feb 4, 2009 10:22 AM
Edited by: NW on Feb 4, 2009 1:15 PMHello,
i have had a similar problem with Smartforms.
The solution then was that i saved the image as 256-bitmap image (BMP).
Maybe this works too for a adobe forms.
Gr. Frank -
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 -
Performance issue with Adobe forms
Dear SAP Experts,
We have the following issue/requirement from our client. The client is on SAP ECC 6.0 - production environment.
The client is highlighting performance issue while accessing the adobe forms for HR and FI business process ( both static and interactive ).
Examples are
FI – Invoice Approvals
HR – Job Salary Change
The client is asking us to provide best practices surrounding:
1. How to improve the performance of the adobe forms while accessing in SAP.
2. Is there any other technology which we can use in SAP to replace the adobe forms which has better performance factor.
3. Are there solutions such as webdynpro floor plan manager, UI Fiori which can be alternately used?
Regards,
SakthiHello Priya,
Adobe forms are easy to develop and much more comfortable than SAP Scripts and Smartforms. Initially they are a bit difficult but once you have your hands on, they are the most simplest things in ABAP.
Performance in Adobe forms is a mix of both fine tuning the Layout as well as back end coding.
Performance in Adobe forms cannot be done overnight. A lot of care has to be taken during the initial stage of development.
As far as my experience is concerned, please consider the below points while developing SAP Adobe forms.
1) Avoid Scripting (Javascript/Formcalc) as much as possible inside the form. It drastically reduces the performance and makes the form to execute slower. If you still want to use scripting(which cannot be avoided for some requirements), use Formcalc since it is comparatively faster than JavaScript.
2) Try to avoid the coding inside the Form Interface. You can always handle the maximum coding in the Driver program and pass it to the form.
3) Use Form Caching.
For forms that have fixed layout, its a good way to increase the performance of form rendering. In the layout, go to Form Properties. Then Click on Defaults tab and select Allow Form Rendering To Be Cached On Server. Then Click OK.
For forms that have flowable or dynamic layout, render the forms on the client side because it improves performance.
Last but not the least, please go through the below post by Otto Gold which is worth a read at least once.
How to write a messy form -
Adobe form - Printing images dynamically
I have created a simple read-only (not interactive) Adobe form. At the end of the document, I need to print a signature depending upon the approver (which I can access from the data structure imported into the form.).
If I create an image field, how do I assign the image dynamically depending on the approver?
I have thought of an alternative solution of creating 3 separate forms each with a static image of the signature and calling a separate form in the program depending on the approver. But I was wondering if I can assign images dynamically so that I can have only one form.
Any help will be greatly appreciated.
Jitendra MehtaHello . The solution is easy, I have posted the solution into IFbA forum under NeWeaver many times. And I can recommend you to read this article where there is a complete solution for your problem:
http://www.docstoc.com/docs/2540673/How-To-Integrate-ADOBE-form-on-WebdynPro-for-ABAP-and-Deploy-it-
It was originally SAP SDN blog, but I am not able to locate it on sap site any more. Hope this solves your problem, regards Otto
Maybe you are looking for
-
Adding a unique identifier in file name
Dear all, In one of the scenario(n IDOCs to 1File), IDOCs keep coming from SAP and at XI we are appending it in one file. XI transmits this file on particular time of a day(say everyday at 6 PM) to the receiver system. It implies that it is a per day
-
I am just trying to print something like JOptionPane.showMessageDialog( null, "Your number is", + result, JOptionPane.INFORMATION_MESSAGE); The output should be something like this: Your number is 5 It is greater than 3 This is a logical calculation
-
Media Encoder CS4: uncompressed outpup not smaller than 720x480
I have an video file that is 640x480. Motion JPEG. I want to convert it via the Media Encoder in an uncompressed Microsft AVI. But I can not the size of the output file to match the input file. I can make it bigger than 720x480 but not smaller. Is th
-
Where can I update the Creative Cloud desktop manager?
I go on https://creative.adobe.com/products/creative-cloud and it gives me a link that opens up the creative cloud widget, but doesn't do anything. Is there an exe I can download from the adobe website that will update/reinstall this program? I'm get
-
Standard interface for Product Hierarchy
Dear Experts, I want to know the product hierarchy, i m working for a pharma project, i want the heirarchy like <b> Category---> Molecule-->Brands---->SKU</b> can anybody tell me the standard interface for finding t