cancel
Showing results for 
Search instead for 
Did you mean: 

Contract related validations during shopping cart creation

Former Member
0 Kudos

Hi All,

Quick question, are there any standard SRM validations when you create a shopping cart against a contract with a status "Blocked, Deleted or On Hold"

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member183819
Active Contributor
0 Kudos

Blocked, Deleted or On Hold - these status contracts will not be available as source of supply.

onhold - this status also will not be available as SOS.

check any previous versions are availble. if it has previous versions and distributed to backend then this may be available as Source of supply.

even TOTAL Value of contract did not check while you refere a contract in the shopping cart. real validation happens only while creating a Purchase order only.

Muthu

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

In include LBBP_PD_INDEXF20, we can find which verifications system does when a contract has been found.

In case of locked contracts, it seems that system does not consider it.

CALL FUNCTION 'BBP_PD_STATUS_GETDETAIL'

EXPORTING

iv_guid = ls_found_items-ctr_hdr_guid

iv_object_type = c_contract

TABLES

et_status = lt_status.

READ TABLE lt_status WITH KEY stat = c_s_ctr_locked

inact = gc_no

TRANSPORTING NO FIELDS.

IF sy-subrc EQ 0.

DELETE lt_found_items WHERE ctr_hdr_guid = ls_found_items-ctr_hdr_guid.

ENDIF.

Held and deleted contracts are not suggested as sources of supply.

Regards,

Ricardo

former_member183819
Active Contributor
0 Kudos