on 10-01-2022 12:35 PM
Hello all,
in BADI = MB_MIGO_BADI ~ POST_DOCUMENT , i tried to get serial number
using FM = GET_SERNOS_OF_DOCUMENT..but getting error no data found..
below is my code..
IF ( g_action EQ 'A01' ).
data : wa_key type RSEROB.
data : wa_sern type RSEROB,
it_sern type TABLE OF RSEROB.
data : wa_serx type RSERXX,
it_serx type TABLE OF RSERXX.
if it_mseg[] is NOT INITIAL.
loop at it_mseg INTO wa_mseg.
if wa_mseg-bwart eq '581'.
clear : wa_key.
wa_key-TASER = 'SER03'.
wa_key-mblnr = wa_mseg-mblnr.
wa_key-mjahr = wa_mseg-mjahr.
wa_key-zeile = wa_mseg-zeile.
CALL FUNCTION 'GET_SERNOS_OF_DOCUMENT'
EXPORTING
KEY_DATA = wa_key
STATUS_PRE_READ = 'X'
* EQUNR_CORR = 'X'
* NO_DELETED = ' '
* NO_IWOL_OBJECTLIST = ' '
TABLES
SERNOS = it_sern
SERXX = it_serx
EXCEPTIONS
KEY_PARAMETER_ERROR = 1
NO_SUPPORTED_ACCESS = 2
NO_DATA_FOUND = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
loop at it_sern INTO wa_sern.
endloop.
endif.
Note : i am getting sy-subrc = 3 , no data found..may i know where i am going wrong..
thank you all..
User | Count |
---|---|
108 | |
9 | |
6 | |
6 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.