Author : Development Specification Page : 1 of 5
Title : Func Spec Contract Upload Date : 13/06/2019
Document : Print date : 13/06/2019
To be confirmedABAP Programming
Status : Version : 1.0
To help Development Team meet your development needs, please provide specific details of the
business process as well as your development requirements. Complete the Development Specification
Form and send it to Development Team.
General Information
Requestor’s Name Phone
Dept. or Cost Center Email
Report User (or Dept.) Request
if different from Date
requestor
Approver’s Name and Approval
Signature Date
Development Requirements
0 Priority or need for this development (check one): High Medium Low
1 Type of Development (check one):
Form Report Enhancement Modification Customized Development
2 Name of desired development
Upload Central Contract
3 Give a short description of the desired development (including the business benefit):
Upload Central Contract menggunakan BAPI. Bisa dipakai untuk upload saat go live atau setelah go live
ketika ada kontrak baru
Technical Information
4 Source of business data: Name the application or data area of the development (e.g., MM-Inventory
Management)
SRM – Supplier Relationship Management
5 Please specify the tables and/or fields desired within the development:
6 Please list any standard R/3 programs (forms, reports, transactions, etc.) you found that are similar to
the desired development. Specify why the programs you considered do not meet your needs.
Title of Report Program name / transaction code / other
Page 1 of 5
Author : Development Specification Page : 2 of 5
Title : Func Spec Contract Upload Date : 13/06/2019
Document : Print date : 13/06/2019
To be confirmedABAP Programming
Status : Version : 1.0
7 Please enter a long description of the desired development. Please include:
The business need for this development
A description of the layout and screen information in the program should provide (such as weekly,
monthly, or quarterly data; column or row headings; summarizations, and document data, etc.)
The high level logic of the process
Program Specifications
Create a Transaction Code for this program.
Main Screen:
The Main Screen is having a field where the user can select the file located in the directory for upload.
Selection Screen:
File Format to Use: Text File or Tab Delimited.
Page 2 of 5
Author : Development Specification Page : 3 of 5
Title : Func Spec Contract Upload Date : 13/06/2019
Document : Print date : 13/06/2019
To be confirmedABAP Programming
Status : Version : 1.0
BAPI: BBP_PD_CTR_CREATE (for creation)
Logic:
The following BAPIs will be used as per tab in the excel file:
a) I_HEADER
BBP_DESCRIPTION_CTR – Based on input file
DZTERM – Based on input file
WAERS – Based on input file
BBP_VPER_START_CTR – Based on input file
BBP_VPER_END_CTR – Based on input file
BBP_POSTING_DATE – ?? Based on input or Todays date?
BBP_DELIV_DAYS – Based on input
BBP_CO_CODE – Based on input file
CRMT_PROCESS_TYPE_DB – Based on input file
BBP_LOGSYS_FI – Based on input file (default ST1CLNT310)
BBP_TOTAL_VALUE_CTR – Based on input file
/SAPPSSRM/_VERSNO – Based on input file
b) I_ITEM
BBP_ITEM_NO – Based on input file
BBP_ITEM_DESC – Based on input or Master data validation?
COMT_CATEGORY_ID – Based on input file
BBP_ITEM_TARGET_QUANTITY – Based on input file
BBP_UNIT – Based on input file
CRMT_ORDERED_PROD_DB – Based on input file
BBP_PRICE – Based on input file
EPEIN – Based on input file
BBP_PRODUCT_TYPE – Based on input file
BBP_DELIV_DAYS – Based on input file
BBP_MIN_ORDER_QUANTITY – Based on input file
WAERS – Based on input file
BBP_ITM_RELEASED – Based on input file (default X)
BBP_SRC_LOG_SYS – Based on input file (default ST1CLNT310)
BBP_LOGSYS_FI – Based on input file (default ST1CLNT310)
BBP_LOGSYS – Based on input file (default SSDCLNT310)
BBP_VALUE – Based on input file
Page 3 of 5
Author : Development Specification Page : 4 of 5
Title : Func Spec Contract Upload Date : 13/06/2019
Document : Print date : 13/06/2019
To be confirmedABAP Programming
Status : Version : 1.0
c) I_PARTNER
BU_PARTNER – Based on input file
CRMT_PARTNER_FCT – Based on input file
CRMT_PARTNER_MAIN – Based on input file
AD_ADRTYPE – Based on input file
BBP_ADDR_ORIGIN – Based on input file
d) I_ORGDATA
BBP_PROG_ORG_RESP_OT – Based on input file
BBP_PROG_ORG_RESP_ID – Based on input file
BBP_PROC_ORG_OT – Based on input file
BBP_PROC_ORG_ID – Based on input file
BBP_PROC_GROUP_OT – Based on input file
BBP_PROC_GROUP_ID – Based on input file
Execute COMMIT function to create/update the data.
The program will load the data based on the tab provided in the template.
Page 4 of 5
Author : Development Specification Page : 5 of 5
Title : Func Spec Contract Upload Date : 13/06/2019
Document : Print date : 13/06/2019
To be confirmedABAP Programming
Status : Version : 1.0
Business Object: BUS2000113
Mapping Template
Please see attached Template
BAPI_RO_CREATE_U
PDATE.xlsx
Validation Logic for Contract Template
Upon pressing Execute, put up an Information Window, telling the User the following Message “File ini akan diupload ke
system, apakah lanjut ?”
If yes, then load the data. Else go back to the screen.
Upload the file to SAP based on the structure in the template.
- Check the data to ensure all Mandatory items are in place.
- Load the data using BAPI.
- If an Error is encountered, record the Message into a column for message and save the list into the error list.
- Else, move the record in the success list.
At the end of the upload activity, the program needs to produce a report to tell the user on the following:
1. Number of records provided
2. Number of records with Error
3. Error list (sort by contract number and the error message)
4. Number of success record.
Accepted by: Accepted on:
Page 5 of 5