Application Development and Automation 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: 
Read only

Suppress BDC success message

Former Member
0 Kudos
2,902

Hello Everyone,

I have a kind of problem with running BDC transaction. I donu2019t know how get rid off success status message. I run MD03 transaction. Like this:

PERFORM bdc_transaction TABLES messtab USING 'MD03' ctu mode update.

Where CTU is set to u2018Xu2019 MODE is set to u2018Nu2019 and UPDATE is set to u2018Lu2019. As you can see table for collecting messages is also given. But in the end system displays the green message in status bar although I really donu2019t want. Iu2019ve looked through the network but found nothing. The program that call the BDC transaction works in foreground. Itu2019s a customer Z program which among the others does also this.

Is there anything I could do?

Regards

Pawel

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Kudos
1,713

if i understood yur question then,

just delete the messtab where message type = S.

10 REPLIES 10
Read only

Former Member
0 Kudos
1,713

Hi,

Use this:

call transaction 'MD03' mode 'N' using <bdcdata table>

update 'L' messages into lt_message.

Hope this helps

Regards

Shiva

Read only

Former Member
0 Kudos
1,713

I am not quite sure about it. The form BDC_TRANSACTION is the SAP standard form used with BDC recording.


FORM BDC_TRANSACTION TABLES P_MESSTAB
                     USING  P_TCODE
                            P_CTU
                            P_MODE
                            P_UPDATE.
DATA: L_SUBRC LIKE SY-SUBRC.

  IF P_CTU <> 'X'.
    CALL FUNCTION 'BDC_INSERT'
         EXPORTING  TCODE     = P_TCODE
         TABLES     DYNPROTAB = BDCDATA
         EXCEPTIONS OTHERS    = 1.
  ELSE.
    CALL TRANSACTION P_TCODE USING BDCDATA
                     MODE   P_MODE
                     UPDATE P_UPDATE
                     MESSAGES INTO P_MESSTAB.
  ENDIF.
  L_SUBRC = SY-SUBRC.
  REFRESH BDCDATA.
  SY-SUBRC = L_SUBRC.
ENDFORM.

So as you can see the transaction is being called exactly in the way you told me to. Unfortunately

Edited by: Pawel Kobylinski on Sep 1, 2010 3:21 PM

Read only

kesavadas_thekkillath
Active Contributor
0 Kudos
1,714

if i understood yur question then,

just delete the messtab where message type = S.

Read only

0 Kudos
1,713

I think the problem is that the message is also displayed on the status bar and the OP doesn't want that.

And if this correct, try running with display errors only. I think the success messages may disappear.

Rob

Edited by: Rob Burbank on Sep 1, 2010 6:06 PM

Read only

kesavadas_thekkillath
Active Contributor
0 Kudos
1,713

Hi,

what you can do is overwrite that message immediately after the call transaction statement with ur custme message.

Even though the mode is N it runs in foreground without displaying the screens.

Or you can use mode E and try it as Rob said.

Read only

0 Kudos
1,713

it seems that using 'E' mode instead od 'N' helped.

thanks a lot

regards

pawel

Read only

0 Kudos
1,713

>

> Even though the mode is N it runs in foreground without displaying the screens.

Mode 'N' never runs in foreground irrepective of error or not. Can you please help me bit to understand this? I hope i"m mistaken.

Cheers

Amit.

Read only

0 Kudos
1,713

Mode 'N' never runs in foreground irrespective of error or not.

I knew you had made a typo when you mentioned background instead of foreground

Cheers,

Suhas

Edited by: Suhas Saha on Sep 2, 2010 4:22 PM

Read only

0 Kudos
1,713

I knew there are many other Suhas also,so i had to correct before anyone dig into

Cheers

Amit

Read only

IsLen1904
Newcomer
0 Kudos
1,438

Hi,

After completing the BDC CALL statement pass the below code.

IsLen1904_0-1720527886893.png

This will suppress the standard BDC message.