on 03-30-2007 11:23 AM
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
Hi
I need some help reqgarding this.
I am creating business activity using BAPI_BUSPROCESSND_CREATEMULTI.
The procedure is as follows:
1. GUID_CREATE
2. BAPI_ACTIVITYCRM_CREATEMULTI
3. BAPI_ACTIVITYCRM_SAVE
4. BAPI_TRANSACTION_COMMIT
However, during the creation of first activity,
i will get a dump titled 'SAPSQL_ARRAY_INSERT_DUPREC'
I think it happened because BAPI_ACTIVITYCRM_CREATEMULTI will create the activity, hence when BAPI_TRANSACTION_COMMIT is called, it is considered duplicate.
Anyone has any idea why this happened?
Any help is appreciated and will be rewarded.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi chaves,
Can you send sample code for how to create Service ticket throught the bapi?
Points will be awarded.
Regards,
Vinothkumar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Miguel,
I was searching the internet for a solution in order to get the Bapi_Busprocessnd_Createmulti create a service ticket. I am also using it from a SAP portal application just like you.... and therefore everything should be RFC enabled. I have a few questions and I hope you can help with those:
- You mention that at first you should use the CRM_GUID_CREATE function module in order to create a guid as input for the bapi Bapi_Busprocessnd_Createmulti. But how can call this function module because it is not RFC enabled?
- Is it possible for you to share the input parameters that you have used in order to create a service ticket in CRM?
I hope you can help me with these questions.... that would be fantastic!
Thanks in advance.
Kind regards,
Rik Janssen
Message was edited by:
Rik Janssen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rik,
Unfortunately this process has been put aside by the project team and I've never finished it.
But, to answer your question, all the Function Modules are wrapped in a Z* FM which is RFC enabled. You just have to call this one, developed by you, and, inside, you call the standard FM's on the following order:
1. CRM_GUID_CREATE
2. BAPI_BUSPROCESSND_CREATEMULTI
3. BAPI_BUSPROCESSND_SAVE
4. BAPI_TRANSACTION_COMMIT
There is documentation on BAPI_BUSPROCESSND_CREATEMULTI, plus you'll find code examples (not only for service tickets, but for sales orders, for example - the way you fill the structures is similar) on SDN if you search for it.
All the best,
Miguel
Hi Miguel,
Thanks for your quick response!!
Actually, I already knew the option to use a rfc enabled wrapper bapi, but I hoped you would have another solution in a way that we only have to use standard bapi's.
The documentation regarding the Bapi_Busprocessnd_Createmulti is very limited, so it is very hard to find the correct input parameters.
But anyway, thnx for your response!
Kind regards,
Rik
Message was edited by:
Rik Janssen
Hi,
SAP Note 954496 solved it.
Thanks to all,
Miguel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Miguel,
you should try this: BAPI_TRANSACTION_ROLLBACK
For us it's worked sometimes in similar cases.
Kind regards:
Pal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.