Skip to Content
Author's profile photo Amal Aravind

LORD Enhancements, additional address fields in Parties Involved in ERP Quotation

Document Name:

CRM Web UI – LORD Enhancement, Addition of Address field in Parties Involved

Objective:

To add address fields into ‘Parties Involved’ assignment block in LORD transactions

Description:

This document will guide through the steps to add Street2, Street3, Street4 and Street5 in ‘Parties Involved’ assignment block in LORD transactions ERP Quotation and ERP Sales Order

SAP Module:

CRM/ECC SD

Author:

Amal Aravind

Detailed Steps:

Step 1: In ERP System (ECC), enhance the communication structures, implement relevant BADIs and populate mapping tables.

  • Go to the T–Code SE11 Append the structure TDS_PARTY_COMV with the required fields as shown below, here we are adding the fields Street2, Street3, Street4 and Street5.

PS : The name of the fields should start with the prefix ‘ZZ’ which is the given customer namespace.


.APPEND

Types

ZZAPP_PARTY_COMV

ZZSTR_SUPPL1

Types

AD_STRSPP1

ZZSTR_SUPPL2

Types

AD_STRSPP2

ZZSTR_SUPPL3

Types

AD_STRSPP3

ZZLOCATION

Types

AD_LCTN

/wp-content/uploads/2015/03/1_668681.png

  • Append the structure TDS_PARTY_COMC with the fields as shown below .

PS : The names of the fields added to both structures should remain same.

.APPEND

Types

ZZAPP_PARTY_COMC

ZZSTR_SUPPL1

Types

CHAR1

ZZSTR_SUPPL2

Types

CHAR1

ZZSTR_SUPPL3

Types

CHAR1

ZZLOCATION

Types

CHAR1

/wp-content/uploads/2015/03/2_668682.png

  • Go to TCODE : SM30 and for the LORD_MAPPING table add the following entries.

Object ID

Field Name

Internal Field Name

Reference Field Name

External Field Name

Program Name

PARTY

ZZLOCATION

GS_ADDRESS-LOCATION

                   

                   

SAPLV09C

PARTY

ZZSTR_SUPPL1

GS_ADDRESS-STR_SUPPL

                   

                   

SAPLV09C

PARTY

ZZSTR_SUPPL2

GS_ADDRESS-STR_SUPPL

                   

                   

SAPLV09C

PARTY

ZZSTR_SUPPL3

GS_ADDRESS-STR_SUPPL

                   

                   

SAPLV09C

/wp-content/uploads/2015/03/3_668683.png

/wp-content/uploads/2015/03/4_668690.png

  • Implement  the BADI BADI_LORD_DO_PAI in the Enhancement Spot ENH_SPOT_LORD.

/wp-content/uploads/2015/03/5_668691.png

/wp-content/uploads/2015/03/6_668692.png

  • Write the below code in the method : IF_BADI_LORD_DO_PAI~ADD_SUPPLY_LIST.

Code

METHOD if_badi_lord_do_pai~add_supply_list.
DATA : ls_supply TYPE tds_field_supply.
IF iv_object_id eq ‘PARTY’.
case iv_module.
when ‘ON_REQUEST_1000’.
clear ls_supply.
ls_supply-field =
‘ZZSTR_SUPPL1’.
ls_supply-check =
‘N’.
append ls_supply to ct_supply.
clear ls_supply.
ls_supply-field =
‘ZZSTR_SUPPL2’.
ls_supply-check =
‘N’.
append ls_supply to ct_supply.
clear ls_supply.
ls_supply-field =
‘ZZSTR_SUPPL3’.
ls_supply-check =
‘N’.
append ls_supply to ct_supply.
clear ls_supply.
ls_supply-field =
‘ZZLOCATION’.
ls_supply-check =
‘N’.
append ls_supply to ct_supply.
when ‘CHANGE_ADDRESS’.
clear ls_supply.
ls_supply-field =
‘ZZSTR_SUPPL1’.
ls_supply-check =
‘I’.
append ls_supply to ct_supply.
clear ls_supply.
ls_supply-field =
‘ZZSTR_SUPPL2’.
ls_supply-check =
‘I’.
append ls_supply to ct_supply.
clear ls_supply.
ls_supply-field =
‘ZZSTR_SUPPL3’.
ls_supply-check =
‘I’.
append ls_supply to ct_supply.
clear ls_supply.
ls_supply-field =
‘ZZLOCATION’.
ls_supply-check =
‘I’.
append ls_supply to ct_supply.
when others.
endcase.
endif.
ENDMETHOD.

/wp-content/uploads/2015/03/7_668693.png

Step 2: In CRM System, enhance the communication structures, Design Layer and add the UI configurations.

  • Implement the note in CRM if it is not yet implemented in the system
    • Note : 1997193 – Enhanced fields in UI component ERP_PARTNER not being requested from ERP
  • Go to the T–Code SE11 Append the structure INCL_EEW_ERP_PARTNER_V with the required fields as shown below here we are adding the fields Street2, Street3, Street4 and Street5.

PS : The name of the fields should match with the fields which was added in ECC communication structures.

.APPEND

Types

ZZAPP_PARTY_COMV

ZZSTR_SUPPL1

Types

AD_STRSPP1

ZZSTR_SUPPL2

Types

AD_STRSPP2

ZZSTR_SUPPL3

Types

AD_STRSPP3

ZZLOCATION

Types

AD_LCTN

/wp-content/uploads/2015/03/8_668695.png

  • Append the structure INCL_EEW_ERP_PARTNER_V_X with the fields as shown below .

PS : The names of the fields added to both structures should remain same but the data type changes.

.APPEND

Types

ZZAPP_PARTY_COMC

ZZSTR_SUPPL1

Types

CRMT_BSP_ERP_TDD_INPUT

ZZSTR_SUPPL2

Types

CRMT_BSP_ERP_TDD_INPUT

ZZSTR_SUPPL3

Types

CRMT_BSP_ERP_TDD_INPUT

ZZLOCATION

Types

CRMT_BSP_ERP_TDD_INPUT

/wp-content/uploads/2015/03/9_668738.png

  • Call transaction BSP_DLC_SDESIGN_GEN and create the following entries for the Generic UI object type ERP and the referenced design object ERPPARTNER and ERPPARTNERI

Attribute Name

BOL Object

BOL Attribute

Standard

ZZLOCATION

ERPPartner

ZZLOCATION

X

ZZSTR_SUPPL1

ERPPartner

ZZSTR_SUPPL1

X

ZZSTR_SUPPL2

ERPPartner

ZZSTR_SUPPL2

X

ZZSTR_SUPPL3

ERPPartner

ZZSTR_SUPPL3

X

/wp-content/uploads/2015/03/10_668740.png

/wp-content/uploads/2015/03/11_668741.png

/wp-content/uploads/2015/03/12_668742.png

  • Change the UI Configuration of View : Partner of component ERP_PARTNER, add the fields Street 2 and Street 3.

/wp-content/uploads/2015/03/13_668743.png

  • The fields Street 2 and Street 3 are available in the Parties Involved screen of ERP Quotation.

/wp-content/uploads/2015/03/14_668744.png

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      It is a great article, thank you. But, we are NOT getting Street2 and Street3 values for 'Contact person', though we are seeing those values in corresponding ECC screen.  I can see that even in your screen shot the contact person does not have Street2/3 data.  Is there a work around for this?

      Thank you.