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: 

What is OTF

Former Member
0 Kudos

Hi,

I am getting error ---Filed OTF is unknown in the below program.

I tried for otf table but i didn't find..

can you help that what is otf ?

How can i declared otf in my own program ?

Regards,

Kumar

form cc_collect_page using value(pagenumber).

data: currindex like sy-tabix,

collect like boolean,

cop_from like itcpp-tdcopies,

cop_to like itcpp-tdcopies.

  • check cc_info-curr_pag <> pagenumber.

read table cc_info index pagenumber.

check sy-subrc = 0.

        • Build Prolog for OTF-Page

refresh cc_page. clear cc_page.

cc_page-tdprintcom = pc_id_control. "//-OTF-Info-Tag

append cc_page.

  • CC_PAGE-TDPRINTCOM = PC_ID_SETPOSITION. "Screen Position is

  • CC_PAGE-TDPRINTPAR = ITCPP-TDSCRNPOS. "currently not needed

  • APPEND CC_PAGE.

        • Build CC_PAGE-Data from OTF

currindex = cc_info-op_index.

collect = true.

do.

read table otf index currindex.

if sy-subrc <> 0.

exit.

endif.

cc_page = otf.

if cc_page-tdprintcom = pc_id_info and

cc_page-tdprintpar(2) = c_pc_info_window.

cop_from = cc_page-tdprintpar+40(3).

cop_to = cc_page-tdprintpar+43(3).

if ( cop_from = '000' or curr_cop >= cop_from ) and

( cop_to = '000' or curr_cop <= cop_to ).

collect = true.

else.

collect = false.

endif.

endif.

if collect = true.

append cc_page.

endif.

if cc_page-tdprintcom = pc_id_close_page.

exit.

endif.

add 1 to currindex.

enddo.

endform.

1 REPLY 1

bpawanchand
Active Contributor
0 Kudos