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

problem in call transaction

Former Member
0 Likes
349

Hi All,

I have some data extraction based on the select parameters in the selection screen. After doing some validations on those extraction data, I have some records which need to go for BDC for a particular transaction. But user wants is, first he wants all records to display as ALV report and once he press OK button, then all success records should go to BDC. But he requires the same in background as well as foreground.

So I have created an ALV and in the tool bar I have created 2 buttons, one is FG and BG. After executing the BDC I need to display the log with the records successful and unsuccessful. I thought of going with Call transaction. but still i have a doubt to how to go ahead... please help wme with valid comments

Please let me know if anyone having any suggestions on this.

Hi All,

I have some data extraction based on the select parameters in the selection screen. After doing some validations on those extraction data, I have some records which need to go for BDC for a particular transaction. But user wants is, first he wants all records to display as ALV report and once he press OK button, then all success records should go to BDC. But he requires the same in background as well as foreground.

So I have created an ALV and in the tool bar I have created 2 buttons, one is FG and BG. After executing the BDC I need to display the log with the records successful and unsuccessful. I thought of going with Call transaction. but still i have a doubt to how to go ahead... please help wme with valid comments

Please let me know if anyone having any suggestions on this.

2 REPLIES 2
Read only

Former Member
0 Likes
326

use following call transaction options.

CALL TRANSACTION tcode USING bdcdata MODE var MESSAGES INTO it_messtab.

pass mode into a variable... pass N for background and A for foreground BDC Processing...

you'l get the messages (success or error) occured during transaction processing into the it_messtab...

Read only

Former Member
0 Likes
326

Hi,

Executing in foreground and Background is not clear.

Foreground: Executing BDC showing all the screen of the transaction? and background is with out showing the process flow?

Or if you want to execute the whole program background means, ALV is not allowed in the background. then no need to think about two buttons.

Let me know ur requirement clearly.