cancel
Showing results for 
Search instead for 
Did you mean: 

reg smartforms - creating a new page for each customer number

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.