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

Selection Screen in smartforms

Former Member
0 Likes
515

hi ,

is it possible to design a selection screen in smart form.

my requirement is to pass a set of material numbers obtained from select-optins to the smart form. how can i pass these set of values to the smart form.

Regards

Arun

2 REPLIES 2
Read only

0 Likes
380

In general, I'll create a little report with Selection Screen to drive the smartform.

Using this report to prepare the data in one itab then transfer it into the smartform using FM.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
380

Hi,

I think you already posted this question.

This time I try to suggest a different solution.

In the Form Interface Import just pass parameters like

s_low type likp-vbeln and

s_high type likp-vbeln.[assumed that s_vbeln is the select-options]

Then create a program line.In that type s_low and s_high as input parameter and lr_vbeln and itab as output parameters.

Then in that program line type the below code.

RANGES:lr_vbeln FOR likp-vbeln.

IF NOT ( s_low IS INITIAL and s_high is initial ).

lr_vbeln-sign = 'I'.

lr_vbeln-option = 'EQ'.

lr_vbeln-low = s_low.

lr_vbeln-high = s_high.

APPEND lr_vbeln.

ENDIF.

select * from likp into table itab where vbeln in r_vbeln.

Hope it is helpful.

If not get back to me.

Rgds,

J.Jayanthi