cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a z FM Module for Lead Creation

former_member182350
Active Contributor
0 Kudos

Hi Experts,

I need to create a z Function module for lead creation, I'm using BAPI_LEAD_CREATEMULTI for this.

Can anybody tell the details of the Input or the parameter tobe passed to the above BAPI??such as :

<b>TESTRUN LIKE BAPIFLAG-BAPIFLAG OPTIONAL

TABLES

HEADERX STRUCTURE BAPIBUS2000108_HEADER_INSX

ITEMX STRUCTURE BAPIBUS20001_ITEM_INSX

PARTNERX STRUCTURE BAPIBUS20001_PARTNER_INSX

PRODUCTX STRUCTURE BAPIBUS20001_PRODUCT_INSX

ORGANISATIONX STRUCTURE BAPIBUS20001_ORGMAN_INSX

DATEX STRUCTURE BAPIBUS20001_APPOINTMENT_INSX

TEXTX STRUCTURE BAPIBUS20001_TEXT_INSX

SCHED_LINX STRUCTURE BAPIBUS20001_SCHEDLINX

SERVICE_OSX STRUCTURE BAPIBUS20001_SERVICE_OS_INSX

HEADER STRUCTURE BAPIBUS2000108_HEADER_INS

ITEM STRUCTURE BAPIBUS20001_ITEM

ORGANISATION STRUCTURE BAPIBUS20001_ORGMAN_INS

PARTNER STRUCTURE BAPIBUS20001_PARTNER_INS

DATE STRUCTURE BAPIBUS20001_APPOINTMENT_INS

TEXT STRUCTURE BAPIBUS20001_TEXT_INS

PRODUCT STRUCTURE BAPIBUS20001_PRODUCT_INS

SERVICE_OS STRUCTURE BAPIBUS20001_SERVICE_OS_INS

SCHED_LIN STRUCTURE BAPIBUS20001_SCHEDLIN

RETURN STRUCTURE BAPIRET2

SAVED_PROCESS STRUCTURE BAPIBUS20001_OBJECT_ID

CREATED_PROCESS STRUCTURE BAPIBUS20001_HEADER_INS

INPUT_FIELDS STRUCTURE BAPIBUS20001_INPUT_FIELDS

DOCUMENT_FLOW STRUCTURE BAPIBUS20001_DOC_FLOW_INS</b>

What are the parameters (minimum) required tobe passed to this BAPI for creating the LEAD sucessfully??

As all these parameters are defined as optional to this BAPI; so im not in position to decide which to be passed also tried some these; not able to create the lead successfully??

Can anybody help in this regard.??

Thanks & Regards,

Arjun Pawar.

Accepted Solutions (1)

Accepted Solutions (1)

animesh_kumar2
Active Participant
0 Kudos

Hi Arjun,

To create a Lead you need to fill header headerx and created process structures only. ( Test run should be true ).But this will leave leave so many header data as blank which you need and The lead will be created with Errors that you can see in lead transaction. So Its better to fill all the necessary data initially otherwise you may need to Procees the lead later.

For Details of the fields in the BAPI just click on FM Documentation.

Regards,

Animesh

Answers (0)