Hi Experts,
I am trying to add custom field to Lean Order (LORD) API. Few of these fields are either added in VBAP table or in custom table in ECC.
I am following documents available in sdn : http://scn.sap.com/docs/DOC-5280 and OSS note1224179.
I have few queries:
In sdn doc > page 11, it says
Code for the Class ZZCL_LOD_INTF_SUPPLY_DATA
IF_LORD_INTF_SUPPLY~DO_PBO_SINGLE
METHOD if_lord_intf_supply~do_pbo_single.
PERFORM zz_sales_order_owner IN PROGRAM sapmv45a IF FOUND .
PERFORM get_no_deal_id_param IN PROGRAM sapmv45a IF FOUND .
My question is where do I find subroutine zz_sales_order_owner and get_no_deal_id_param? Do I need to add these in current screen? Since the fields are already on screen then which subroutine shall I use?
Also at page 11>
BADI_LORD_DO_PAI
Field = custom field
Module = logic written for custom field ( in user exit)
Program = Main program name
METHOD if_badi_lord_do_pai~fill_supply_list.
DATA : ls_supply TYPE tds_field_supply.
IF iv_object_id = 'HEAD' .
**ZZ_OWNER
ls_supply-field = 'ZZ_OWNER' .
ls_supply-module = 'ZZ_SALES_ORDER_OWNER'.
ls_supply-program = 'SAPMV45A'.
ls_supply-on_check = 'R' .
APPEND ls_supply TO ct_supply .
CLEAR : ls_supply .
**ZZ_ZSC_CODE
ls_supply-field = 'ZZ_ZSC_CODE' .
APPEND ls_supply TO ct_supply.
CLEAR : ls_supply.
ELSEIF iv_object_id = 'ITEM' .
ls_supply-field = 'ZZVKAUS' .
APPEND ls_supply TO ct_supply.
CLEAR : ls_supply.
ENDIF.
In above method > it says module = logic written for custom field ( in user exit)> what subroutine name shall I use here? As in on screen it uses Chain and Endchain to process the field values.
Also while checking for other sdn thread I found http://scn.sap.com/thread/1969232 which says the structures CRMST_L2_ITEM_COMV and CRMST_L2_ITEM_COMC should have new fields. But I don’t find these new fields added in these structures. Shall it not be done by AET?
Kindly share how to proceed?
Thanks and Regards,
Add a comment