‎2006 Apr 05 9:31 AM
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
‎2006 Apr 05 10:14 AM
Hi,
You can try this BAPI <b>BAPI_BUS2001_CREATE</b> to create Project Definition.
Read the FM documentation.
Regards
vijay
‎2006 Apr 05 10:02 AM
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
‎2006 Apr 05 10:05 AM
as Frederic mentioned you cannot use BDC for CJ20N as it uses controls. you should go for a BAPI.
BAPI_PROJECTDEF_CREATE
Regards
Raja
‎2006 Apr 05 10:14 AM
Hi,
You can try this BAPI <b>BAPI_BUS2001_CREATE</b> to create Project Definition.
Read the FM documentation.
Regards
vijay
‎2006 Apr 05 1:17 PM
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
‎2006 Apr 05 1:52 PM
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