Skip to Content
0
Mar 02, 2011 at 03:18 PM

Messages, function modules and Batch Input

201 Views

Hi,

I need to modify some values on the BP transaction with a batch input and I encapsulated it on a function module, because I need to call this FM from a Web Dynpro ABAP.

The problem is that some success messages are raising from the batch input, even if I set a message table to store them on the call of the batch input.

DATA: bdcdata    TYPE STANDARD TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata,
          messtab    TYPE STANDARD TABLE OF bdcmsgcoll.
  DATA: v_message   TYPE string,
            wa_messtab  TYPE  bdcmsgcoll,
            v_mode      TYPE c VALUE 'N'.

" some code here....

  CALL TRANSACTION 'BP' USING bdcdata MESSAGES INTO messtab
                                               MODE v_mode
                                               UPDATE 'S'.

How can I prevent these messages? Thanks in advance.

Regards,

Jordi