0% found this document useful (0 votes)
276 views

Sap

This document discusses using customer functions and exits in SAP to customize sorting and selection screen logic for various document types. It provides examples of how to direct different document types to specific transaction codes for processing. It also explains how SAP handles percentage calculations internally, storing percentages as whole numbers and adjusting decimal places during calculations to arrive at the correct result.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
276 views

Sap

This document discusses using customer functions and exits in SAP to customize sorting and selection screen logic for various document types. It provides examples of how to direct different document types to specific transaction codes for processing. It also explains how SAP handles percentage calculations internally, storing percentages as whole numbers and adjusting decimal places during calculations to arrive at the correct result.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

'SD_COLLECTIVE_RUN_EXECUTE

You can use customer function EXIT_SAPLV60P_008 to sort to your own


requirements in VF04 (include ZXV6PU08)
You can use this exit (SE38) : V05IEXIT
You can update the field VKDFS-SORTKRI with our own logical.
This field is used directly in the selection screen.
when gc_vbtyp_order.
lv_oj_name = 'BUS2032'.
when gc_vbtyp_return.
lv_oj_name = 'BUS2102'.
when gc_vbtyp_credit_req.
lv_oj_name = 'BUS2094'.
when gc_vbtyp_debit_req.
lv_oj_name = 'BUS2096'.
............................................................
ENHANCEMENT-SECTION
protokol - V - Entry

sdbont06_03 SPOTS es_sdbont06. -- vbeln_tab

....................................................................
Suppose Gross Value ( say KOMP-KZWI6 ) = 5151.11
Formula

->

Gross Value = Net value ( say XKWERT ) + 17% of Net value.

So, Net Value = ( Gross Value * 100 ) / 117


= 5151.11 * 100 / 117 = 4402.66

(1)

How SAP does it i) SAP stores % as 0. So 17% is stored as 170.00 in SAP.


II) During multiplication, SAP internally ignores the decimal points and does mu
ltiplication using whole numbers.
After getting the final amount, SAP then puts the decimals at the correct positi
on.
So formula (1) becomes
= 5151.11 / 1.17
= (

515111 ) / ( 100 + 17000/ 1000) .

( Divided by 1000 = 10 ( for getting the actual % ) * 100 ( To counter remova


l of decimal in 17000 )
= ( 515111 * 100000 ) / ( 100000 + 17000 )
= 51511100000 / 117000
= 440265.81
After final calcualtion, SAP puts the decimals back at the right place
= 440265.81 / 100
( Divided by 100, as earlier during calculation, it was using 515111 , instead o
f 5151.11 )

= 4402.66
................................................................................
.........................

You might also like