cancel
Showing results for 
Search instead for 
Did you mean: 

Check backend contract in shopping cart

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

is there a standard function module to get the backend contract information?

Cheers

Chris

former_member195032
Active Contributor
0 Kudos

USE backend FM <BAPI_CONTRACT_GETDETAIL> by passing contract details.

Header internal table field

VPER_START

VPER_END

provide the required field.

Regards,Nishant

Former Member
0 Kudos

Hi Nishash,

I can find a function module BAPI_CONTRACT_GETDETAIL

Will B46B_CTR_CHECK work? I've tried running this but get no RFC destination found.

Cheers

Chris

former_member195032
Active Contributor
0 Kudos

This function module exist in backend ECC system(R/3 system).BAPI_CONTRACT_GETDETAIL

This is remotely enabled FM so you can call this in SRM system by passing RFC destination.

RFC details will be available in SC import parameter in BADI where you will code this.

Regards,Nishant

Former Member
0 Kudos

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

former_member195032
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Nishant,

thanks for the response. I am using the Classic Scenario but the messages relating to contract expiry are not being called as standard.

I'll look into using the BADI but ideally I thought this should have been a standard check?

Cheers

Chris

former_member195032
Active Contributor
0 Kudos

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