cancel
Showing results for 
Search instead for 
Did you mean: 

Custom message in AMDP Planning function.

praveen_kumar334
Participant
0 Kudos

Hi Team,

We are trying to display custom message in AO when we run the planning sequence. I have written the below code in the finish_execution method of IF_RSPLFA_SRVTYPE_IMP_EXEC interface.

METHOD IF_RSPLFA_SRVTYPE_IMP_EXEC~finish_execution.
data : lv_char type string .
MESSAGE ID 'RSPLF' TYPE 'I' NUMBER '001'
                 WITH 'Custom'
                      'Planningfunction'
                      'SucessfullyExecuted...'
                      .
i_r_msg->add_msg('1').
ENDMETHOD.

The above code is working fine and I am getting the custom message in AO output.

But when i write the same code in Procedure I am getting the error. PFB screenshot for code. Please advise on how to write the custom message in procedure method.

custom-message-1.jpg

Error message I am getting is Sql Syntax error : Incorrect syntax near "ID".

Regards,

Praveen

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Praveen,

you can find information about this topic in

https://www.sap.com/documents/2014/04/e23755b3-517c-0010-82c7-eda71af511fa.html

in section 3.9.

Regards,

Gregor

Answers (0)