2007 Dec 18 9:01 AM
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.
2007 Dec 18 9:09 AM
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...
2007 Dec 18 9:09 AM
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.