cancel
Showing results for 
Search instead for 
Did you mean: 

RZ20 Error: Shopping cart (Pur req ) :

Former Member
0 Kudos

Dear all,

After the shopping cart is getting approved and on its way to Purchase requisition, the Custome field in the shopping cart(which is valuation type in my case) is getting populated in the Purchase requiresiton.

I did the below things but still the PR is not getting populated with the valuation type.

I created an implenation of the BADI - "BBP_CREATE_BE_RQ_NEW" and the method is as follows.

METHOD if_ex_bbp_create_be_rq_new~fill_rq_interface.

DATA: lv_idx TYPE i.

DATA: ls_scitem TYPE bbp_pds_transfer_item,

ls_pritem TYPE bbps_badi_rq_item.

LOOP AT cs_rq_document-it_requisition_items INTO ls_pritem.

lv_idx = sy-tabix.

READ TABLE is_sc_document-item INTO ls_scitem WITH KEY ext_dem_posid = ls_pritem- preq_item.

ls_pritem-val_type = ls_scitem-zzbwtar.

MODIFY cs_rq_document-it_requisition_items FROM ls_pritem INDEX lv_idx TRANSPORTING val_type.

ENDLOOP.

ENDMETHOD.

Could some one let me know if am wrong or if there is any other way and I would really appreciate your reply.

Thankyou.

Arun.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

FIrst of write your code in method FILL INTERFACE1 instead FILL INTERFACE.

It should be like this,

*Call this FM , its mandatory.

CALL FUNCTION 'BBP_CALL_OLD_BADI_BE_RQ_CRT'

EXPORTING

is_sc_document = is_sc_document

is_control = is_control

CHANGING

cs_ctrl_att = cs_ctrl_att

cs_rq_document = cs_rq_document.

*after this FM write your code for populating Valuation type

IT will work/

Thanks,

Aakash

Rewards useful answers