08-03-2016 1:50 PM
Hi All,
I have to write a BDC program for tcode /SAPAPO/MSDP_FCST1.
In this code I have a table control to be handled, shown below,
The problem here is the scroll is not getting captured in sdhb.
Even after recording in SHDB ( with scrolling event done while recording ) and after that when I try to replay the recorded session using button , the scroll operation is not getting replayed.
If anyone has ever faced a similar situation would be very helpful if you can share the workaround for tackling this.
Helpful points much appreciated.
Thanks,
Sijin
08-04-2016 12:34 PM
Hello All,
I got a workaround
By default ( i.e. without scrolling ) the Table control accommodates 20 lines.
So if my line items exceeds 20 say by 3 i.e. 23.
Then I will be deleting the first 20 line items which will make the remaining 3 to take the the Indexes from 1,2,3 ( so this will fill up the Indexes from beginning again ). So I will repeat this process based on the Counts of 20.
I had to do this for Deletion operation, which I am able to do this using this workaround.
Rest I have to check for Addition operation. So for that am keeping this thread open.
08-03-2016 2:11 PM
Please SEARCH the forum (few days ago, and many times in the forum): http://scn.sap.com/thread/3938659 :
08-03-2016 2:46 PM
Very thanks for your prompt reply.
Must say that I had searched for this but I was not able to find any relevant with this much details you have mentioned.
And in the thread you have referred you can see the subject ( BDC Program for J1IG ) has nothing related to Scroll mentioned in it. That's why I could have missed.
08-03-2016 3:00 PM
Hi Sijin,
You could use
perform bdc_field using 'BDC_OKCODE'
'=ENTR', 'P--','P-','P+','P++'
for more controls.
In side by side you can try calling the /00 and then same screen again from bdc.
This will scroll down to hide filled values.
Thanks Regards,
Romi Bagga
08-03-2016 4:15 PM
Hi Romi,
I have tried all these.
The event which its capturing is '/00' which won't serve.
Very strange situation I am facing.
I guess Sandra's reply is correct and we can have a BDC session for this.
Thanks,
Sijin
08-03-2016 4:42 PM
It's not what I said, it won't work (batch input is the name of the technology behind both CTU and batch input session). You must investigate as I indicated in the second paragraph.
08-04-2016 4:22 AM
Sorry it was a typo, actually I mean't
I guess Sandra's reply is correct and we can't have a BDC session for this.
08-04-2016 12:34 PM
Hello All,
I got a workaround
By default ( i.e. without scrolling ) the Table control accommodates 20 lines.
So if my line items exceeds 20 say by 3 i.e. 23.
Then I will be deleting the first 20 line items which will make the remaining 3 to take the the Indexes from 1,2,3 ( so this will fill up the Indexes from beginning again ). So I will repeat this process based on the Counts of 20.
I had to do this for Deletion operation, which I am able to do this using this workaround.
Rest I have to check for Addition operation. So for that am keeping this thread open.
08-04-2016 12:47 PM
08-04-2016 4:18 PM
To avoid the screen size to change, the batch input must be run with the "standard screen size" (22 lines * 84 columns) setting.
08-20-2016 8:11 AM
Valid question!
To be on a safer side I am deleting in the sets of 10.
Considering as an example say I have 43 entries to be deleted.
I have written a logic in such a way that will calculate the sets of 10s first , so in this it would be 4 sets of 10, and also I will calculate the remaining ones ( here its 3 ).
Now FIrst DO ENDO on the sets of 10 i.e 4 , inside this loop the above code will execute till G_LC_MARK(10).
And for the remaining counts.
DO ENDO remainingcounts times.
G_LC_MARK(sy-index).
This is working perfectly all right!!!
Hoping I was able to explain my solution.
08-20-2016 8:12 AM