Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

hi, experts plz solve my doubts

Former Member
0 Kudos

1.how can we do totals and sub totals in alv's?

2. how many types of user exits?

3.how can we find out our function module in customer exits?in cmod?

waiting for reply

murali

3 REPLIES 3

Former Member
0 Kudos

hi,

for subtotals :

http://www.sapfans.com/forums/viewtopic.php?t=20386

http://www.sapfans.com/forums/viewtopic.php?t=85191

http://www.sapfans.com/forums/viewtopic.php?t=88401

http://www.sapfans.com/forums/viewtopic.php?t=17335

types of user exits

USER EXITS are FORMS and are called by SAP standard programs using PERFORM.

Inside the form (user exit) you can read and change almost any global data from host program.

User exits are more flexible because you have more information to use in your code but on the other hand , it is very easy to manipulate erroneously global data and lead the standard program to a dump or even to make database inconsistent.

User-exit doesn ’ t have any classification.

Basically designed For SD module

User-exits can be written only using access-key

With user-exits the code , the developer has written will not be there for next version unless modification assistance tool is used

Costomer exits:

CUSTOMER EXITS are FUNCTIONS so they are called using CALL FUNCTION (or more exactly CALL CUSTOMER FUNCTION).

Inside a function (customer exit) you can only acces your import/export/changing/tables parameters.

Customer exits are more restrictive but you are sure any change you can make to any parameters will never lead to inconsistency

In customer-exit we have function-module exit , screen exit , menu exit

Are available for MM,SD,FI,HR…..Basically designed for all modules.

No need of access key

Customer-exits are not wiped during upgradation

USerExits:

User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.

The naming standard of function modules for functionmodule exits is:

EXIT_<program name><3 digit suffix>

The call to a functionmodule exit is implemented as:

CALL CUSTOMER.-FUNCTION ❤️ digit suffix>

SMOD:

By using this transaction code we can find the Exits .

Cmod:

Here we can activate the exits after providing the logic.

check the below sites

http://www.sap-img.com/abap/what-is-user-exits.htm

http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm

http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm

Former Member
0 Kudos

Hi Murali,

Let me share my answers with you.......

1.how can we do totals and sub totals in alv's?

Sol: you will take the internal table with referance to SLIS_SORTINFO_ALV.

While prepare this internal table just add one property to this like

wa_sort-sum = 'X'.

wa_sort-subtot = 'X'.

append wa_sort to i_sort.

wa_sort like i_sort.

2. how many types of user exits?

Sol:We have 6 types of user exits:

1)Menu exit

2)Function Exit

3)Table Exit

4)Screen exit

5)Keyword Exit

6)Field exit.

3.how can we find out our function module in customer exits?in cmod?

Sol: CMOD contains all the enhancements for that perticular project.

Hope this helps you. Reply for queries, shall post the updates.

Regards.

Kumar.