on 08-28-2008 9:12 AM
Dear friends,
This is a sample program for smartform.
Below is my coding ...
TABLES : KNA1.
SELECT-OPTIONS : S_KUNNR FOR KNA1-KUNNR.
TYPES : BEGIN OF ZFS_KNA1,
KUNNR TYPE KNA1-KUNNR,
NAME1 TYPE KNA1-NAME1,
ORT01 TYPE KNA1-ORT01,
END OF ZFS_KNA1.
DATA : ITAB TYPE STANDARD TABLE OF ZFS_KNA1 INITIAL SIZE 0,
WA TYPE ZFS_KNA1.
SELECT KUNNR NAME1 ORT01 PSTLZ LAND1 FROM KNA1 INTO TABLE ITAB WHERE KUNNR IN S_KUNNR.
________________________________________
Now i am having one secondary window (cusotmer number) and main window(name and city).
I am able display list of cm nos, names and city in one page.
But i want to display name, city and number of customer in one single page.
suppose 5 customer numbers are there.....then 5 seperate pages should be displayed.
pls help me.
Regards,
S. Vinod
Hi,
In your loop node... you have sort criteria....
give the fieldname of the customer number KUNNR and check the check box under the begin of sort event...
An event node is created... under that event node... create command node for triggering new page and dont forget to tick the checkbox for " not on first page" in the conditions tab....
and under that you can create text elements to display the data
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vinod,
Keep your windows in loop.
create Command, keep goto new page box active
And give next page there
So, it will print on different pages for different customer
Regards,
Subbu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
call your smartform in loop for every customer number , then u can have every customer number and his details printed on new page
BR
Lavanya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
why do you want to create customer number in secondary window.
you can create in main window itself.
put it your internal table in table node or loop node
after printing one customer create command node(Dynamic page calling) call second page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.