Skip to Content
Author's profile photo Tony Rosenthal

ECC Lean Order: Adding a field to the LORD API


This blog describes an example for integrating a standard sales order field from ECC into the Lean Order Interface so that it can be displayed in the CRM Web UI.

There are essentially 5 steps required: 

  1. Extend the ECC communication structures
  2. Configure the ECC mapping table
  3. Register the field in PAI logic to allow save of changed data to ECC
  4. Extend the CRM structures
  5. Configure the CRM layout

In the following example we want to display the ‘Your reference’ field of the order (VBKD-IHREZ) in the Web-UI, however the same process can be used to trensfer bespoke fields.


1. Extend the ECC communication structures

First of all we need to identify the correct communication structure of the LORD interface. The following options are available:

    • This contains fields that could be changed
    • This contains read only fields
    • This is a CHAR 1 indicator for each field that is used to derive the correct input status and flags the fields as changed

is variable depending on the data you are dealing with. In our case we are dealing with header data that need to be able to be changed and therefore we will be applying our enhancements to TDS_HEAD_COMV and TDS_HEAD_COMC.

The following append structures were added to the respective data types in ECC:

image image


2. Configure the LORD Mapping Table

The next thing we need to do on ECC is to tell the system which field needs to be mapped to our communication structure. This is done by maintaining table LORD_MAPPING.


In here you need to reference the VA03 screen and set the display attributes which are picked up by the *_COMC structure and passed back to CRM to determine the input-readiness.

3. Extend the PAI logic in ECC

Despite the fact that we are dealing with a standard ECC field, we still need to register the fields for PAI processing. This essentially allows the data to be updated in ECC when passed in via the APIs. If this step is not done the changes will be passed to ECC but the new data will be ignored and no update will take place for your field.

There is a BADI available to implement this – BADI_LORD_DO_PAI. Implementing Method IF_BADI_LORD_DO_PAI~ADD_SUPPLY_LIST allows you to register ‘new’ fields to the processing logic.



  data: ls_supply type tds_field_supply.

  if iv_object_id eq ‘HEAD’.
    clear ls_supply.
    ls_supply-field = ‘ZZIHREZ’.
    ls_supply-check = ‘N’.
    append ls_supply to ct_supply.


4. Extend the CRM structures

The next step is to use the AET (Application Enhancement Tool) to automatically extend the ERP order header field in the UI configuration.


5. Configure the layout

Once you have the field available you can configure the layout as normal to display the field in the Web UI.

And then the ECC value is automatically displayed in the UI




Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Vikas Singh
      Vikas Singh

      Thanks for taking the time to write this - helped me a great deal , especially configuring the LORD_MAPPING table.

      Author's profile photo Former Member
      Former Member

      Hello, Thanks for the informative posting. It helped us, but I just want to mention that

      activation of Enterprise Business Functions LOG_SD_CI_01 and LOG_SD_SIMP_02 in ECC are required before LORD enhancements will work.

      Kind regards


      Author's profile photo Former Member
      Former Member

      How to view the entire blog? Currently it shows only

      1. Extend the ECC communication structures.

      Thanks and regards,

      Author's profile photo Tony Rosenthal
      Tony Rosenthal
      Blog Post Author

      Hi CRM Beginner,

      The blog appears fine for me on SCN, however if you are still having problems it is also on the BluefinSolutions website here -->



      Author's profile photo Former Member
      Former Member

      Thank you Tony.

      Author's profile photo Former Member
      Former Member


      I'd like to do the same with more "complicated" fields.

      So I am wondering, how can we know which program/screen can be used ?

      For instance I'd like to manage fields in program SAPLATP4, screen 500 (Availability control)


      Author's profile photo Eric Vota
      Eric Vota

      If you plan to do this work of enhancing the LORD API, have a look at OSS Note 1224179.  You'll find it helpful.