cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Function module for creating Individual Object

Former Member
0 Kudos

Dear Experts,

Is there any Function Module for creating Individual Object.It is very Urgent.Please help me.

Thanks & Regards,

Ashok.

Accepted Solutions (0)

Answers (4)

Answers (4)

AlexShipilov
Product and Topic Expert
Product and Topic Expert
0 Kudos

We used the following FMs to create IObjects using products API:

COM_PRODUCT_UI_MAINTAIN

CRM_IBCWTY_IL_API_CREATE

COM_PRODUCT_UI_SAVE

COM_PRODUCT_UI_REFRESH

You may also check BOL models for products.

Former Member
0 Kudos

Hi Ashok,

Can you check FM: CRM_ICSS_CREATE_IOBJECT

Regards,

Madhu

ashish_nagpal
Active Contributor
0 Kudos

hi ashok

u need FM for mass uploading of BP or for creation of individual object ,if u r talking about the object then do tell which object u r talking about,LEAD,Activity or else.

or simply bus2000106,like a BP object

best regards

ashish

Former Member
0 Kudos

Hi,

can you just elaborate ur requirement?

Regards

Sourabh

Former Member
0 Kudos

Dear Sourabh,

My Requirement is Mass creation of Individual Object.For that if i have any function Module i can able to upload the data from Excel Sheet and I can create Individual Object.

Thanks & Regards,

Ashok.

former_member1063151
Active Participant
0 Kudos

Are you referring to individual object that's gonna be attached to Ibase?

Cheers,

ck.

Former Member
0 Kudos

Yes.

Regards,

Ashok.

former_member1063151
Active Participant
0 Kudos

Hi Asyok

former_member1063151
Active Participant
0 Kudos

Hi Ashok,

You'll need to at least pass in the individual object category and details. For example,

 

 DATA: k_product      TYPE comxif_product_indobj,
           k_categories   TYPE comxif_pr_s_categories,
           k_cate       TYPE comxif_prd_s_categories,
           k_admin      TYPE comxif_product_s_admin.
       
  DATA: i_categories TYPE comxif_pr_s_categories_t,
            i_product     TYPE comxif_product_indobj_t.
***************************************
*           Iobject Category          *
***************************************
  k_cate-category_id  = < your iobject category id>
  k_cate-hierarchy_id = <your iobject hierarchy id>
  k_cate-logsys         =  <current logical system>
  k_admin-task          =  <insert (I), update(U) , delete(D)>
  k_admin-logsys       =  <current logical system>
  k_admin-upname     = sy-uname.
  k_categories-data    =  k_cate.
  k_categories-s_admin = k_admin.
 
  APPEND k_categories TO i_categories.
  k_product-categories = i_categories.
 
***************************************
*     Individual object Details       *
***************************************
  k_product-task              = <insert (I), update(U) , delete(D)>
  k_product-indobj_id        = <the iobject name/id>
  k_product-object_family = <if you have no idea, just create an iobject from IB51/52 and     
                                          check table comm_product>
  k_product-logsys           = <current logical system>
  k_product-upname         = sy-uname

APPEND k_product TO i_product.
 
   CALL FUNCTION 'CRMXIF_PRODUCT_INDOBJ_SAVE'
      EXPORTING
        data   = i_product
      IMPORTING
        return = <return table> .
 
if no error in the return table, 
 
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'. 
 

You can find the category and hierarchy ID from transaction COMM_HIERARCHY for the type of product you are creating.

Hope this help.

cady.

Former Member
0 Kudos

Well done Cady! Just implemented your code and worked like a charm!! Thanks a lot!!