Documente Academic
Documente Profesional
Documente Cultură
*Program Name
: ZSD_R000_SALES_ITEMS_REPORT
*
*Program Type
: Report
*
*Vendor
: IBM
*
*Developer
: Srinivasulu Bandi
*
*---------------------------------------------------------------------*
*TR
| Date
|Developer
| Version
*
*---------------------------------------------------------------------*
*ECCK900016 | 13 Jun 2010 | SIBM046
| Initial
*
*---------------------------------------------------------------------*
*Description : This report is used to display sales item and
*
*
corresponding address details based on the sales
*
*
document number on the selection screen
*
*---------------------------------------------------------------------*
REPORT zsd_r000_sales_items_report MESSAGE-ID zmsg LINE-COUNT 30(3) NO STANDARD
PAGE HEADING.
INCLUDE zsd_r000_sales_items_top .
INCLUDE zsd_r000_sales_items_sel .
INCLUDE zsd_r000_sales_items_form .
INITIALIZATION.
*Intialise the global data
PERFORM f_initialise_data.
AT SELECTION-SCREEN .
*validate the sales document number (VBELN)
PERFORM f_validate_vbeln .
START-OF-SELECTION.
*fetch the records from VBAK
PERFORM f_fetch_vbak CHANGING it_vbak.
*fetch the data from VBAP table
PERFORM f_fetch_vbap USING it_vbak
CHANGING it_vbap.
*fecth the data from kna1
PERFORM f_fetch_kna1 USING
it_vbak
CHANGING it_kna1.
*fetch the data from delivery
PERFORM f_fetch_delivery_items USING it_vbap
CHANGING it_lips.
*fetch the data from LIKP
PERFORM f_fetch_delivery_header USING it_lips
CHANGING it_likp.
*get the delivery address details
PERFORM f_fetch_del_add_details USING it_likp
CHANGING it_kna1.
*Populate the final internal table
PERFORM f_populate_final USING it_vbak
it_vbap
it_kna1
it_likp
it_lips
CHANGING it_final.
*
END-OF-SELECTION.