Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to surpass warning message

Former Member
0 Kudos

Hi experts,

In my RFC FM, when calling function '/ADP/SD_DOCMENT_CREATE', it gets warning message 'Sales Price Warning ...' and is asked to choose Yes/No to continue. The problem is my FM is called remotely so it cannot be stopped by any warning message. How can I surpass warning message when I call such function module?

Thanks.

Yu

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check this FM CM_F_SUPPRESS_MESSAGE perhaps it may help.

Regards,

Ferry Lianto

4 REPLIES 4

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check this FM CM_F_SUPPRESS_MESSAGE perhaps it may help.

Regards,

Ferry Lianto

0 Kudos

Hi Ferry,

How to call FM CM_F_SUPPRESS_MESSAGE? Can you kindly give me an example for that? Thanks a lot.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

If it is coded to call this popup with a decision point, the it can not be supress, unless there is some config built around it. If there isn't, the only way to get around it is to hack it and remove the call. From what you describe, it seems that this may be a warning message with buttons, whichis probably coming from a function module call that starts with POPUP*

Regards,

Rich heilman

ferry_lianto
Active Contributor
0 Kudos

Hi Yu,

Please check include programs LCK00F01 and LCKEKMLCU04 for sample codes.


  CALL FUNCTION 'CM_F_SUPPRESS_MESSAGE'
    EXPORTING
      aplid            = 'PPCO'
      arbgb            = 'BS'
      msgnr            = '011'
    EXCEPTIONS
      NOT_ACTIVE       = 0.

Regards,

Ferry Lianto