2013 Aug 03 5:10 AM
hi expert
i have big problem on exportand import one char .
in mymethod u have one char with name
DATA : ANSWER1(1) TYPE C.
ANSWER1 = 'J' .
EXPORT ZANSWER FROM ANSWER1 TO MEMORY ID 'ABC'.
in my program i need this value for use .so in mycodei write:
DATA : ZANSWER(1) TYPE C VALUE 'D' .
IMPORT ANSWER1 TO ZANSWER FROM memory id 'ABC'.
but in my program any value doesnt come after import
pleasehelp mewhat'stheproblem
sorry mr
my code is too long .i use this export in method and so i need use this format because of object oriented format.
2013 Aug 03 9:15 AM
Hi maryam,
Remove value 'D'. and try
try like this
DATA : answer1(1) TYPE c.
DATA : ZANSWER(1) TYPE C VALUE 'D' .
answer1 = 'J' .
EXPORT answer1 TO MEMORY ID 'ABC'.
IMPORT ANSWER1 TO ZANSWER FROM memory id 'ABC'.
WRITE : / zanswer.
are you trying to get default value 'D' in case of not value in answer1?
2013 Aug 03 2:35 PM
hi mr ramesh.
i try but nothing happened.i use export in one method for event save.
and because of it i should use this format for export.because i need object oriented format.
thanks
2013 Aug 03 10:40 AM
s/m Maryam,
can you post the full program.
Is the method of global class ???
Regards
2013 Aug 03 2:39 PM
sorry mr
my code is too long .i use this export in method and so i need use this format because of object oriented format.
2013 Aug 03 10:46 AM
you don't need to write
IMPORT ANSWER1 TO ZANSWER FROM memory id 'ABC'.
I think all you need to write is :
IMPORT ZANSWER FROM MEMORY ID 'ABC' .
2013 Aug 03 2:36 PM
hi mr
i need to use export in method so i need to use this format for object oriented
2013 Aug 03 11:37 AM
2013 Aug 03 12:53 PM
REPORT ZPROG1.
data: it_lfa1prog1 type STANDARD TABLE OF lfa1,
wa_lfa1 type lfa1.
************************************************************************
START-OF-SELECTION.
*Clear memory id
FREE MEMORY ID sy-uname.
*Execute Program 2
submit ZPROG2 and return.
************************************************************************
END-of-SELECTION.
*Display data
LOOP AT it_lfa1prog1 INTO WA_LFA1.
write:/ WA_LFA1-LIFNR.
ENDLOOP.
Program 2 - Exports data to memory
&---------------------------------------------------------------------*
*& Report ZPROG2
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT ZPROG2.
data: it_lfa1prog2 type STANDARD TABLE OF lfa1.
************************************************************************
START-OF-SELECTION.
* Select data
select *
UP TO 10 rows
from lfa1
into table it_lfa1prog2.
EXPORT it_lfa1prog2 to MEMORY ID sy-uname.
2013 Aug 03 2:13 PM
Hi,
Instead of using ' IMPORT ANSWER1 TO ZANSWER FROM memory id 'ABC'. '
Try ' IMPORT ZANSWER TO ZANSWER FROM memory id 'ABC'. '
Regards
Amit
2013 Aug 03 2:38 PM
hi mr
i need use this format because i use export in method and i need use object oriented
2013 Aug 04 8:01 AM
2013 Aug 05 4:11 PM
hi expert i use module in screen 1400 of ca02 and pass it to my program.
my problem solved.
best regards.
2013 Aug 06 6:35 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |