cancel
Showing results for 
Search instead for 
Did you mean: 

forms

Former Member
0 Kudos

Hello,

I have a smartform that has a FAX_PAGE, i want to be able only pull this page out of the smartform.

So i put the startpage to FAX_PAGE but the FM produces an error and the page does not come out.

I debugged my way through and found that at some point its checks a table for the word FAX_PAGE but finds nothing. I looked to see what was in this table and the only entrys were FIRST_PAGE 4 times.

What am i doing wrong? Or does someone have the code i should use to pull this out?

Best Regards

rajesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi rajesh

Here is what you can do.

Whether or not u require ur fax page we will call the smartofrm only once.

Since you require the fax page, only when sending faxes.

Make the fax page the first page in the list.

Set the next page of the fax page to the remaining page(s).

Now in your abap program.

Set the following logic.

if print_fax_page = yes.

tdpagesselect = '1-'.

else.

tdpagesselect = '2-'.

endif.

This way the fax page will print only when u need it.

i dont remember the exact spelling of tdpagesselect variable.

remember that fax page must be the first page in ur smartform list

This will solve the issue.

Reward points if useful

thanks swaroop

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rajesh,

Are you passing the FAX_PAGE in the smartform interface parameter CONTROL_PARAMETERS-STARTPAGE? If so this should work, try something like this;


 DATA: ls_control_param      TYPE ssfctrlop.

 ls_composer_param-startpage = 'FAX_PAGE'.

Then pass this structure to the CONTROL_PARAMETERS import parameter of the form, the structure may be in use already in your program, if so just add to it.

Regards,

Nick