Skip to Content
avatar image
Former Member

reg smartforms - creating a new page for each customer

Hai friends,

i have selection option for customer(kunnr) in the selection crieria..

Now i am getting the output in the smartfroms related to the customer details..

But i am getting details for only one customer...

suppose there are 10 customers.. i want the details of the 10 cusotmers in 10 different pages...

PLs help me.

Rgds,

Vinod

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 22, 2008 at 06:46 AM

    Hi,

    In your loop node... sort criteria... give the fieldname kunnr and select the check box event on sort begin

    you get event node ... under that create command node for triggering new page.. and set the condition not on first page

    then you can go with your display of text elements

    regards

    padma

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2008 at 06:56 AM

    loop at itab containing customer(kunnr)

    that is creata a loop node.

    inside the loop u display all of your customer details

    check the chek box event on sort begin for the loop node and add the kunnr field under field section.

    you will see an event node being created in the loop.

    inside the event node create a command node and check the check box goto new page.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2008 at 11:47 AM

    Hi,

    First assigned to structure to internal table i_final

    declare L_LINES in global declaration

    right click on main window create program lines in that

    Input parameters: I_FINAL

    In CODE option

    SORT I_FINAL BY KUNNR.

    DESCRIBE TABLE I_FINAL LINES L_LINES.

    After you create LOOP IN data tab give chek the check box

    I_FINAL INTO WA_FINAL

    WA_FINAL declare in global declaration

    Under loop create node alternative(CONDITON)

    double click CONDITION in conditions tab

    Field name: L_LINES

    Relational operator:>

    Comparison value:0

    in that CONDITION ---> TRUE & FALSE is available

    in TRUE option create program lines, in that give like

    L_LINES = L_LINES - 1.

    Under TRUE option create COMMAND node

    in General attributes tab: check the chek box go to new page

    in conditions : maintain as

    Field name: L_LINES

    Relational operator:>

    Comparison value:0

    Regards

    Bhupal

    Add comment
    10|10000 characters needed characters exceeded