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

Company code data not transfered to ERP

Hello all,

I'm having trouble getting the company code from CRM to ERP. We need to company code on the sold to partner when it is beeing transfered from CRM.

In CRM, we create a prospect who is getting replicated to CRM as a "sold-to light".

This all works fine but the only thing missing is the company code.

While searching I stumbled upon some posts who suggest to do it via event DE_BALE in ERP. So I did all needed customizing in tables TBE24 and TBE34, creating and copying the needed entries.

The code in the function module which I copied from the default one is

FUNCTION Z_UNI_ADD_COMPANYCODE_PROSPECT.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(IS_COMPLEX_STRUCTURE) TYPE BUSEI_COM_EXTERN
*" VALUE(IS_COMPLEX_STRUCTURE_RELATIONS) TYPE BUSEI_RCOM_EXTERN
*" VALUE(IT_COMPLEX_STRUCTURE) TYPE BUSEI_COM_EXTERN_T
*" VALUE(IT_COMPLEX_STRUCTURE_RELATIONS) TYPE BUSEI_RCOM_EXTERN_T
*" TABLES
*" CT_IDOC_CONTROL STRUCTURE EDIDC
*" CT_IDOC_DATA STRUCTURE EDIDD
*" IT_BAPIMTCS STRUCTURE BAPIMTCS
*"----------------------------------------------------------------------

DATA:

ls_e1kna1m LIKE e1kna1m,
ls_e1knvvm LIKE e1knvvm,
ls_vkorg type string,
ls_e1knb1m LIKE e1knb1m.

LOOP AT ct_idoc_data WHERE segnam = 'E1KNVVM'.
ls_e1knvvm = ct_idoc_data-sdata.
ls_vkorg = ls_e1knvvm-vkorg.
ls_E1KNB1M-BUKRS = '4100'.
ls_E1KNB1M-AKONT = '150400'.
CT_IDOC_DATA-SEGNAM = 'E1KNB1M'.
CT_IDOC_DATA-SDATA = ls_E1KNB1M.
APPEND CT_IDOC_DATA.
ENDLOOP.


ENDFUNCTION.

I also tried to debug but I just don't manage to get into this function module from CRM side.

Anyone an idea?

Regards,

Tom

edit: Maybe important to mention. We are using the WebUI at all times, no SAP GUI in CRM. Version 7.0

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2012 at 03:11 PM

    anyone please?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      There is no standard replication of company code data from CRM to ECC...if this is necessary, then it is custom development.

      Side note : Debugging on SAP GUI for replication issues is far easier.

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.