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: 

from report to bdc

Former Member
0 Kudos

Hi,

My scenario is like this..

After getting Basic list from a report having many rows. if I double click on certain field, i want to call BDC with transaction VK15, and also I want to pass the internal table data which is there is my internal table....

Is it possible..

Can anybody tell me with simple coding..

thanks

kumar n

6 REPLIES 6

former_member673464
Active Contributor
0 Kudos

hi,

You can pass the internal table data for bdc of transaction VK15.you can use the event at line-selection for triggering the bdc . you have to replace the variables with the internal table data.

Regards,

Veeresh

0 Kudos

yes i am doing like that but the internal table data is going to be refresh after call transaction.....

how to pass that internal table data..

thanks

kumar n

andreas_mann3
Active Contributor
0 Kudos

use command call transaction (look F1)

try:

...

write: /...

hide itab-kschl, itab-tabnr.

...

AT LINE-SELECTION.

perform bdc_dynpro using 'SAPMV13A' '0100'.

perform bdc_field using 'BDC_OKCODE' '/00'.

perform bdc_field using 'RV13A-KSCHL' itab-kschl.

perform bdc_field using 'RV13A-KOTABNR' itab-tabnr.

...

CALL TRANSACTION 'VK15' USING BDCDATA MODE 'E'.

A.

Edited by: Andreas Mann on Aug 26, 2008 8:20 AM

Former Member
0 Kudos

Hi,

It is possible.

I will give you the solution, becuase such kind of requirement will come rare cases. So, It might be take some long time to write the code and all.

Once you double click on any respective record using at line-selection. read that entire record and keep it into a BDC internal table. then as useually, you can call the bdc (you have alread recorded BDC application code) so you can passs it through the performs statements by calling call transaction "TCODE". It is entirely your back ground (coding) part. But the functional guy, when he double click on any record, system automatically call the transaction and pass the data through that TCODE.

It is some enterly long process.

You can suggess other idea also, becuase your reading the data from database tables and creating basic list. so , what is the required to pass the same data again to the database tables thgough that TCODE to same database tables.

Hope you got some idea.

sekhar.

0 Kudos

hi,

u r right as i am fetching data from db table but the requirement is when i double click i should have option to enter to change that value(amount) then i when i click enter i want to run BDC in with all that internal table data with only that changed value data.

Can u help me with some simple coding...

here value is not going to pass as after calling another tcode all mt internal table value going to be refresh.

thanks

kumar n

Former Member
0 Kudos

Hi Kumar .,

You can Do with At line selection event .

at First list

...

write: ITAB-F1 , .........****

hide ITAB-Field .

...

AT LINE-SELECTION.

perform call_bdc_VK15 .

You can Write BDC part in the Form .

thanks

sreenivas Reddy