cancel
Showing results for 
Search instead for 
Did you mean: 

Lord 2 Api - Custom field on Item not updating in ECC

darren_bambrick2
Active Participant
0 Kudos

Hi All

I have a customer field in erp that I need to get populated from crm.

I have added the field to the additional data b section in vao1.

I have added the field to the TDS_ITEM_COMC and  TDS_ITEM_COMV

I have added the screen to the lord mapping table under ITEM, and I have have enabled "Automatic Field Transport".

I have updated the badi BADI_LORD_DO_PAI method Add_supply_LIST with the following code

IF iv_object_id EQ 'ITEM'.

     CLEAR ls_supply.

     ls_supply-field = 'ZZADTV'.

     ls_supply-check = 'N'.

     APPEND ls_supply TO ct_supply.

   ENDIF.


My field is being populated from CRM and is being passed through to r3.  I know this because I debugged  the function module erp_lord_get_item_multi

and I can see the correct value for my field, and there are no errors reported.


Any one got any ideas.


I have done this for a customer field on at header level and it works.


Thanks

Darren

Accepted Solutions (1)

Accepted Solutions (1)

amal_aravind123
Explorer
0 Kudos

Hello Darren,

     Please find the screenshots describing the way how it was done by me. Hope this will help you.

  • The field Application is a Z field added and mapped with ECC.

  • ZZAFLD00004M is the Field Name

  • Communication Structures

  • LORD_MAPPING table

  • Field in the Screen (Additional Data B ) of VA21/VA22 etc

  • Field in VBAP

  • BAdi's which were implemented

darren_bambrick2
Active Participant
0 Kudos

Thank you Amal

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

On eh_onsave try to change any of the standard field value (eg : add a special character at the end of the Value) save it.After  that remove the special character

Then call the method- eh_onedit and revert back the change(remove the added special character) and again save.

This has worked in my case, Can you try and let me know if it has resolved your issue ?

Thanks,

Chakri


darren_bambrick2
Active Participant
0 Kudos

Hi  All

I am still looking to resolve this issue.

The field is mapping from ECC to CRM.  I can see the value on the order item screen.  The issue now is that if I change the value it is not sent back to ecc.

For example i have a sales order with a value in my  filed of 123 in ecc.

I display this in crm and I see the value correctly.

I change the value to 241 and hit return

the value changes back to 123.

If I debug the set and get methods for the context node in crm, I see the value is being set, then a call is made to ecc but the value is not being updated there, so the original value is being set again.

Any one any ideas

Thanks

Darren

krishnendu_laha
Active Contributor
0 Kudos

Hello Darren,

Probably in ECC code should be changed as it is updated in ECC when we press save in CRM.

Thanks,

Krish

devashish_bhattacharya
Active Participant
0 Kudos

Hi,

Did you check this thread :

http://scn.sap.com/thread/1969232

Devashish

darren_bambrick2
Active Participant
0 Kudos

Hi Davashish

Yes, I have looked at this post, but it unclear what exactly was done to solve the issue.

The field I want to update in ecc is at item level on additional tab b tab.  I have updated the

TDS_IDATAB_COMV and

TDS_IDATAB_COMC structures. in ecc.

In crm

CRMST_L2_ITEM_COMV    does not have an entry for my field

CRMST_L2_ITEM_COMC    does not have an entry for my field

CRMTT_ADMINI_ERPIL       has an entry for my field

CRMTT_ADMINI_I_ERPIL    has an entry for my field

I am looking over the documentation again to see what I have missed.

Thanks