Smartforms: Layout Design Problem
Dear All
I have only one Smartforms page(First Page) having several windows and one Main Window at the bottom.
Main window has one node TABLE with header , Body and footer .
Now when this main window is getting more nos of records than its size then whole page is getting dispalyed as 2nd page and the output is dispersed also.
Where i m going wrong ? plz suggest and give some referrence .
Do i need to create SECOND Page and print that at page break(FIRST page) ?
Thanx
Moni
Message was edited by: md monirujjaman
Hi Moni,
There is a rule in Page Windows which states:
Same window name = same contents
If you change something in the Main Window, the changes will propagate to <b>any</b> page in which the window appears, regardless of whether that is "First" or "Next".
As resources for these questions, you will find excellent answers in a book called SAP Smart Forms by Werner Hertleif and Christoph Wachter. It can be found at
http://www.sap-press.com/product.cfm?account=&product=H955
Here is some help Table Processing from help.sap.com
http://help.sap.com/saphelp_erp2004/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm
Footer
With table output, besides using the main area for output of table lines, you will frequently print a header and footer. If the footer is printed at the end of each page, the output control must consider the footer height when determining the position of the automatic page break. Therefore, you must specify a height for the footer output. If you don't, then the output control cannot reserve any space at the end of the main window and thus not print the inferior nodes of the footer before the page break.
In addition, if you really wanted some in-depth training about Smart Forms, SAP Education offers BC470, a Smart Forms course. Info can be found at sap.com/education under Project Team Training-> SAP NetWeaver-> SAP NetWeaver-Buisnes Programming->BC470:
https://websmp101.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=BC470&COLLECTION=32&LANGUAGE=EN
Cheers,
Marilyn
Similar Messages
-
Print Layout designer problem:project code
Dear Experts,
I tried to put database field 'project code' from table 'journal voucher entry' at repetitive area of journal voucher. It doesnot show when printing out.
I already entered project code at line level of journal voucher in SBO 2005A.
Thanks
KamthornYour problem is certainly solved. I have replicated in SBO 2005A SP 01 PL 29. It is easy to do that. Indeed, I did not print it yet. When preview it, does the field appears ?
Rgds, -
Hi guys.
Actually the question is quite trivial, so I bag my pardon 'cause I'm new to BPS, but I found no solution in forums.
I need a planning layout of the next format:
0MONTH
0CUSTOMER ZSALES
e.g.
january february ...
customer1 1000 2000
customer2 100 400
I only can get my planning format of this view:
0MONTH 0CUSTOMER ZSALESJohn,
A particular record defined in the data column would identify with one single record in the layout.
But if you have a variable on 0MONTH which could be say, defined as fixed type, and store all 12 months of the year.
Step1: In the 1st screen of Layout builder, inside Additional Settings set the Month characteristic as Dynamic in the Data Columns tab.
Step2: In the 2nd screen, you will find a check box for Dynamic and a place to assign the variable you created for 0MONTH.
Step3: Save the Layout. (in the 3rd screen, you would find just 1 column).
On executing the Layout the column would extrapolate to show all 12 months defined for in the 0MONTH variable you created.
Regards,
Aby -
Problem with Adobe Forms - Layout designer doesn't start
Hello Masters:
I have a problem in transaction SFP. when I try to open the layout tab, I'm receiving the next error message: "Could not start Layout Designer".
I installed Adobe reader 9, LiveCycle Designer ES 8.2 and then I re-installed SAPGUI, but it doesn´t work yet.
Does anybody know wath is the problem?
Thank you.Hi,
This error due to installation. Please confirm Java stack is implemented.
Please have a look at this to:
https://service.sap.com/sap/support/notes/834573
Regards,
Karthik. -
How to pull the data into smartform after designing layout?
how to pull the data into smartform after designing layout?
call the smartform in your Driver program and pass your output internal tables in the smartforms paramaters
Check the below Sample code.
FORM label_print.
DATA : g_fm_name TYPE rs38l_fnam,
g_output TYPE ssfcompop,
g_control TYPE ssfctrlop,
g_form TYPE tdsfname VALUE 'ZPRINT_LABELS',
g_dest TYPE rspopname,
g_printer TYPE rspoptype..
REFRESH : i_out[],i_qals[].
SELECT matnr maktx
INTO TABLE i_out
FROM makt
FOR ALL ENTRIES IN i_mseg
WHERE matnr = i_mseg-matnr
AND spras = sy-langu.
SELECT prueflos objnr ersteldat erstelzeit matnr revlv charg mengeneinh
INTO TABLE i_qals
FROM qals
FOR ALL ENTRIES IN i_mseg
WHERE matnr = i_mseg-matnr
AND charg = i_mseg-charg.
*FM to accept the device type and returns the short name of the output device
CALL FUNCTION 'EFG_GET_PRINTER'
EXPORTING
x_no_dialog = ' '
x_obligatory = 'X'
IMPORTING
y_tddest = g_dest
EXCEPTIONS
cancelled = 1
failed = 2
OTHERS = 3.
*device type name for the output device
SELECT SINGLE patype "#EC CI_NOFIELD
FROM tsp03d
INTO g_printer
WHERE padest = g_dest.
*printer setting
g_control-no_dialog = 'X'.
g_output-tdarmod = '1'.
g_output-tdcopies = '001'.
g_output-tddest = g_dest.
g_output-tdprinter = g_printer.
g_output-tdnewid = 'X'.
g_output-tdimmed = 'X'.
CLEAR wa_mseg.
LOOP AT i_mseg INTO wa_mseg.
READ TABLE i_out INTO wa_out WITH KEY matnr = wa_mseg-matnr.
check for the status and filter the records
CLEAR : wa_qals.
LOOP AT i_qals INTO wa_qals WHERE matnr = wa_mseg-matnr
AND charg = wa_mseg-charg.
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
objnr = wa_qals-objnr
spras = sy-langu
IMPORTING
line = l_status
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
IF l_status CS 'LTCA' OR l_status CS 'SKIP'.
DELETE i_qals.
ENDIF.
ENDLOOP.
SORT i_qals BY ersteldat DESCENDING erstelzeit DESCENDING.
IF i_qals IS INITIAL.
l_msg = text-002.
ELSE.
READ TABLE i_qals INTO wa_qals INDEX 1.
SELECT prueflos vbewertung
INTO TABLE i_qave
FROM qave
WHERE prueflos = wa_qals-prueflos
AND kzart = 'L'.
IF sy-subrc <> 0.
l_msg1 = text-003.
ENDIF.
SORT i_qave.
CLEAR : wa_qave.
IF NOT i_qave IS INITIAL.
READ TABLE i_qave INTO wa_qave INDEX 1.
IF wa_qave-vbewertung = 'A'.
l_msg = text-002.
ELSEIF wa_qave-vbewertung = 'R'.
l_msg1 = text-003.
ELSE.
l_msg1 = text-003.
ENDIF.
ENDIF.
ENDIF.
CLEAR : wa_ser03.
READ TABLE i_ser03 INTO wa_ser03 WITH KEY mblnr = wa_mseg-mblnr.
*Calling Smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = g_form
IMPORTING
fm_name = g_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
LOOP AT i_objk INTO wa_objk WHERE obknr = wa_ser03-obknr.
*Calling FM generated from the smartform
DATA : l_date(10) TYPE c,
l_date1(10) TYPE c,
l_date2(10) TYPE c,
l_date3(10) TYPE c,
l_hyphen(1) TYPE c VALUE '-'.
CLEAR : l_date,l_date1,l_date2,l_date3.
l_date1 = wa_mseg-vfdat+0(4).
l_date2 = wa_mseg-vfdat+4(2).
l_date3 = wa_mseg-vfdat+6(2).
CONCATENATE l_date1 l_hyphen l_date2 l_hyphen l_date3 INTO l_date.
CALL FUNCTION g_fm_name
EXPORTING
control_parameters = g_control
output_options = g_output
user_settings = ' '
g_matnr = wa_mseg-matnr
g_mat_text = wa_out-maktx
g_batch = wa_mseg-charg
g_rev = wa_qals-revlv
g_edate = l_date
g_lot = wa_qals-prueflos
g_qty = wa_mseg-erfmg
g_uom = wa_mseg-erfme
g_serial = wa_objk-sernr
g_smsg = l_msg
g_fmsg = l_msg1
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CLEAR g_output-tdnewid.
ENDLOOP.
IF sy-subrc <> 0.
CLEAR : l_date,l_date1,l_date2,l_date3.
l_date1 = wa_mseg-vfdat+0(4).
l_date2 = wa_mseg-vfdat+4(2).
l_date3 = wa_mseg-vfdat+6(2).
CONCATENATE l_date1 l_hyphen l_date2 l_hyphen l_date3 INTO l_date.
CALL FUNCTION g_fm_name
EXPORTING
control_parameters = g_control
output_options = g_output
user_settings = ' '
g_matnr = wa_mseg-matnr
g_mat_text = wa_out-maktx
g_batch = wa_mseg-charg
g_rev = wa_qals-revlv
g_edate = l_date
g_lot = wa_qals-prueflos
g_qty = wa_mseg-erfmg
g_uom = wa_mseg-erfme
g_serial = wa_objk-sernr
g_smsg = l_msg
g_fmsg = l_msg1
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CLEAR g_output-tdnewid.
ENDIF.
ENDLOOP.
IF sy-subrc = 0.
MESSAGE i000(zm).
ENDIF.
ENDFORM. " label_print -
Smartforms layout printing diffrent in diffrent printer
Hi,
I have a layout designed in Smartforms. Till now it was printing fine from a specific printer but when using diffrent printer it is not printing well. Major issues are:barcode not showing, Font size is bit smaller & some text from the right hand side is missing. Is there any printer issue we need to fix or do i need to design diffrent layout for this printer? Please advise.
Rgds
SidWe are having a similar problem with SMARTFORMS for 1099 called IDWTCERT_US_1099MISC. We noticed that the print preview after testing the 1099 and the print preview from the SPOOL (trx SP01) shows the 1099 form OK, but printing it out cuts off the right side of the form/image.
There are two things we've tried so far:
1) In SPAD, we have adjusted in the Output Attributes Tab of the DEVICE the area called Additional SAPScript and Smart Form Information. Here, the horizontal move can be entered as a -10 (in millimeters) for instance.
This didn't work for us, as it only shifted the truncated image to the left 1 CM.
2) Before printing from the spool in SP01 we changed the printer from the device type to be LOCL. This worked well, but we are not sure that it will work well when they print the 1099s in the production run.
I'd love to get some more feedback on this issue to see if using LOCL is the best way to do this, or if I can shift the background image or something. Shifting the background image would be difficult, however, not to mention it would make all the SMARTFORM fields on the 1099 print in the wrong spot.
Further ideas?
Jeremy -
Print Layout Designer or Crystal.....! What to do?
Dear All,
We need to link our User forms to Print layouts in order to make our reports work exactly the way SAP reports work. Is there a way to enable the print and print preview toolbar buttons and make them show our Report Layout? So far the response from SDK Forum is not encouraging and many questions regarding the same issue remain unanswered there.
After looking for the solution in the SDK Forums we came across these two replies from Mr. Nick He and Mr.Frank Moebius. Both are of the opinion that currently SAP does not offer a support for this feature and better use a third party tool. We are not in a position right now to opt for any third party tool but if we get a clear response from your side regarding this matter, we can go for it. Kindly have a look at the following links:
Re: Print Layout Design for user form in SapBusinessOne2005A(6.80.317) sp:01.?
Re: Add PLD Layouts in 2005 through sdk
The recommended solution within SAP B1 to develop Add-on reports is through User Queries and creating a Print Layout and run them via Query Manager Window. This approach in our view has the following drawbacks that make it less friendly with the end user:
1. Add-on forms appear in the left pane/menu, whereas reports would have to run through Query Manager only, which is in fact a small toolbar button on the top right side. We can add the Query Manager link to user menu but it doesnt solve the problem.
2. A user with full authorization over the Print Layout can accidentally overwrite it by clicking the Create Report Button, whereas in case of SAP Reports the Layouts remain unchanged and only saved as a new Layout and set as Default Layout for a report. Add-on Reports cannot do this.
3. Different behavior of Layouts in Query Manager on Single Click and Double Click. In the Query Manager, if a user just selects a query by a Single Click and views a Print Preview (Layout) then the custom user Layout appears. But if a user Double clicks a query then the Query Window appears, exposing the query and making it editable. Also the Preview(Layout) is different in this case. The user can either view the Window or Table Layout in this case. Hence this exercise would make the user confused and prone to errors.
4. The Parameter/Criteria window that is SAP generated is not enough to fulfill user friendly interface requirements. Is there a way to add List boxes or Combos to that form. The parameter selection Checkboxes also behave in a strange way that even the experts find difficult to manipulate. If they are of no use, whats the point in having them on the form in the first place.
All these points are leading us to confusion over the decision as to whether go for Query Based Reports or use Third Party tools. Kindly help us out in this regard. Your response would help us save some valuable time for our Add-on Development.<<< If there is a solution then it has to be from SDK. We can only opt for third party components and frameworks only if any of the SAP representatives ensure us that the current version of SDK does not offer such support.>>>
The answer to that is to lodge your query as an Issue to SAP directly as a support question or go through your local SAP representative. If the functionality is not offered by SAP you can do a Development Request ( DRQ) and SAP will develop it if they think it will become userful.
<<<If this Forum is not meant to be answered by SAP representatives then kindly tell me any other Technical Support Portal from where i can get the answer directly. >>>
This forum is accessed mostly by SAP Business One Developers on SDK. However we are fortunate that some SAP employees who are very knowledgeble take some time off to answer queries.
Since it is a Forum, no one is obliged to answer. As indicated above , Try SAP directly if you need a definite answer.
<<<>>>
Since you mentioned Crystal: We as SAP Business One SDK developers, have come across similar issues and opted for a Inhouse developed Crystal Solution. It has been so popular we are selling it as a Generic add-on to B1.
Regards,
Indika. -
Print layout designer for develop report based on query
Dear Experts/Gurus,
I am amazing about the manage previous reconciliation report. When I opened it using print layout designer, it looks like the report is not built using query, but I am not sure yet. This is very confusing. I created query similar with manage previous reconciliation (MPR), but when I link the query to print layout and try to make similar format/appearance with MPR report (reconciliation management (system)), it is not success.
Isn't the MPR report built not based on query ? I appreciate your answer. TIA
Rgds,Hi,
I am not sure I understand what's the problem:
Is it the layout that is different or the data?
Regarding the data you can use SQL Profiler (maybe you did?) to find out what queries are fired, but please note that there are some stored procedures in the DB that are used for some specific functions - not sure whether the "MPR" uses any of these.
Then you must include some non-default filter in SQL Profiler...
...but you can also use the logging functionality in B1 for that purpose:
Just activate the logging (see the "log" folder in the B1 subdirectory) in the corresponding config file: choose the option to have the SQLs logged in conjunction with the logging being triggered in all cases (not just error).
Thus you will get all the SQLs - just plain - from the B1 application, but note that it will obviously slow it down!
HTH,
Frank -
Print Layout Designer - inconsistent output
Hi,
We have received consistent compaint from our client that the output of Print Layout Designer are inconsistent.
Eg: The same PLD template is used for An invoice print out from 2 different workstation. However, workstation A display the format properly, workstation B will have missing lines between boxes or the alignment is not displayed properly.
We have also recently encountered the problem that our client export the invoice to Acrobat and then print it. However, it displays properly for workstation with Acrobat version 8, 9, but missing lines for version 7.
Another scenario could be the form is displayed properly on the screen, but the physical print out to a printer is not consistent.
We really appreciate some share of thoughts here. Is switching to other report writer, eg: Crystal Report, the only option?
Edited by: Shwu Hua Gan on Aug 10, 2008 2:57 AMGordon,
Thanks for replying.
This is what happen to our client.
The font size of the customised PLD SAP Invoice is size 5. In order to preview the layout, they have to preview in PDF, once they are happy with the details and then print.
In some workstations, there are Adobe Reader version 8 or 9. In a couple of workstations, there are Adobe Acrobat version 9.
Let's say, there are 2 fields with the following properties:
Field A, Left = 0, Width = 10.
Field B, Left = 10, Width = 10.
Adobe Acrobat version 9 display the border of the field properly. However, those with Adobe Reader 8 / 9 will see gaps between fields.
If we change them as follows the field the gap;
Field A, Left = 0, Width = 10.
Field B, Left = 9, Width = 11,
Then those with Adobe Acrobat version 9 is missing the border for because Field A overlaps with Field B. But Adobe Reader 8/9 will print fine. It also works fine if user click 'Print Preview' as normal and then click 'Print'
Does anyone knows whether this inconsistencies is caused by
- printer drivers; or
- Adobe; or
- SAP Business One. -
Ask Print Layout Designer for customize report
Dear all
I am newbie in SAP, and i must create report with PLD like :
PAYMENT TYPE AMOUNT
By CASH
Cash 1000
Cash 2000
Cash 3000
Cash 4000
Total Cash 10000
By CREDIT
Credit 10000
Credit 15000
Credit 17500
Total Credit 42500
By TRANSFER
Transfer 20000
Transfer 25000
Total Transfer 45000
Total Payment 97500
From database example:
PAYMENT TYPE AMOUNT
Cash 1000
Cash 2000
Credit 10000
Cash 3000
Cash 4000
Credit 15000
Transfer 20000
Credit 17500
Transfer 25000
Right Now,I just can create report like this :
PAYMENT TYPE AMOUNT
Cash 1000
Cash 2000
Cash 3000
Cash 4000
Credit 10000
Credit 15000
Credit 17500
Transfer 20000
Transfer 25000
Total Payment 97500
Please help me.. because i very need it.
Thankyou so much for your help
Regards,
Dony
Edited by: dony donse on Dec 18, 2007 4:29 AM
Edited by: dony donse on Dec 18, 2007 4:38 AMFinnaly...
someone send me PLD manual
And my problem solved
==============
Procedure
After defining the sort, perform the following steps
1. From the menu bar choose Print Layout Designer → Group.
2. Select a group number.
3. Select 1 for a sub-sort or sub-total for the primary sort, select 2 for the secondary sort and so on.
Each group is linked to its relevant row number in the Sort window described above. Thus, every field created in a certain group relates only to its group's corresponding row in the Sort window.
The Repetitive Area Header titles are now hidden as well as any field created in the Repetitive Area Footer. The reason is that these two areas are linked to groups. Each one of the groups has two areas of its own.
4. To define the sub-sort, do the following:
a. In the Repetitive Area Header assign a title for the required sort.
b. Create a new Formula field
c. Choose the Formula Editor button and select the operand SortValue() in the Operation field.
This action will print the Items table divided into separate titles each time the Item number changes.
5. To define sub-totals do the following:
a. In the Repetitive Area Footer create a Formula field.
b. Choose the Formula Editor pushbutton and select the operand ColSum(UniqueID as String) in the Operation field (for the Quantity field from the rows in the Sales Quotation).
The field within the brackets defines the column for which a total will be calculated. You can also calculate totals for the Price and Total columns. -
Hi all
I am vex.
Any idea how to solve this Print Layout Design printing error happening to only one sap user's computer?
Other sap users login to the same Database printing the same Print Layout Design Name in their own computer has no problem.
However other sap users login to this problematic computer has the same error.
KedaleneHi,
Please check SAP notes:
1062440 - Internal error (-101) occurred
851046
- Error (-101) encountered when trying to print
Thanks & Regards,
Nagarajan -
Hi Gurus,
I have problem in printing a smartform in two different printers.
When i print the same Smartform the layout which i get is fine.
But when my client tests it with his printer the smartform layout is getting disturbed.
I would like to know y this is happening and how to solve it.
Could you please help me regd this ?
Thanks and Regards,
DinakaranHii
firstly run <b>SPAD</b> transaction
<b>SPAD -->Full Administration >Page Formats>create new>Format Types> create
and after that attach that page format to ur printer using SPAD</b>
also check these links
<b><a href="http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a959551ea11d189570000e829fbbd/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a959551ea11d189570000e829fbbd/content.htm</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/99/71b039f9fa11d18e3e0000e83dd9fc/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/99/71b039f9fa11d18e3e0000e83dd9fc/content.htm</a></b>
Regards
Naresh -
Adobe layout design is not coming
Hi Everyone,
In my webdynpro abap or in Adbe form creation in SFP also the Adobe layout design is not coming. Displaying an error message stating that ' Could Not start Layout Design'. Can any reply me the root cause for this Adobe layout problem.Hi,
There could be two reasons for this.
1. Check under ABAP connection in SM59 for ADS service running or not. It must be active. You may test the connection or check with Basis Team as well.
2. You need to install Adobe Life Cycle Designer in your system OR the latest SAP GUI ( This contains by default Adobe Life Cycle Designer)
Let me know if this helps you.
Thanks & Regards,
Anil Kumar Sahni -
Hi,
I am facing some problem in SFP - Layout
it is showing some error "Could not start Layout Designer (see long text)"
I have reinstalled the layout designer but still facing the same problem
Please help me to sort out this problem.
Thanks
Krishna.Hi Krishna,
Try below steps.
1. open the pdf reader.
2. open Form designer.exe (location C:/ program files/ adobe/ designer / formdesigner.exe)
3. now open SFP -
Poll about Ui elements and layout designing
In the next few months I will be rewriting an existing tutorial about UI elements and layout designing. The tutorial describes how an application developer should
create an attractive and user-friendly UI with Web Dynpro Foundation.
Therefore, I need your input on topics which you, as developers, would like to read about regarding layouting and UI design.
So please write anything that occurs to you on this topic.
Thank you in advance!Hi Alvert,
one thing I have noticed in the existing tutorials, that is some tips on the layout containers. Introduction on different type of layout, how to match spacing of two layout container in the same view, meaning of different properties of diff layouts. I have seen normally if I add two containers, the spacing between one's element is different from the other. It causes problem for the total view lookup.
Will let you know again, whenever something comes into mind.
Regards,
Shubhadip
Maybe you are looking for
-
New Infinity customer help please.
Hey all I had infinity option 2 installed today after 2 weeks of extreme excitement waiting for it. It was installed at 12pm and everything was great with speeds of 37mbps dl and 10mbps ul, but then as it got a bit later the speeds have seriously dro
-
Linksys WRT54G Wireless-G Router won't save settings
Hi everyone. I got a stupid little case that's really pissing me off, I'm just trying to port foward with this router, and after I'm done entering all my settings, I click save settings, it tells me settings are succesful. But the it goes back to the
-
ICal 1.5.5 To Do lists get cut off
Hi: I may be one of the last to still be using iCal 1.5.5 (G4 10.3.9 -- haven't found a good enough reason to update). I want to print the calendar with the To Do lists, but they keep getting cut off the bottom. My lists are too long -- +too much to
-
When I opened iPhoto yesterday all of my 12000+ images were gone. The file names were still in each respective location in both the library and the Smart folders, but no images. Clicking on each image location revealed all of the info including the f
-
Change sales employee authorization for sales opportunities
"Change sales employee" in general authorizations is working only for documents, but not for sales opportunities. There should be an authorization alos for sales employee on sales opportunities. Not only for itself but also to make a sense to authori