Application Development 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: 

Use of SUBMIT

Former Member
0 Kudos

Hi .

We have 1 SAP std program and 1 Z program for asset allocation.We need to combine these report.I need the data of SAP report in Z report. These is one table ITAB_DATA in SAP report which contains all data for display ALV.I want this data in my Z program.

I WANT TO TRANSFER THE DATA OF SAP TABLE ITAB_DATA INTO MY INTERNAL TABLE WRITTEN IN Z.i THEN WANT TO MANUPULATE THIS DATA

I have written the following code.

data t_listobject like ABAPLIST occurs 0 with header line.

submit RAGITT_ALV01 via selection-screen

USING SELECTION-SET 'TEST17247'

exporting list to memory

and return.

if sy-subrc = 0.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

LISTOBJECT = t_listobject

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2

BUT DATA IN t_listobject IS IN RAW format. I want actual data. Plz suggest.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

if u want to get the Internal table data from another program then u have to use

SUBMIT program

and u have to use command IMPORT iteb_tab from Memory ID 'PBC' , and in that SAP program u have to call EXPORT of itab_tab.

Regards

Prabhu

2 REPLIES 2

Former Member
0 Kudos

Hi,

Your approach is right.

After that use Function moduel LIST_TO_ASCI

to get the data in the desired format.

Rgds,

HR

Former Member
0 Kudos

if u want to get the Internal table data from another program then u have to use

SUBMIT program

and u have to use command IMPORT iteb_tab from Memory ID 'PBC' , and in that SAP program u have to call EXPORT of itab_tab.

Regards

Prabhu