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

Question on ABAP.

Former Member
0 Likes
821

could you get me the two segments used to exchange data between programs using ABAP memory?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
778

HI,

see this example.

program1.

REPORT ZEXAMPLE10.

tables:mara.

select-options:matnr for mara-matnr.

submit zexample11 with i_matnr in matnr and return.

program2.

REPORT ZEXAMPLE11.

tables:mara.

select-options:i_matnr for mara-matnr.

select * from mara where matnr in i_matnr.

write:/ mara-matnr.

endselect.

check this code this will b helpful.

Regards,

Kumar.

could you get me the two segments used to exchange data between programs using ABAP memory?

6 REPLIES 6
Read only

Former Member
0 Likes
778

hi

export to memory id <>

import from memory id <>

Read only

Former Member
0 Likes
778

Hi Dinesh,

ABAP memory is local memory and the 2 parameters are :

IMPORT and EXPORT.

SAP memory is global memory and the 2 parametsr in global memory are

SET PARAMETER ID ...

and

GET PARAMETER ID

revert back if any issues..

Reward points if helpful

Regards

Naveen

Read only

Former Member
0 Likes
778

ABAP memory is for passinng the information between screens in the single session but SAP memnoty can be used to pass between different scessions.

ABAP memory is local memory and the 2 parameters are :

IMPORT and EXPORT.

SAP memory is global memory and the 2 parametsr in global memory are

SET PARAMETER ID and GET PARAMETER ID

Warm Regards,

Vijay

Read only

Former Member
0 Likes
779

HI,

see this example.

program1.

REPORT ZEXAMPLE10.

tables:mara.

select-options:matnr for mara-matnr.

submit zexample11 with i_matnr in matnr and return.

program2.

REPORT ZEXAMPLE11.

tables:mara.

select-options:i_matnr for mara-matnr.

select * from mara where matnr in i_matnr.

write:/ mara-matnr.

endselect.

check this code this will b helpful.

Regards,

Kumar.

Read only

0 Likes
778

Ooops I apologize for the above post:

The following executable program is connected to the logical database F1S and calls an update transaction:

REPORT BOOKINGS NO STANDARD PAGE HEADING.

TABLES SBOOK.

START-OF-SELECTION.

WRITE: 'Select a booking',

/ '----


'.

SKIP.

GET SBOOK.

WRITE: SBOOK-CARRID, SBOOK-CONNID,

SBOOK-FLDATE, SBOOK-BOOKID.

HIDE: SBOOK-CARRID, SBOOK-CONNID,

SBOOK-FLDATE, SBOOK-BOOKID.

AT LINE-SELECTION.

SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,

'CON' FIELD SBOOK-CONNID,

'DAY' FIELD SBOOK-FLDATE,

'BOK' FIELD SBOOK-BOOKID.

CALL TRANSACTION 'BOOK'.

The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line.

If the user selects a line of booking data by double-clicking, the system triggers the AT LINE-SELECTION event and takes the data stored in the HIDE area to fill them into the SPA/GPA parameters of the initial screen of the transaction. Then it calls the transaction. Since you do not suppress the initial screen using AND SKIP FIRST SCREEN, the initial screen may appear as follows:

If you would use the AND SKIP FIRST SCREEN option with the CALL TRANSACTION statement, the second screen would appear immediately, since all obligatory fields of the first screen are filled.

regardsm

kumar.

Read only

Former Member
0 Likes
778

Thanks alot to

Premalatha G

Naveen Deva

Vijaya Bhaskaru...

virgo rhyme for your help,

regards,

Dineshbabu.