on 01-08-2012 5:01 PM
I have a Sapscript with 1 page and 2 windows (MAIN and LOGO). The Main window contains just a simple text 'Hello World" (without using any element /E).
Now in my driver program , I wrote 3 FM's OPEN_FORM , WRITE_FORM( with no export parameters as by default it would take MAIN window) and CLOSE_FORM.
When i execute this driver program , the text "Hello World" is displayed twice one below the other.THe Logo is displayed fine.
THANKS
Do one thimg assigm text elemnt to textand use it in write_form...its wriiting two lines as no text elemnt is tnere....a script always ahs a many window...plus no text elemnt text is always written plus you have made an extra call tO it in code.
Nabheet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI friend,
In Script we display the details in main window which needs to be repeated. Ie repeated in every page.
Also the datas which needs to be displayed in all the pages can also be displayed in main window.
See the link below it will be use ful for you,
Link: [Main Window in SAP Script|;
In this thing you are getting two main windows as you have not used WRITE_FORM in your driver program with out output parameters.
I have worked in my system and its working fine. So try using the normal method and after getting the ouput change the method for trial and error tests.
If you face any queries please revert back to em i will help you.
Thanks,
Sri Hari
Edited by: srihari.kumar on Jan 9, 2012 10:41 AM
Thank you very much for your answer Srihari.
I had not used parameters in WRITE_FORM because i dont have any /E element for main window so there is nothing to be passed in ELEMENT paramter. Nerverthless i tried passing parameters WINDOW = 'MAIN' but still it shows it 2 times.
I fully understood the concept of MAIN window which you have told but in my case there is no repeated text to be displayed in other page.I just have a simple constant text in main window.
HI friend,
Did you tried debugging the driver program and saw is the write form calling twice or so.
Just debug the form and see for better understanding of its execution.
I think you will be able to figure out the problem by debugging. Just check and revert me back if you have any queries.
Thanks,
Sri Hari
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.