2009 Sep 22 1:52 PM
Dear Abapers,
I have developed an ZFunction Module for to do posting 102 Movt type.An ABAP Dump is encountered when doing the negative subsequent adjustment via the Z function module. The dump only happens when BAPI_GOODSMVT_CREATE_OIL is called
After get into several functions and subroutines When I debug the BAPI_GOODSMVT_CREATE_OIL.Finally I got the error encountered place which is from select query on the line no: 204 in the function "OIB2_HPM_MAT_CHECK_COMPLETE"
IF i_mseg-bpmng NE i_ms2int-adqntp.
we skip this error mess in case an invoice had already
been posted where the quantity is greater than the
goods issue qty.
data: ls_ekbe type ekbe.
select single * from ekbe
into ls_ekbe
where ebeln = i_mseg-ebeln
and ebelp = i_mseg-ebelp
and vgabe = '2'
and bewtp = 'Q'.
if not sy-subrc is initial.
MESSAGE a359 WITH i_mseg-matnr i_mseg-werks i_mseg-zeile 'BPMNG'
RAISING bpmng_not_found.
endif.
ENDIF.
ENDIF.
Let me know,if you need more details for the same
Dear Abapers,
I have developed an ZFunction Module for to do posting 102 Movt type.An ABAP Dump is encountered when doing the negative subsequent adjustment via the Z function module. The dump only happens when BAPI_GOODSMVT_CREATE_OIL is called
After get into several functions and subroutines When I debug the BAPI_GOODSMVT_CREATE_OIL.Finally I got the error encountered place which is from select query on the line no: 204 in the function "OIB2_HPM_MAT_CHECK_COMPLETE"
IF i_mseg-bpmng NE i_ms2int-adqntp.
we skip this error mess in case an invoice had already
been posted where the quantity is greater than the
goods issue qty.
data: ls_ekbe type ekbe.
select single * from ekbe
into ls_ekbe
where ebeln = i_mseg-ebeln
and ebelp = i_mseg-ebelp
and vgabe = '2'
and bewtp = 'Q'.
if not sy-subrc is initial.
MESSAGE a359 WITH i_mseg-matnr i_mseg-werks i_mseg-zeile 'BPMNG'
RAISING bpmng_not_found.
endif.
ENDIF.
ENDIF.
Let me know,if you need more details for the same
2009 Sep 22 2:00 PM
Hi,
Such error will be encountered when the their is any issue with material quantity . please check the quanity.
Please close the thread, if solved
Regards,
Aditya
2009 Sep 22 3:47 PM
Thanks Aditya
How to check the materail quantity? is you are talking about Input material quantity ?
I guess there is some problem in additional quantity field(ADQNTP) in table MSE02 .Because dump is encountered after checking the below "IF" condition
*IF i_mseg-bpmng NE i_ms2int-adqntp.*
I m very new to this MM area thats why i can't perdict the usage of additional quantity things(ADQNTP).
I wish to tell you some more information.This ABAP is encountered for certain materials that too for some scenarios.
Is anything we need to takecare in master tables or some other tables ?
Please help me !!!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |