cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping Cart replication using Extended Classic?

Former Member
0 Kudos

Dear Experts,

I was wondering if there is a BADI that I could possbily use to replicate SRM shopping carts to ECC Purchase Requisitions using the Extended Classic scenario.

Thanks in advance,

Mark

Accepted Solutions (1)

Accepted Solutions (1)

peter_novoth
Employee
Employee
0 Kudos

Hi Mark,

in case of extended classic scenario you can not create purchase requisition (the basic of this scenario, that you create at first the local PO, then this will be replicated into the backend system).

Therefore I would suggest to activate the BAdI BBP_EXTLOCALPO_BADI. With this BAdI you can choose between classic and extended classic scenario depending on your business logic (and create ECC PO or purchase requisition).

E.g. depending on the product category:


method IF_EX_BBP_EXTLOCALPO_BADI~DETERMINE_EXTPO.

 clear: bbp_extpo_gl-bbpexpo,
          bbp_extpo_gl-mandt.

  data: cat_guid type COMT_CATEGORY_GUID,
          category type COMT_CATEGORY.


 cat_guid = ITEM_DATA-CATEGORY.

  CALL FUNCTION 'COM_CATEGORY_READ'
    EXPORTING
      iv_category_guid = cat_guid
    IMPORTING
      es_category      = category
    EXCEPTIONS
      OTHERS           = 0.

if
* category XYZ
     category-CATEGORY_ID EQ 'XYZ'. 
     bbp_extpo_gl-bbpexpo = 'X'.
     bbp_extpo_gl-mandt   = sy-mandt.
    return.
  endif.

endmethod.

Regards,

Peter

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use badi BBP_EXTLOCALPO_BADI to process some of the requirements in the path classic

scenario based on product category defnition , even though implemented Extended classic as main

scenario.

Thanks,

Koushik.