Application Development and Automation 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: 
Read only

RFC executing a BDC

Former Member
0 Likes
1,191

I have written an RFC that executes a BDC.

When I test this in SAP it works fine.

However when the external application calls this RFC the transaction CJ20N returns an Abort message.

We have tried logging on as a dialog user too but an abort messageis still received.

I have been led to believe that it is possible to call a BDC from an RFC.

Can anyone confirm whether this is true?

The message when it aborts is:

"Error calling a method of the tree control"

Many Thanks

David

Message was edited by: David Bibby

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
792

Hi,

You can try this BAPI <b>BAPI_BUS2001_CREATE</b> to create Project Definition.

Read the FM documentation.

Regards

vijay

5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
792

Hi David,

Are you abble to call a BDC of the transaction CJ20N in background task ?? I'm surprise, I thougth that SAP will dump because it can't create a container for the Tree ..

Why don't you use BAPI ? BAPI is made for that goal.

Rgd

Frédéric

Read only

0 Likes
792

as Frederic mentioned you cannot use BDC for CJ20N as it uses controls. you should go for a BAPI.

BAPI_PROJECTDEF_CREATE

Regards

Raja

Read only

Former Member
0 Likes
793

Hi,

You can try this BAPI <b>BAPI_BUS2001_CREATE</b> to create Project Definition.

Read the FM documentation.

Regards

vijay

Read only

Former Member
0 Likes
792

Hello David,

If you really need to use Batch Input (BDC) for this, use transaction CJ20 (see SAP note 535013). Controls (like tree control etc.) are not supported for batch input.

Cheers,

Martin

Read only

0 Likes
792

Thanks all for your replies.

BAPI_PROJECTDEF_CREATE is no use to me as I need to edit an existing project and it is a custom field.

I have now found that CJ07 suits my purposes.

Regards

David