Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Table display in smart forms

Former Member
0 Kudos

hi,

I am displaying the table entries thru smart forms,

1. I need to align all the entries of the o/p table to center

2. A screen is being popped up when ever i call the smart form need to remove this screen.

3. how to print the diplayed screen.

4.the main area of the table is showing only 2 lines if I two itmes are selected, now I need to display 8 lines in the table what ever may be the count of line items.

thanks and regards

3 REPLIES 3

Former Member
0 Kudos

Hi,

smartforms->smart style-->paragraph format

select the tab of TabsAlignment there u can give whtever u want.

increase size of ur main window...

Edited by: prabhu p on Jul 16, 2008 1:29 PM

former_member262988
Active Contributor
0 Kudos

hi ,

inorder to remove print pop up use

DATA: CPARAM TYPE SSFCTRLOP,

CONTROL TYPE SSFCTRLOP,

OUTOP TYPE SSFCOMPOP,

INPUT TYPE SSFCOMPIN,

FM_NAME TYPE RS38L_FNAM,

MY_TABIX TYPE SY-TABIX,

FM_NAME1 TYPE RS38L_FNAM,

RESULT TYPE SSFCRESOP.

CONTROL-NO_DIALOG = 'X'.

CONTROL-PREVIEW = 'X'.

CONTROL-NO_OPEN = 'X'.

CONTROL-NO_CLOSE = 'X'.

CONTROL-DEVICE = 'PRINTER'.

OUTOP-TDDEST = 'LP01'.

CALL FUNCTION 'SSF_OPEN'

EXPORTING

CONTROL_PARAMETERS = CONTROL

OUTPUT_OPTIONS = OUTOP

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

EXIT.

ENDIF.

**********************call for statement1***************

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZSFORM_STATEMENTF'

VARIANT = ' '

DIRECT_CALL = ' '

IMPORTING

FM_NAME = FNAME2.

CALL FUNCTION FNAME2

EXPORTING

P_MATNR = MARA-MATNR

P_WERKS = T001W-WERKS

P_CHARG = MCH1-CHARG

IT_FINAL = IT_HEADER

CONTROL_PARAMETERS = CONTROL.

CALL FUNCTION 'SSF_CLOSE'

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

OTHERS = 4.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

in your code.......

and for having default lines in table....do one thing....

create a window with same margins as your table display window(main) add template with the same measurements as the table ......and specifi some height.

so that the window will be exact on the main window with the template on it ....you can observe the difference in display of smartform...by chanign the ht of the template....

and for the center display of the table values create a paragraph format and apply with center alignement.

Former Member
0 Kudos

Hi,

I am displaying the table entries thru smart forms,

1. I need to align all the entries of the o/p table to center

ANS: Go smartforms->select radiobutton style and give style name ZXXX>pragraphformat, rightclick on paragraphformat ,create paragrahformat like C.-> Go tab button in that you mantion position of outfield

2. A screen is being popped up when ever i call the smart form need to remove this screen.

3. how to print the diplayed screen.

ans :

IN SE38

report zxxxx.

data: fun_name like rs38l-fnam.

DATA: func_name TYPE rs38l_fnam.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZFIAR_CUST_INVOICE'

IMPORTING

fm_name = func_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

*--Call smartform

CALL FUNCTION func_name

EXPORTING

l_code = p_bukrs

l_date = v_date1

TABLES

i_final_data = i_final_data

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

ENDFORM. " call_form

4.the main area of the table is showing only 2 lines if I two itmes are selected, now I need to display 8 lines in the table what ever may be the count of line items.

ANS: by default increasing main window size depends on line items .

if help ful reward points

Thanks & Regards

Bhupal.