cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in creating service request

animesh_kumar2
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Animesha,

Call FM BAPI_TRANSACTION_COMMIT after you call CRM_ORDER_MAINTAIN.

Regards,

Karthik.

animesh_kumar2
Active Participant
0 Kudos

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

Former Member
0 Kudos

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.

animesh_kumar2
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hi Mansi

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