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

EXPORT/IMPORT TO MEMORY ID

Former Member
0 Likes
1,083

Hi,

I'm using FM EXIT_SAPLV51S_001.(USER EXIT)

In the row :

EXPORT sy-uzeit TO MEMORY ID 'YTIME'.

I got sy-subrc = 4.

Why??? What is the problem?

Thanks

DIANA

Hi,

I'm using FM EXIT_SAPLV51S_001.(USER EXIT)

In the row :

EXPORT sy-uzeit TO MEMORY ID 'YTIME'.

I got sy-subrc = 4.

Why??? What is the problem?

Thanks

DIANA

8 REPLIES 8
Read only

Former Member
0 Likes
1,027

Hi Diana,

Instead copy SY-UZEIT into a variable of type SY_UZEIT and then perfrom the EXPORT command.

It is not adviasable to use these system variables directly.

Cheers,

YJR.

Read only

0 Likes
1,027

YJR ,

I already tried this one.

lc_uzeit = sy-uzeit.

EXPORT lc_uzeit TO MEMORY ID 'YTIME'.

But the result is the same.

Thanks

DIANA

Read only

Former Member
0 Likes
1,027

Hi Diana,

Do this way ...

data v_var type sy-uzeit.

v_var = sy-uzeit.

Now use v_var variable in EXPORT parameters .

Regards,

Santosh

Read only

0 Likes
1,027

check table TPARA .there is entry of id or not if not make entry of id.

for this go to transaction SM30.

Read only

Former Member
0 Likes
1,027

Hi,

Take a varible and export the same.See below example.

data time like sy-uzeit.

EXPORT time TO MEMORY ID 'YTIME'.

it works fine in this case.

Regards,

Ram Mohan

Read only

Former Member
0 Likes
1,027

Try this one. It works for me.

REPORT ZTEST.

data v_var type sy-uzeit.

v_var = sy-uzeit.

export v_var to memory id 'YTIME'.

write: 'Hello'.

Read only

Former Member
0 Likes
1,027

Hi,

try this in user exit.

data: v_time type sy-uzeit.

<b>GET TIME.</b>
V_time = sy-uzeit.
EXPORT v_time TO MEMORY ID 'YTIME'.

GET TIME is must.

Regards

vijay

Read only

Former Member
0 Likes
1,027

Hi ,

Pls try this code

data: var type sy-uzeit.

var = sy-uzeit.

EXPORT var TO MEMORY ID 'TIME'.

write: var,sy-subrc,sy-uzeit.

clear var.

IMPORT var FROM MEMORY ID 'TIME'.

write:/ var,sy-subrc,sy-uzeit.

(execute this sample code in se38),it is woking for me..pls try this if it is useful for u.

Regards,

Ramesh.