I just learned a fun trick when using a BAPI. I’ve been designing a dynpro transaction and I used a BAPI to pull some information. What I discovered is that certain BAPI’s have some messages that automatically get displayed, and also caused a weird behavior of leaving the screen (without requesting it. ha ha ha). So today I talk about suppressing BAPI messages within a method or form.
Well, I learned a quick fix for this, when calling a function, add the DESTINATION = ‘NONE’.
this will suppress the messages of the BAPI, and just execute the data retrieval I was looking for.
This is a quick one… I hope you find it useful.As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,