Skip to Content
0
Former Member
Mar 30, 2007 at 10:23 AM

CRM Service Ticket creation - Buffer refresh

108 Views

Hi,

I am creating Service tickets using bapi BAPI_BUSPROCESSND_CREATEMULTI which is called in a RFC from a SAP Portal. It works fine for a single creation. However, when more than one service ticket is to be created, I get a short dump.

I try to simulate this using transaction SE37 and testing the FM. If I run it once and leave the transaction and then run it again, it works well. It runs well for any number of times I repeat this procedure. But if I run it twice without leaving transaction SE37, i.e., Execute--> F3(Back) --> Execute, I always get the short dump at the second run.

The short dump I get is: OBJECTS_OBJREF_NOT_ASSIGNED - Access via 'NULL' object reference not possible.

It occurs on method SELECT_PROFILES_BY_APPL_REF of class CL_TRIGGER_SELECTOR_PPF. It seems to me that this is a Buffer issue.

I tried to use also the the function module CRM_ORDER_INITIALIZE, but to no sucess.

The sequence of FM used in my RFC are as follows:

1. CRM_GUID_CREATE

2. BAPI_BUSPROCESSND_CREATEMULTI

3. BAPI_BUSPROCESSND_SAVE

4. BAPI_TRANSACTION_COMMIT

5. CRM_ORDER_INITIALIZE (I tried this one on different positions)

Any light on this would be very much appreciated.

Thanks to all,

Miguel

Message was edited by:

Miguel Chaves