Skip to Content
0
Former Member
Dec 12, 2007 at 11:52 AM

Read internal table of diff program in another program.

517 Views

Hi,

I have written the following code in BADI.

types: tp_t_drseg type standard table of drseg initial size 0.

FIELD-SYMBOLS : <y_it_drsego> TYPE tp_t_drseg.

  • <y_it_drseg> type ANY.

DATA: y_it_drseg(40) type c,

y_lv_it_drseg type standard table of drseg,

wa_y_lv_it_drseg type drseg.

..

..

y_it_drseg = '(SAPLMRMP)T_DRSEG[]'.

ASSIGN (y_it_drseg) to <y_it_drsego>.

If sy-subrc eq 0.

--- Statements.

Endif.

But here the value of sy-subrc = 4.

I tried with

y_it_drseg = '(SAPLMRMP)T_DRSEG'.

ASSIGN (y_it_drseg) to <y_it_drsego>.

For structure it is working fine. But for internal table it is returning 4. Your help will be appreciated.

Thanks and regards

Santosh