Skip to Content
0

Question ON bdc recording with report output

Jan 23 at 03:38 PM

64

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Mike Pokraka Jan 23 at 05:31 PM
4

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.

Show 1 Share
10 |10000 characters needed characters left 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.

0
Horst Keller
Jan 23 at 03:47 PM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

(if that's the point, in BDC, a "field" named 10/30 means cursor at line 10, column 30)

0

I knew that you know it :-)

But maybe the report output is ALV.

0
Sandra Rossi Jan 23 at 04:19 PM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Rossi,

thanks for your reply, can you please elaborate more on this, for example report A is calling report B via submit and in report B output we need to press a button and enter material group and click on save. So how to use this dark parameter.

thanks,

balu

0
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).

0