on ‎2019 Apr 18 6:08 PM
Hi Gurus,
I am new to CRM and been tasked to create a Request for Change Document/RFC doc via Rest API from a ticketing tool. The idea is to automate the creation of ticket from this tool.
I've browse the net and i have tried to use 2 methods for its creation.
1. Via 'CRM_ORDER_MAINTAIN' then 'CRM_ORDER_SAVE' then BAPI commit.
2. By using classes cl_ags_crm_1o_api & cl_ags_crm_1o_api_sd, created an instance call the method to add the needed data and then call save.
The RFC document is being created & saved in the CRM standard tables and i can view them in tcode: crmd_order.
However when i use tcode sm_crm (web/ui) and tried to search for the Request for Change document created, i cannot find it.
I made sure that there are no filter/s because i am only searching the created ticket on the same day/same run.
I then created a RFC doc via sm_crm(web/ui), there are only 2 fields required which is description and priority and my code has this already. When creation is done via web/ui, i can search the created entries but when i run in se38/se24 it is not showing.
I have tried to debug CRM_TEST_ORDER_MAINTAIN and have copy pasted the way it saves the data:
CRM_ORDER_SAVE' ---> BAPI commit ---> CRM_PRIDOC_INIT_EC
still not getting reflected in web/ui
Do i need to refresh or call another method/fm for the web/ui to reflect my changes?
Hoping to get some ideas soon.
Thank you,
Marc
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hello,
I managed to provide an alternative solution.
As mentioned, if the Tickets were created via Solman Web (sm_crm), the tickets are ofcouse visible when searched.
I then created tickets in Solman Web with the minimum requirement to act as my template.
Since we have a SAP standard Program: CRM_TEST_ORDER_MAINTAIN, that copies ticket. I have created a variant with the reference ticket (Created via Solman Web) assign to it.

Now in my code, every time it calls my API, it will call this sap standard program to create via reference ticket

It will create a new RFC Ticket and you need to use it for the creation of your instance

and then you can now add the description, priority and other ticket details sent from your payload.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 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.