Application Development and Automation 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: 
Read only

report program calling BDC

Former Member
0 Likes
479

hi

can any body make me know how a report program calls a BDC program for the data to get updated in database.

thanks

prasannakumar

3 REPLIES 3
Read only

former_member195383
Active Contributor
0 Likes
456

HI,

Suppose u have a transaction say ztran that updates a certain Database Table.Then through SHDB transaction. you will record the process for transaction and then u will have an option to create a report program accordingly. There just make use of call transaction.where the report program will call the transaction (say ZTRAN), which will update the table.

Regards

Rudra

Read only

Former Member
0 Likes
456

SUBMIT Zreport_name USING WITH kostl IN kostl

WITH r_budat BETWEEN lv_1st_day_sumb_low AND lv_last_day_sumb_low EXPORTING LIST TO MEMORY AND RETURN .

DATA : t_listobject1 LIKE abaplist OCCURS 0 WITH HEADER LINE.

DATA: BEGIN OF t_listasci OCCURS 0,

line(5000),

END OF t_listasci.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = t_listobject1

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF t_listobject1[] IS NOT INITIAL.

CALL FUNCTION 'LIST_TO_ASCI'

TABLES

listasci = t_listasci

listobject = t_listobject1.

Internal table t_listasci

u get all the report details.

Thanks,

Durai.V

Read only

Former Member
0 Likes
456

SUBMIT 'Zreport_name' USING WITH kostl IN kostl

WITH r_budat BETWEEN lv_1st_day_sumb_low AND lv_last_day_sumb_low EXPORTING LIST TO MEMORY AND RETURN .

DATA : t_listobject1 LIKE abaplist OCCURS 0 WITH HEADER LINE.

DATA: BEGIN OF t_listasci OCCURS 0,

line(5000),

END OF t_listasci.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = t_listobject1

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF t_listobject1[] IS NOT INITIAL.

CALL FUNCTION 'LIST_TO_ASCI'

TABLES

listasci = t_listasci

listobject = t_listobject1.

Internal table t_listasci

u get all the report details.

Thanks,

Durai.V