cancel
Showing results for 
Search instead for 
Did you mean: 

Carry out sourcing - Rejection

Former Member
0 Kudos

Hi Experts,

When rejecting a requisition/SC in "carry out sourcing", I want the system to popup a window to enter a rejection note which should be conveyed to requestor. How is it possible?

Purchasing - Carry out sourcing - Rejection

Regards,

R.S

Accepted Solutions (1)

Accepted Solutions (1)

konstantin_anikeev
Active Contributor
0 Kudos

Hi,

we made it via customer WebDynpro, which is shown instead of standard popup.

After rejection  rej. reason is appended to approval note of shopping cart.

Regards

Konstantin

Former Member
0 Kudos

Thanks for your suggestions. We are not afford to build any custom development and hence we are using internal note before rejection.

Now our issue is, After shopping is rejected by buyer, its not updating the header status but the item status.

We have custom UI for shopping cart creation/dashboard which doesn't consider item status.

Is there any way to make header status same as item status if all the item status are same?

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi RS,

We did something like this in our system.  We added a ztable where we maintain rejection reasons and then when a buyer selects Rejection they must a select a reject reason before the cart will reject.

Enhancement Implementation ‘Z_SRM_SEI_REJECTION_REASON’ is created. New dropdown called ‘Reason for Rejection’ will be added in view V_AO_SOCO_GAF_1 of component ‘/SAPSRM/WDC_DO_SOCO_GAF_1’. Reason for Rejection dropdown is populated using table ZSRM_REJECT_RESN.


  Custom Reason Code Table Fields (ZSRM_REJECT_RESN)

Item

Field Names

Key Fields

Data Element

Type

Description

1

MANDT

YES

MANDT

   CLNT (3)

Client

2

LANGU

YES

SPRAS

   LANG (1)

Language

3

ZREASON_CODE

YES

ZRES_CODE

   CHAR (4)

Reason Code

4

ZREASON_TEXT

NO

ZRES_TEXT

   CHAR (40)

Reason Text

New custom table named ‘ZSRM_REJECT_RESN’ is created for maintaining all reason codes and their texts. Following are the details.

A Post-Exit method is created for method ONACTIONCOMPLETE_ITEMS

of view V_AO_SOCO_GAF_1 . This method validates and ensures that the user   selects a reason from the ‘Reason for Rejection’ drop-down box.

A new customer display field is added the shopping cart header via IMG path

SAP Supplier Relationship Management-> SRM Server -> Cross-Application Basic Settings->Extensions and Field Control (Personalization)-> Configure Customer Fields->Define Customer Display Fields on Header Level. The Field will be Called ZZ_REJECT_REASON.  Once this is done, the new field ‘Reason for Rejection’ will become visible in the shopping cart.

 

Also Create a new Pre-Exit for method ‘COMPLETE_ITEMS of class /SAPSRM/CL_CH_WD_DOM_SOCO_GAF1. Here, the rejected SC is read using function module BBP_PD_SC_GETDETAIL. Update the ZZ_REJECT_REASON field in structure BBP_PDS_SC_HEADER_U of update function module

‘BBP_PD_SC_UPDATE’.


Restructured the loop so that /SAPSRM/CL_PDO_FACTORY_SC_ADV=>GET_INSTANCE

is called only once per shopping cart. This eliminates the Shopping cart lock issue.

Modified Object :

      Method: Pre-Exit of method ONACTIONPOPUP_COMPLETE_YES.

      View     : V_AO_SOCO_GAF_1.

      Webdynpro Component : /SAPSRM/WDC_DO_SOCO_GAF_1.