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: 

regarding user exits

Former Member
0 Kudos

Dear experts,

In SD module, After creating sales order and shipment Process, i want to save the sales order datas including shipment number datas into ADDON table.

Timing wise, Storing sales datas into ADDONTABLE must be done only after the shipment process. so i think i want to use user exits in shiping screen , using which i can save data to table.

Pls guide me whether my way of doing is correct or not.

my friends says User exits does not support in future so better not to use it..if so how to do with alternative.

pls guide me.

ambichan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ambi chan,

In ur current system, you may use the user exits that are currently provided. Yes it is true, that SAP is changing everything from user exits to BADI's.

Yes, if it has to update the table only after shipment, use the exits after shipment.

Remember to reward points to replies that solved ur problem.

Reg,

Prashanth.

7 REPLIES 7

Former Member
0 Kudos

Hi ambi chan,

In ur current system, you may use the user exits that are currently provided. Yes it is true, that SAP is changing everything from user exits to BADI's.

Yes, if it has to update the table only after shipment, use the exits after shipment.

Remember to reward points to replies that solved ur problem.

Reg,

Prashanth.

0 Kudos

Dear Prashanth,

Thanks for your reply.

I have never used userexits before in programs or screens. if possible could you pls give an sample code and way to create it.

just outline will do..i can refer documents.

i will close this thread in next reply.

Thanks in advance.

ambichan

0 Kudos

Hi Ambi achan,

you can go to smod or cmod to search for user exits.

Or even se81.

User exits are essentially a FM which has an include.

The User exits are fo the form exit_<Prog Name>_NNN.

This is a FM. double click on this and u will see an include. Double click on this. it will ask u if u want to create the same if it is not already implememnted.

Confrim the same. and write whatever code u want to in the include.

Save adn Activate it.

Remember to reward points to teh answers that helped you.

0 Kudos

Dear Prashanth.

Thanks for your reply. almost i understand whats userexit.

I tried below and i found these are the userexits available in VT01N-shipment creation.

Now i want to confirm which is most suitable userexits amoung them matching my requirement.

do you have any idea on this.

After shipment creation i want this sales data to be stored in addon table..which user exits can i use for writing this code.

suggestion pls...

transaction Code - VT01N Create Shipment

-


Exit Name

Description

-


MV56AINI

Initialization of transaction control for transportation

V56AFCCH

Shipment processing: Check function code allowed

V56AGTAR

User Exit for Filtering Shipping Unit Calculation

V56ARCHV

Customer-spec. checks for archiving shipments

V56ATKTX

Change the number of lines for text input in shipment

V56BMOD

Transportation processing: Field modification

V56DISTZ

Shipment Processing: Determine Distance

V56FCOPY

Shipment processing: Copy delivery data

V56FSTAT

Shipment processing: Activities when setting a status

V56L0001

Status of Shipments for a Delivery

V56LDELI

Read Delivery Data for Shipment Processing

V56LOCID

Shipment Processing: Determine Location Identification

V56MVT04

Extensions for Collective Processing of Shipments

V56SLDET

Shipment processing: Leg determination

V56TDLIF

Filter Delivery Items for Shipment

V56UCHCH

Shipment processing: Check whether changes were made

V56UCHCO

Check shipments are complete

V56UDLUP

Obsolete as of 4.6C: Delivery Update on Delivery Routines

V56UNUMB

Shipment number allocation

V56USTAT

User-individual definition of transportation planning status

V56USVDO

Update new objects for transport

V56USVDP

Preparation for updating new objects for transport?

-


I will surely reward points. Thanks for your suggestion.

ambichan

0 Kudos

I would say, look into these..

V56UCHCO |Check shipments are complete |

V56USVDO

Update new objects for transport

V56USVDP

Preparation for updating new objects for transport?

PP.

0 Kudos

Hai prashanth,

Thanks for making my ideas clear.

I will take V56USVDO exit for storing the datas.

i will reward 10points and close the thread.

Thanks prashanth.

best regards

ambichan

0 Kudos

This is not a question rather discussion to clear some concepts.

Well there seems to be lot of confusion amongst many people regarding User Exits.

To start with, there exists following ways to change the SAP Standard.

1. Customisation

2. Personalisation

3. Modifications

4. Enhancements

User exit :

One should understand that, User Exit is not a function rather it is Subroutine.Hence u will need to register the changes using SSCR. SMOD and CMOD is not applicable in this case.

  • User exits started with Sales n Distribution module.

  • They consist of empty subroutines (FORM - ENDFORM) in special Includes, which can be filled by a ABAPer.

  • In special places in the SAP-CODE such subroutine references were inserted by SAP.

  • An extension is thus only possible, where SAP planned it.

  • They usually offer a rather rudimentary expandability,

  • since purely technically objects in the SAP name area are modified.

Example :

Function pool SAPLV60A consist of below mentioned user exits containing empty subroutines.

If u need to add custom functionality u will need to have the SSCR Key.

include rv60afzz. " FORM's Userexit's

include rv60afza. " FORM's Userexit's

include rv60afzb. " FORM's Userexit's

include rv60afzc. " FORM's Userexit's

include rv60afzd. " FORM's Userexit's

Now since in user exits we are modifying the SAP code directly, there are problems when upgrading from one version to another.

Hence SAP came up with intelligent solution of Enhancements, which we generally do with SMOD (for searching the enhancements) and

CMOD (for Changing the enhancements). Further BADIs are object oriented view of enhancements only.

In case of enhancements we do not modify the SAP source code and hence SSCR keys are not necessary.

This is my interpretation regarding changing SAP stadard. Further discussion is welcome

Cheers,

Nitin