cancel
Showing results for 
Search instead for 
Did you mean: 

Generally facilities for Smartforms

Former Member
0 Kudos

I am facing problem in Smart Forms.

I have all the required data in my internal tables. i need to go to new page for every new customer: Generally how to implement such basic requirements. Are

there no facilities given. I think This a common requirement.

I'm almost 2 hours busy with it in order to make a new pag

for every new customer.

Regards

Ilhan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

In the Table Window Create a LOOP for the CUstomers data ITAB

In that loop create PROGRAM LINES and declare a counter (v_cnt, v_lines) and write the code

and increase the counter

describe table itab lines v_lines.

v_cnt = v_cnt + 1.

and create a COMMAND and in that give the condition

v_lines < v_cnt.

and check the checkbox GOTO NEW PAGE and give the page name.

this will fire New page for each customer

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

Anji soory what is table window .

I didn' t understand anythink else from your posting It is a bit

gallimaufry.

Thanks

Ilhan

Answers (2)

Answers (2)

Former Member
0 Kudos

Create a Condition element inside the loop and Check it there and give next page.

Former Member
0 Kudos

OK!

The correlation between my logic and new page ?

reagrds

ilhan

former_member181962
Active Contributor
0 Kudos

You should include a conditional element which checks if the current loop pass is a new customer or not.

In that element, you should include an explicit page-break code element.

Regards,

Ravi