How to read data from idoc to internal table?
Hi
How to get data from idoc segments to internal table?
Hi
Check this ex
The following coding sample, shows how you may read a MATMAS IDoc and extract the data for the MARA and MARC segments to some internal variables and tables.
DATA: xmara LIKE mara.
DATA: tmarc LIKE marc
OCCURS 0
WITH HEADER LINE.
LOOP AT edidd.
CASE edidd-segnam.
WHEN 'E1MARAM'.
MOVE edidd-sdata TO xmara.
WHEN 'E1MARCM'.
MOVE edidd-sdata TO tmarc.
APPEND tmarc.
ENDCASE.
ENDLOOP.
now do something with xmara and tmarc.
hope this helps you...
Reward points if useful..
Regards
Sreenivas
Similar Messages
-
How to transfer data from a dynamic internal table
Hi All
I want to transfer data from a dynamic internal table<dyn_table>
to a non dynamic internal table itab which should have the same structure as <dyn_table>.
How can this be done?
Regards,
Harshit RungtaAs stated earlier this can be done only through field symbols...
You cannot create an non dynamic internal table with ANY structure...using DATA statement
If the strucutre is defined well and good...you can create an non-dynamic internal table...
If you do not know the structure then the internal table has to be dynamic...and to be generated using field symbols
DATA: lv_ref TYPE REF TO data.
FIELD-SYMBOLS: <fs_dyn_table> TYPE STANDARD TABLE.
* You create a dynamic internal table...
CREATE DATA lv_ref LIKE (your_dynamic_internal_table).
ASSIGN lv_ref->* TO <fs_dyn_table>.
Now...do the transfer.
<fs_dyn_table> = "your_dynamic_internal_Table
Hope it helps! -
How to Read records from structure to internal table
HI,
Can any body know how to read the records from structure to internal table at runtime.
please give me sample program if possible.
thanks in advance
KPif your internal table is having the same structure as the structure you are reading the values from then you can directly assign like..
internatable table work area or header line = structure.
or else if they are different assign field by field like
internal table-field1 = structure-field1.
internal table-field2 = structure-field2.
award points if it helps. -
How to pass data from list to internal table
Sir,
Please tell me how to pass data from list display to internal table. Some fields in the list display are input fields .These are added at run time and these added values should be stored in the internal tableFollow this code sample:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when '<Some user Action>'.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data
* Your internal table will have the data
endcase.
ENDFORM.
Regards,
Ravi -
In SRM How to upload data from Excel to Internal Table
Hello Experts,
As seen the Function Module 'ALSM_EXCEL_TO_INTERNAL_TABLE' does not exists in SRM.
Is there any alternative to upload the data direct from excel to Internal table using any other FM. As seach did't get any relevant FM.
Please advice..
Thanks..did u try this
TEXT_CONVERT_XLS_TO_SAP
in this manner
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_line_header = 'X'
i_tab_raw_data = lt_raw
i_filename = p_path
TABLES
i_tab_converted_data = gt_output
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
this FM works on DOI
so
SAP document about DOI:
http://help.sap.com/saphelp_nw2004s/helpdata/EN/e9/0be775408e11d1893b0000e8323c4f/frameset.htm
SAP Demo Program about DOI: SAPRDEMOEXCELINTEGRATION.
the fm you mentioned works on OLE
so you could refer,
SAP document about OLE:
http://help.sap.com/saphelp_46c/helpdata/EN/59/ae3c98488f11d189490000e829fbbd/frameset.htm
Also you can refer this post
Download of SRM Contracts in Excel - Unit of Measurement Missing
Let me know if this works ..
Regards
Manthan.
Edited by: Manthan_R on Feb 23, 2010 12:18 PM -
Oracle DB: How to read data from a corrupted database table.
Hi All,
Wanted to know if there is a way I could read data from a corrupted Oracle database table?
Are there any tools that I can use? Or does Oracle provides any mechanism to do that?
Any pointers in this regard would be helpful.
Thanks in Advance.user10600611 wrote:
Table shows inconsistent data.You are going to have to be more specific. Inconsistent in what sense? A correct data model should not allow for inconsistencies to crop up.
However, you may be able to use one of the many FLASHBACK features of Oracle to look at the table at a prior point in time before the corruption.
HTH! -
Reading data from XML to Internal table
Hi Experts,
I got a requirement to read the data fom xml to internal table.is it possible to store deep internel table data into flat internal tables?my internel table contains 4 internel table and these 4 internel table contains 2 internel tables each...can any one help me o this...
points will be rewarded...
Regards,
RakhiHi Rakhi,
* Structure to Get the Client Details as in XML format
DATA: BEGIN OF client,
BEGIN OF Personal_Details,
kunnr like kna1-kunnr,
name1 like kna1-name1,
adrnr like kna1-adrnr,
END OF Personal_Details,
BEGIN OF Address,
street like adrc-street,
city1 like adrc-city1,
END OF Address,
BEGIN OF Communication,
fax_number like adrc-fax_number,
tel_number like adrc-tel_number,
END OF Communication,
END OF client.
DATA: it_client TYPE TABLE OF client WITH HEADER LINES,
result LIKE client.
DATA: xml_string TYPE string.
* Get the Client Details into the structure to be made as an XML string
TRY.
* Convert the Structure to XML string
CALL TRANSFORMATION ('ID')
SOURCE para = it_client
RESULT XML xml_string.
* Convert the XML string to structure - result
CALL TRANSFORMATION ('ID')
SOURCE XML xml_string
RESULT para = result.
CATCH cx_st_error.
ENDTRY.
best regards,
Thangesh -
How to bring data from 3 different internal table to one
hii all,
i have 3 internal table ls_mat,which has around 20 fields,it_stpo,which has 3 fields,and it_mast,i need to bring all these 3 table data in one tabel...how do i do...plzz help...Hi ,
Does this internal table have any fields in common in all the three.
If yes , then loop ls_mat
Declare a type will all the fields and create a structure and internal table with that type (for ex lx_final and lt_final respectively)
Loop at ls_mat into lx_mat.
1.copy all the fields of lx_mat to respective lx_final.
2.read table it_stpo into lx_stpo with key field = lx_mat-field.
3.Copy all fields of lx_stpo to respective lx_final.
4. read table it_mast into lx_mast with key field = lx_mat-field.
5. copy all fields of lx_mast to respective lx_final.
6. now append lx_final to lt_final.
Endloop.
now you can get all values inside lt_final.
Regards,
sivaganesh -
How to read data from field symbol containing Table
I defined a field symbols for reading output of a BRF plus rule however since fielk symbol is of type any
I cannot read its contents
Any inputs are highly appreciated
Please see attachment explaining problemThanks a lot for your help
However It did not work for me as it started giving error incompatible types
Here is my code
constants:lv_function_id type if_fdt_types=>id value '3440B5B078B21EE3BC9EB53C42F84A45'.
data:lv_timestamp type timestamp,
lt_name_value type abap_parmbind_tab,
ls_name_value type abap_parmbind,
lr_data type ref to data,
lv_counter type i value 0,
lr_target type ref to data,
lx_fdt type ref to cx_fdt,
lo_trace type ref to if_fdt_trace,
lo_lean_trace type ref to if_fdt_lean_trace,
la_z_string type if_fdt_types=>element_text,
lv_role_name type grac_role_name,
lv_result type string.
field-symbols <la_any> type any.
field-symbols <role_name> type grac_s_od_role_detail.
field-symbols <system> type string.
types:
begin of ys_access ,
role_name type string,
system_name type string,
end of ys_access .
types:
yt_access type table of ys_access .
field-symbols: <access_item> type table,
<ls_req_access> type ys_access.
data con_name type if_fdt_types=>element_text.
data ls_any type ys_access.
* All method calls within one processing cycle calling the same function must use the same timestamp.
* For subsequent calls of the same function, we recommend to use the same timestamp for all calls.
* This is to improve the system performance.
* If you are using structures or tables without DDIC binding, you have to declare the respective types
* by yourself. Insert the according data type at the respective source code line.
* GET TIME STAMP FIELD lv_timestamp.
* Process a function and record trace data, passing context data objects via a name/value table.
* Prepare function processing:
ls_name_value-name = 'Z_STRING'.
la_z_string = 'P1'.
get reference of la_z_string into lr_data.
ls_name_value-value = lr_data.
insert ls_name_value into table lt_name_value.
* Create the data to store the result value after processing the function
* You can skip the following call, if you already have
* a variable for the result. Please replace also the parameter
* EA_RESULT in the method call CL_FDT_FUNCTION_PROCESS=>PROCESS
* with the desired variable.
cl_fdt_function_process=>get_data_object_reference( exporting iv_function_id = lv_function_id
iv_data_object = '_V_RESULT'
iv_timestamp = lv_timestamp
iv_trace_generation = abap_true
importing er_data = lr_data ).
assign lr_data->* to <la_any>.
try.
cl_fdt_function_process=>process( exporting iv_function_id = lv_function_id
iv_timestamp = lv_timestamp
iv_trace_mode = if_fdt_constants=>gc_trace_mode_lean
"iv_trace_mode = if_fdt_constants=>gc_trace_mode_lean_required
importing ea_result = <la_any>
eo_trace = lo_trace
changing ct_name_value = lt_name_value ).
lo_lean_trace ?= lo_trace.
lo_lean_trace->save( ).
catch cx_fdt into lx_fdt.
* You can check CX_FDT->MT_MESSAGE for error handling.
endtry.
* Get context values after processing:
cl_fdt_function_process=>get_context_value( exporting iv_function_id = lv_function_id
iv_trace_generation = abap_true
iv_timestamp = lv_timestamp:
iv_data_object = '3440B5B078B21EE3BC9EFF599C110ADD' "Z_STRING
importing ev_data = lv_result ). " Suggested variable: la_z_string
create data lr_target type grac_s_od_role_detail.
* assign <la_any> to <role_name>.
assign lr_target->* to <la_any>.
loop at lt_name_value into ls_name_value.
if ls_name_value-name cs 'RESULT'.
assign ls_name_value-value to <la_any>.
ls_any = ls_name_value-value .
endif.
endloop.
access_item = <la_any>.
* assign ( )<la_any> to <access_item>.
* assign component 1 of structure <la_any> to <rolename>.
* assign <la_any> to <ls_req_access>.
* lr_target = <la_any>.
* assign lr_target->* to <role_name>.
* lv_role_name = <role_name>.
lv_result = lv_result. -
How to read data from an internal table into a real table?
Hello experts,
I'm relatively new to ABAP and I'm trying to figure out how to read data from an internal table into a table that I created. I'm trying to use the RRW3_GET_QUERY_VIEW_DATA function module to read data from a multiprovider. I'm trying to read data from the e_cell_data and e_axis_data tables into a table that I've already created. Please see code below.
TABLES MULTITAB.
DATA:
query_name TYPE RSZCOMPID,
s_cubename TYPE RSINFOPROV,
t_cell_data TYPE RRWS_T_CELL,
t_axis_data TYPE RRWS_THX_AXIS_DATA,
t_axis_info TYPE RRWS_THX_AXIS_INFO,
wa_t_cell_data like line of t_cell_data,
wa_t_axis_data like line of t_axis_data,
w_corp_tab like line of t_cell_data.
s_cubename = 'CORP_MPO1'.
query_name = 'Z_corp_test'.
CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
EXPORTING
i_infoprovider = s_cubename
i_query = query_name
i_t_parameter = query_string_tab
IMPORTING
e_cell_data = t_cell_data
e_axis_data = t_axis_data
e_axis_info = t_axis_info.
If anyone has any information to help me, I would greatly appreciate it. Thanks.Hi,
<li>Once you call the function module RRW3_GET_QUERY_VIEW_DATA, lets say data is available in the corresponding tables e_cell_data e_axis_data which you have mentioned.
<li>Modify your internal table defined for other purpose, with data from e_cell_data e_axis_data like below.
LOOP AT t_cell_data INTO wa_t_cell_data.
"Get the required data from t_cell_data.
MOVE-CORRESPONDING wa_t_cell_data TO it_ur_tab.
"Modify your internal table wih data
MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
ENDLOOP.
LOOP AT t_axis_data INTO wa_t_axis_data.
"Get the required data from t_cell_data.
MOVE-CORRESPONDING wa_t_axis_data TO it_ur_tab.
"Modify your internal table wih data
MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
ENDLOOP.
Thanks
Venkat.O -
How to read data from a CLUSTER STRUCTURE not cluster table.
Hi,
how to read data from a CLUSTER STRUCTURE not cluster table.
regards,
Usha.Hello,
A structre doesnt contain data.. so u cannot read from it. U need to find out table of that structure and read data from it.
Regards,
Mansi. -
How to read data from a file that was formatted by excel?
Hi everyone, I'm familiar with java.io and the ability to read from files, can anyone tell me how to read data from a file that was formatted by excel? Or at least give me some web references so that I can learn about it?
http://jakarta.apache.org/poi/hssf/index.html
HSSF stands for Horrible Spreadsheet Format, but it still works! -
How to read data from a router by using labview
I am a beginner labview. How to read data from a router by using labview ?
What kind of data are you trying to read?
Does the router behave like a webserver that you log into? If so, search the forums for threads discussing HTML. -
How to read data from a connected modem
any one can help me? how to read data from a connected modem. The modem received real-time data from other server. The data is in text format. I can see this text when I used hyperterminal for dial up and the data is accumulated such as:
@aa1235678
@bb2135647
@cc5214367
since it is real-time data, I want to read one line each time instantly when it arrives.You need to use the Java Communications API. (http://java.sun.com/products/javacomm/index.html)
-
How to read data from a zipped MS Access file?
How to read data from a zipped MS Access file?
RPJ,
You do not need to use the Close Zip File.vi when you unzip a folder. This VI is used when you are creating a zip folder.
As for examples, I found a couple of ActiveX based MS Access examples. These programs look to be pretty basic. For more in depth example I would search Microsoft Developers Network
http://zone.ni.com/devzone/cda/epd/p/id/2188
http://zone.ni.com/devzone/cda/epd/p/id/1694
Regards,
Jon S.
National Instruments
LabVIEW R&D
Maybe you are looking for
-
Selection-screen and top-of-page in ALV
Hello experts, 1. In my selection-screen I have 2 parameters as display only. Now, how can I position/move them? SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(10) text-002 FOR
-
Taking my MacbookPro to Israel from US. Do I need any type of converter or transformer?
Taking my MacbookPro to Israel from US. Do I need any type of converter or transformer?
-
Hello, First of all, sorry for my english...(I'm french). I'd like to know if it's possible to start menu buttons to a delay: I've a video for my main menu and I don't want the buttons to appear in the 1st second play. Can I start them in a delay? An
-
OWB 9.2 for AIX ?
When can we get an actual/realistic date when OWB 9.2 will be available for AIX platform? The dates for OWB 9.2 for AIX have continually slipped Aug 2003, Sep 2003, start Nov 2003, end Nov 2003. Another date has slipped, can Oracle give us a realisti
-
Respected gurus, i have one issue in asset accounting,i.e,i have set a planned useful life for an asset ( book dep area) is 30 yrs,initially it was following slm after 10 yrs if you want to go for wdv,then what are the settings we have to do. thanks