Skip to Content
author's profile photo Former Member
Former Member

ERP LORD API - Adding ECC custom fields to CRM.

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,

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2013 at 01:57 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.