02-15-2007 5:19 PM
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
02-15-2007 5:26 PM
02-15-2007 5:26 PM
02-15-2007 5:27 PM
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