哪个系统变量是总页数?类似SY-PAGNO,
多谢系统, 变量
设置变量
一页加1
*&---------------------------------------------------------------------*
*& Form replace_totalpage
FORM replace_totalpage .
* move sy-pagno to pTotal.
pRELTotal = sy-pagno.
do sy-pagno times.
* Read Line 3 of page sy-index.
Read Line 5 of page page_cnt.
REPLACE ALL OCCURRENCES OF '0000' IN pRELTotal WITH ' '.
REPLACE ALL OCCURRENCES OF '000' IN pRELTotal WITH ' '.
replace '_P1_' with pRELTotal into sy-Lisel.
modify current Line.
page_cnt = page_cnt + 1.
enddo.
ENDFORM. "
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
设置变量
一页加1
*&---------------------------------------------------------------------*
*& Form replace_totalpage
*&---------------------------------------------------------------------*
FORM replace_totalpage .
* move sy-pagno to pTotal.
pRELTotal = sy-pagno.
do sy-pagno times.
* Read Line 3 of page sy-index.
Read Line 5 of page page_cnt.
REPLACE ALL OCCURRENCES OF '0000' IN pRELTotal WITH ' '.
REPLACE ALL OCCURRENCES OF '000' IN pRELTotal WITH ' '.
replace '_P1_' with pRELTotal into sy-Lisel.
modify current Line.
page_cnt = page_cnt + 1.
enddo.
ENDFORM. "