cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

don't allow Goods Receipt with quantity zero in EBP

Former Member
0 Kudos
297

Hi

If a Goods Receipt is confirmed with the quantity zero and the "Last Delivery" flag is set in EBP,

iin the R / 3 there will be also created a Goods Receipt with the quantity zero. Later It is not possible to

delete or cancel it in R/3.

In order to prohibit Goods Receipt confirmation in EBPwith quantity zero, I need a way. How can I achieve

this.

Regards

Marco

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Marco

Enter the quantity

you can not enter qty as zero

standard system will throw error message "Enter the quantity" If you enter a quantity as ZERO

do you still require BADI for this?

Muthu

Former Member
0 Kudos

as per user's statement

the current RFCPS2100-User (EBP-User) is qualified to do this.

Goods Receipt with qty zero.

Why ever.??

Former Member
0 Kudos

let me check any BADI implemented to validate the same.

keep posting you shortly.

Former Member
0 Kudos

Hi Muthu there is nothing implemented refering to this requirement

How can this part of coding look ?

Regards

Marco

Former Member
0 Kudos

Use can use BBP_DOC_CHECK_BADI or BBP_ITEM_CHECK_BADI to achieve this..

Code will look like follow..

**********************************************************************

  • GET SC DATA

**********************************************************************

CALL FUNCTION 'BBP_PD_SC_GETDETAIL'

EXPORTING

i_guid = iv_doc_guid

i_with_itemdata = 'X'

TABLES

e_item = lt_item.

Loop at lt_item into wa_lt_item.

IF wa_lt_item-quantity = 0.

Rase error message

ENDIF.

ENDLOOP.

Thanks!!

Bharath

Former Member
0 Kudos

what is your SP level in SRM .

by default SRM populates the PO quantity in the confirmation.

did you USE check BEFORE you post confirmation.you must get an error.

can you the same in MIGO ?

Muthu

Former Member
0 Kudos

Hi Muth,

Yes your expectation is correct.. Even I expected the same when I received same type of requirement from my business..

But it didn't work in that way, I achieved it through DOC_CHECK_BADI only..

Thanks!!

Bharath

Former Member
0 Kudos

Hi Bharath,

I am trying to implement your solution in our system. I am not able to populate the lt_item table from e_item. Is this because I am on the confirmation screen there for the shopping cart number is not being pulled in? How did you populate the lt_item table from e_item?

We are also using this function module in this BADI for another error message in the shopping cart check. The function module is called correctly, but does not work for confirmation.

Please help.

Thanks,

Jeff

Answers (1)

Answers (1)

Former Member
0 Kudos

Try implementing BBP_DOC_CHECK_BADI for confirmation (BUS2203).