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

Problemas withj MIGO

Im calling the transaction MIGO from another transaccion call ZMIGOCR.

I do the folowing:

SET PARAMETER ID 'ZU1' FIELD valor .

CALL TRANSACCTION 'MIGO'.

Then, from an function exit of the MIGO, y want to get the value of ZU1 with this

GET PARAMETER ID 'ZU1' FIELD valor.

But allways is empty the field VALOR.

Why MIGO cleans memory ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2005 at 06:47 PM

    I tried to do

    data: p_pasa like lfa1-lifnr.

    p_pasa = lfa1-lifnr.

    EXPORT p_pasa TO MEMORY ID 'MY VALOR MEMORIZED'.

    CALL TRANSACCION

    from function exit inside MIGO:

    data: p_pasa like lfa1-lifnr.

    IMPORT p_pasa FROM MEMORY ID 'MY VALOR MEMORIZED'.

    but it doesnot work !

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Cesar,

      this is an extract of the ABAP on-line manual:

      <i>If you call a transaction, an executable program, or a dialog module in call mode ( CALL TRANSACTION, SUBMIT, CALL DIALOG), the ABAP memory is retained, even over several call levels. The called transaction can import the data from ABAP memory using IMPORT ... FROM MEMORY. Each new EXPORT ... TO MEMORY overwrites the old data in ABAP memory. You cannot therefore append to data already in the ABAP memory.

      When you leave the lowest level of the call chain, the ABAP memory is released.</i>

      Try with an extended keywords like this:

      <b>EXPORT lfa1-lifnr TO MEMORY ID Z01.</b>

      and then

      <b>IMPORT lfa1-lifnr TO p_pasa FROM MEMORY ID Z01.</b>

      be aware that memory id name should not be between upper comma ''.

      Let me know! Good luck,

      Stefano

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2005 at 03:44 PM

    Hi Cesar,

    If you want to transfer the value simply use the following:

    EXPORT valor TO MEMORY ID 'MY VALOR MEMORIZED'.

    ...

    CALL TRANSACTION ...

    ...

    IMPORT valor FROM MEMORY ID 'MY VALOR MEMORIZED'.

    ...

    FREE MEMORY ID 'MY VALOR MEMORIZED'.

    This will solve your problem

    In order to answer your exact question (Why MIGO clears memory) we need to know how the field valor was defined.

    Regards,

    Rob.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2005 at 03:45 PM

    Hi Cesar,

    try with:

    <b>
    export valor to memory-id 'ZU1'.
    </b>

    and

    <b>
    import valor from memory-id 'ZU1'.
    </b>

    Remember to define valor in the same way in each programs.

    Let me know if it works.

    Hi,

    Stefano

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 04, 2005 at 09:40 AM

    Hi Cesar,

    there seems to be a new memory handling when starting new tasks (/transactions).

    But you can use memory on application server level:

    EXPORT p_pasa TO SHARED MEMORY indx(z1) ID sy-uname.

    IMPORT p_pasa FROM SHARED MEMORY indx(z1) ID sy-uname.

    Since you are using global memory, your ID should be something dynamical. Maybe session number (sy-modno) is identical, too.

    BR,

    Christian

    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.