cancel
Showing results for 
Search instead for 
Did you mean: 

SelectionRange for BAPI_USER_GETLIST_INPUT

Former Member
0 Kudos

Hi Experts,

I'd like to set the username value of the BAPI import parameter "SelectionRange" when initiating the controller. This parameter is type of AbstractList.

The ABAP documentation within the R/3 System -> BAPI Explorer tells me the following example:

You are searching for dialog users that begin with 'A' and 'B':

PARAMETER FIELD SIGN OPTION LOW HIGH

USERNAME I BT A C

LOGONDATA USTYP I EQ A

This kind of selection range definition I already know from ABAP coding but not how to deal with that in JAVA AbstractList.

Does somebody know how to do this, so how to define the AbstractList?

Many thanks in advance!

Best regards

Tobias

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

public abstract class AbstractList

extends AbstractCollection

implements List

This class provides a skeletal implementation of the List interface to minimize the effort required to implement this interface backed by a "random access" data store (such as an array). For sequential access data (such as a linked list), AbstractSequentialList should be used in preference to this class.

Refer this link,

[Abstract List Class|http://java.sun.com/j2se/1.4.2/docs/api/java/util/AbstractList.html]

[Abstract List API|http://kickjava.com/src/java/util/AbstractList.java.htm]

Regards,

Sunaina Reddy t

Answers (1)

Answers (1)

ravindra_bollapalli2
Active Contributor
0 Kudos

:

>

> You are searching for dialog users that begin with 'A' and 'B':

>

> PARAMETER FIELD SIGN OPTION LOW HIGH

>

> USERNAME I BT A C

>

hi tobias,

As u quoted the above context we have to generate a option between the A to C

in abstract list we can generate the integer values ramdomly

for just clarification refer this link

http://developer.android.com/reference/java/util/AbstractList.html

there are certain methods that we can retrive the range of values which been generated using abtractlist to array

mean while i wll try towork on this i wll send more

ravindra

Former Member
0 Kudos

Hi there,

got the solution: you shouldn't use the setSelection_Range method but the addSelection_Range method. With this method you can import a SAP own list object which contains all relevant get- and set-methods to place your parameters.

Here is part of my solution:

Bapiussrge selRange = new Bapiussrge();
 selRange.setParameter("USERNAME");
 selRange.setOption("CP");
 selRange.setSign("I");
 selRange.setLow("B*");
 
 userListingInput.addSelection_Range(selRange);

Best regards

Tobias