‎2009 Jun 02 9:12 AM
Hi all,
I have usedhte Submit statement for the report RFITEMAP (Vendor line item) and get the entries in the Memory.
SUBMIT rfitemap EXPORTING LIST TO MEMORY
USING SELECTION-SET p_vari
AND RETURN.
In the report SAP has used one function module 'FI_ITEMS_DISPLAY' for displaying the Line items,How do i get those entries in my Submitting custom report.I have tried Memory options and Perform statement oprions,but cant able to retireve the values.can anybody explain me the way to retrieve the table values ( it_pos ).
call function 'FI_ITEMS_DISPLAY'
exporting
caller_repid = c_repid_ap
acctype = c_koart_ap
x_change = x_change
i_u_save = gd_alvsave
is_u_variant = gs_variant
it_u_fieldcat = gt_fieldcat[]
it_kontab = it_accts[]
it_slbtab = it_comps[]
it_t001 = it_h_t001[]
it_lfa1 = it_h_lfa1[]
it_lfb1 = it_h_lfb1[]
x_grid = x_grid
x_inet = pa_inet
tables
it_items = it_pos.
Thanks
Raja
‎2009 Jun 02 9:17 AM
Hello,
Try with IMPORT and EXPORT keywords.
First use Export keywords to send the data to memory id and then use Import statement to get the data in submit program.
‎2009 Jun 02 9:17 AM
Hello,
Try with IMPORT and EXPORT keywords.
First use Export keywords to send the data to memory id and then use Import statement to get the data in submit program.
‎2009 Jun 02 9:24 AM
Hi,
Can you try using Field symbols to access the Internal table in your called program.
FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE
DATA: lv_fp_name(XX) TYPE c VALUE '(program name)table name[]'.
data: t_tablename TYPE YY.
ASSIGN (fp_name) TO <fs_table>
IF sy-subrc IS INITIAL.
MOVE <fs_table> TO t_Tablename
ENDIF.
Note:
XX = length depending on number of text characters in VALUE
YY = Type similar to the internal table you are accessing in another program.
This actually works for accessing program tables, variables from the programs that are getting called from the main program. Meaning in the same session.
BR/Yogesh
‎2009 Jun 04 7:32 AM
Hi Yogesh,
I have used your logic in the Custom reportafter the submit statement of standard program.But i could not able to get the table details.
As you said i think the memory details are availble within the same session only,Thats why cant able to retirve the memory details .
any other idea over this issue .
Thanks
Raj
‎2009 Jun 02 9:34 AM
Hello,
As you are transporting the list to memory, you can get the list from memory and get the required line item data.
for fetching the list from memory you can you the FM "LIST_FROM_MEMORY".
Hope this helps you.
Regards,
Sachinkumar Mehta
‎2009 Jun 02 9:34 AM
Hi,
You can make you of data cluster. For example:
1. Create a data cluster in SE11.
2. In the program where you say SUBMIT , say -
EXPORT i_tab TO DATABASE ZDATA_CLUST(AR) ID v_key.
SUBMIT Z_REPORT WITH p_werks = p_werks
WITH p_bedae = p_bedae
WITH p_versb = p_versb
WITH p_period = p_period
WITH s_dispo IN s_dispo
WITH s_mmsta IN s_mmsta
WITH p_key = v_key
AND RETURN.
3. In the report Z_REPORT, say -
IMPORT i_tab FROM DATABASE ZDATA_CLUST(ar) ID p_key.
DELETE FROM DATABASE ZDATA_CLUST(ar) ID p_key.
Regards,
Deepa.
‎2009 Jun 02 10:27 AM
Hi,
DATA: itab TYPE TABLE OF abaplist.
SUBMIT rfitemap
USING SELECTION-SET p_vari
AND RETURN EXPORTING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = itab
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'WRITE_LIST'
EXPORTING
write_only = 'X'
TABLES
listobject = itab
EXCEPTIONS
empty_list = 1
OTHERS = 2.
‎2009 Jun 04 7:39 AM