‎2010 Jul 16 3:16 PM
Hi Experts,
I have to upload lead type in CRM , transaction CRMD_ORDER
Can any one tell me which bapi i will have to use for this issue,Or is there any standered method is available,
I am trying to creat it through program "CRM_ORDER_CREATE " But i am unable to do it
Kindly help me in this issue,
Regards
Rohan
‎2010 Jul 16 4:04 PM
Hi Rohan,
Can you check if with function module BAPI_LEAD_CREATEMULTI you are sucessful? In my opinion, it's more appropriate and easier
Don't forget to call BAPI_TRANSACTION_COMMIT after this one.
Kind regards,
Garcia
‎2010 Jul 16 4:04 PM
Hi Rohan,
Can you check if with function module BAPI_LEAD_CREATEMULTI you are sucessful? In my opinion, it's more appropriate and easier
Don't forget to call BAPI_TRANSACTION_COMMIT after this one.
Kind regards,
Garcia
‎2010 Jul 19 1:17 PM
Hi Bruno ,
Thanks for the help,
I have tride to update Lead Type Using BAPI,
I have passed the Header Internal table and given lead type value in that ,
i am sending you code for your reference,
Please tell me if any thing wrong in that,
And please tell me which table i can check that lead type is updated, I checked CRM_LEAD_tYPE table.
REPORT ZCR_BAPI_LEAD_TYPE2.
data:IT_HDR type TABLE OF BAPIBUS2000108_HEADER_INS.
DATA: wa_hdr LIKE LINE OF IT_HDR.
BREAK-POINT.
wa_hdr-GUID = '0'.
wa_hdr-HANDLE = '0'.
wa_hdr-PROCESS_TYPE = 'LEAD'.
wa_hdr-OBJECT_ID = '0'.
wa_hdr-PREDECESSOR_PROCESS = '0'.
wa_hdr-PREDECESSOR_OBJECT_TYPE = '0'.
wa_hdr-PREDECESSOR_LOG_SYSTEM = '0'.
wa_hdr-BIN_RELATION_TYPE = '0'.
wa_hdr-LOGICAL_SYSTEM = '0'.
wa_hdr-DESCR_LANGUAGE = '0'.
wa_hdr-LANGU_ISO = '0'.
wa_hdr-DESCRIPTION = '0'.
wa_hdr-POSTING_DATE = '0'.
wa_hdr-SOURCE = '0'.
wa_hdr-IMPORTANCE = '0'.
wa_hdr-LEAD_TYPE = '12345'.
APPEND wa_hdr to IT_HDR.
CALL FUNCTION 'BAPI_LEAD_CREATEMULTI'
EXPORTING
TESTRUN = 'X'
TABLES
HEADERX = IT_HDR
HEADER = IT_HDR
if sy-subrc eq 0.
call function 'BAPI_TRANSACTION_COMMIT'.
endif.
‎2010 Jul 21 12:18 PM
Hi there,
By giving a quick-look into your code to create a lead, I have four considerations to make:
- You can check for available lead types at table: CRMC_LEAD_TYPE. It's a four character code, not five.
- Fill the HANDLE attribute of wa_hdr structure, with value 1.
- Also, you must fill HEADERX parameter with update flags. Just create a structure of HEADERX type, and mark with 'X' the fields that will be considered to create the lead.
- In TABLES section, obtain also information of parameters CREATED_PROCESS, RETURN, SAVED_PROCESS to get the result of your call.
Hope that helps a little more.
Kind regards,
Garcia
‎2010 Jul 21 8:25 PM