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

Extract from ALV List

Former Member
0 Likes
1,114

Hello All,

Please suggest me is there any way to extract the data from ALV LIST.

For example:

SUBMIT XXX WITH SELECTION-TABLE rspar_tab AND RETURN.

This XXX program gives the result in alv list.Once it returns back to original program i want to fetch the results.

Thanks and Best Regards,

Vinoth

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
910

Hi Vinoth...

SUBMIT XXX WITH SELECTION-TABLE rspar_tab AND RETURN.

Whether ur submit program (XXX) is standard or Zreport?

1, If it is standard means u need to copy the program in to ZXXX..

And now change the ZXXX.

Fetch where the final Internal table is populating for output display..

There u need to Export that internal table ..

eg:

export g_t_belege1 to memory id 'ZSARA'.

export bestand1 to memory id 'ZSARA1'.

1,g_t_belege1

2,bestand1

these are internal tables in the Submit program (ZXXX)..

Now u may come to ur original program..

and import this..

import g_t_belege1 from memory id 'ZSARA'.

import bestand1 from memory id 'ZSARA1'.

g_t_belege1,bestand1 these internal table structures sholud be same as Submit program structures..

Else.. it may give Dump ..

Now u may process the internal tables g_t_belege1,bestand1 by ur wish..

*************************************************************************************

2,

If it Zreport means no need to copy ..

Just export into one id and import in ur original program.

Hope it will helps..

Reward if it is useful means.

Regards

Bala..

Message was edited by:

S Balasubramanian

Hello All,

Please suggest me is there any way to extract the data from ALV LIST.

For example:

SUBMIT XXX WITH SELECTION-TABLE rspar_tab AND RETURN.

This XXX program gives the result in alv list.Once it returns back to original program i want to fetch the results.

Thanks and Best Regards,

Vinoth

3 REPLIES 3
Read only

Former Member
0 Likes
911

Hi Vinoth...

SUBMIT XXX WITH SELECTION-TABLE rspar_tab AND RETURN.

Whether ur submit program (XXX) is standard or Zreport?

1, If it is standard means u need to copy the program in to ZXXX..

And now change the ZXXX.

Fetch where the final Internal table is populating for output display..

There u need to Export that internal table ..

eg:

export g_t_belege1 to memory id 'ZSARA'.

export bestand1 to memory id 'ZSARA1'.

1,g_t_belege1

2,bestand1

these are internal tables in the Submit program (ZXXX)..

Now u may come to ur original program..

and import this..

import g_t_belege1 from memory id 'ZSARA'.

import bestand1 from memory id 'ZSARA1'.

g_t_belege1,bestand1 these internal table structures sholud be same as Submit program structures..

Else.. it may give Dump ..

Now u may process the internal tables g_t_belege1,bestand1 by ur wish..

*************************************************************************************

2,

If it Zreport means no need to copy ..

Just export into one id and import in ur original program.

Hope it will helps..

Reward if it is useful means.

Regards

Bala..

Message was edited by:

S Balasubramanian

Read only

0 Likes
910

Hi,

My xxx is standard program ( RCRA0010 ).In this case how to get values to my wrapper program .Could you please suggest me the way?

Thanks Best Regards,

Vinoth

Read only

Former Member
0 Likes
910

Hi Vinoth,

you may write


SUBMIT xxx WITH SELECTION-TABLE rspar_tab
  EXPORTING LIST TO MEMORY
  AND RETURN.

... and then use function module 'LIST_FROM_MEMORY' to store the resulting ALV list into an internal table. Then you may treat the contents of that internal table as usual.

I hope it helps. Best regards,

Alvaro