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: 

Messages, function modules and Batch Input

former_member276384
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

For lock flag use BAPI_BUPA_CENTRAL_CHANGE. the field is available in parameter CENTRALDATA.

You can use BUPA_CENTRAL_CHANGE( i think this will be used in BAPI_BUPA_CENTRAL_CHANGE ) for internet user details.please refer

4 REPLIES 4

kesavadas_thekkillath
Active Contributor
0 Kudos

For transaction BP there are standard bapi's available.

In se37 please search for BAPI_BUPA*. Choose the required one and use it in your Z function module.

Former Member
0 Kudos

Hi,

Your code is correct.

For some cases you can't stop the messages to be displayed.

If you run the FM in backend the messages will not be displayed.

In the case of Webdynpro, if you call it from Portal, it will not throw the any Messages it will store in Message table.

The Best way is to Use some BAPI's.

Thanks

Arbind

0 Kudos

Yes,

there are some BAPIs to work with BP, but I could not find any that meets my requirements. I need to do two actions:

1 - complete the "Internet user" tab

2 - set the "central lock" flag on the status tab

If you have a BAPI or FM to make these two actions, please let me know. I spent two days looking for them and finally I've decided to use the batch inputs (I hate them).

Regards,

Jordi

kesavadas_thekkillath
Active Contributor
0 Kudos

For lock flag use BAPI_BUPA_CENTRAL_CHANGE. the field is available in parameter CENTRALDATA.

You can use BUPA_CENTRAL_CHANGE( i think this will be used in BAPI_BUPA_CENTRAL_CHANGE ) for internet user details.please refer