cancel
Showing results for 
Search instead for 
Did you mean: 

Badis while creating & approving the shopping cart

Former Member
0 Kudos

Hi,

I have the following scenario to be implemented:

While creating the shopping cart, the following checks needs to be performed :

The combination of Material and WBS element needs to be checked with the other line items of the same shopping cart as well as with the previous shopping carts items to determine if it is a duplicate. In case it is duplicate, it should throw an error for the user asking him to enter the reason for duplication in a new field (new field needs to be added to shopping cart). In case of duplicates it shouldnu2019t allow further processing of the shopping cart unless the user enters the reason in the text field.

When the approval work flow is triggered, the approvers should be provided with the information messages, if the shopping cart contains the additional field (newly created field) filled-in. How to pop-up the information message at the time of approving the shopping cart.. Any BADI serves this purpose ?

Can any body suggest me the BADIs & logic that mostly fit this scenario.

Thanks & regards,

Raj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Raj,

You should be able to use the BADIs in SRM for your requirement.

The help text is below:

SPRO: SAP Implementation Guide> Supplier Relationship Management> SRM Server> Business Add-Ins (BAdIs)> Purchasing Document Check

Check Purchasing Document

Document checks can be classified in three categories:

Checks that

1. relate to the document header,

2. relate to a single item and

3. relate to the entire document.

For performance reasons, checks of the second category (item checks) should only be carried out when:

a new item is created,

an item is changed or

the entire document is to be checked for consistency (triggered, for example, by choosing the pushbutton Check).

The BAdI (s. Business Add-In) BBP_DOC_CHECK_BADI is suitable for checks of categories 1 and 3. In BAdI BBP_DOC_CHECK_BADI all the items exist but you cannot yet recognize which items have been newly created or changed. For this reason, all items must always be checked in this BAdI. For performance reasons, we therefore recommend that you use BAdI BBP_ITEM_CHECK_BADI for checks of category 2 (purely item checks).

Cheers.

Former Member
0 Kudos

Hi,

Thanks for your valued response. Could you also provide some details on how to create an extra text field in the shopping cart and how to provide a pop-up message to the approver when the shopping cart comes for approval with the extra text field filled-in.

thanks & regards,

Raj

former_member183819
Active Contributor
0 Kudos

Hi Raj

IMG-> SAP Supplier Relationship Management->SRM Server->Cross-Application Basic Settings->Text Schema and define your text type and assign it to the text schema for the business object type

like eg..

ITXT (Vendor Text)

NOTE (Internal Note)

NOTM (Approval Note)

STXH and STXL - It is sap text file table.

You can create own text shema and assigned to SC BO.

Regards

Mutu

Former Member
0 Kudos

Hi Muttu,

Thanks for the reply.. We are using SRM 4 version. This text schema is available in SRM 5 version. Is this available in SRM 4 too ? I am not finding it.

regards,

Raj