on 2010 Sep 17 11:51 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Try implementing BBP_DOC_CHECK_BADI for confirmation (BUS2203).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.