cancel
Showing results for 
Search instead for 
Did you mean: 

printing multiplte customer details on seperate pages using Smartforms

Former Member
0 Kudos

Hi,

I have a requirement where I have to accept the customer number using Select-options and display the customer details in seperate smartform pages.

I applied the command in smartform giving the general attribute go to new page 'page1'.

the details are getting printed on the smartform but all the customer details are getting printed on all the pages.Kindly tell me where I should make the change to print each customer detail in seperate pages.

Thank u

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

Make sure you use the command prompt correctly inside the MAIN window of the form. Trigger new page, when the customer number is changed ( to do this you need to place condition in the command prompt).

Example scenario:

Define global variable GV_KUNNR.

Inside MAIN WINDOW:

a) Display customer information

b) In Command Prompt, new page condition GV_KUNNR <> KUNNR.

c) Code page: gv_kunnr = kunnr.

I guess, above solution will help you to close the thread.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

I tried the way you had mentioned. I am getting an error that eg(g_kunnr kunnr) cannot be compared.

i put the global variable first and then the comparison value = and then the form interface value.

0 Kudos

Hi,

Please visit the following link.

http://wiki.sdn.sap.com/wiki/display/ABAP/PageBreakin+SMARTFORMS

If you have any further queries kindly let me know.

Regards,

Antim

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Keep the loop on internal table which contains customer data and create text fields for it. After the text field,

create command and in command, check the Go to next Page check box and give the same page name which you are using currently..

Hope this solves your problem...

Regards,

Sripal

Former Member
0 Kudos

Hi,

I have tried all these methods, but cant identify the problem.

The results of the customers are getting printed, but its gettin printed on each page, and also the table in the main window gets printed on the 2nd page with the customer and invoice (which are from the secondary window) gets printed on all the pages...i want to print customer 2 details on page 1 with the table and then customer 2 details onpage 2 and so on...dont know why but all the customers details are getting printed together in the same table...

0 Kudos

Hi,

I think you are having table node under Loop node which is making it print all the records on the all the pages. Plz remove the table node and design the template ( or uncheck internal table into workarea into data tab of table node ) under loop to show your data through workarea one at a time. Workarea will have only one record at a time and will have new record for new page.

Hope this will solve your issue.

Kindly get back to me in case you have further queries...!!!

Thanks,

Antim

Edited by: Antim Parmar on Jan 5, 2011 8:41 AM