Application Development 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: 

Re: BDC

Former Member
0 Kudos

Hi All,

I am trying to create a BDC program and here is the scenario

1. There is a custom transaction code I use to pull up Screen1. Screen1 is an input screen; where I use a variant to fill in the input screen and then click "Execute". This takes me to Screen2.

2. In screen2...which is like a file explorer; I right click on the folder, which displays the a set of upto 15 reports I can execute. I select a one report and execute.

All the above 2 steps are done in a BDC recording...so coming to the question.

In the BDC Transaction Recorder...the fields are filled something like this...

Program: program name

Screen: 0100

Startid = X

BDC_OKCODE is =%_GC 119 36

If I repeat the 1 & 2 steps as mentioned above and select the same report the BDC_OKCODE jumps up by 7 i.e.

BDC_OKCODE is %_GC 126 36

If I run the report in the batch mode, how will I know if it picks the right report since the value is always changing.

Thank you

Surender

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Is it possible that you could submit these reports directly instead of going thru this BDC to run them? Do you know what the report names are behind the 15 reports in the folder.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

Try to process the recording that you created for the screen

number 2. I think it will not work(both the recordings). This will raise an error message and will exit.

Try to work out an mechanism through which you can get the name of the required report and execute it in the next screen.

Think the BDC_OKCODE is =%_GC 119 36, BDC_OKCODE is %_GC 126 36 will differ again if create a recording.

Cheers

Kathir~