How to pass the single/multiple selected data of a table to SAP(R/3)
Hi ,
I have a table with 2 colums and 10 records.Now i want to send the selected record/Multiple records to the R/3.
Once the user checks the checkbox i retrieved the column values of that row/rows into a string array.
and i added all the string arrays to an AbstractList.
Now in function module it is giving as setT_TestOperations(AbstractList)
can any one help as how the function module understands the individual/multiple String arrays.
If possible provide sample code for the same.
Thanks and regards,
Chandrashekar.
One way to achieve this is to maintain an attribute in the assistance class or a node element , called OldLeadSelection , at the Component controller level which stores the value of the lead selection index.
On LeadSelect action handler method, in the first line, read the value of the attribute/element defined above. For the first time a row is lead selected, this value will be initial. After exexcuting the code in the LeadSelection event handler method, store the LeadSelection index value in the attribute defined above. The next time when the LeadSelection event method is called, when the value of this attribute is read in the initial line, it will house the value of the index of the previous LeadSelection.
There could be other ways to achieve this. This is one of the methods.
Best Regards,
Rashmi.
Similar Messages
-
Help requested: How to pass the (check box) selected rows data to other scr
Hi friends, Here is a situation where I have to pick only those records data which i select by checking the check boxes and carry on to next screen where I have to display them and do some processing on such selected rows of data. Can any one suggest me how to code this. Thanks in advance.
Hi Subbarao,
One way is to check if the field is selected by checking if the field value = 'X'.
If it is a table control we will have to loop and find out which all records are selected..it is notable that the check box field will mostly be of single character and contain 'X' if it is checked and space if not checked
Based on the structure where the check box is held we may have to implement various logic to retrieve whether the field is checked or not....for instance we can move data to another internal table for which the checkbox is checked and can retrieve it from the next screen
Pls check,revert and reward if helpful
Regards
Byju -
How to handle the single line selection in table control
Hi All,
I am facing a problem in the table control of modulepool program.
I have line selection as "Single" in the table control attributes. But when i am selecting a line in the table control as long as it is in the same page,the line selection is single but when i am selecting the line in the next page,the previous selection is not deselected. So I am seeing two selection for "Single line selector" attribute.
Could any one help me solve this problem?
Thanks & Regards,
S.LakshmiHi Lakshmi,
Just Go to Table control , click on it , you can see the attributes screen , there you can see option for
<b>Line selection</b>
none
multiple selection
single selection
check the radio button single selection.
that will solve your problem..
regards
vijay -
How to pass the selected data of a table to SAP(R/3)
Hi all,
I have a table with 2 colums and 10 records.Now i want to send the selected record to the R/3.
Once the user checks the checkbox i retrivred the colum values of that row into a string array.
and i added all the string arrays to an AbstractList.
Now in function module it is giving as setT_Operations(AbstractList)
but it is giving error..can u plz tell me how the function module understands the individual String arrays
Regards
Padma NHey try to accept the values of a column as import parameters to a BAPI and you can send the data.But this will work out for a single data.
In the BAPI insert the data making use of insert command.
ITAB-COLUMN1 = IMPORT PARAMETER 1.
ITAB-COLUMN2 = IMPORT PARAMETER 2.
INSERT INTO VALUES ITAB.
If you want to insert multiple records then you have to change the cardinality of the node.And add the node elements to the node.If any doubts then do reply. -
How to insert decimal point while selecting data from a table
Hi All ,
My select requirement says , If the value received with no decimal then insert decimal before last 2 bytes. I need to retrieve data with this condition.
May you people help how i can achieve this?
Thanks in advance,
SachetanIs the data a number in string format?
with q as (select '12345' myNum from dual
union all select '45.78' from dual)
select case when instr(myNum, '.') > 0 then to_number(myNum) else
to_number(substr(myNum, 1, length(myNum) - 2) || '.' ||
substr(myNum, length(myNum) - 1)) end newNum from q
NEWNUM
123.45
45.78If not just use
with q as (select 12345 myNum from dual
union all select 45.78 from dual)
select case
when instr(myNum,'.')>0 then myNum
else myNum/100
end myNum
from q
MYNUM
123.45
45.78 -
How to get the class from selected row in af:table
I know that you can get individual selcted row values from an af:table using getRow().getAttribute("attName").
But, can I obtain the class that the table iterator used to populate the table?
For instance, a table lists the result of an employee search that was bound to a session bean method returning List<Employee>.
After selecting the employee of interest and clicking a command button I want to access that instance of the Employee class to pass onto the session bean to do some stuff.
I don't want to hit the database to do it either (via a query on a key value for example) - the search iterator has already retrieved it, I just want to access it and do something with it.
Possible?
Thanks.Hi,
if you use ADF try iterator.getCurrentRow().getDataProvider() on the binding container. If you use ADF Faces without then the Row object is the instance of your class
Frank -
How to get the previous row selected index of a table....
Hi friends,
I have a table. i have a action/event handler defined on its onLeadSelect event.
In this event, if i use node_code->get_lead_selection_index( ) .. i m getting the newly clicked row index.
ex: table has 3 rows.
Row 1 is by default selected. Now if i select the row 3, in my event by using node_code->get_lead_selection_index( ). im getting index 3. which i sel
But i want to get index 1.
kindly help me.. i dont have any other option as i m very new to this.
hope i gave u correct inputs on my problem.
thanks in advance,
NirajaOne way to achieve this is to maintain an attribute in the assistance class or a node element , called OldLeadSelection , at the Component controller level which stores the value of the lead selection index.
On LeadSelect action handler method, in the first line, read the value of the attribute/element defined above. For the first time a row is lead selected, this value will be initial. After exexcuting the code in the LeadSelection event handler method, store the LeadSelection index value in the attribute defined above. The next time when the LeadSelection event method is called, when the value of this attribute is read in the initial line, it will house the value of the index of the previous LeadSelection.
There could be other ways to achieve this. This is one of the methods.
Best Regards,
Rashmi. -
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
HI,
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
thanks,
samba.By selection screen, what do you mean? There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component? Are you wanting to call a standard transaction via ITS - SAPGUI for HTML? Please provide more details to your question.
-
How to select data from a table by passing document number from another tab
How to select data from a table by passing document number from another table.
for eg:-
I want to display name, adres, region from ADRC table
by using field delivery document number
Kind Regards,
Shanbagavalli.SHi Shanbagavalli,
There are multiple solutions to this questions a few i will try to answer and then you can take the best required for your requirements.
**Consider that you have a Internal table having document number from other table..
SELECT NAME ADRES REGION FROM ADRC
INTO IT_ADRC
FOR ALL ENTRIES IN IT_DOC
WHERE DOCUMENT_NO = IT_DOC-DOCUMENT_NO.
**Consider that you have 1 document number then
SELECT NAME ADRES REGION FROM ADRC
INTO IT_ADRC
WHERE DOCUMENT_NO = W_DOCUMENT_NO.
Hope this solves your problem.
Regards,
Kunjal -
How to pass the data from a input table to RFC data service?
Hi,
I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
Thanks for your answer.Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
Thanks. -
How to Park the single invoice for multiple purchase orders
Hi,
How to Park the single invoice for multiple purchase orders?brother this is possible to enter one Invoice fro multiple purchase order.
call transaction MIR7, select " purchase order/Scheduling Agreement" from the PO refernce Tab. then click on arrow. give your purchase orders here.
Thanks -
Regarding how to pass the data from web dynpro to workflow
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayCheck this [thread|SAP_WAPI_START_WORKFLOW;
-
How to pass the data from web dynpro to workflow.
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayHi
you can use function module
data ls_input_container TYPE swr_cont.
data lt_input_container TYPE TABLE OF swr_cont.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = ptask
IMPORTING
return_code = lv_return_code
new_status = lv_new_status
TABLES
input_container = pinput_container
message_lines = lt_message_lines
message_struct = lt_message_struct.
where you pass the data in imnternal table "pinput_container" as
ls_input_container-element = 'KUNNR'.
ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'CLUSER'.
ls_input_container-value = lv_cluser.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'BUKRS'.
ls_input_container-value = lv_bukrs. " youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VKORG'.
ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VTWEG'.
ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'SPART'.
ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
*Also Forgot to mention where ptask is your workflow ID *
Regards,
Arvind
Edited by: Arvind Patel on May 14, 2010 7:38 AM -
How to pass the data from wa_itab to fieldcatlog?
how to pass the data from wa_itab to fieldcatlog?
Your question doesn't appear to be Web Dynpro ABAP related. Please only post questions in this forum if they are directly Web Dynpro ABAP related. There are several other more general ABAP related forums.
-
How to select data from a table using a date field in the where condition?
How to select data from a table using a date field in the where condition?
For eg:
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = '31129999'.
thanks.Hi Ramesh,
Specify the date format as YYYYMMDD in where condition.
Dates are internally stored in SAP as YYYYMMDD only.
Change your date format in WHERE condition as follows.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = <b>'99991231'.</b>
I doubt check your data base table EQUK on this date for the existince of data.
Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and <b> bdatu <= '99991231'.</b>
Thanks,
Vinay
Thanks,
Vinay
Maybe you are looking for
-
Hey All, I have an HP Officejet Pro 7680 and have installed the hplip drivers. I have added myself to LP, SYS, ADMIN, and some other groups but when I try to add the printer via hp-toolbox, it says it can't communicate with the printer, however, it d
-
Change canvas size in Final Cut Express?
I completed an animation in FCE before I realized that I did something foolish: My animation frames are shot in HD (1920x1080), but I failed to set my canvas size, which is NTSC. Now, when I export my animation, the video size is distorted. Is there
-
Dynamic message with Alert popup window?
I'm using the simplest form of Alert popup window. Is there a way I can put a dynamic alert message in the window? For example, the Alert shows the "XYZ" at beginning, and then change to "ABC" by an event before the OK button is clicked.
-
i am in the middle of creating a website and i currently have registration and login page that links to a database and have all the relevant record sets and server behaviours. I would like to arrange it so that when a user logs in they get sent to th
-
BB PlayBook Error. Need help
I am running into issues with connecting my BB PB to my desktop manager. Every time I try to connect it to either back it up or to gain access to the storage I get this error: "Blackberry Desktop Software cannot communicate with the connected device"