on 05-28-2007 1:15 PM
hi,
plz update me.
(interviews qs)
1.can we change development class of script?
2. what excatly technical difference bw open and start_form?
3. how to maintain date in script? (my ans: &date& !!?)
4. how to handle inputs(if user gives it in defferent format) in scripts..?
(is there any FM to convert them, i remember one conversion_exit_alpa_input is it right?)
Hi Venkat,
Please find the answer nbelow your questions.
1.can we change development class of script?
YES
2. what excatly technical difference bw open and start_form?
OPEN_FORM fm is used to open form printing. This function module must be
called before using any other form function (WRITE_FORM, START_FORM,
CONTROL_FORM...).
In-between the function modules OPEN_FORM and CLOSE_FORM, we can
use different forms. This allows us to combine several different forms into one
print output. To switch forms, we can use the function module START_FORM.
If another form is still open, we must close it first using END_FORM.
Order of FM calls
open _form.
start_form.
write_form.
end_form.
start_form.
write_form.
end_form.
.
.
.
close_form.
3. how to maintain date in script? (my ans: &date& !!?)
To define the formatting of date fields, use the SET DATE MASK control command. Executing this command causes all subsequent date fields to be printed using the specified format.
Syntax: /: SET DATE MASK = 'date_mask'
In the date mask, the following codes can be used:
DD: day (two digits)
DDD: day name - abbreviated
DDDD: day name - written out in full
MM: month (two digits)
MMM: month name - abbreviated
MMMM: month name - written out in full
YY: year (two digits)
YYYY: year (four digits)
LD: day (formatted as for the L option)
LM: month (formatted as for the L option)
LY: year (formatted as for the L option)
All other characters found in a date mask are interpreted as simple text and are copied straight into the output.
4. how to handle inputs(if user gives it in defferent format) in scripts..?
In scripts, normally validation is not done. It is better to do it in print program and then pass variable to script. But you can call a subroutine from script and do validation in that also.
Award points if found useful.
Regards
Indrajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
3) The current date is displayed. It is formatted according to the specifications found in the user master data. You can adapt this format to your own requirements by specifying a date mask (SET DATE MASK) or by using a country-specific formatting option (SET COUNTRY).
The current value for this symbol is taken from the SY-DATUM field. This value is not copied every time that the date is called, but only at the following times:
When printing starts (OPEN_FORM, PRINT_TEXT)
2)
open-form means ,it actually initializes the particular form
start-form means in a form, on which page u want to start the data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.can we change development class of script?
use Se03 transaction to change Development class
2. what excatly technical difference bw open and start_form?
only diffrence is Printing request..
3. how to maintain date in script? (my ans: &date& !!?)
&DATE&
4. how to handle inputs(if user gives it in defferent format) in scripts..?
(is there any FM to convert them, i remember one conversion_exit_alpa_input is it right?)
I am not clear on this
Reward Points if it is helpful
Thanks
Seshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.