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'
exporting
titlebar = 'Popup Title'
text_question = lv_mes
text_button_1 = 'YES'
icon_button_1 = 'ICON_OKAY' " 1st Buttons icon
text_button_2 = 'NO'
icon_button_2 = 'ICON_CANCEL' "2nd Buttons icon
default_button = '2' " Default choice - NO
display_cancel_button = 'X' " 3rd button(CANCEL) is visible or not
importing
answer = lv_answer
exceptions
text_not_found = 1
others = 2.
**** RESULT
IF lv_answer = '1'. " 1st button has clicked
ELSEIF lv_answer = '2'. " 2nd button has clicked
ELSEIFlv_answer = 'A'. " CANCEL button has clicked
ENDIF.

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 .






  1. SE38 -> Utilities -> Graphical editor (CHECK)
  2. Check your "gnetx.exe" and "eumfcdll.dll" files exists in your installation folder,
  3. check your related port 33XX(means if your system number 01 -> port -> 3301 ) is open.
  4. Check your EU_SCRP_WN32 RFC destination.