Skip to Content
avatar image
Former Member

smartform problem

hi gurus,

plz provide me the details of 'VENDOR SUBCONTRACTING CHALLAN' smartform. what are the related fields and its table mapping.

-


i am creating a smartform related to po issue slip, in this form if the no of line items exceeds 15 it will go to the next page with the same headings in header, alongwith the 'total price' in the footer. and the first page will show "contd in next page"

ie: the whole of the main window layout will be printed in the second page with the continued line item numbers.

plz tell me the steps to do this.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 24, 2009 at 02:59 AM

    Hi,

    Regarding the field names u contact ur Functional team..they will help you in getting the field names & tables.

    15 lines per page: for this: U define a counter & while looping U increase the counter for every line printing & when the Counter reaches 16th line to print just create a Command 'check the check box Go to New page & select the Next page name'.

    Eg: data lv_counter TYPE i.

    In the LOOP of the table.

    lv_counter = lv_counter + 1.

    Now create a COMANAND 'Goto New page with Next page name' & give lv_counter GT 15 in Condition tab of the COMMAND.

    If lv_counter GT 15.

    clear : lv_counter.

    endif.

    same Headings in header: just define the text element with rqd text in 'Header Area' of the Table.

    first page will show "contd in next page" : Just create the text element with rqd text in 'Footer' of the table.

    Hope it helps!!

    Rgds,

    Pavan

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 24, 2009 at 04:42 AM

    You can place program lines inside your loop and in the program line, write the following code for having 15 line items per page.

    IF sy-tabix NE 1.

    tabix = sy-tabix MOD 15.

    ENDIF.

    Now place a condition below the program line and in general attributes give the field name and comparision value Ex: tabix = 1

    under true option place a command and in general attributes of command ceck the tick box go to next page and give the next page attribute. This will help you to print only 15 line items on each page.

    Note: 15 line items can also be done by removing the condition and only by placing Command with conditions. Go according to your requirement.

    Close the thread once your question is answered.

    Regards,

    SaiRam

    Add comment
    10|10000 characters needed characters exceeded