Application Development 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: 

How to pass Multiple entries of select-options to FM

Former Member
0 Kudos
270

Hi friends,

i need to pass values date_from and date_to of FM BAPI_AR_ACC_GETSTATEMENT in my report. i have select-option in the selection screen for the posting date i.e, s_pstgdate-low = date_from and s_pstgdate-high = date_to.

My question is how to pass values if the user enters multiple entries in s_pstgdate (selection-screen).

Hope i'm clear with my question.

Thanks in anticipation.

Regards

Poorna

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos
123

Hi,

Loop at s_pstgdate.

refresh i_LINEITEMS.

....pass low & high parameters

..make the table as i_lineitems

append lines of i_lineitems to itab.

endloop.

Finally in itab table,you can find all the entries.

6 REPLIES 6

FredericGirod
Active Contributor
0 Kudos
123

Hello,

I use select-options : s_pstgdate for ...

no-extension

.

Frédéric

Former Member
0 Kudos
123

Hi,

This is not possible.

You may wish to call it multiple times with each row of your select-option, and consolidate the returned records.

Better is to restrict the select-option with no-extension.

cheers,

jayanthi_jayaraman
Active Contributor
0 Kudos
124

Hi,

Loop at s_pstgdate.

refresh i_LINEITEMS.

....pass low & high parameters

..make the table as i_lineitems

append lines of i_lineitems to itab.

endloop.

Finally in itab table,you can find all the entries.

0 Kudos
123

Thanx Jayanthi Jayaraman

i thought of the same solution. i think this is the only way.

poorna

andreas_mann3
Active Contributor
0 Kudos
123

Hi,

and what is with sign = 'E' and options besides 'EQ'

-> i think simplest solution is to use 2 parameters

'from' and 'to'

regards Andreas

0 Kudos
123

sorry Jayanthi Jayaraman

i didn't think of the sign.