Quantcast
Channel: SCN: Message List - Supplier Relationship Management (SAP SRM)
Viewing all articles
Browse latest Browse all 6690

Re: REG : SC Items not splitting into PO's

$
0
0

Hi Laurent,

 

The implementation is active,

 

Below is my code which I used in the BADI.

 

INCLUDE bbp_bs_con.

 

   DATA: lv_badi_active  TYPE xfeld,

 

         ls_account      TYPE bbp_pds_acc,

         ls_proc_account TYPE bbp_bapipogna,

         ls_item         TYPE bbp_pds_sc_item_d, " bbp_pds_transfer_item,

         ls_item_data    TYPE bbp_int_item_groups,

 

*        lt_group          TYPE bbpt_procurement_res,

         lt_item         TYPE bbpt_pd_transfer_item,

         lt_account      TYPE bbpt_pds_acc,

         lt_proc_item    TYPE bbpt_interpr_item,

         lt_proc_account TYPE bbp_determine_target_acct,

 

         lo_sc           TYPE REF TO if_ex_bbp_sc_transfer_be.

 

*---if BAdI is active instantiate it

   CALL METHOD cl_exithandler=>get_instance

     EXPORTING

       exit_name              = 'BBP_SC_TRANSFER_BE'

       null_instance_accepted = 'X'

     IMPORTING

       act_imp_existing       = lv_badi_active

     CHANGING

       instance               = lo_sc.

 

   CHECK lo_sc IS BOUND.

 

   MOVE-CORRESPONDING ITEM_DATA[] to lt_item[].

 

   CALL METHOD lo_sc->group_po

     EXPORTING

       it_proc_account       = lt_proc_account

       iv_object_to_generate = c_tr_po

       it_item               = lt_item

       it_account            = lt_account

     CHANGING

       ct_proc_item          = lt_proc_item.

*

*      REFRESH: lt_item[], lt_proc_account[].

*    ENDAT.

*

*    REFRESH: lt_account[].

*  ENDLOOP.


Can  you give me any sample code, which I can use to split a SC based on the custom field in SC item level.


Waiting for your reply


Thanks,

AkkI


Viewing all articles
Browse latest Browse all 6690

Latest Images

Trending Articles



Latest Images

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