Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Call Ecc BAPI into CRM, which does not exist in CRM

Former Member
0 Kudos
148

Hi gurus,

i want to call the ECC bapi  "BAPI_QUOTATION_CREATEFROMDATA2" into the CRM program. but the problem is this BAPI is not exist in CRM.

my requirement is to create Quotation in ecc from report in CRM. so can u please help me to find the solution.

Thanks,

Mann.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
81

Hi Manish,

You should be able to call BAPI_QUOTATION_CREATEFROMDATA2 from CRM to ECC to get the status. The BAPI doesnt need to exist on CRM system.

u can follow below way.

Go to SM59, Press Create. 

Enter the RFC Destination name: D05-205-TEST 

Connection Type: 3 

In Description: Test Connection to D05  

In The Technical Settings Tab, enter the system details   

In The Logon/Security Tab, enter the logon details.

Click on Save. A Popup will imply that connection has been created  

Now Press the TEST CONNECTION to check the connection.  

  

This means the connection to the remote system was successful. 

If the connection fails we get an error like this 

However establishing a connection will not ensure logging on to the target system. For that we have to test REMOTE LOGON. 

Press the REMOTE LOGON button 

If we can see this

And this

Then our connection was successful. 

However if we see the screen as shown below then there is an authentication failure (user-id or password is wrong).

The new connection will become visible in the SM59 list like this.

After establishing the connection, let us create a program, which would trigger the RFC in D05 system. 

Go to SE38 and create a program ZGB_RFC 

Write the following code

Activate (Ctrl+F3) and Execute (F8) 

Above way u can check ur code also.

if it helps , please reward.

Thanks

Tarak

2 REPLIES 2

Former Member
0 Kudos
82

Hi Manish,

You should be able to call BAPI_QUOTATION_CREATEFROMDATA2 from CRM to ECC to get the status. The BAPI doesnt need to exist on CRM system.

u can follow below way.

Go to SM59, Press Create. 

Enter the RFC Destination name: D05-205-TEST 

Connection Type: 3 

In Description: Test Connection to D05  

In The Technical Settings Tab, enter the system details   

In The Logon/Security Tab, enter the logon details.

Click on Save. A Popup will imply that connection has been created  

Now Press the TEST CONNECTION to check the connection.  

  

This means the connection to the remote system was successful. 

If the connection fails we get an error like this 

However establishing a connection will not ensure logging on to the target system. For that we have to test REMOTE LOGON. 

Press the REMOTE LOGON button 

If we can see this

And this

Then our connection was successful. 

However if we see the screen as shown below then there is an authentication failure (user-id or password is wrong).

The new connection will become visible in the SM59 list like this.

After establishing the connection, let us create a program, which would trigger the RFC in D05 system. 

Go to SE38 and create a program ZGB_RFC 

Write the following code

Activate (Ctrl+F3) and Execute (F8) 

Above way u can check ur code also.

if it helps , please reward.

Thanks

Tarak

0 Kudos
81

Hi guru,

i am able to call this BAPI from CRM system and create quotation in ecc by program, but i am facing one more problem i have to create the doc flow between CRM opportunity and ecc Quotation in ECC. so how could i do that, please help me on this. as when i am passing the opportunity no in ecc its showing error the opportunity no. does not exist in ecc.