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

error in custom user exit

0 Likes
1,600

Hi every one ,

i am working with custom user  exit . in my function module there is a changing parameter with io_interface with type < >

based on that i coded below logic.

loop at io_interface-dl_imseg INTO lw_dl_imseg.

   If IO_INTERFACE-DL_IMSEG-BWART EQ 252.

      MOVE lc_lgort TO lw_dl_imseg-lgort .

     MODIFY io_interface-dl_imseg FROM lw_dl_imseg TRANSPORTING lgort  .

   ENDIF.

ENDLOOP.


but am getting an error io_interfaace is not defined as internall table , neither table.


Please help me out.


Hi every one ,

i am working with custom user  exit . in my function module there is a changing parameter with io_interface with type < >

based on that i coded below logic.

loop at io_interface-dl_imseg INTO lw_dl_imseg.

   If IO_INTERFACE-DL_IMSEG-BWART EQ 252.

      MOVE lc_lgort TO lw_dl_imseg-lgort .

     MODIFY io_interface-dl_imseg FROM lw_dl_imseg TRANSPORTING lgort  .

   ENDIF.

ENDLOOP.


but am getting an error io_interfaace is not defined as internall table , neither table.


Please help me out.


10 REPLIES 10
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
1,573

Hi Sridevei,


loop at io_interface-dl_imseg INTO lw_dl_imseg.

  * If IO_INTERFACE-DL_IMSEG-BWART EQ 252. " --->comment this line

   if lw_dl_imseg.-bwart = 252.   "add this line

      MOVE lc_lgort TO lw_dl_imseg-lgort .

     MODIFY io_interface-dl_imseg FROM lw_dl_imseg TRANSPORTING lgort  .

   ENDIF.

ENDLOOP.

thanks

Read only

0 Likes
1,573

Sorry   actually i am using wa only in my  if condition . I have miss type in the form.  Still the Same error is coming

Read only

former_member185177
Contributor
0 Likes
1,573

Hi Sridevi,

As suggested by Always Learner use work area instead of internal table in your 'IF' condition under the loop.

It will resolve your issue.

Regards,

Krishna Chaitanya.

Read only

0 Likes
1,573

Sorry   actually i am using wa only in my  if condition . I have miss type in the form.  Still the Same error is coming

Read only

0 Likes
1,573

Hi,

The syntax should be loop at io_interface->dl_imseg INTO lw_dl_imseg.

Hope this helps.

Read only

former_member185054
Active Participant
0 Likes
1,573

hi,

hope you used lw_dl_imseg in if condition.

please copy and paste the same code here, and paste the error too.

if so, how you declare the internal table? check type of  io_interface-dl_imseg ?

if you are not declaring, then it may be field symbol.

with regards,

sampath

Read only

0 Likes
1,573

in my case io_interface a changing parameter in my  function module of user exit

loop at io_interface-dl_imseg INTO lw_dl_imseg.

   if lw_dl_imseg.-bwart = 252.

.   MOVE lc_lgort TO lw_dl_imseg-lgort .

  MODIFY io_interface-dl_imseg FROM lw_dl_imseg TRANSPORTING lgort  .

   ENDIF.

ENDLOOP.

error : error io_interfaace-dl_imseg   neither is not defined under table or neither  internall table

Read only

0 Likes
1,573

field-symbols: <dl_imseg> type whatever your type is.

loop at io_interface-dl_imseg assigning <dl_imseg>.

   if <dl_imseg>-bwart = 252.     

       MOVE lc_lgort TO <dl_imseg>-lgort .

   ENDIF.

ENDLOOP.

Read only

senthil_kumar37
Explorer
0 Likes
1,573

Hi Sridevi,

issue resolved? if not please let us know the exit you are working on . so that it will help in understanding the issue better and suggest solution.

Thanks

Senthil

Read only

former_member185054
Active Participant
0 Likes
1,573

i hope it may be structure, or else field symbol. KIndly briefly explain the user exit fm.

regards,

sampath kumar