‎2008 Jun 12 11:26 AM
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
‎2008 Jun 12 11:42 AM
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
‎2008 Jun 12 11:45 AM
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
‎2008 Jun 12 11:48 AM
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