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

BDC NOT WORKING BACKGROUND

Former Member
0 Likes
506

Hi all

I did a bdc for the tcode mira. It works fine in the foreground and displays

a status message "INVOICE DOCUMENT 411523 POSTED" is raised by SAP itself.

But in backgroud the program gets finished,but no documents is posted.

I want to run the program only in background .How to handle the message in background?

Thanks all.

4 REPLIES 4
Read only

Former Member
0 Likes
475

ru using Call Transaction or session method.

If u r using Call transaction then pass the messages into one more internal table and display the messages.

Ex.

DATA: I_MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

CALL TRANSACTION 'MIR7' USING I_BDCDATA

MODE G_MODE

UPDATE 'S'

MESSAGES INTO I_MESSTAB.

loop at i_messtab and display the messages.

Read only

Former Member
0 Likes
475

r u using .

commit work.

after update.

null

Read only

venkata_ramisetti
Active Contributor
0 Likes
475

Hi,

Did u add COMMIT WORK AND WAIT after call to MIRA ? If not, add this and check again.

Thanks

Ramakrishna

Read only

0 Likes
475

hi ramakrishana ,

Even i hav the same problem , could u please tell me in wat way COMMIT WORK will play in this issue.

-shan