Skip to Content

Displaying the Fields in horizontal in Smartform


Hi,

In Smartform, I would like to print the database table fields in an horizontal way as shown below.

Though i search in sdn, i didnt found the exact solution. Kindly let me know the solution.

With Regards,

Sudhir.

SF1.JPG (13.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 06, 2015 at 04:40 AM

    Hi sudhir,

    I hope using Loop and template structure, we can create the above format. Kindly check the same.

    Loop will contain the values from database table. Create a template inside the loop with two rows and map the text field to the appropriate column.

    Regards

    Rajkumar Narasimman


    SF1.JPG (13.9 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2015 at 04:34 AM

    Hi sudhir,

           your requirement is different to others.😕

    If horizontal tabs are fixed means you can archive by using loop and do statements.

    i = 4.

    j = 0.

    loop ur internal table.

    do i times.

      temp_tab-field1 = wa_ur_tab-field1.

      2= ...

       ...

    j = j+1.

      if j = i.

       append temp_tab to it_fin.

    endif.

    enddo.

    endloop.

    like this you can try , there are many ways let people also give there suggestions .

    based on results you pick best one..

    Regards,

    Krishna

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 06, 2015 at 06:06 AM

    Hi,

    Please have a look at The case of "dynamic columns in smartform"

    In the program y_r_eitan_test_31_03 the number of horizontal value is not known in advance .

    The number of columns printed on each page is fix .

    Regards.

    Add comment
    10|10000 characters needed characters exceeded