This website is not affiliated with, sponsored by, or approved by SAP AG.

How to load opportunities/projects into CRM

CRM related discussion only

Moderators: Snowy, thx4allthefish, Lost Identity

Postby Shn » Mon Nov 22, 2004 1:38 pm

Hi,

Could any one send me the code for loading the opportunities..Basically I'm looking to create leads..may be this would help me a lot.

p_shanmuganathan2002@yahoo.com

Appreciate your help.

Thanks,
Shan
Shn
 

Problem Creating Opportunity via BAPI Upload Program

Postby 6th_Hokage » Wed Mar 29, 2006 8:23 am

Hi all,

I am creating an opportunity via an upload program using BAPI_OPPORTUNITY_CREATEMULTI. I can already create the opportunity however the partner, status and conditions are not updated. Kindly advise how should the input field and the respective internal tables are to be populated. For the partner, I have already populated the correct partner function and the partner no (with 10 character) but the partner is still not created.

Kindly help urgently :roll:
6th_Hokage
 
Posts: 9
Joined: Thu Feb 10, 2005 9:57 pm

Problem Creating Opportunity via BAPI Upload Program

Postby Michael Pedersen » Thu Mar 30, 2006 2:41 am

Hi,

for PARTNER, I have done it like this:
*---------PARTNER DATA-----------*
it_partner-ref_handle = gc_handle_1.
it_partner-display_type = 'BP'.
it_partner-no_type = 'BP'.
it_partner-ref_kind = 'A'.
it_partner-ref_partner_handle = '0000'.
it_partner-partner_no = int_tab-kundeemne.
it_partner-partner_fct = '00000021'.
it_partner-mainpartner = 'X'.

APPEND it_partner.
it_partner-mainpartner = ''.
it_partner-partner_no = int_tab-kontpers.
it_partner-partner_fct = '00000015'.
APPEND it_partner.

it_partner-partner_no = int_tab-amedarb.
it_partner-partner_fct = 'Z0000014'.
APPEND it_partner.

it_input_fields-objectname = 'PARTNER'.
it_input_fields-logical_key = '0000'.
it_input_fields-fieldname = 'PARTNER_FCT'.
APPEND it_input_fields.

it_input_fields-fieldname = 'PARTNER_NO'.
APPEND it_input_fields.

it_input_fields-fieldname = 'DISPLAY_TYPE'.
APPEND it_input_fields.

it_input_fields-fieldname = 'NO_TYPE'.
APPEND it_input_fields.

it_input_fields-fieldname = 'KIND_OF_ENTRY'.
APPEND it_input_fields.

it_input_fields-fieldname = 'MAINPARTNER'.
APPEND it_input_fields.

For STATUS I have the following:
*---------STATUS DATA------------*

it_status-ref_handle = gc_handle_1.
it_status-status = int_tab-status.
APPEND it_status.

it_input_fields-objectname = gc_object_name-status.
it_input_fields-logical_key = ''.
it_input_fields-fieldname = 'STATUS'.
APPEND it_input_fields.

For CONDITIONS I have no clue ...

Hope this helps!

Kind regards,
Michael
Regards
Michael Pedersen
Michael Pedersen
 
Posts: 33
Joined: Tue Oct 22, 2002 4:34 am
Location: Denmark

Postby bojonq » Wed Apr 05, 2006 10:41 pm

Hi ABAP_Doctor,

could you send me the code too ?
my mail : eddhie.kurnianto@gmail.com

many thanks in advance

regards
bojonq
 
Posts: 14
Joined: Tue Mar 07, 2006 1:53 am
Location: Jakarta

Postby Archy » Thu Apr 06, 2006 1:19 am

Hi,

I am loading sales transactions using BAPI_BUSPROCESSND_CREATEMULTI, but could you please send me a copy of the code(ZIPPED) as I am experiencing some problems with loading partners on a sales contract.

Thanking you in advance.

Nkonzo
My email is : nkonzwenhlem@absa.co.za
Archy
 
Posts: 5
Joined: Thu Oct 14, 2004 2:54 am

Postby seland » Sun Jun 24, 2007 9:25 pm

Dears,

Could anyone send me a copy of the code, thanks a lot!

My email is:
seland@yeah.net
seland
 
Posts: 17
Joined: Wed Aug 03, 2005 10:13 pm

Re: How to load opportunities/projects into CRM

Postby HanneMat » Fri Feb 05, 2010 5:54 am

Hello

I am also using the BAPI_OPPORTUNITY_CREATEMULTI, and I can create oppotunities, but no schedulelines.
I do fill out the scheduleline

************** scheduleline ***************

gs_scheduleline-item_handle = gs_handle_2. "counter
gs_scheduleline-handle = gc_handle_1. "allways 1
gs_scheduleline-quantity = gs_in_opp-volume.
gs_scheduleline-schedlin_no = 1.
APPEND gs_scheduleline TO gt_scheduleline.

gs_input_fields-objectname = 'SCHEDLIN'.
gs_input_fields-ref_kind = 'B'.
gs_input_fields-ref_handle = gs_handle_2.
gs_input_fields-fieldname = 'QUANTITY'.
APPEND gs_input_fields TO gt_input_fields.
gs_input_fields-fieldname = 'SCHEDLIN_NO'.
APPEND gs_input_fields TO gt_input_fields.

****************************

I also have a problem with the field "probability" in "OPPORT_H". Other fields in "OPPORT_H" are ok. Ex. "expect_end" and "startdate".

Does anybody know what I am doing wrong ?

Best regards,
Hanne :?
HanneMat
 
Posts: 1
Joined: Fri Feb 05, 2010 4:17 am

Re: How to load opportunities/projects into CRM

Postby narendrapunjabi » Thu Apr 14, 2011 6:26 am

Hello,

I am also stuck on the same point.
I am able to create opportunity but opportunity is not getting saved with QUANTITY i have used scheduled items as well.

Can Some1 plz give me the reference code for the same.

Thanks & Regards,
Narendra.
narendrapunjabi
 
Posts: 2
Joined: Thu Apr 14, 2011 6:18 am

Re: How to load opportunities/projects into CRM

Postby Gothmog » Thu Apr 14, 2011 6:57 am

How about you create a new topic with your specific problem ?
That's at least the fourth time this one is brought back from the dead for a 'me too !'.
It'll be the last, however, since I'm locking it.

By the way, basic rules are here - read them.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1943
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Previous

Return to CRM :: SAP CRM

Who is online

Users browsing this forum: No registered users and 2 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.