Skip to Content

Custom message in AMDP Planning function.

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 18, 2019 at 12:48 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.