SAP ABAP中文资料Technical_Specification_example_【51SAP教育中心】

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Technical Specification
Description: Create the delivery detail list
Author: Roger
Creation Date: 03/08/2004
Issue: CN04
Module: SD
Change History
Dependent Developments (Where applicable)
Objectives
CGL prints invoice collectively at the end of every month. Since the item printed on invoice is one single line item , CGL needs to attach an additional detail list to each invoice to let the customers know what they are charged for
Program Usage
To execute follow the menu path below
It is used to print delivery detail information Object List
Pre-conditions (Source of Inputs) Selection screen
Selection screen parameters
Delivery detail List- see attachment Delivery Detail List.HTM
Invoice detail list – see attachment Invoice Detail List.HT Internal table
T_delivery
Main Prcoessing
1.START OF SELECTION
FORM Select_Data
There are two output format in the program, one is delivery detail list, the other is
invoice detail list.
It will select data from the table vbrk and vbrp and not considered cancelled invoice. in delivery detail list (p_del = ‘X’ ) it only consider the invoice document type F2, otherwise F2, G2 and RE will be included, The selected data is put into internal table t_delivery.
Base on t_delivery data,
Get customer material, gross weight and net weight from table lips by delivery and item number
Get packing list number from table ypp_delnote_item by delivery number and item number
get customer address detail data from table kna1 and address table by customer account
get VAT invoice number bseg-zunor from bseg by billing document number
get the material pricing group description from t178t for grouping by color group purpose.
Get the country description from t005t by billing country
Call READ_EXCHANGE_RATE function to get exchange rate if billing currency
is different from entered selection criteria currency
Vbrp-netwr and Vbrp-cmpre is calculated base on the exchange rate result.
Select purchase order from vbkd according to the reference sales order number in each billing item.
if v_zip radio button is selected (true value) , run subroutine get_length_shade to get length and shade by using VC_I_GET_CONFIGURATION function
FORM GET_LENGTH_SHADE
Get the cuobj object number from delivery item detail. The value of cuobj is used to call function ‘VC_I_GET_CONFIGURATION’ function to get length and shade
value.
if p_detail is true, run subroutine write_data_detail
if p_total is true, run subroutine write_data_group
2.END OF SELECTION
FORM WRITE_DATA_DETAIL
List out each line item from t_delivery internal table. if p_deli is true, at the end of delivery note, sub-total the quantity and amount, else sub-total the quantity and
amount at the end of purchase order number. if p_zip is true, display length and
shade
If p_deli = ‘X’, sort internal table t_delivery by delivery number, and calculate the total for each delivery number
If p_po = ‘X’, sort internal table t_delivery by customer purchase order, and calculate the total for each customer PO
FORM WRITE_ITEM
⏹Print report item, if p_inv = ‘X’, the tax and total amount column will not be
showed
FORM WRITE_TOTAL_LINE
⏹Print total line for each customer PO or delivery note, if p_inv = ‘X’, the tax
and total amount column will not be showed
FORM WRITE_TOTAL_ALL_LINE
⏹Print total line for each customer, if p_inv = ‘X’, the tax and total amount
column will not be showed
FORM WRITE_DATA_GROUP
List out each line item from t_delivery internal table base on material number and material color group sorting.
FORM WRITE_TOTAL_LINE_GROUP
⏹Print total line for each customer
3.TOP OF PAGE
Header information will be different depends on the v_detail value
FORM WRITE_HEADER_DETAIL
⏹Print report column header for detail format, if p_inv = ‘X’, the tax and total
amount column will be hidden
FORM WRITE_HEADER_GROUP
⏹Print report column header for group format
Additional change : LCJS-66EAWR Dated: 13/12/2004
●Change the output format, keep consistent with coats standard
●Format Quantity field with corresponding unit variant
●Format amount field with corresponding currency unit
Additional changes: LCJS-693ABQ Dated: 28/01/2005
add two sub-total on quantity and amount column by delivery note number or PO number
Additional changes: LCJS-6AA4BC Dated: 08/03/2005
●Remove column of unit price include tax
Additional changes: THOO-6CHAYA Dated: 19/05/2005
●modify the format of delivery detail list
o add billing date(vbrp-fkdat), invoice no(vbrk-vbeln)., sale order number(vbrp-aubel),item number(vbrp-aupos), customer material number(lips-kdmat), packing
list(ypp_delnote_item-pack_no),gross weight(lips-brgew), net weight(lips-ntgew), unit
field(vbrp-vrkme).
●add invoice detail list , which format is same as delivery
o detail list except following points:
include credit memo(billing type G2 and RE)
remove tax column
Additional changes: LCJS-6CR9A3 Date 26/05/2005
●Transport the selection screen text
Testing
invoice number 2000001144, Company code: HK10
Invoice number 2000000981, Company code:CN20
Additional changes: THOO-6D4C37, DJDT 10.08.2005
Program:
ZCNSD_DELIVERY_DETAIL
I added a simplified format which excludes the item number, customer material, packing list number, gross and net weights. Also, extended the purchase order display length from 15 to 18.
Testing
Run the program ZCNSD_DELIVERY_DETAIL thru transaction code SA38. Use variant THOO-6D4C37. Toggle between simplified and detailed formats. Check the column alignment of the record and total lines.
Additional changes: THOO-6D4C37, DJDT 29.08.2005
Program:
ZCNSD_DELIVERY_DETAIL
Additional requirement; Display the actual goods movement date, LIKP-WADAT_IST, instead of the delivery date.。

相关文档
最新文档