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

Problem in BAPI GOODSMVT CREATE OIL

Former Member
0 Likes
1,046

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

2 REPLIES 2
Read only

Former Member
0 Likes
738

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

Read only

0 Likes
738

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 !!!