Skip to Content
avatar image
Former Member

Smartforms Loops and Page Break Question

Hi Expart ,

In my MAIN window, I specified a table and under it a LOOP command with the text nodes. My requirment is per page vandor no wise vendor corresponding data display . in my internal table having 7 records but having 3 vendor data . my requirment wise it ll display 3 page according to vendor line item data .

i m using loop putting internal table and put an event on sort beging .data is pick up only 1st vendor data . i want it ll pick up total vendor line item data per vendor no. and display .when vendor no. change it ll going to next page .

Plz. anybody help me . Its Urj.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 22, 2009 at 04:16 PM

    i'm answering ur question hoping that u have read the rules and follow them from next time.

    put a code lines at end of all line items and then suppose ur internal table is itab then do like this.

    count1 = count + 1. "where in count u shud put ur current loop index
    read table itab1 into wa1 index count1. " itab1 is exact copy of itab.
    
    if wa-vendornumber ne wa1-vendornumber.
    flag = 1.
    endif.
    

    now in the command node put a condition to trigger the node when flag =1 .

    then again at start remember to clear this flag.

    кu03B1ятu03B9к

    Edited by: kartik tarla on Feb 22, 2009 9:47 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I have resolved by own.

      At item table loop in smartforms under TABLE calulation tab ;;

      operation fieldname targetfieldnm time

      SUMTOTAL f1 tot_amt

  • avatar image
    Former Member
    Feb 22, 2009 at 04:10 PM

    Total Questions: 6 (6 unresolved)

    If u want people to help you then close ur previous questions,

    [Read the RULES of forum|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]

    people tend to ignore the questions from ppl who dont close their threads.

    кu03B1ятu03B9к

    Edited by: kartik tarla on Feb 24, 2009 10:28 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 23, 2009 at 09:32 AM

    Hii..

    Do u want every venodor data should be printed on different page ?\

    If so,

    Collect all vendor data into diffetent table,

    pass that two tables to form.

    in form.

    main window.

    loop vendor data.

    loop that vendor related item data.

    print items.

    endloop.

    COMMOND . with calling new page.

    endloop.

    follow this.

    \

    this logic may help you.

    Sunil

    Add comment
    10|10000 characters needed characters exceeded