on 09-05-2006 11:26 AM
Hi all,
I have created a custom RFC where I am using FM "CRM_ICSS_SRVREQ_CREATE". After this i am calling "CRM_ORDER_MAINTAIN" to update the same Service request for updating product version and activity.
The service request created but it does not update the Activity category or you can say no effect of calling FM "CRM_ORDER_MAINTAIN".I tried "BAPI_ORDER_CHANGEMULTI" also in place of CRM_ORDER_MAINTAIN. But it does not work.
When i execute it in Debug mode it works fine. Can anyone suggest me what causes the RFC to behave like this or what could be the solution.
Thanks & Regards,
Animesh
Hi Animesh
What parameter did you set for "Reported By" and "Message Processor" in the FM CRM_ICSS_SRVREQ_CREATE. I am having a lot of problems regarding this. Can you please help?
Thanks
Saumyendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Animesh,
Can you please help in sharing the solution if your problem has been resolved,
I have a similar requirement to call the FM's mentioned by you in an Z report.
Thanks in advance.
Mansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Animesha,
Call FM BAPI_TRANSACTION_COMMIT after you call CRM_ORDER_MAINTAIN.
Regards,
Karthik.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Karthik,
Sorry to mention, but i am already using this.
When i put debugger Before CRM_ORDER_MAINTAIN and after CRM_ICSS_SRVREQ_CREATE the RFC gives the desired output.
I think it might be some locking problem so i tried FUNCTION 'ENQUEUE_READ' to check whether GUD is locked but it is not the case.
Thanks & Regards,
Animesh
Hi Animesh,
When i refer to the FM CRM_ICSS_SRVREQ_CREATE, i find COMMIT WORK is used after CRM_ORDER_SAVE. COMMIT WORK will update with start delayed (as per SAP documentation)
and COMMIT WORK AND WAIT will update with immediate start.
I think this could be the problem. Just check by adding the statement COMMIT WORK AND WAIT or call BAPI_TRANSACTION_COMMIT with parameter WAIT as TRUE before you call FM CRM_ORDER_MAINTAIN.
Let me know if this works.
Regards,
Karthik.
Hi karthik,
first of all thanks for your quick replies.
Now, Still its not working. This is the order in which i am calling the FMs:
CALL FUNCTION 'CRM_ICSS_SRVREQ_CREATE'
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' (wait = true)
CALL FUNCTION 'BAPI_BUSPROCESSND_CHANGEMULTI'
CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'(wait = true)
I tried commit work and wait also but it also does not works.
Thnks & Regards,
Animesh
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.