on 06-23-2015 8:02 AM
Hi,
I have requirement to mass create custom activity.
Problem I am having is that I am unable to create the activity with 'status reason'.
It is updating 'activity reason' but has no means to updating 'status reason'.
Wondering if anyone has encountered this issue and can suggest a solution?
I am using standard FM's for this.
Trouble is with the 'service os', which processes the 'activity reason' with out any issue but does not update 'status reason'.
Regards,
Prasad
Hi Prasad,
In general it's a good idea to simulate what you want to achive in crmd_order (or even Web UI) and put a break-point in crm_order_maintain and check what all fields are getting filled and do exactly the same in your code.
There might be some very small thing that you would have missed.
Regards,
Parul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parul,
I have tried that as well.
The scenario works in CRMD_ORDER as well as WebUI.
The crm_order_maintain FM is giving me subrc as 0.
The error I am getting is as below.
Express document"update was terminated" received from author "Prasad"
My code is in attachment.
I think the error is occurring at crm_order_save!
Warm Regards,
Prasad
Hi Parul,
Bit more background on this.
I need to create the activity with both activity reason and status reason.
So, I used the FM CRM_PS_ACTIVITY_CREATE to first create the activity with activity reason. This FM does not have an option of creating status reason as well.
So, to add the status reason, I am using CRM_ORDER_MAINTAIN. I think the error is due to GUID mismatch!
But am just unable to determine how to rectify it!
Is there a standard way to create activity with both status reason and activity reason?
Regards,
Prasad
Hi Prasad,
Is your issue got resolved?
If you see the mismatch with guid you can retify it as this way
You can create header guid in first instance itself using guid_create and then call the creation standard function module and then you use the same header guid while changing the activity so that same guid will be maintained till end of program.
Regards,
Dharmakasi.
Hi,
Can you share your code what tables you are passing crm_order_maintain fm. It will be easy to identify the issue.
Regards,
Deepika.
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.