cancel
Showing results for 
Search instead for 
Did you mean: 

What the difference of the two way access SAP CRM?

Former Member
0 Kudos

Dear Superman,

I have a question, what the difference of the two way access SAP CRM?

1)

// Calls remote function module

wdContext.currentBapi_XXXX_RegElement().modelObject().execute();

// Synchronise the data in the context with the data in the model

wdContext.nodeOutput().invalidate();

wdContext.currentBapi_XXXX_RegElement().modelObject().modelInstance().disconnectIfAlive();

2)

wdThis.wdGetXXXXCustController().executeXXXXReg(A, B, C, D);

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Jie,

You are accessing the CRM through Bapi/RFC Bapi_XXXX_Reg...

As you have mentioned the piont - 1 and point - 2.

Point -1 :- Method Definition for calling CRM RFC

executeXXXXReg()

{

try {

//Once you create the object for RFC

Bapi_XXXX_Reg_Input input = new Bapi_XXXX_Reg_Input(WDModelScopeType.APPLICATION_SCOPE)

wdContext.Bapi_XXXX_Reg_Input ().bind(input);

// For Executing, you can use either

wdContext.currentBapi_XXXX_RegElement().modelObject().execute();

OR

input.execute();

//Then invalidate the output node of the RFC

wdContext.nodeOutput().invalidate();

} catch (Exception ex){

// Catch the Exceptions

} finally {

// Close the RFC Connection

wdContext.currentBapi_XXXX_RegElement().modelObject().modelInstance().disconnectIfAlive();

}

}

Then you can call this executeXXXXReg() method

wdThis.wdGetXXXXCustController().executeXXXXReg();

Hope it will helps

Regards

Arun

Former Member
0 Kudos

Thanks for your feedback.

One more question, only one way to access back system (SAP CRM)?

Answers (0)