cancel
Showing results for 
Search instead for 
Did you mean: 

Error in consecutive call to CRM_ORDER_MAINTAIN for service confirmation item

Former Member
0 Kudos

Hello Expert,

   I am facing problem in using CRM_ORDER_MAINTAIN for creating service confirmation items. Scenario is as follows:

-For every service confirmation ( Material confirmation as well) item creation CRM_ORDER_MAINTAIN need to be called separately.

- External system calls this BAPI to create service confirmations in a sequence for every item once the control is back from SAP. Everything is

  synchronous from external system.

- Now first service confirmation item is created successfully all the time.

- in Second service conf item creation i always get the error " Updating could not be completed".  if i wait for sometime  and try calling this BAPI again

  i dont get this error.

Looks like BAPI return back the control even though there is some background processing going on but when i call the BAPI again for second item

it expects the background processing to be complete for first item.

I cant debug the system because i never get this issue in debugging because of time lag.  Message is also very generic so cant investigate further.

Any help will be highly appriciated.

thanks

Vivek

Accepted Solutions (1)

Accepted Solutions (1)

former_member191572
Contributor
0 Kudos

Hi,

That may be because of the buffer, After every save of the transaction call the FM CRM_ORDER_INTIALIZE to clear the buffer.

Former Member
0 Kudos

Hello Gobi,

     I tried searching the FM CRM_ORDER_INITIALIZE in CRM system but no such FM exists.

Can you please let me know the correct FM name ?

Regards

Vivek

former_member191572
Contributor
0 Kudos

Please check in crm

Former Member
0 Kudos

Thanks Gobi. It looks like your solution is working.

Answers (2)

Answers (2)

former_member188346
Active Participant
0 Kudos

Hi Vivek,

Any success you got? Please update.

Regards,

Bhushan

former_member188346
Active Participant
0 Kudos

Hi Vivek,

Please explain me how you are calling CRM_ORDER_MAINTAIN from external system. As this is a FM and not a RFC enabled FM. Also, how you are using CRM_ORDER_SAVE and BAPI_TRANSACTION_COMMIT FM after that call. Expplain me the flow.

Why I am asking you is to analyze some this before suggesting.

Thanks,

Bhushan

Former Member
0 Kudos

Hello Bhusan,

                  I am calling the FM inside an RFC wrapper and I am calling all three FM in a sequence in my Wrapper.

CRM_ORDER_MAINTAIN

CRM_ORDER_SAVE

BAPI_TRANSACTION_COMMIT   -  this i am calling with WAIT = 'X'.

Regards

Vivek

former_member188346
Active Participant
0 Kudos


Hi Vivek,

I think the RFC wrapper means you ahve done below steps:

  1. Created a FM, RFC enabled in CRM
  2. Called all these in same order.
  3. Called this newly created RFC/BAPI from your external system

Am I correct?

Regards,

Bhushan

Former Member
0 Kudos

yes

former_member188346
Active Participant
0 Kudos

Hi Vivek,

Here what I can suggest you is a bit different, so just try it once:

  1. Create a se24 new class say zabc and a new method say zxyz.
  2. Call your RFC FM in this new method providing all relavant input parameters.

And process again, see how it behaves...

All the best,

Bhushan