cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Forms - Page Break via a Conditional Break

Former Member
0 Kudos

Having read through the forum I am getting the impression that Page Breaks is a bit of a problem.

I can enforce a page break between datasets by setting "After:" to "Goto Next Page", on the Object->Pagination tab, however this results in a blank page at the end of the entire output which is just the Master Page with all the static elements.

The 'Conditional Breaks' sounds like the logical point to force a page break based on a combination of inequality or if a particular data element equals a known value.

However, I don't seem to be able to get the 'Conditional Break' to work.

So, the question I would like to ask, is how can you tell if the conditional break logic is correct and whether or not it is running? For example on an ABAP system is it possible to run it and debug it?

My attempts at getting the break to open a pop up or write to disk via JavaScript fails, which is leading me to think they are being ignored by the Adobe Form at both the server and client level.

Is it possible that I have missed another setting somewhere else in the Adobe form configuration?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Jason!

You are right that conditions (and all scripting) are bit tricky in this solution. Still they work.

Debugging of AIF at ABAP side is not possible due to the architecture of the solution - from the ABAP POV it is just a web-service call and receiving result (PDF) back. You can't stop it on midpoint or intercept it somehow.

At the same time there are other ways to check it.

First, you can enable trace and saving additional info in SFP transaction under Utilities -> Settings.

Details see [here|http://help.sap.com/saphelp_nw70/helpdata/EN/f7/a04aee0cb94978a011401311efe603/frameset.htm]

And the nice way to check if your condition block is taken into the account is simple check like 1 = 2.

If this works and you receive page break than all you need is find errors in your condition syntax, otherwise the problem is somewhere else.

Regards,

Petr Perstnev

Former Member
0 Kudos

Good suggestion Petr - I thought I had done a simple test eg, Pernr = Pernr, but your's is far simpler, 1 = 2. What that has appeared to do is force a page break all the time. Which suggests the auto-inserted code is wrong. I shall continue to play with the structure of the field names and see what I can come up with.

Former Member
0 Kudos

See here for solution to my problem.

[|]

Answers (1)

Answers (1)

Former Member
0 Kudos

The condiitonal break statement needs to include all the nodes of the subforms to which your data element resides.

Former Member
0 Kudos

Hi Jason,

I have a requirement to print an adobe form for the company code as page break.

I mean whenever there is a new company code in the column in internal table, that rows of data should be separately printed as internal table on new page.

currently I am printing all the company codes data at the same time, flowing to the next page. I mean there is no Page break earlier.

I have checked your link and done the same thing, but was unsuccessful, Here is the screenshot the my binding.

I have written a condition break like below from the higher node.

ListofItems[-1].Table_subform.Table1.Row1.BUKRS ne ListofItems.Table_subform.Table1.Row1.BUKRS.

Is there any mistake in this ? Or Do I need to write any other level ?

Can you please help me out in fixing this ?

Best regards,

Karthik Ganti.