cancel
Showing results for 
Search instead for 
Did you mean: 

Checking Smartfom

former_member650792
Participant
0 Kudos

Hi,

i have one quey, i.e. suppose if the number of records in the internal table are more than 100. don go for form (or) script output display. how t possible

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

at the time of printing in form u have toput the loop for printing the data in dynamically ...

Answers (3)

Answers (3)

former_member650792
Participant
0 Kudos

thanks

Former Member
0 Kudos

Hi,

Describe the no of lines of the Internal table into a variable, then write the condition b4 calling the Smartform FM or OPEN_FORM FM.

eg:

data : lv_no_lines type i.

describe table itab lines lv_no_lines.

if lv_no_lines LE 100.

call function 'SSF_FUNCTION_MODULE_NAME'. (if its a smartforms)

call fucntion 'OPEN_FORM'. (If its a Script)

call function 'CLOSE_FORM'.

endif.

Hope it helps!!

Rgds,

Pavan

Former Member
0 Kudos

DESCRIBE TABLE itab LINES lv_count. <--- this will give u total number of records in the internal table.

Code your condition to only execute the print function module if records are less than 100.