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 N
Hey 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.
Similar Messages
-
How To Replace the column data of one table to another table
Currently I'm Using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production.
My Sample Data is,
create table emp1(ename varchar2(20),deptno number);
create table emp2(ename varchar2(20),deptno number);
emp1 Table Data:
ename deptno
Surendra 120
Chandra 180
Ram 190
Raj 170
emp2Table Sample Data:
ename deptno
xx 121
yy 181
zz 191
hh 171
So, My requirement is ,
How to repalce the ename data of emp1 table into ename of emp2 table .
My Requred OutPut like:
select * from emp2;
ename deptno
Surendra 121
Chandra 181
Ram 191
Raj 171
Note:-This is Only Sample data, Actually ,my table haiving more than 1mollions of records.So Performence wise the Query Or Procedure sholud be good.
Please Help me on this !!
Thanks in Adv!!this ?
with t as
select 'Surendra' ename,120 deptno from dual
union all
select 'Chandra' ename,180 deptno from dual
union all
select 'Ram' ename,190 deptno from dual
union all
select 'Raj' ename,170 deptno from dual
),t1 as
select 'xx' ename,121 deptno from dual
union all
select 'yy' ename,181 deptno from dual
union all
select 'zz' ename,191 deptno from dual
union all
select 'hh' ename,171 deptno from dual
),t3 as
select ename,deptno+1 deptno from t
select t3.ename,t1.deptno from t1,t3 where t1.deptno=t3.deptno;
ENAME DEPTNO
Surendra 121
Chandra 181
Ram 191
Raj 171 -
How to insert the select query result into table?
How to insert the select query result into table?
SELECT top 20 creation_time
,last_execution_time
,total_physical_reads
,total_logical_reads
,total_logical_writes
, execution_count
, total_worker_time
, total_elapsed_time
, total_elapsed_time / execution_count avg_elapsed_time
,SUBSTRING(st.text, (qs.statement_start_offset/2) + 1,
((CASE statement_end_offset
WHEN -1 THEN DATALENGTH(st.text)
ELSE qs.statement_end_offset END
- qs.statement_start_offset)/2) + 1) AS statement_text
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st
ORDER BY total_elapsed_time / execution_count DESC;
Thanks,
Tirumala1. SELECT INTO
Below method will create table when data is inserted from one table to another table. Its useful when you need exactly same datatype as source table.
Use AdventureWorks2008R2;
Go
---Insert data using SELECT INTO
SELECT AddressLine1, City
INTO BothellAddresses
FROM Person.Address
where City = 'Bothell';
GO
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
2. INSERT INTO SELECT
Below method will need table to be created prior to inserting data. Its really useful when table is already created and you want insert data from
another table.
Use AdventureWorks2008R2;
Go
---Create Table
CREATE TABLE BothellAddresses (AddressLine1 NVARCHAR(60), City NVARCHAR(30))
---Insert into above table using SELECT
INSERT INTO BothellAddresses(AddressLine1, City)
SELECT AddressLine1, City
FROM Person.Address
where City = 'Bothell';
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
Regards,
Vishal Patel
Blog: http://vspatel.co.uk
Site: http://lehrity.com -
How to delete the duplicate data from PSA Table
Dear All,
How to delete the duplicate data from PSA Table, I have the purchase cube and I am getting the data from Item data source.
In PSA table, I found the some cancellation records for that particular records quantity would be negative for the same record value would be positive.
Due to this reason the quantity is updated to target but the values would summarized and got the summarized value of all normal and cancellation .
Please let me know the solution how to delete the data while updating to the target.
Thanks
Regards,
SaiHi,
in deleting the records in PSA table difficult and how many you will the delete.
you can achieve the different ways.
1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
3.you can restrict the cancellation records at query level.
Thanks,
Phani. -
How to retrive the deleted data in Z table
Hi Gyes,
How to retrive the deleted data in Z table.
Thanks & Regards,
SureshHello Suresh
If you have not activated the technical setting "Log data changes" in the definition of your z-table (which is unlikely) then there will be no change documents available.
If you have downloaded your z-table entries sometimes you could use these data for recovery.
Otherwise your last change is to ask your <b>basis team</b> when the last backup has been made.
Regards
Uwe -
How to pass the selected table row data from popup to source view
Hi ,
I have requirement of passing the data from popup view to source. , searching some data in popup view and displaying in table,
Like i am passing some input and click search button will display the data in table, when select any of the row in the table and click on the another button , i should be able to pass the select row to the source view and also should close the popup.
When i implement , In the popup windiw, when i enter the customer no, and click on search button, it is closing the popup itslef. not able to see the data in popup.
Can u tell me what is that soultion.
Regards
VijayHi Harsimran
Thanks for the reply,
1) Source view
In "Source View" i have input field called Customer_no. But, the end user will not have any idea , what customer no to enter. so i am searching the customer no in the popup view.
1) Customer_no( This is an inputfiled , to get the customer no from the popup view)
2) Get Customer NO( This is a button to call the popup view)
"Get Customer NO" This button action will open the popup view.
In this popup, i have
1) Input field (To enter the search term)
2) Search (To seach the customer no based on the search term)
3) Table ( To display the search data)
4) Button in Table tool bar called "Select" .( To close the popup view after selected the required data in the table to pass it back to the source view).
so in the popup view what happening is, when i click on the search button itself , it is closing the popupview by transfering the first row of the tbale ,with out select the required row in the table.
i need to close the window after click on the "Select" button in the toolbar , after selected the required row data to trasfer in the table.
Can u pelase tell me what are the modifcations i need to do it.
Regards
Vijay -
How to pass the uwl data in BPM to other portal?
Hi,gurus,
I have two questions about BPM?
1. I want to pass the UWL data in BPM to other portal (BEA Websphere portal),how to do that?If websphere portal offered a method to me,how can I pass the parameter to that method?At first,we want to use the SAP EP uwl,and display the uwl in BEA portal.But at last,they want to create some tables in BEA and offer a method to CE BPM. So how to do that?
2.How to call ecc workflow in BPM?And how to call BPM in ECC workflow?
Thanks in advance.Any help will be appreciated!Hi,
Regarding your qustion on calling SAP Busines Workflow from BPM and vice versa, I think directly it is not possible to give a call. You can invoke outside functionality only if you can expose it as a Web Service which can be used as an automated activity or in a Human Task with custom code.
Hope this help!!
Regards,
Arafat -
How to pass the selected Pernr from Portal to WDA iview dynamically ?
Hi ,
How we can pass the selected Pernr from portal page to the webdynpro application dynamically?
Ex:
If a manager select a employee id of an employee then it should display all the related document regarding the employee in the ivew.
For that we need to pass the employee id(Pernr) to the iview.How it is possible.
Thanks,
DeepikaHi Deepika,
Try using portal events. You will have to register and handle the required portal event in your WDA application.
[Portal Events Help|http://help.sap.com/saphelp_nw70/helpdata/EN/03/0048413e466e24e10000000a155106/frameset.htm]
In this link, navigate to Integration->portal integration->Portal Events.
Also go through some sample applications:
WDR_TEST_PORTAL_EVENT
Regards,
Reema. -
To pass the selected data to a variable from the drop down list in abap wd
Hi,
I have already created a drop down list and populated it with data from table by using the node and linking it with the internal table. Now I need to know which element is selected so based on that I need to perform some function. eg. based on the selected data , i need to populate the next drop down list.
A demo code will be really helpful.
Thanks and Regards
TenzinHi,
On selcting the value from the drop down, we have one event ONSELECT.
Write the code in this event.
Get the attribute value to lV_xxxxxx using get attribute.
then using that you can fill the next DDBK attribute.
method wddoinit .
data:
lo_nd_spfli type ref to if_wd_context_node,
lo_el_spfli type ref to if_wd_context_element,
ls_spfli type wd_this->element_spfli.
data:
lv_carrid LIKE ls_sflight-carrid,
itab_carrid type wd_this->elements_spfli,
wa_carrid type wd_this->element_spfli,
lo_nodeinfo_spfli type ref to if_wd_context_node_info,
lt_value_set type wdy_key_value_table,
ls_value_set type wdy_key_value.
lo_nd_spfli = wd_context->get_child_node( name = wd_this->wdctx_spfli ).
lo_nodeinfo_spfli = lo_nd_spfli->get_node_info( ).
select carrid
from spfli
into corresponding fields of table itab_carrid.
if sy-subrc = 0.
sort itab_carrid by carrid.
delete adjacent duplicates from itab_carrid comparing carrid.
endif.
loop at itab_carrid into wa_carrid.
ls_value_set-key = wa_carrid-carrid.
ls_value_set-value = wa_carrid-carrid.
append ls_value_set to lt_value_set.
endloop.
lo_nodeinfo_spfli->set_attribute_value_set( name = 'CARRID'
value_set = lt_value_set ).
endmethod.
in the event of first DDBK, write the select statement wsing where condition of lv_XXX.
and append the record as above.
Regards,
sarath -
REUSE_ALV_GRID_DISPLAY , how to pass the 'tick' button to internal table
hi all i have coded:
DATA: BEGIN OF itab OCCURS 0,
vbeln LIKE vbak-vbeln,
posnr LIKE vbap-posnr,
chk(1),
END OF itab.
SELECT vbeln
posnr
FROM vbap
UP TO 20 ROWS
INTO TABLE itab.
x_fieldcat-fieldname = 'CHK'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 1.
x_fieldcat-input = 'X'.
x_fieldcat-edit = 'X'.
x_fieldcat-checkbox = 'X'.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'VBELN'.
x_fieldcat-seltext_l = 'VBELN'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 2.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'POSNR'.
x_fieldcat-seltext_l = 'POSNR'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
l_layout-window_titlebar = 'Popup window'.
x_events-name = slis_ev_end_of_page.
x_events-form = 'END_OF_PAGE'.
APPEND x_events TO it_events.
CLEAR x_events .
x_events-name = slis_ev_top_of_page.
x_events-form = 'TOP_OF_PAGE'.
APPEND x_events TO it_events.
CLEAR x_events .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = l_layout
i_callback_pf_status_set = 'STATUS'
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
it_events = it_events
I_SCREEN_START_COLUMN = 10
I_SCREEN_START_LINE = 1
I_SCREEN_END_COLUMN = 50
I_SCREEN_END_LINE = 20
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
itab-chk is a check button, after execute for the second time, i need to get this ticked button to perform upload transaction..how to pass the ticked button inside itab ?just loop at itab and pass X to chk
loop at itab into wa_itab.
wa_itab-chk = 'X'.
modify itab from wa_itab.
endloop. -
How to pass multiple selected values of a table to RFC
Hi all,
My scenerio is that user selects multiple rows and click a button. i want to pass a unique id of the row to rfc.
means there are userid is unique in the table.
i want to paas the userids of all the selected rows to rfc.
Can any one help me to implement that??
regards
AnoopHi
In the context view the properties of the model node for which you have to pass the table data.
In the properties you will find a property called Structure from where you can get the structure name..in my example scenario the structre name is
Zdp_Str_Shopping_Cart
After adding all the datas to the model node, finally add that instance to the root node....
You want to pass only the selected data in the table right, for that refer the looping concept suggested by of Ayyapparaj KV
Zdp_Str_Shopping_Cart shoppingCart;
for(int i=0;i<wdContext.nodeChnIt_Shopping_Cart().size();i++)
shoppingCart = new Zdp_Str_Shopping_Cart();
shoppingCart.setEquipment_No(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getEquipment_No());
shoppingCart.setIbase(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getIbase());
shoppingCart.setKbetr(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getKbetr());
shoppingCart.setMaktx(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getMaktx());
shoppingCart.setMatnr(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getMatnr());
shoppingCart.setQuantity(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getQuantity());
shoppingCart.setSerial_No(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getSerial_No());
shoppingCart.setUnit(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getUnit());
shoppingCart.setUnit_Of_Wt(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getUnit_Of_Wt());
shoppingCart.setWaers(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getWaers());
shoppingCart.setWeight(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getWeight());
createProductOrder.addIt_Shopping_Cart(shoppingCart);
wdContext.nodeZdp_Bapi_Create_Product_Order_Input().bind(createProductOrder);
Let me know whether you got an idea and your problem get solved......
Regards
Chandran S -
How to highlight the selected value in a table
Hi All,
I have list of roles in a table like admin,dba...etc.
i will select the current selected role using
Stgin role =wdCotext.currentElement().getRole();
After getting the role i bind this value in context.
now my requiremnet is i will navigate to other table view containing all roles like admin,dba,networkadmin .
I have to highlight the selected role in previous table to new table containing the all the roles.
means selected role should be highlight in a next table view list of roles.
please help.Hi mohammad,
To achieve this functionality, use another integer variable to store the index of the currently selected element in the first view. Pass this variable's value to the next view (either as plug parameter or throgh mapping) and set the Lead selection for the table as this index in the second view.
In the first View ....
int n = wdContext.current<your_node>Element().index()
pass this value from first view to second view.
In the second view
wdContext.node<your_node>().setLeadSelection(n)
Hope this helps,
Best Regards,
Nibu.
Message was edited by: Nibu Wilson -
How to pass the contents of an internal table to the IDoc FIDCC2?
Hi,
I have an internal table. Using its contents, I have to create an Idoc and do GL posting.
I have to use FIDCC2 Idoc and the function module IDOC_INPUT_FIDCC2.
Can u please let me know how to pass the contents of the internal table into the idoc FIDCC2 and do the GL posting?
Regards,
Balaji. RHi balaji,
use function IDOC_INBOUND_FROM_FILE. This will do half the process.
Documentation is missing, but program RSEINB00 explains something,
also some links
[http://help.sap.com/saphelp_nw70/helpdata/EN/dc/6b7f1543d711d1893e0000e8323c4f/frameset.htm]
[RSEINB00 does not work in background]
[RSEINB00 flat file to idoc uploading in XI]
[Loading flat idoc via report RSEINB00 into integration server fails]
Hope it helps.
Regards,
Clemens -
How to save the selected rows from Advance table into database
Hi
I have requirement like..
In custom page , Manager Search the Candidates and selects the candidate ROWS from advance table.
The reqt is how to save the selected multiple rows into the database.hi Reetesh,
In Custom page
Supoose the Recruiter Search is for Position Finance Mangager , it retrieves 100 rows , out of which Recruiter select 10 rows .
So in Such scenario how to save this 10 rows against Recruiter
, i mean , Is i need to create custom table, to save Recruiter , these selected 10 rows.
I hope u understand my question -
How to change the unload priority of a table in SAP HANA?
Hi Experts,
How we can change the unload priority of a table in SAP HANA? I know by default the priority is 5. Is there any way so that we can check the unload priority of a particular table in HANA studio? Is there any SQL statement to get the same?
Please suggest.
Thanks in advance.
Regards,
ArindamHello Arindam,
Just for the future:
ALTER TABLE - SAP HANA SQL and System Views Reference - SAP Library
To check before hand:
select
table_name, unload_priority from SYS.TABLES
where table_name = '<Your Table>'
To Make the change:
alter table <Your Table>unload priority <Priority You Want>.
As you have asked in the BW on HANA section I assume you're on BW and you could also have checked this with tx SE14.
Hopefully the above gives you everything you need.
Kind Regards,
Amerjit
Maybe you are looking for
-
In iCal, I can't locate REMINDERS panel (with Mountain Lion)
I just installed Mountain Lion and I am having trouble finding where to turn on "reminders". The help menu says to go to View and choose "show reminders" but I don't have that option in my view menu. My current iCal version is 6.0.
-
Help with iTunes/iOS Album Sort
We all know the Music.app since iOS 7 (for most of us) as been a disaster. Due to the expanded view of the albums for artist, it's a PITA for people whom have artist with even 3 or 4 plus albums. For me, I love E-40 and have 16 of his albums. My conc
-
Determining output type inside the IDOC processing FM
Hi, When sales order is created, ZXXX is the output type triggered which invokes the function module (FM) IDOC_OUTPUT_ORDRSP to send the IDOC. My question is how do we know which output type got triggered the execution inside the FM? My requirement i
-
Is there any way we can give Tool Tip Like help in Reports built in OBI EE. Also can we apply this tool tip at cell level or data level.
-
Hi All, Environment: SharePoint 2010 with SP2. Issue: One of the Content databases size in our farm shows 200 GB as used. There are 25 site collections in the DB and we counted the total storage used of all site collections in that Content DB and is