Skip to Content

Question ON bdc recording with report output

Hi,

I have a strange requirement where there I need to develop a custom report, when I execute this report I need to call another custom report and do some action on the output of the custom report I know we can use submit for just to call the report and return the results but I need to call the custom report and perform an action by pressing an custom button and than I need to save that also remember that the first calling program where its calling another custom report has other actions to perform. I had writen a BDC for that but the BDC is not selecting the output of the custom report . please suggest I had already searched in scn but didnt help.

thanks,

balu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 23 at 05:31 PM

    If you are doing the development, surely there must be a more sensible way of doing this?

    Proper encapsulation of the 'other' reports functionality should let you perform the actions or retrieve whatever information you need. And if the 'other' report is so badly designed that you can't access or extract the business logic, I would suggest refactoring it so that you can (e.g. by putting core functionality into global classes). The effort of refactoring may seem bigger at first but usually ends up similar to developing bad workarounds. The overall solution is better, easier to troubleshoot and maintain.

    Add comment
    10|10000 characters needed characters exceeded

    • Agree completely. Some "tricks" might be required when we have to call a standard program that we don't control but two custom reports? Surely there must be a much better way. If OP shared more details then we could provide more specific suggestions.

  • Jan 23 at 03:47 PM

    I'm afraid, BDC is not possible on classical list output, cause you can't address list elements as dynpro elements. You should be able to address the list status elements.Maybe someone knows better.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 23 at 04:19 PM

    I think you'll have to adapt a little bit the called report, for instance by adding a "no-display" parameter DARK, so that if you call the report via SUBMIT WITH dark = abap_true, it should behave as if the button has been pressed.

    Add comment
    10|10000 characters needed characters exceeded

    • Sandra Rossi Balakrishna t Krishna

      In fact, my answer is the same as the one by Mike Pokraka, i.e. you must refactor. If parameter dark = abap_true, modify the report B in such a way that it corresponds to the button being pressed (but without pressing it).