Quantcast
Channel: SCN: Message List - SAP SRM: Shopping Cart & Catalog
Viewing all articles
Browse latest Browse all 2860

Re: Error when replace item SC with Catalog item

$
0
0

Hi,

 

Class - /SAPSRM/CL_CH_WD_DOM_SOCO_GAF2

Method - /SAPSRM/IF_CLL_DOM_SOCO_GAF2~REPLACE_BY_CATALOG_ITEM

 

Enhance the method and comment below code:

 

* Check if the SC item UoM is same as the UoM of catalog item

   IF ls_item-UNIT NE ls_enr_item-UNIT.

     CLEAR ls_messages.

     MOVE '080' TO ls_messages-msgno.

     MOVE '/SAPSRM/AO_SOCO' TO ls_messages-msgid.

     MOVE 'E' TO ls_messages-msgty.

     APPEND ls_messages TO lt_messages.

     mo_cll_message_handler->add_messages( EXPORTING it_message = lt_messages ).

     EXIT.

ENDIF.

 

 

Thanks,

Anubhav


Viewing all articles
Browse latest Browse all 2860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>