Skip to Content
avatar image
Former Member

RZ20 Error: Shopping cart (Pur req ) :

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.



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



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 18, 2009 at 03:36 AM


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

    It should be like this,

    *Call this FM , its mandatory.



    is_sc_document = is_sc_document

    is_control = is_control


    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/



    Rewards useful answers

    Add comment
    10|10000 characters needed characters exceeded