SAP Profitability Report _Final
SAP Profitability Report _Final
Selection Criteria:
Company Code
IO Number
Job Number
Customer Code
Output:
Company Code
IO Number
Job Number
Customer Code
Customer Name
Vessel Name
Sales Value - LKR
Cost Value - LKR
Profit - LKR
The concepts and logic that follow are based on the output fields.
Job Number
Logix's Job Number is referred to as the Job Number. Not the SAP job code.
IO Number
One Internal Order will be present in the Logix System against a specific Job Number. The Logix Job
Number's IO Number will be supplied here. Pass the Job number to AUFK- KTEXT then get the IO number
from AUFK- AUFNR field.
Customer Code
The Customer Code used to produce the SAP Sales Order is referred to as the Customer Code. Pass the IO
number to VBAP-AUFNR & then obtain the sales order number from VBAP-VBELN field. Then pass the
sales order number to VBAK-VBELN & customer code can be obtained via VBAK-KUNNR field.
Customer Name
By referencing to the required Customer Code in SAP, the Customer name can be derived. Pass the customer
number to KNA1-KUNNR field and then obtain KNA1-NAME1 & KNA1-NAME2 field values.
Vessel Name
The Logix system has a field for Vessel name, which can be retrieved as the vessel name. This can be obtained
via the sales order header test procedure CL-ZC04 (VBBK). Pass the IO number to VBAP-AUFNR & then
obtain the sales order number from VBAP-VBELN field. Next obtain the vessel name from CL-ZC04 (VBBK)
text procedure.
To calculate the Sale Value, all the accounting documents created via the necessary IO Number are reviewed,
and the total value of only the accounting documents are considered. The amalgamated value should be
displayed in the report output.
1. Pass the IO number to BSEG-AUFNR & obtain the GL account from BSEG-HKONT field,
debit/credit indicator from BSEG-SHKZG & local currency amount from BSEG-DMBTR field.
2. Then pass the GL account to SKA1-SAKNR & obtain the account group from BSEG-KTOKS. Make
sure BSEG-KTOKS = REVN or FINI for the revenue purposes.
3. From the details obtained from the 1st point, if the GL account group is REVN or FINI then consider
those details to the sales value in the report output.
4. If BSEG-SHKZG EQ S (debit) then consider the BSEG-DMBTR as positive & BSEG-SHKZG EQ H
(credit) then consider the BSEG-DMBTR as negative.
5. Amalgamated figure needs to be displayed in the report.
1. Pass the IO number to BSEG-AUFNR & obtain the GL account from BSEG-HKONT field,
debit/credit indicator from BSEG-SHKZG & local currency amount from BSEG-DMBTR field.
2. Then pass the GL account to SKA1-SAKNR & obtain the account group from BSEG-KTOKS. Make
sure BSEG-KTOKS = COGS or EXPN or FCIB for the revenue purposes.
3. From the details obtained from the 1st point, if the GL account group is COGS, FCIB or EXPN then
consider those details to the sales value in the report output.
4. If BSEG-SHKZG EQ S (debit) then consider the BSEG-DMBTR as positive & BSEG-SHKZG EQ H
(credit) then consider the BSEG-DMBTR as negative.
5. Amalgamated figure needs to be displayed in the report.
Profit
Profit is the difference between the Sale Value and the Cost Value.