on 01-04-2011 7:25 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.