How to select multiple records from a TREE in the table
HI,
I have a tree structure which is in the table.When I open the node of the tree,all the subnodes are coming as one-one records in the table.I want to slect multiple record from this table.I applied onLeadSelect for this table,I can select only 1 record from the table.
Can any one plz suggest me how to select multiple records from the table so that I can get all the data of those selected record.
Regards
-Sandip
Rashmi/Kukku,
First of all, Thanks for your help!
Is there any other way in which we can access tables other than using BAPIs or RFCs?
In my case, there is a table structure which has to be updated with values after validating a key. i don't think there is any RFC available now. do i need to create bapi/rfc for that?
Krishna Murthy
Similar Messages
-
Displaying the selected multiple records from node using onleadselect event
Hi all,
How to display the selected multiple records from node to node using onleadselect event.
i came to know tht to fulfill this requirement i need to use the method get_selected_elements,
how to use this method in my event??
sreeHi Sree,
Try below code..
DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node, // This is first node
lo_el_it_lips TYPE REF TO if_wd_context_element,
ls_it_lips TYPE wd_this->Element_it_lips,
lt_it_lips TYPE wd_this->Elements_it_lips.
DATA: wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set.
* navigate from <CONTEXT> to <IT_LIPS> via lead selection
lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
CALL METHOD lo_nd_it_lips->get_selected_elements
EXPORTING
INCLUDING_LEAD_SELECTION = ABAP_true
RECEIVING
set = lt_temp.
DATA lo_nd_pack_mat TYPE REF TO if_wd_context_node. //Second Node
DATA lo_el_pack_mat TYPE REF TO if_wd_context_element.
DATA ls_pack_mat TYPE wd_this->Element_pack_mat.
DATA lt_pack_mat TYPE wd_this->Elements_pack_mat.
* navigate from <CONTEXT> to <PACK_MAT> via lead selection
lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
lo_nd_pack_mat->get_static_attributes_table( importing table = lt_pack_mat ).
LOOP AT lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_it_lips.
ls_pack_mat-vbeln = ls_it_lips-vbeln.
ls_pack_mat-material = ls_it_lips-matnr.
ls_pack_mat-vgbel = ls_it_lips-vgbel.
append ls_it_lips to lt_unpack.
CLEAR ls_pack_mat.
ENDLOOP.
Cheers,
Kris. -
How to select multiple values from a listbox
Hi,
I have a list box on my UI which is not allowing me to select multiple values
I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving error
When i drag & drop the component i am unable to drop it as a multi select list box that option is not coming.
I am working on Jdev 11.1.1.3 and I am using ADF/BC components
How to select multiple values from a listbox ?
Thanks,Hi,
I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving errorank
And what is the error ?
Frank -
How to select multiple values from the parameters in BI Publisher report
How to select multiple values from the parameter drop down in BI Publisher, and how to handle this mulitple values from the report sql...
Hi kishore,
I have used all the steps as you mentioned in your previous reply....including checking Mulitple Selection Check Box..
Iam able to get the results when I am selecting one value..
and also I am able to handle multiple values the in the query by using IN :Parameter, but seems when we select more than one value from the parameter drop down i think the Bi Publisher is sending the values in concatenated form something ilke
ex: "'ACCOUNT','HR','SALES'" ,and when trying to display the parameters values in the output, its throwing the error as 'missing right paranthesis' ....on the whole do you have any solution which would handle
1.Single selection.
2.Multiple selection.
3.'ALL' Values.
4.Separating the concatenated string into individual strings and dispaly them on the output of the report..etc..in case of Mulitple selection.
Ex:
Concatenated String from BI Publisher:"'ACCOUNT','HR','SALES'"
Expected Output on the report:ACCOUNT,HR,SALES
reply to this would be much appreciated....
thanks,
manoj -
How to select multiple values from the Parameters in the concurrent program
How to select multiple values from the Parameters defined in the concurrent program...and i believe multiple selection is not a direct feature of EBS, but is there any workaround solution to acheive mulitple selection?
I think there's no way to do that using standard feature.
Some workaround I use :
1. If the number of selections are fixed, you could use multiple parameters for the same valueset. For example :
Selection1 : <choose first selection>
Selection2: <choose 2nd selection>
..etc.
If you don't use it then leave it empty.
2. Use text varchar valueset and enter it manually and separate by comma (or other value) , eg : selection1,selection2,selection3....etc. -
How to select multiple rows from List Of Values
Hello,
I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
so how i can select many rows to set them in my adf table.
Thank in advanceHi,
LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
This blog post explain how to achieve this :
http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
Sameh Nassar -
How to select multiple addresses from the contacts list to send an email?
How do I select multiple addresses from the contacts list at one time to send an email. Each time I select one, the address book closes and I have to touch the "+" key to open it back to select another address. Is there a way to select all of them at one time instead of making a group? Thanks.
Yes, once you select a person from your Contacts app, you either need to select more from the '+' button or you can tap in the 'to:' field and type in the first few letters of a contact and select from the list. Kinda bummer but gotta make do.
-
How to select multiple records in ALV with out pressing ctrl
Hi Experts,
Is there a way to select multiple records in ALV with out pressing ctrl button on the key board?
Selection and deselection should allow multiple records.
any clue is highly appreciated.
regards,
AjayThe keyboard always plays a role, although with the Shift key you can select blocks of records.
○ CTRLclick, CTRLspacebar
Toggles a selection.
○ SHIFTclick, CTRLshift
Selects the area from the lead selection to the row selected. If no lead selection is set, the selection starts from the first row. In the multiNoLead mode, the selection starts from the row last selected -
How to select multiple records in the ALV POP UP by using oops
Hi All,
We have a requirement of ALV POP UP by using the OOPS. How to select the multiple records in the POP UP and After selecting that i want do Inteactive ALV means again one more POP UP in ALV.
Thanks for help....
Regards,
BharaniHello Bharani
Displaying an ALV list in a popup is by no means different from a list displayed on a main screen. The only thing you need to consider is that you set the right screen level when creating the parent container for the ALV.
For more details refer to thread in CL_GUI_SPLITTER_CONTAINER ALV list is not show in called screen
" step 1:
CREATE OBJECT gr_spliter
EXPORTING
parent = cl_gui_container=>screen0 " For first popup use: =>screen1
rows = 1
columns = 2.
Regards
Uwe -
How to get multiple records from internal table through BDC
PERFORM DYNPRO USING:
'X' 'SAPMM61L' '0500',
' ' 'BDC_OKCODE' '=NEWC',
'X' 'SAPMM61L' '0500',
' ' 'BDC_CURSOR' 'PLPTU-PLWRK(01)',
' ' 'BDC_OKCODE' '=TAKE',
' ' 'PLPTU-PLWRK(01)' '2531'. (2531 is a plant)
This is the recording used to get plant via BDC of MS31.
Using this code i can get only single plant...
If i want to get multiple plants from an internal table,how i can change this code?
Since it is a recording i cant put this code in LOOP..ENDLOOP.
Suggest any method for doing this....
Awaiting for ur reply...Hi,
While recording also record the scroll down button.
The you can place different plant in the BDC using loop and endloop
Regards
Arun -
How to get Multiple records from functions
Hi Everyone
Im new to this stuff. Im trying through JCO. As far as the single recordsets like data of customer or article are concerned i get it through an array.
But i wanted to retrieve
1- Whole tables like (all articles)
2- Selected articles. or Customer order details (articles in PO)
That means multiple records in one go.
Later on ill display it in JTables.
Like for the past three days i was googling around. Thought like this ones not for my stomach. Came across this Forum. Thought its worth posting a request.
Here is the code
public String[] KSearch(String Knr) throws Exception{
String[] Result=new String[11];
IFunctionTemplate ftemplate= Con.repository.getFunctionTemplate("SucheKUNDE");
if (ftemplate == null)
throw new Exception("Funktionstemplate nicht gefunden");
JCO.Function function = ftemplate.getFunction();
JCO.ParameterList input = function.getImportParameterList();
input.setValue(Knr,"FieldName");
JCO.Client client = JCO.getClient(Con.conPoolId);
client.execute(function);
JCO.ParameterList output = function.getExportParameterList();
Result[0]=output.getString("NAME");
Result[1]=output.getString("VORNAME");
Result[2]=output.getString("GDATE");
Result[3]=output.getString("TELEFON");
Result[4]=output.getString("MAIL");
Result[5]=output.getString("STRASSE");
Result[6]=output.getString("PLZ");
Result[7]=output.getString("ORT");
Result[8]=output.getString("KONTO");
Result[9]=output.getString("INSTITUT");
Result[10]=output.getString("BLZ");
JCO.releaseClient(client);
return Result;
now instead of a single record what if im expecting a number of records, like what if i need customer over 25. Which means more than one. I have to get in tabular format so that i can display it in JTables.
Hope it a bit illustrative.
Regards
Edited by: Aaron Maleck on Jan 5, 2008 7:35 AMpublic String[] KSearch(String Knr) throws Exception{
String[] Result=new String11;
IFunctionTemplate ftemplate= Con.repository.getFunctionTemplate("SucheKUNDE");
if (ftemplate == null)
throw new Exception("Funktionstemplate nicht gefunden");
JCO.Function function = ftemplate.getFunction();
JCO.ParameterList input = function.getImportParameterList();
input.setValue(Knr,"FieldName");
JCO.Client client = JCO.getClient(Con.conPoolId);
client.execute(function);
// Maybe here you should use a JCO.Table Class to get the //ExportParameters such as
JCO.Table output = function.getTableParameterList().getTable( "tabelname" );
// so you can use setRow() Function to get the information of the //relevant record. such as the 3. Costum
output.setRow(3);// Record Number
Result[0]=output.getString("NAME");
Result[1]=output.getString("VORNAME");
Result[2]=output.getString("GDATE");
Result[3]=output.getString("TELEFON");
Result[4]=output.getString("MAIL");
Result[5]=output.getString("STRASSE");
Result[6]=output.getString("PLZ");
Result[7]=output.getString("ORT");
Result[8]=output.getString("KONTO");
Result[9]=output.getString("INSTITUT");
Result10=output.getString("BLZ");
JCO.releaseClient(client);
return Result;
Iam not sure that works. But you can try it. and reply me to tell if it really works as i think.
Hope helps.
Amao -
How to select multiple records in an ALV by REUSE_ALVGRID_DISPLAY
Dear all ,
I am displaying a report by REUSE_ALV_GRID_DISPLAY. I have used "box_fieldname" property to select a record in the alv . but i am not able to select more tha one record at a time . Can anyboby suggest me how will be i able to select more than one record at a time .
regards
amarhttps://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=47808545
-
Mapping Multiple records from Db Adapter to the project data objects
If the database adapter do a query to the database and return multiple records, how can I map those records to the data object? And If I want to iterate the records and each record to invoke a sub-process, what can I do?
On the XSL file, I did the following
<xsl:template match="/">
<ns1:SetOfAccount>
<xsl:for-each select="/ns0:RplanAccountCollection/ns0:RplanAccount">
<ns1:accounts>
<ns2:accountId>
<xsl:value-of select="ns0:pkAcctId"/>
</ns2:accountId>
<ns2:accountName>
<xsl:value-of select="ns0:ownerName"/>
</ns2:accountName>
</ns1:accounts>
</xsl:for-each>
</ns1:SetOfAccount>
</xsl:template>
</xsl:stylesheet>
for each record which read back from the database adapter is rplanAccountCollection, rplanAccount, I tried to put the value onto the accounts arrays which has a type of account with account id and account name. But I dun think it is correct, please advice -
How to get MR Document from Billing Document at the table level
Hi All,
I am looking to find the MR Document based on which the Billing Document was generated. I need to find it out at the table level.
I looked into DBERCHZ2 table, but I can see a single billing document is linked to multiple Meter Reading Documents via different Line Items.
Could you guyz please help me? Am I seeing the right table? Is there any FM or ABAP program for the same?
Thanks a lot in advance.
Regards.Hi ,
The link is Installation to get MR Doc from Bill Doc .
from ERCH-BELNR , fetch Contract (VERTRAg ) and then from EVER-VERTRAG get Installation (ANLAGE).
Get MR Doc(ABLBELNR) from EABLG based on EABLG-ANLAGE.
Thanks ,
Sachin -
Selecting multiple records from the list and append it into internal table.
hi
there is a list of 10 records in the output screen with check boxes. if the user select any 3 records then those records should get appended in some other internal table of same structure.
this is the requirement. can anybody help me it is very urgent.
regards
samiHi,
Loop at the internal table which contains the value in table control and move it to a work area. apend the work area to the next internal table. Like:
loop at it1 into wa1 where sel = 'X'.
append wa1 to it2.
endloop.
or
loop at it1 into wa1.
if wa1-sel = 'X'.
append wa1 to it2.
endif.
endloop.
Regards,
RM
Maybe you are looking for
-
How to keep music on external hard drive, but play on iMac?
So, I have nearly 500GB of music on an external hard drive. I don't want to move them into my iMac, because it'd obviously eat up all my free space. My question is, how can I keep them on the external hard drive, but still access and play them while
-
I have a problem with a apple ibook g4 I bought 2 weeks ago from ebay. It had tiger and I installed leopard on it and it had been working perfectly for about a 2 weeks. There was nothing wrong using tiger except it did not remember my settings. I
-
10.2.0.3 Release of Analytic Workspace Manager?
If Bud, Anthony or someone from OLAP Product Management is around - is there any news on when the next release of AWM will be available? (the 10.2.0.3 database patchset is now available on metalink for download). Is this new release going to have any
-
JSF 1.2 + myFaces Tomahawk
Hi, I'm trying to use tomahawk component (t:inputFileUpload) in JSF 1.2 application. When I'm runing the app this kind of warrning apperas 2007-04-23 15:39:41 com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent WARNING: Unable to fin
-
All over sudden any drive hooked up to the USB port does not show up in finder, however it does show up in System Profiler. I have one external hard-drive that was setup to work with Time Machine and also VMware Fusion. It worked fine until today, No