Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

select-options in Smartform

Former Member
0 Likes
2,624

Hi all,

Is't possible to use Select-options in smartforms, If so how to use.

Regards

Suprith

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,950

Hi,

yes it is possible

1 Create a Structure ZSELECTION in SE11 with following fields

SIGN

OPTION

LOW

HIGH

This structure is similar to the selection-option internal table.

2 In smart form u2018ZSELECT_FORMu2019, create an entry in to TABLES in the Form Interface.

3 Define Structures in TYPES tabs in GLOBAL DEFINITIONS

4. Do the global declartation

5 go to mainwindow

create-->Flow logic -


> program lines

The PERNRS given in the select-option in the driver program is captured in T_SELECT. In program lines, T_SELECT is input to SELECT query and the results are captured in internal table T_0002. We have to mention resulted internal table T_0002 in output parameters for further use.

loop the internal table

wite the printporam

Thanks & Regards

Ramakrishna Pathi

then provide the input and output parameters

9 REPLIES 9
Read only

Former Member
0 Likes
1,950

HI

you can not create a select-options in smartform but alternatively you can create two parameters in interface of smart form, one for lower range and other for upper range and then you can use them in smartform.

Regards

RajneshD

Edited by: Rajnesh Dharmat on Mar 6, 2009 3:56 PM

Read only

Former Member
0 Likes
1,950

Hi,

Suprith, are you talking about the select options for the driver program? If so then you can use select options

in the driver program. The data retrieval will be done on your select options and then it will be used to display

in the smart forms.

Edited by: Amit Biswas on Mar 9, 2009 11:03 AM

Read only

kamesh_g
Contributor
0 Likes
1,950

This message was moderated.

Read only

Former Member
0 Likes
1,951

Hi,

yes it is possible

1 Create a Structure ZSELECTION in SE11 with following fields

SIGN

OPTION

LOW

HIGH

This structure is similar to the selection-option internal table.

2 In smart form u2018ZSELECT_FORMu2019, create an entry in to TABLES in the Form Interface.

3 Define Structures in TYPES tabs in GLOBAL DEFINITIONS

4. Do the global declartation

5 go to mainwindow

create-->Flow logic -


> program lines

The PERNRS given in the select-option in the driver program is captured in T_SELECT. In program lines, T_SELECT is input to SELECT query and the results are captured in internal table T_0002. We have to mention resulted internal table T_0002 in output parameters for further use.

loop the internal table

wite the printporam

Thanks & Regards

Ramakrishna Pathi

then provide the input and output parameters

Read only

Former Member
0 Likes
1,950

Hi,

Following information helps you.

you have to define a structure which consists of fields sign,option,low,high and use that structure for reference in your smartform in form interface.

Read only

Former Member
0 Likes
1,950

Hi,

to execute a smartform we need a driver program.

i.e. program developed in abap editor,

so as you create select option in other program in abap editor same is here.

in that editor we call the smartform and provide the input parameter for getting the output.

there are a lots of post available in sdn , please refer that.

regards

vijay

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
1,950

Hi,

You can use select-options to be used in smartform on selection screen of the driver program.

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
1,950

This message was moderated.

Read only

Former Member
0 Likes
1,950

hi,

you can create selection option *in the driver program * of Smartforms



SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_MATNR FOR MARA-MATNR .
SELECTION-SCREEN END OF BLOCK B1.

Thanks

Arun