Tuesday, August 25, 2009
How to find a transaction code which calls SM30 for a specific table maintenance
We can simply create table maintenance program using table maintenance generator tool for a specific Z table that we have . And it's the fastest way to let the user start maintaining related data. After that usually people create a transaction code for this auto-generated program to make it easily accessible from end users.
You have a Ztable and you don't know if someone created a transaction code for the maintenance program. Go to SE16->TSTCP . There are 2 fields. First one is transaction code , type Z* and the other one is PARAM which represents the transaction code and its parameters info to call. Type *Ztable* .
Usefull FM's for this purpose :
PRGN_GET_ORIGINAL_TRANSACTION
RS_TRANSACTION_SINGLE_GET
RS_PARAMETER_TRANSACTION_GET
SRT_CONVERT_PARAM_TO_SREPOVARI
Wednesday, August 19, 2009
ABAP Confirmation Popup Screen
Before a critical operation starts , we often need user to confirm the operation just to be sure that the process wasn't started mistakenly. Simplest example for this purpose ;
data : lv_mes type string.data lv_answer.lv_mes = 'Your question here'.call function 'POPUP_TO_CONFIRM'exportingtitlebar = 'Popup Title'text_question = lv_mestext_button_1 = 'YES'icon_button_1 = 'ICON_OKAY' " 1st Buttons icontext_button_2 = 'NO'icon_button_2 = 'ICON_CANCEL' "2nd Buttons icondefault_button = '2' " Default choice - NOdisplay_cancel_button = 'X' " 3rd button(CANCEL) is visible or notimportinganswer = lv_answerexceptionstext_not_found = 1others = 2.**** RESULTIF lv_answer = '1'. " 1st button has clickedELSEIF lv_answer = '2'. " 2nd button has clickedELSEIFlv_answer = 'A'. " CANCEL button has clickedENDIF.
Tuesday, August 18, 2009
Graphical Screen Painter Problems
If you have trouble with your screen painter , there might be several reasons. Before applying the wide range solution which is reinstalling sapgui , you can take a look at the statements below .
- SE38 -> Utilities -> Graphical editor (CHECK)
- Check your "gnetx.exe" and "eumfcdll.dll" files exists in your installation folder,
- check your related port 33
XX(means if your system number 01 -> port -> 3301 ) is open. - Check your EU_SCRP_WN32 RFC destination.
Subscribe to:
Posts (Atom)