2007 Sep 21 5:51 AM
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
2007 Sep 21 5:54 AM
go to page which contains ur internal table...in da general attributes tab give same page name as next page..
2007 Sep 21 5:56 AM
for instance if ur page is PAGE1 in the next page textbox select PAGE1 as next page also...
plz reward points if dis helps
2007 Sep 21 6:01 AM
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.
2007 Sep 21 6:17 AM
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
2007 Sep 21 6:34 AM
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
2007 Sep 21 6:44 AM
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
2007 Sep 21 9:12 AM
2007 Sep 21 11:06 AM
2007 Sep 21 6:16 AM
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
2007 Sep 21 6:44 AM
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!!
2007 Sep 21 11:14 AM
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!!
2007 Sep 21 11:33 AM
hi
i tried
but dont know wat condition shud i give
i tried to give some condtions but it is not happning
2007 Sep 21 11:38 AM
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
2007 Sep 21 11:43 AM
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
2007 Sep 21 11:53 AM
Can you try the Coutner thign it defiitely is working good for me...:)
You can catch me at [email protected].. incase of any issues..
2007 Sep 21 12:12 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |