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 |
- 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 |
- 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 |
- Implement the BADI BADI_LORD_DO_PAI in the Enhancement Spot ENH_SPOT_LORD.
- 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.
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 |
- 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 |
- 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 |
- Change the UI Configuration of View : Partner of component ERP_PARTNER, add the fields Street 2 and Street 3.
- The fields Street 2 and Street 3 are available in the Parties Involved screen of ERP Quotation.
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.