Skip to Content
author's profile photo Former Member
Former Member

EXPORT/IMPORT TO MEMORY ID

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2006 at 08:53 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2006 at 08:57 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2006 at 08:59 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2006 at 09:00 AM

    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'.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 14, 2006 at 09:14 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2006 at 01:50 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.