on 09-22-2009 8:44 AM
Hi friends,
I need to delete underline only before main window ends in a page.
I am calling 'Underline' element in mainwindow after every loop operation using 'write form' FM.
After displaying certain data the underline element is called and lines are displayed.
Now i dont want to print the underline at the end of the window in that particular page.
I just need a statement which will satisfy this condition.
Hope you guys got my question...
Regards,
Navaneeth.
HI,
I think you can use subroutines for the same.
Check the condition total number of pages in the script and use a perform statement and set a flag inside the driver program. Now call the element in the driver program using that flag variable.
see the below code
/: PERFORM ABC IN PROGRAM ZABC USING &SAPSCRIPT-FORMPAGES(C)&
/: ENDFORM
In the driver program define the form and check the formpages if it is greater than 1 then call the function module write_form using the underline element.
In driver program.
if sapscript-formpages > 1. " write this inside the form endform using the itcsy structure
flag = 'X'.
endif.
if flag = 'X'.
call function 'WRITE_FORM'.
endif.
This is one possible way as i see.
check the link for subroutines in scripts
[Subroutines in SAPScripts|http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm]
Regards
Sarves
Edited by: Sarves Sombhatla on Sep 22, 2009 2:35 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.