2015 Mar 25 1:08 AM
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.
2015 Mar 25 6:23 AM
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
2015 Mar 25 1:27 PM
Sorry actually i am using wa only in my if condition . I have miss type in the form. Still the Same error is coming
2015 Mar 25 6:39 AM
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.
2015 Mar 25 1:26 PM
Sorry actually i am using wa only in my if condition . I have miss type in the form. Still the Same error is coming
2015 Mar 25 2:13 PM
Hi,
The syntax should be loop at io_interface->dl_imseg INTO lw_dl_imseg.
Hope this helps.
2015 Mar 25 2:14 PM
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
2015 Mar 25 3:00 PM
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
2015 Mar 25 8:52 PM
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.
2015 Mar 25 9:06 PM
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
2015 Mar 26 4:48 AM
i hope it may be structure, or else field symbol. KIndly briefly explain the user exit fm.
regards,
sampath kumar
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |