cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a complain using FM "CRM_ORDER_MAINTAIN"

Former Member
0 Kudos

Hi experts,

How to create a complain using FM "CRM_ORDER_MAINTAIN" and to capture the complain id which is auto generated.

Please help me finding solution

Thanks

Aisurya

Accepted Solutions (0)

Answers (1)

Answers (1)

praveen_kumar194
Active Contributor
0 Kudos

hi

try to create complaint manually and before save it go into debugging mode (\h in command window) and press save. debugging window opens and put a break point at function module CRM_ORDER_MAINTAIN. this will help you to identify the information that has to be sent to the FM to create a complaint. write code according to the information you found and after that call , CRM_ORDER_SAVE function module to save the transaction. in this fm ET_SAVED_OBJECTS you can find the newly created transaction id.

for new complaints you can use GUID_CREATE FM to create new guid and you can give this value to FM as you find and also to the CRM_ORDER_SAVE fm. call BAPI_TRANSACTION_COMMIT finally. hope it helps you.