on 02-20-2008 5:38 PM
i've one question from an interview that it is not mandatory to give open-group and close-group for a sapscript. but according to my knowledge open-group and close-group are mandatory. What do you people think about this?
also let me know where exactly start-form and end-form are used?
hi srk,
the open_form & close_form are mandatory. because unless you specify the script name, how the driver program know, which script to be runned?
in the open_form parameters we will give our script name. then with that name it runs the driver program. when open_form is executed, the script of given name will be opened, then through write_form we will pass the values through text elements.
so, hope u understood the purpose n functionality of open_form.
coming to start_form & end_form:
let us take a case in my script i have 5 pages.
first page contains my company name
second contains my name as i designed it.
from third onwards it have some customers list upto fifth page.
now in a perticular situation i want to print 3rd, 4th & 5th pages. but when we call open_form it opens the form fron first page by default. but i want to print from 3rd page.
so, now i'll call start_form, in start_form parameters we will give the page no. then it will print from that perticular page only. not only for printing, even to see preview from a perticular page then we use this start_form.
hope now ur clear.
reward if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
forms are 5 type, there are as follows:
1: open_form
2: start_form
3: write_form
4: close_form and
5: end_form.
If start_form is present then end_form also should be there
One more FM is useful is there i.e. Control_form ,but
its an optional.
Open_form-----Here u have to Assign ur SAPSCRIPT form .
Write_form-----here u have to write the data,i.e. Header,Item and Footer Data.
Close_form------close the SAPSCRIPT form.....
Hope this data is suffi. for u, reward points.dont forget.
Regards
Fareedas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
yes it's mandatory to give open_form and close_form.
with out that it will not recognize the form from the driver program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.