Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

multiple pages in smartform

Former Member
0 Likes
1,949

hi all

i hav a following prob

i m printing data of one internal table in my smartform

and this internal table contains only one record

now i want to know, if there are 10 different record in my smartform

how can i print these 10 records on diferent 10 pages...

plz hlep

any help wil b rewarded.

thanx

hi all

i hav a following prob

i m printing data of one internal table in my smartform

and this internal table contains only one record

now i want to know, if there are 10 different record in my smartform

how can i print these 10 records on diferent 10 pages...

plz hlep

any help wil b rewarded.

thanx

16 REPLIES 16
Read only

former_member188827
Active Contributor
0 Likes
1,877

go to page which contains ur internal table...in da general attributes tab give same page name as next page..

Read only

former_member188827
Active Contributor
0 Likes
1,877

for instance if ur page is PAGE1 in the next page textbox select PAGE1 as next page also...

plz reward points if dis helps

Read only

Former Member
0 Likes
1,877

Do u want the same page format for all than u can define next page as page1.It will automaticaly shift the values to adjusted pages.

U need to specify loop at ur internal table.

In other case plz specify more clearly.

Read only

0 Likes
1,877

LOOK suppose i have following GR number in my internal table like this

10001

10001

10002

10003

10003

now for 10001 i want it on the first page

for 1002 i want it on next page

for 1003 i want it on next page

like when GR changes then it should go to next page

and i want all the format which i hav on first page

plz help

Read only

0 Likes
1,877

follow these steps

1.Double click on ur table node

2.Click on the 'Data' tab

3.provide the name of the GR field of ur internal table in the Sort Criteria box

4. Choose the Sort criteria radio buttons(Ascending/Descending) and select the check box "Event on sort begin", with this setting an additional Event will be inserted under the Table node

5.Now right click on the additional event created and choose Create->Flow Logic ->Command(a Command node will be created under the Event node)

6.In the Command node created in step 5, check the "Go to new page" and select a page of ur choice

Read only

0 Likes
1,877

HI RAJESH

i tried ur idea

but it leads to a run time error

with following msg

The following syntax error was found in the program /1BCDWB/SAPLSF00000040 :

"A line of "ITAB" and "%SE3-ACT" are not mutually convertible. In a Uni"

"code program "ITAB" must have the same structure layout as "%SE3-ACT" "

"independent of the length of a . Unicode character. Unicode character."

plz help

Read only

0 Likes
1,877

plz help its urgent

Read only

0 Likes
1,877

help me ppl i need this very urgently

Read only

Former Member
0 Likes
1,877

hi,

make changes in your driver programme.

data : wa type i_tab.

loop at i_tab.

AT FIRST.

CONTROL_PARAMETERS-NO_CLOSE = 'X'.

ENDAT.

AT LAST.

CONTROL_PARAMETERS-NO_CLOSE = SPACE.

ENDAT.

  • assign record in wa

  • call smartforms using this fuction CALL FUNCTION FUNC_MODULE_NAME

  • and pass wa to print data in main window

CONTROL_PARAMETERS-NO_OPEN = 'X'.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

endloop.

try this. if you have 10 records your smartform will print 10 page.

raj

Read only

Former Member
0 Likes
1,877

Hi,

Regarding your query. You have to do the following steps.

1. for the PAGE: enter the same page name as NEXT PAGE.

2. In the window where you are printing the table data, add a command node and enter the page name for NEXT PAGE. Here you can give any conditions you intend to.

This should work.

REWARDS IF HELPFUL!!

Read only

0 Likes
1,877

Hey,

DId u try the method I told you .. it worked for me.. shud definitely it shud work for u as well..

leme know if it doesnt.

REWARDS IF HELPFUL!!

Read only

0 Likes
1,877

hi

i tried

but dont know wat condition shud i give

i tried to give some condtions but it is not happning

Read only

0 Likes
1,877

k do i thing

...add a program lines to increment a count...within the table ...

after the text of the table.. add the command line and in the command line check for the counter.. if it is less than the DBcount of the table...and add the name of the next page IN THE NEXT PAGE TAB OF THE COMMAND LINE..this will work

thanks.. leme know if it doesnt

REWARDS IF HELPFUL

Read only

0 Likes
1,877

look i did this thing

i write a prog lines in the table

ind is a global variable wid value 1.

now i wrote

read table itab index ind.

mblnr1 = itab-mblnr1

ind = ind + 1.

read table itab index ind.

mblnr2 = itab-mblnr1

now i compare these two fileds in the COMMAND Condtion

if mblnr1 <> mblnr2

it gives some pages

but output is not ok

Read only

0 Likes
1,877

Can you try the Coutner thign it defiitely is working good for me...:)

You can catch me at [email protected].. incase of any issues..

Read only

0 Likes
1,877

can u explain how???