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

How to access to the attibuts of Class LCL_MIGO_KERNEL in Badi MB_MIGO_BADI


I implemented the MB_MIGO_BADI and, in the method if_ex_mb_migo_badi~pbo_detail, i need to access the PT_GOITEM table (that is an attribut of class LCL_MIGO_KERNEL).

In ABAP debugger, this table can be access with this line :


But i can't find a solution to access this table in my program.

The only thing i can access is the class LCL_MIGO_KERNEL, using this code :

DATA lv_class TYPE string.


ASSIGN (lv_class) TO <fs_kernel>.

I tried to add the PT_GOITEM to lv_class but in this case, the assign return a sy-subrc = 4.

Is anybody knows a solution to access to this table ?

Edited by: Olivier Abbeloos on Feb 3, 2009 3:09 PM

Edited by: Olivier Abbeloos on Feb 3, 2009 3:10 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 03, 2009 at 02:50 PM

    Try to get an access of the table PT_GOITEM, instead of the entire object KERNEL.


      DATA lv_tab TYPE string.
      ASSIGN (lv_tab) TO <fs_tab>.


    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Uwe Schieferstein

      Hi Uwe,

      Im just picking up oo concepts in abap and your code really was a good start for me as I'm trying to change the serial number via goitem structure. We have activated the serial number profile and for certain scenarios i would want to replace back an existing serial number during gr post. Unfortunately, I am not able to do any changes to ls_serial as nor replace the populated serial number before posting.

      Any guide on this?


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.