cancel
Showing results for 
Search instead for 
Did you mean: 

Export to memory Issue

Former Member
0 Kudos

I have the following code in ABAP Report i want use it in WDA How?

DATA W_CONT TYPE C.

IMPORT W_CONT TO W_CONT FROM MEMORY ID 'CON'.

IF W_CONT IS INITIAL.

W_CONT = 'X'.

EXPORT W_CONT TO MEMORY ID 'CON'.

*-------

*-----

*-----

ENDIF.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ali,

You can do this in the ASSISTANCE class that linked to your WebDynpro Component. Just declare some method in your ASSISTANCE class that has your coding , then from webdynpro call the exposed method.

example

Method Memread
DATA W_CONT TYPE C.
IMPORT W_CONT TO W_CONT FROM MEMORY ID 'CON'.
IF W_CONT IS INITIAL.
W_CONT = 'X'.
EXPORT W_CONT TO MEMORY ID 'CON'.

*-------
*-----
*-----

ENDIF.

endmethod

wd_assist->memread( ).

Greetings

Prashant

Edited by: Prashant on Feb 16, 2009 1:20 PM

Answers (0)