‎2007 Apr 25 12:56 PM
Hi Frendz,
I want to create a alv report using BAPI, i want to display sales order, can any one show me sample program using bapi function module BAPISDORDER_GETDETAILEDLIST
<b>full points will be given for good sample program</b>
Thanks and Regards
Vijaya
‎2007 Apr 25 1:01 PM
Hi,
Create a selection..screen for sales order.
fill the table SALES_DOCUMENTS with the sales documents required..
pass the items which u are interested to get and combine them all into a single internal table according to your choice
then its simple alv reporting
santhosh
‎2007 Apr 25 1:03 PM
Call Sales order list bapi in your report and after getting result in sale_orders table parameter pass to - REUSE_LAV_LIST_DISPLAY which will display in ALV
Step 1: Call SAP Standard BAPI - BAPI_SALESORDER_GETLIST by passing requried parameter and which will return list of sales order in sale_orders table parameter.
Step 2: Call ALV FM or Object ALV controler to display in ALV
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = BAPIORDERS
is_layout = layout
it_fieldcat = fieldtab
i_default = 'A'
i_save = g_save
is_variant = g_variant
it_events = events[]
TABLES
t_outtab = sales_orders.
Cheers