Smartforms new page
Hi everybody.
I have a problem with a SmartForm i'm developing.
I need to print a table with several columns.
Each row of the table is group by the first column.
I want to change the page and begin to print my list in a new page when the value of the first column changes.
I use the 46C version and I don't know if it coul be possible with it.
Wait your response.
Cheers. See You.
Hi Lorena,
Create a COMMAND element inside the loop element after you print the line.
In that COMMAND element, put next page as another page (Create another page),
In the condition tab of the command element, you can put a condition that if current loop pass's columns <> last loop pass's column value.
You have to put a program lines element in the loop(At the beginning of the loop), which would calculate the current loop pass's column value)
Regards,
Ravi
Similar Messages
-
Smartforms - new page command at loop
Hi @ll,
I`ve created a loop over an internal table in which I have insert a command to go to next page. The command is being called correctly but I don`t get data on the next page. I would expext that the loop goes on with the next record. Currently have just one page - could that be the problem?
What I`m doing wrong?
Ragards,
FloHi,
In the internal table add one more field called flag and in the driver program populate the value of flag = 'X' at the end of every PERNR using Control break statements.
In the loop and the command give the condition as Flag = 'X'.
So the Page break will be triggered when ever the PERNR value will be changed.
Hope this will help you.
Regards,
Venkat. -
Reg smartforms - creating a new page for each customer number
Dear friends,
This is a sample program for smartform.
Below is my coding ...
TABLES : KNA1.
SELECT-OPTIONS : S_KUNNR FOR KNA1-KUNNR.
TYPES : BEGIN OF ZFS_KNA1,
KUNNR TYPE KNA1-KUNNR,
NAME1 TYPE KNA1-NAME1,
ORT01 TYPE KNA1-ORT01,
END OF ZFS_KNA1.
DATA : ITAB TYPE STANDARD TABLE OF ZFS_KNA1 INITIAL SIZE 0,
WA TYPE ZFS_KNA1.
SELECT KUNNR NAME1 ORT01 PSTLZ LAND1 FROM KNA1 INTO TABLE ITAB WHERE KUNNR IN S_KUNNR.
Now i am having one secondary window (cusotmer number) and main window(name and city).
I am able display list of cm nos, names and city in one page.
But i want to display name, city and number of customer in one single page.
suppose 5 customer numbers are there.....then 5 seperate pages should be displayed.
pls help me.
Regards,
S. VinodHi,
In your loop node... you have sort criteria....
give the fieldname of the customer number KUNNR and check the check box under the begin of sort event...
An event node is created... under that event node... create command node for triggering new page and dont forget to tick the checkbox for " not on first page" in the conditions tab....
and under that you can create text elements to display the data
regards
padma -
Hi All,
I am working on smartforms.
I have created a new page format of width 25 cm and width 30cm according to client's requirement.
Smartform is for customer invoice which is a pre-printed and i have to get data into that.
In sform i have given the my own page format name.
Now problem is am getting print preview correctly but while giving print its givivng the error
' OUTPUT COULD NOT BE ISSUED' and print is not coming.
Please help me regarding this issue.
Thanks in advance.
Regards,
Murthy.Hi,
I have checked it but its ok.
I have created page format through SPAD only.
Regards,
Murthy. -
How can i move to a new page in smartform?
hi friends
i hav a smartform with two pages.
the fist page contains the Main window and 3 Secondary windows.
in the 1st page i'm displaying some line items and in the main window i gave the command to
go to Page 2.
the 2nd page contains only one Secondary Window.
in that i want to display a table with many line items.
if it contains only 20 line items its works fine; becoz of the window size.
how can i move to a new page if it contains more line items?Hi,
You need to create main Window on second page also.
And in Form Attributes..there is an option for Next page.
So there you mention the next page name.
This will solve the problem.
Thanks.
Swati. -
Hello all,
I am facing a problem using smartforms. I am printing a report where there is a loop running for a list of plants. For printing the information of each plant, I need to use a new page. Information of one plant may take several pages but for every new plant, I need to insert a page break.
I am using a COMMAND with a checked next page option in my EVENT ON SORT BEGIN for the plant code.
This does the trick, but if I use the command at the bottom, it inserts a blank page at the end of the report. If I use the command at the top of the event, it first shows a blank page and then the data from the 2nd page.
Please sugest how can I fix this.
AnmolHi Friend,
You can use following tips for generating smartforms for every new plant.I have generated sales order report using this steps.You can refer it.Tips are given below:
1.Define the structure,workarea and internal table for sales order header and details and also define
select-options for sales order.
2.Also define the one STRUCTURE which has type as ssfctrlop.
e.g. control type ssfctrlop.
This variable we have to define because we are going to use this in
SSF_OPEN function.This is used to avoid print preview while openning smartform
for every sales order.
3. Select data from vbak for sales header.
4. Call function SSF_FUNCTION_MODULE_NAME.
e.g.*CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_formname
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = w_functionname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
5.Now here define the various features or field in control structure.
This is controls for smartform.
e.g. control-no_dialog = 'X'.
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
6. Call function SSF_OPEN.
Here you have to pass the control structure which you have define in declaration.
e.g.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
ARCHIVE_PARAMETERS =
USER_SETTINGS = 'X'
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJ =
OUTPUT_OPTIONS =
control_parameters = control
IMPORTING
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
7. Take loop at header internal table .
8. Select data from vbak for sales details. Also select data from respective tables
like makt,kna1 here.
9.Then call function module which generated after executing smartform. And also pass the control structure
in import parameter in this function module.
e.g. CALL FUNCTION '/1BCDWB/SF00000397'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = control
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
wa_vbak = wa_vbak
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_vbak = it_vbak
it_vbap = it_vbap
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
10.After endloop call function SSF_CLOSE.
If it will help you reward me points.
Regards,
Santosh. -
How to call the new page in smartforms
Hi friends,
How to call the new page in smartforms.
Thanks,
RaviHi,
Create a command node and click the 'Go to new page' check box specifying the page u want to go.
You can enter your condition for which it should branch to a new page in the 'conditions' tab.
Regards
Shiva -
New Page command not working in SMARTFORM
I have a text file in an internal table of type TSFTEXT. I'm passing this internal table to my smartform. The smart form has 1 page, 1 main windo and 1 text element. The text has a text type of "Dynamic Text" and a fieldname = <<internal table of type TSFTEXT>>. The start property = "New Paragraph".
In the internal table (TSFTEXT), i have a few NEW-PAGE commands. These seem to be ignored. How can I force the smartform to create a new page. Here is what the internal table looks like.
/ here is some text 1
/ here is some text 2
/ here is some text 3
/ here is some text 4
/ here is some text 5
/:NEW-PAGE
/ here is some text 6
/ here is some text 7
/ here is some text 8
/ here is some text 9
/ here is some text 10
Thank you,As far as I know, NEW_PAGE is not applicable in smartforms. That only applies to Sapscripts. As you stated in your requirement, to have a new-page in smartform, try to adjust the height of the main window. Once the records on the internal table reaches the total height, then it will automatically create a new page...
-
Smartforms Dump at Command - New Page
Hi Experts,
I have to create a Smartforms Layout. I have to print the first page as Landscape and the rest of the pages as portrait.
The first page will contain the summary. Other will contain different details related to the summary.
I have created 3 pages.
The first page in Layout. The next page here is first page.
The second and third pages as portrait.
On the first page after the summary table I have given a command. I have selected the checkbox, go to new page and specified the next page.
If I give the other pages as Landscape and the main window with the same size as the window on the first page, I am able to print correctly. If I specify as portrait I get a dump.
Any body can let me know how do I create different pages with different layout. Where am I going wrong
Regards,
AbuShort text
Exception condition "ERROR" raised.
What happened?
The current ABAP/4 program encountered an unexpected
situation.
Error analysis
A RAISE statement in the program "SAPLSTXBC" raised the exception
condition "ERROR".
Since the exception was not intercepted by a superior
program, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls. -
New Page COmmand in Smartforms
Hi,
My requirement is as follows,
Whenever the item number changes it has to generate a new page with the header
Whenever an item overflows it should come in a new page without the header details.
So for this I have two pages in my smartform.
Page1 - Header with item details
Page2 - Only item details without the header
I have given Page1's next page as Page2. And I have given a command whenever the item no changes it should go to Page1.
But whats happening now is whenever a new page is generated only Page 2 is coming and not the Page 1.
Any ideas??Hi ,
u want like this right ...
assume that table data
item item desc qty
10 10item descripotion 23
for material
20 20item descripotion 33
for material
O/P Like This u want
*page1
item item desc qty
10 10item descripotion 23
page2 (dont want want headers only remainning data of the line item)
for material
For this simply u can put your header in the main area of the table (leave header as blank)
Let me know if any concerns........
Regards,
Lokesh. -
How to display each record on a new page on Smartforms layout
Hi,
I need to know how "each time a new record is displayed..it should be displayed on a new page in Smartforms". How much ever I try using the COMMAND inside the LOOP, it is always printing the records in the loop continiously in a single page with the remaining records moving to the next page only once the first page is full. But what i need is to print first record in the first page, second record in the second page...
Please let me know the exact steps how to use the COMMAND or any other options to acheive this.
Thanks!
Edited by: sap123 on Nov 2, 2008 11:55 AMhi,
create a command just before the main windows display and in its general attributes check the check box go to new page and in its conditions tab..set Falg = X.
now inbetween the loop of ut table or templet, crete program lines and write the code as below.
data : lv_lines type i.
describe table i_vbak lines lv_lines.
clear flag.
if sy-tabix LT lv_lines.
flag = 'X'.
endif.
remember that these program lines must be after command...
Try this, -
How to use new page in smartforms
hello friends,
i am using a smartform in which i have created a new page(page 2) ,in my page1 i have made next page as page2 ,but in page2 i cant make next page as page2 bocz page2 does not have main window,so in page2 i have made next page as page1 only.
im not gettin any errors,but only page1 is been displayed,no page2 is displayed,can any1 pls tell me how to use an additional page in a smartformhi Siddhesh,
there is simple method to do so.
1. Your first page say 'PAGE_1' 'with main window is ready. This page points
to say 'PAGE_2' as next page. till here its ok.
2. Now on second page i.e 'PAGE_2' do the following.
a. Copy main windown from 'PAGE_1' ( select node 'PAGE_1 -> right click -
-->copy ')
b. Paste the same main window in 'PAGE_2' ( select node 'PAGE_2' -> right
click -> paste).
c. Set next page for 'PAGE_2' as 'PAGE_2'. (SAP will allow this)..
Thats it u r done.... save activate and test... now your main window on page 1 is filled .. it will display content on page 2 and then on page 3 which is of type page 2...because for page 2 we have set next page as page 2..
Hope this helps you..
Let us know if u have any problem...
Enjoy SAP.
Pankaj Singh. -
Hi All,
My requirement is given below :
Matnr
100
100
100
100
101
101
In *smartforms(ECC 6.0)* ,I want to print matnr 100 in one page and 101 in another page .
I want to trigger a new page for each matnr.
Ashok...
Edited by: Alvaro Tejada Galindo on Feb 14, 2008 5:16 PMfor your requirement create one command node and there in the general attributes tab there is a check box go to new page,check that one.
-
Dump error while creating a new page in smartforms URGENT pls!!!
while creating a new page it is showing me a dump error , that the superior program execption was not intercepted , i have even given the next page field also correctly, i have attached a mainwindow to that page and a text element to that . .
thanks
sridharHi Deena,
This error:
"[2012-07-10T14:50:30.005+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXkC9dU3FClqwsJb6G1FyhO000003D,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #7[[
javax.servlet.ServletException: Could not initialize class com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub"
is known issue
Go to metalink, article: Unable To Connect To OVD 11g Webinterface Using ODSM. [ID 1282757.1]
You need to apply that patch.
I hope this helps,
Thiago Leoncio. -
Reg smartforms - creating a new page for each customer
Hai friends,
i have selection option for customer(kunnr) in the selection crieria..
Now i am getting the output in the smartfroms related to the customer details..
But i am getting details for only one customer...
suppose there are 10 customers.. i want the details of the 10 cusotmers in 10 different pages...
PLs help me.
Rgds,
VinodHi,
First assigned to structure to internal table i_final
declare L_LINES in global declaration
right click on main window create program lines in that
Input parameters: I_FINAL
In CODE option
SORT I_FINAL BY KUNNR.
DESCRIBE TABLE I_FINAL LINES L_LINES.
After you create LOOP IN data tab give chek the check box
I_FINAL INTO WA_FINAL
WA_FINAL declare in global declaration
Under loop create node alternative(CONDITON)
double click CONDITION in conditions tab
Field name: L_LINES
Relational operator:>
Comparison value:0
in that CONDITION ---> TRUE & FALSE is available
in TRUE option create program lines, in that give like
L_LINES = L_LINES - 1.
Under TRUE option create COMMAND node
in General attributes tab: check the chek box go to new page
in conditions : maintain as
Field name: L_LINES
Relational operator:>
Comparison value:0
Regards
Bhupal
Maybe you are looking for
-
SAP BO DI 3.2 How to import definition for flat files
Hi All, I have several MS Access database with their respective tables , but Im needing now to import the tables structure/definitions of their tables as Flat Files definitions inside SAP BO DI 3.2 , is there an automatically way to do this without u
-
HT2905 Anyone know how to find duplicates in iTunes 11.0.2?
Underthe "File" drop down menu in 11.0.2, it is not shown as here.
-
I'm capturing some material with BlackMagic Intensity Pro in FCP on my MacPro. The capture process seems to go fine, but as soon as I start working with the clip, I immediately notice that the sound is completely out of synch with the video. Video wa
-
Is it me, or has the image quality of 3D charts in Pages (I must check out Keynote) taken a step backward with the latest update? It's not something that I use a lot, but I remember being impressed only a couple of weeks ago when I did have a play ar
-
LSO Correpondence - Blank pdf sent to the User
Hello We are using SAP Request based Correspondence and have set up Automatic Correspondence generation at the course type level. In few cases Users only recieve a Blank PDF. Here is what the log says from the SLG1. These Entries are all in error. Ha