on 10-30-2012 4:05 PM
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
anyone please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.