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

fields-symbols

Former Member
0 Likes
665

Hi

How can i use the fields-symbols in Abap Object (class)?: The program <b>SAPLMIGO</b> have a table <b>oref_detail->t_goserial</b>. I would get this table in my program (not object) by using field-symbol

What can i do?

it's urgent

thanks a lot

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
542

Hello

Here are the fact:

(1) oref_detail is of TYPE REF TO lcl_migo_detail (local class)

* Detail
  oref_detail            TYPE REF TO lcl_migo_detail, (lines 244-245 in LMIGOTOP)

(2) Here is the definition of the local class (LMIGODC1):

*----------------------------------------------------------------------*
*   INCLUDE LMIGODC1                                                   *
*   Detail carrier (data manager)
*----------------------------------------------------------------------*

CLASS lcl_migo_detail DEFINITION
      INHERITING FROM lcl_migo_screenobject.

  PUBLIC SECTION.
    INTERFACES:
      lif_migo_frame.
    DATA:
*   Line in the model which is currently displayed
      current_line  TYPE sytabix READ-ONLY,
*   table for working with serial numbers internally
      t_goserial TYPE lcl_migo_kernel=>ty_t_goserial,
                                       " need to be changed when friend
                                       " concept is available
*   table for working with freight vendors internally
    t_gofreight TYPE TABLE OF gofreight." need to be changed when friend
    " concept is availible

    METHODS:
      constructor,
      pbo REDEFINITION,
      pbo_godynpro_fill,
      pai REDEFINITION,
      pai_get,
      pai_transfer_fields_fill,
      line_find.                         "ON REQUEST

  PRIVATE SECTION.
    DATA:
      p_global_counter TYPE goitem-global_counter, "old gobal_counter
                                       "(before sort/Not OK)
      p_last_new_line_mode TYPE char1,
      poref_settings TYPE REF TO cl_mmim_userdefaults,
      ps_old_goitem TYPE goitem.    "goitem before PAI-field transport
    METHODS:
        transfer_item_copy.

ENDCLASS.                    "lcl_migo_detail  DEFINITIO

(3) t_goserial has the following definition (include LMIGOKE1):

*     Serial number with SELECTED-flag
     BEGIN OF ty_s_goserial,
       selected TYPE xfeld,
       serialno TYPE    gernr,
     END OF ty_s_goserial,
     ty_t_goserial  TYPE STANDARD TABLE OF ty_s_goserial WITH
                                              NON-UNIQUE DEFAULT KEY,

What does it mean that you want to "access" this internal table? Do you need this itab within a userexit or BAdI?

Regards

Uwe

Read only

Former Member
0 Likes
542

This message was moderated.

Read only

Former Member
0 Likes
542

This message was moderated.