on 08-18-2009 10:37 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
:
>
> 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.