2012 Dec 21 5:16 AM
Hi Guys ,
i have a quite a bit of a problem here. in my transaction F-48 there is screen which contains a table control and i have to select a record from that table control. The porblem is that the records in that table control are not fixed so always ill need to have access to that table control data in order to select a specific record. Is there any possible way in BDC that i can read the data in that table control while running BDC..
Any help would be great.
Thanks in advance guys.
Hi Guys ,
i have a quite a bit of a problem here. in my transaction F-48 there is screen which contains a table control and i have to select a record from that table control. The porblem is that the records in that table control are not fixed so always ill need to have access to that table control data in order to select a specific record. Is there any possible way in BDC that i can read the data in that table control while running BDC..
Any help would be great.
Thanks in advance guys.
2012 Dec 21 5:21 AM
hi ,
i think these links wil be helpful for you.
http://wiki.sdn.sap.com/wiki/display/Snippets/Sample+BDC+for+Table+Control
http://wiki.sdn.sap.com/wiki/display/ABAP/bdc+on+table+control
hope it helps,
Regards,
Vinoth
2012 Dec 21 5:46 AM
this is handling table control. i want to read data in table control.
2012 Dec 21 6:17 AM
One thing i want to know on what basis you will select the record on the table control.
I had already done a requirement which we need to select the record dynamically.
Better explain with some screen shots
2012 Dec 21 10:52 AM
for eg : i have a table control which shows the following values
ID NAME
1 Dog
2 Cat
3 Cow
and i know that i want to select cow. but the order in the table control can keep varying or even increasing . so if i get t o knw which records are present in the TC i can find that COW is on 3rd and then select the 3rd no.
how did you do it dynamically???
Thanks in advance
2012 Dec 21 11:09 AM
How ever you know what record needs to be selected.
Lets say as you said above. You know that you need to select cow in the entries table.
So then you can read the table cow and pass the the value to BDC as follows.
PERFORM fill_bdc_data USING:
'X' 'SAPLIPAR' '0200',
' ' 'BDC_CURSOR' 'IHPA-PARVW(01)',-------> This (01) should be Static
' ' 'BDC_OKCODE' '/00'.
Before we come to conclusion I would like to suggest a trick which make things statis. Pass the Value 'X' to the Field No-Batch Input in the CTU_PARAMS and also while recording this in the Transaction.
This may solve your issue.
How ever if the table entries in the screen field keeps on varying you need to go for Plan B. BAPI or a Function module. This case cannot be handled via BDC.
Hope this helps.
2012 Dec 21 11:12 AM
2012 Dec 21 12:00 PM
Did you check the Checkbox No-Batch Input while recording an also in the CTU_PARAMs of the program. Did you check this trick. It will be static in many cases when u check this checkbox.
Hope this helps
2012 Dec 22 9:41 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |