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

EXPORT / IMPORT value TYPE REF

Hi Colleagues,

I write an enhancement.

The tx creates an ALV list. My enhancement in the same tx must determine the selected lines from the list. After creating the list I need the name from ALV, I want to store it with EXPORT and to read it in the enhancement with IMPORT. But EXPORT isn't possible because the value has TYPE REF ... Do You have any suggestions to make EXPORT / IMPORT possible ?

Thanks a lot for Your help !

Peter

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 05, 2015 at 12:16 PM

    Hi

    you mean to export / import an object?

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Peter,

      you can use assign dirty to assign the object

      PERFORM ('SUB_1') in PROGRAM ZIBO_PG_DYNAMIC_PRG2 if FOUND.

      ASSIGN ('(ZIBO_PG_DYNAMIC_PRG2)lr_grid') to <lr_grid>.

      <lr_grid> = o_grid_sob.


      REPORT ZIBO_PG_DYNAMIC_PRG2.

      data lr_grid TYPE REF TO cl_gui_alv_grid.

      data lr_cust TYPE REF TO cl_gui_custom_container.

      FORM sub_1.

      CREATE OBJECT lr_grid

      EXPORTING i_parent = lr_cust.

      write:/ 'SUBROUTINE2 Sub1 wurde aufgerufen '.

      lv_iscalled = abap_true.

      ENDFORM.


      Regards

      Ebrahim

      1.JPG (141.4 kB)
  • Posted on Dec 06, 2015 at 10:34 AM

    You can try to serialize alv. Or export just data table and fieldcatalog table.

    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.