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: 

Data available to User Exit

former_member445996
Participant
0 Kudos

Hi All,

How can I find out if a particular set of data is available in a User Exit? For example, SAP stores Serial Numbers in an internal table, how can I find out if that internal table is available in the user exit.

Regards

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You must look at the user exit function module and see the parameters that are provided. These parameter represent the data that will be passed to this function module. Of course, you are not limited to this data, there is a trick using field symbols.

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You must look at the user exit function module and see the parameters that are provided. These parameter represent the data that will be passed to this function module. Of course, you are not limited to this data, there is a trick using field symbols.

Regards,

Rich Heilman

LeonardoAraujo
Active Contributor
0 Kudos

User-exits as well as badi's use predefined interfaces.

Example:

EXIT_SAPLV56S_001

FUNCTION EXIT_SAPLV56S_001.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(I_VTTK_TKNUM) LIKE VTTK-TKNUM

*" VALUE(I_VTTK_STERM) LIKE VTTK-STERM

*" VALUE(I_VTTK_LAUFK) LIKE VTTK-LAUFK

*" VALUE(I_VTTK_ABFER) LIKE VTTK-ABFER

*" VALUE(I_VTTK_VSART) LIKE VTTK-VSART

*" VALUE(I_VTTK_VSAVL) LIKE VTTK-VSAVL

*" VALUE(I_VTTK_VSANL) LIKE VTTK-VSANL

*" VALUE(I_VTTK_TDLNR) LIKE VTTK-TDLNR

*" VALUE(I_DESTINATION) LIKE VTTSLKZ STRUCTURE VTTSLKZ OPTIONAL

*" VALUE(I_DEPARTURE) LIKE VTTSLKA STRUCTURE VTTSLKA OPTIONAL

*" VALUE(OPT_DIALOG) LIKE RV56A-SELKZ DEFAULT 'X'

*" TABLES

*" I_XVTTP STRUCTURE VTTPVB

*" C_XVTTS STRUCTURE VTTSVB

*" C_YVTTS STRUCTURE VTTSVB

*" C_XVTSP STRUCTURE VTSPVB

*" C_YVTSP STRUCTURE VTSPVB

*" C_XVBPA STRUCTURE VBPAVB

*" C_YVBPA STRUCTURE VBPAVB

*" C_XVBADR STRUCTURE SADRVB

*" I_XTRLK STRUCTURE VTRLK

*" I_DEPARTURE_SEQUENCE STRUCTURE VTTSLKA OPTIONAL

*" I_SPOPLIST STRUCTURE SPOPLI OPTIONAL

*" EXCEPTIONS

*" ERROR

This means you have these structures and internal tables to play with.

Also you should pay close attention to which of these structures are allowed for changes. You should be able to get more information from the help (in he SMOD or in SE18).

In old user exits (forms in standard code like mv45afzz form save_document_prepare, it is an open concept, meaning you can change a lot of things, but it is not recommended.

Good luck,

Leonardo