cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmation With 0 Quantity

former_member229388
Participant
0 Kudos

Hello Experts,

We have SRM 7.0 Classic scenario with ECC backend.

We observe, confirmation can be posted with '0' quantity when last delivery check box is checked, and quanitity not enterd. (Material items)

System is allowing to post confirmation with '0' quanitity. And also GR is posted successfully in ECC. But as per our Business, this is a incorrect behavior. (i have read, the Zero quantity confrmation / GR is valid case for some of the business)

How do we introduce an custom error message here so that user would be prompted to enter non-zero quantity? Any BADI could be used?

Thanks,

Dhananjay

Accepted Solutions (1)

Accepted Solutions (1)

ThomasZloch
Active Contributor
0 Kudos

Try BBP_DOC_CHECK_BADI for filter value BUS2203.

Please search for further information, there should be plenty.

Thomas

Answers (1)

Answers (1)

ivy_li
Active Contributor
0 Kudos

Hi Dhananjay,

for material, it is standard behavior that confirmation can be confirmed with zero quantity and last delivery set.

METH /SAPSRM/CL_CH_WD_DOTM_CONF_IBD

     /SAPSRM/IF_CLL_MAPPER~UPDATE

=============

*       Check for no quantity

        IF ls_cll_item-quantity EQ 0 AND ls_cll_item-final_entry NE abap

_true AND ls_cll_item-itm_type NE /sapsrm/if_pdo_constants_gen_c=>gc_pty

pe_outline.

*set the qty flag only for cancellations with qty = 0 and final entry=''

      IF ls_header-subtype EQ /sapsrm/if_pdo_obj_types_c=>gc_subtype_ca

            lv_qty_flag = abap_true.

          ENDIF.

=============
If you want to change this standard behavior, you may modify the coding or use CHECK_BADI to raise an error message.

Regards,

Ivy