cancel
Showing results for 
Search instead for 
Did you mean: 

Page Break in adobe forms

Former Member
0 Kudos

Hiii Experts..In my First page i have a table...In which i have four line item...i want to issue a page break when the field posnr changes...waiting for ur reply...

Accepted Solutions (1)

Accepted Solutions (1)

NoJo
Active Participant
0 Kudos

data:

HEADER (table)

- DATA (repeating node)

--ITEM (table)

---DATA (repeating node)

-


vobjnr (textfield)

-


hmonth (textfield)

-


htjdat (textfield)

--objnr (textfield of table HEADER)

--pspid (textfield of table HEADER)

hierarchy:

MAIN (subform)

- HEADER (SUBFORM, binding to HEADER)

--overflowLeader (subform for captions)

--DATA (subform, repeating node, BInding to HEADER.DATA[*] --> condtional break

DATA[-1].attributes.OBJNR ne DATA.attributes.OBJNR

)

---attributes (subform, contains fields objnr, pspid)

---items_all (subform)

-


ITEM (Table)

.......DATA of ITEM and son on....

better??

Former Member
0 Kudos

Hi Nobert...

I got the output ur answer is very useful thank u...

With Regards.

Dinesh

Former Member
0 Kudos

null

Edited by: divya d jayakumar on Nov 7, 2011 9:41 PM

Edited by: divya d jayakumar on Nov 7, 2011 10:30 PM

Former Member
0 Kudos

HI,

I hv a similar issue.

I have created a subform (Repeat subform for multiple line item data is Active /Checked) i need to print the data in a new page whenever there is a change in customer(kunnr)

Subform name : kunnr

field name : ship-to

Pagination :

Place : Following previous

After :Continuing filling parent

conditional break : kunnr[-1].Ship-to ne kunnr.Ship-to

break : before

To: top of next page.

no trailing and leading.

i am not getting the data in new page ,

Can u kindly help me out .

Answers (1)

Answers (1)

NoJo
Active Participant
0 Kudos

in the "OBJECT" palette of your repeating object (I will name it "items", the field for the change "posnr") you can find a pagination tab

there you find an "EDIT" Button for condtional breaks, press it

in the following popup several options exist.

in your case i would use

language: formcalc

run at: client

when:

 items[-1].posnr ne items.posnr 

(<-- the old posnr is not equal the following posnr)

break: before

to: Top of next page

leader and trailer specify on your own

norbert

Former Member
0 Kudos

Norbert,

I have tried the similar way but it is contracdicting sap standard options.

If I click Repeat Subform for each items and keep the condition ... it is ignoring the conditions and it is diaplying each item in separate new page..how do we get rid of this issue?

Rgds

Vara

Former Member
0 Kudos

Hi Norbert..

I tried all posible ways but its not working.i dont knw whether i made any mistake .i have written condition break in subform of page1...Is ths write...Help me out

With Regards..

dinesh

Former Member
0 Kudos

Dinesh,

It worked for me!

Ok here is the trick..

While writing formula in condition make sure you have complete node path of the field(which includes subform names too).

You can get this complete path by selecting the Field and check script editor with any event like validate etc.. copy that whole path.and now put the condition as recommended by norbert..

Let me know if you still have issues.

rgds

Vara

Former Member
0 Kudos

Hi Vara...

i Copied the field and paste it in Script editor..Is the way to do ha..but iam not getting the output yet....and i tried to paste the path in condition break of subform tooo but iam not stil getting the output....can u help me

Edited by: Dineshbabu.M on Oct 15, 2009 8:42 AM