Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Submit issue

Former Member
0 Likes
1,389

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,051

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,052

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.

Read only

Former Member
0 Likes
1,051

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

Read only

0 Likes
1,051

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

Read only

Former Member
0 Likes
1,051

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

Read only

Former Member
0 Likes
1,051

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.

Read only

Former Member
0 Likes
1,051

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,051

check this link

might be usefull.

link: [;