on 07-22-2008 10:21 AM
hi Abapers,
In my driver program i have given select-options like this.
Ex: select-options: s_vbeln for vbrk-vbeln no intervals.
How can i declare select-options in my Smartforms.
Hi,
Use RANGE in the inside of SMARTFORMS code.
In table declare like below FM. Use RANGE in coding.
For Example Ref this FM BUKRS_AUTHORITY_CHECK
Thanks,
Durai.V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vani,
Create a structure in se11 with sign, option, low and high fields.
In your form interface / global definitions create a variable of type of the structure.
You can initialize it in your driver program or in the initialization tab in your global definitions of the smartform.
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = <smartform name>
IMPORTING
fm_name = v_form_fm
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
Call Smartfrom to print the document
CALL FUNCTION v_form_fm
EXPORTING
p_compensation = p_comp <--parameter list
p_skill = p_skill
p_deci_auhtority = p_da
TABLES
s_job = s_job <--select option list
s_level = s_level
s_date = s_date
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
declare the paramters of your selection screen in the form interface section of the smartform.
If you have a parameter in teh selection screen then declare it in the smartform as:
P_matnr TYPE matnr (in form interface ->import)
If you have a select option then
S_LEVEL LIKE <dictionary structure like a range>
this u declare it in the tables section of the form interface. For the select option , the dictionary sructures should be like a range (see RNGE_OBJID as an example). If you dont have a dictionary structure
then u need to declare it in the dictionary.
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 Vani,
Check the link
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.erpgenie.com/abap/smartforms.htm
It will give you idea of using select-options in smartform.
Regards,
Anirban
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 | |
10 | |
10 | |
10 | |
7 | |
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.