on 04-14-2009 2:24 AM
Hi all,
There are FIRST page and NEXT page in sapscript form. My requirement is to print a sentence at the end of the page. I have created a FOOTER window to display the sentence. It depends how many data is extracted from the user selection. If there is only one page, the sentence will be printed on FIRST page. Whereas, if data extracted more than one page, the sentence will be printed on the NEXT page.
Kindly guide me how should I do this?
Thanks in advance.
Hi myahsam wong,
In your Footer window do like this
/: IF &NEXT-PAGE& EQ 0.
P1 Print your footer sentence.
/: ENDIF.
This could resolve your problem.
Regards,
Suneel G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For this put a footer window on First page and Next page with condition If &Next_page& EQ 0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Try like this.
/: if &SAPSCRIPT-FORMPAGES& eq &PAGE&
P1 Write sentence you wanted
/: endif
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
do like in Sap Script.
/E TEXT
/: DEFINE &FLAG& = ' '
/: PERFORM FORM_PAGE IN PROGRAM Z07VF0070
/: USING &SAPSCRIPT-FORMPAGES&
/: USING &PAGE&
/: CHANGING &FLAG&
/: ENDPERFORM
/: IF &FLAG& = 'X'
for ROBERT BOSCH POWER TOOLS SDN.BHD
/: ENDIF.
define the FORM in program Z07VF0070 like below:
FORM form_page TABLES input_table STRUCTURE itcsy
output_table STRUCTURE itcsy.
DATA:l_f_totpage(4) TYPE c,
l_f_page(4) TYPE c,
l_f_flag TYPE c.
CLEAR:l_f_totpage,l_f_page, l_f_flag.
READ TABLE input_table INDEX 1.
IF sy-subrc = 0.
l_f_page = input_table-value.
CONDENSE:l_f_page.
ENDIF.
READ TABLE input_table INDEX 2.
IF sy-subrc = 0.
l_f_totpage = input_table-value.
CONDENSE:l_f_totpage.
ENDIF.
IF l_f_page = l_f_totpage.
l_f_flag = 'X'.
ENDIF.
READ TABLE output_table INDEX 1. "sy-index.
output_table-value = l_F_flag.
MODIFY output_table INDEX 1.
ENDFORM. "spell_form
now, call the write_form FM and pass the element name 'TEXT' in which window u want to display.
Hope it helps!!
Regards,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi myahsam,
In the driver program call the text element..
For example to display the grand total..this displays after all the line items are printed..
at last.
call function 'WRITE_FORM'
exporting
element = 'GRAND_TOTAL'
* FUNCTION = 'SET'
* TYPE = 'BODY'
window = 'MAIN'
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.