Professional Documents
Culture Documents
(http://w
ww.sap.c
Products
om/) (https://www.sap.com/products.html)
Industries (https://www.sap.com/industries.html)
Support (https://www.sap.com/support.html)
Community (https://www.sap.com/community.html)
Developer (https://www.sap.com/developer.html)
Partner (https://www.sap.com/partner.html)
About About (https://www.sap.com/corporate/en.html)
Home (https://www.sap.com) / Community (https://www.sap.com/community.html) / Archives (/) / Discussions + Actions
Archive (/discussions) / Output Management (/discussions/space/output-management)
I want to do the page break on basis of material no (matnr) . I have sorted the internal table by matnr and i want
whenever the material no changes in the internal table .
EX:
matnr:
https://archive.sap.com/discussions/thread/396997 1/7
9/5/2018 page break in smart form
page break
page break
page break.
Neetesh.
Former Member
June 14, 2007 at 09:19 AM
0 Likes
Not what you were looking for? View more on this topic (https://go.sap.com/community/tag.html
id=334558737810127171897316045257708) or
11 replies
At new matnr.
endif.
endat.
https://archive.sap.com/discussions/thread/396997 2/7
9/5/2018 page break in smart form
santhosh
Kaluvala Santhosh
Hi santosh ,
Option..
santhosh
https://archive.sap.com/discussions/thread/396997 3/7
9/5/2018 page break in smart form
Inside the Loop of the Internal table in the SF use the begin of Sort - filedname and
this will be your at new event of the Smartform, use this event inside the loop give the
page break command.
Anirban M.
Hi Neetesh,
In the table node ->Data ->sort criteria give the field name 'MATNR' and select the
checkbox 'Event on sort end'. A new node will be displayed for that event. Under this
node create a COMMAND node and select 'Go To New Page' checkbox and give the
same page no.
Regards,
Vidya.
if count = 0.
count = itab-matnr.
https://archive.sap.com/discussions/thread/396997 4/7
9/5/2018 page break in smart form
else
count = itab-matnr
endif.
endif.
and the create a command in line items window where give condition if flag = 'x' goto
next page.
hi Neetesh,
Use this COMMAND node inside loop node and put a condition on COMMAND node...
for that u will have to define a flag in program lines...so when the material will change
set this flag else reset...
Regards
Prashant
(https://people.sap.com/poornimal.nathan)
hi,
I tried creating the command... just that the event node appears... but under Flow
Logic, i get only loop.. i need the command submenu... any help?
Poornima L Nathan
https://archive.sap.com/discussions/thread/396997 5/7
9/5/2018 page break in smart form
Hi Niteesh,
Thanks
Dinakar.
Hai Neetesh
I think u have all the materials in one internal table which u are passing to smartform,
and i think u have already declared internal table in the smartforms form interface and
work area in global definitions.
you should display the internal table data in the main window of smartform by creating
a table, and in the table data section loop at it_mara into wa_mara.
now u declare a variable matno in global definitions and in the initialisation tab of
global definitions write the below code .
if sy-subrc = 0.
matno = wa_mara-matnr.
endif.
matno = wa_mara-matnr.
means u are updating the value of variable matno everytime u run the loop.
inside the command u check the checkbox and write 'page1' in goto page field.
i th diti t b f
https://archive.sap.com/discussions/thread/396997
d it 6/7
9/5/2018 page break in smart form
in the conditions tab of command write
matno != wa_mara-matnr.
(https://www.youtube.com/c/SAPCommunities) (https://www.linkedin.com/company/sap)
https://archive.sap.com/discussions/thread/396997 7/7