on 04-28-2009 2:21 PM
Hi All,
I have set the message 06 041 (Contract Validity Date has expired) to be an error in the backend, however this message does not appear to be called in SRM when creating the shopping cart.
Is it possible to call this message as standard in the shopping cart if the current date is outside of the contract validity period?
or is it possible to create a sutome check for this?
Cheers
Chris
Hi,
You need to implement the badi "BBP_DOC_CHECK_BADI" for your requirement.In the BADi,make an RFC call to the backend to get the contract validity data and accc throw the error message in the SRM badi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nishant,
I have added some logice to BBP_DOC_CHECK_BADI to get the backend contract details using BAPI_CONTRACT_GETDETAIL however when calling this BAPI the program is short dumping.
I am deriving the RFC destination using BBP_LOGICAL_SYSTEM_GETDETAIL where the logical system is equal to the logical system of the contract (field - BBP_PDS_SC_ITEM_D-CTR_LOG_SYS)
The error is "Data error (invalid data type 17) in a Remote Function Call"
which seems to imply that there is an invalid data type but the destiantion I am passing to BAPI_CONTRACT_GETDETAIL has a type of RFCDEST.
Any ideas?
Thanks
Chris
it totally depends on implementation scenario in which you are in .
If you are in classic scenario,this should work as standard.
You can use BBP_ITEM_CHECK_BADI BADI and make a RFC call to backend
system to check the contract validaity and display message as per
your requirement.
Regards,Nishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
I donot think that standard system will give you error message for contract expiry from backend.You need to do development for that.Still you can search SAP notes if you find something new over there which SAP would have done in recent past.
http://help.sap.com/saphelp_srm50/helpdata/en/9a/6c0f3abda5bf31e10000000a11402f/frameset.htm
Regards,Nishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.