cancel
Showing results for 
Search instead for 
Did you mean: 

ERP LORD API - Adding ECC custom fields to CRM.

Former Member
0 Kudos

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 .

  1. ENDMETHOD.

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.

  1. ENDMETHOD.

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,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have added fields to TDS_ITEM_COMV and TDS_ITEM_COMC since I want to change the values in CRM.

Former Member
0 Kudos

I have manage to get values in the fields from ECC to CRM without any adding anything in PBO. IT may be becuase these fields are on VBAP table. My problem is PAI is not working.

I have created implementation of 'BADI_LORD_DO_PAI' and added following code in method if_badi_lord_do_pai~fill_supply_list:

METHOD if_badi_lord_do_pai~fill_supply_list.

  DATA : ls_supply TYPE tds_field_supply.

  IF iv_object_id = 'ITEM'.

    ls_supply-field = 'ZZFIELD1'. .
    ls_supply-check = 'N'.

    APPEND ls_supply TO ct_supply.
    CLEAR: ls_supply.

    ls_supply-field =  'ZZFIELD2'.
    ls_supply-check = 'N'.

    APPEND ls_supply TO ct_supply.
    CLEAR: ls_supply.

  ENDIF.

ENDMETHOD.

I have added these fields in TDS_ITEM_COMV and TDS_ITEM_COMC structures. Also mapping is done in LORD_MAPPING table.

Kindly share what is missing?

Thanks and Regards,

Former Member
0 Kudos

Hey CRM beginner..

I hope the issue is solved as the thread seems very old. Could you please share the solution here..

I am facing exactly the same problem and i have done same what u did. I'm also not sure what is missing?

Appreciate your help.

Thanks

Krishna

Former Member
0 Kudos

Hi Krishna,

I am facing the same problem... Did you solve the issue? Could you please share your findings?

I would appreciate your help.

Thanks

Leonardo