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

ALV Report using BAPI

Former Member
0 Likes
1,568

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

2 REPLIES 2
Read only

Former Member
0 Likes
598

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

Read only

Former Member
0 Likes
598

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