*useful macros for message handling
INCLUDE mm_messages_mac.
mmpur_message_forced
'E'
'ZICF_CO'
'017'
ls_mepoitem-matnr
ls_mepoitem-werks
ls_mepoitem-bwtar
'' .
23 Mayıs 2011 Pazartesi
SAP/ABAP: MMPUR_MESSAGE_FORCED
13 Mayıs 2011 Cuma
SAP/ABAP: MODIF ID
SELECTION-SCREEN BEGIN OF BLOCK TEST1 WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS: SO_TARIH FOR S121-SPTAG MODIF ID R11,
SO_MALGR FOR MARA-MATKL.
PARAMETERS: PA_HAFTA LIKE S121-SPWOC MODIF ID R12,
PA_AY LIKE S121-SPMON MODIF ID R13.
SELECTION-SCREEN END OF BLOCK TEST1.
AT SELECTION-SCREEN OUTPUT.
if pa_ay eq 'X'.
LOOP AT SCREEN.
CASE SCREEN-GROUP1.
WHEN 'R13'.
SCREEN-INPUT = '1'.
SCREEN-OUTPUT ='1'.
SCREEN-ACTIVE = '1'.
WHEN 'R12'.
SCREEN-INPUT = '0'.
SCREEN-OUTPUT ='1'.
SCREEN-ACTIVE = '1'.
WHEN 'R11'.
SCREEN-INPUT = '0'.
SCREEN-OUTPUT ='1'.
SCREEN-ACTIVE = '1'.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
elseif ......... .
endif.
9 Mayıs 2011 Pazartesi
PHP: Trigger
CREATE TRIGGER 'user_after_ins_tr' AFTER INSERT ON 'user' FOR EACH ROW
BEGIN
INSERT INTO user_online (user_id, online) VALUES (NEW.id, true);
INSERT INTO user_log (user_id, action, regData) VALUES (NEW.id, 1, NOW());
END;
6 Mayıs 2011 Cuma
SAP/ABAP: MESSAGE_STORE, MESSAGES_SHOW
DATA : GT_RETURN LIKE BAPIRET2
OCCURS 0 WITH HEADER LINE.
“E! ==> Message Class
IF GT_RETURN[] IS NOT INITIAL.
LOOP AT GT_RETURN.
PERFORM MESSAGE_STORE USING GT_RETURN-TYPE
GT_RETURN-ID
GT_RETURN-NUMBER
GT_RETURN-MESSAGE_V1
GT_RETURN-MESSAGE_V2
GT_RETURN-MESSAGE_V3
GT_RETURN-MESSAGE_V4.
ENDLOOP.
CALL FUNCTION 'MESSAGES_SHOW'
EXCEPTIONS
INCONSISTENT_RANGE = 1
NO_MESSAGES = 2
OTHERS = 3.
ENDIF.
*&---------------------------------------------------------------------
*& Form MESSAGE_STORE
*&---------------------------------------------------------------------
FORM MESSAGE_STORE USING P_TYPE
P_ID
P_NUMBER
P_V1
P_V2
P_V3
P_V4.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
ARBGB = P_ID
MSGTY = P_TYPE
MSGV1 = P_V1
MSGV2 = P_V2
MSGV3 = P_V3
MSGV4 = P_V4
TXTNR = P_NUMBER
EXCEPTIONS
MESSAGE_TYPE_NOT_VALID = 1
NOT_ACTIVE = 2
OTHERS = 3.
ENDFORM. " MESSAGE_STORE
5 Mayıs 2011 Perşembe
SAP/ABAP: C14Z_MESSAGES_SHOW_AS_POPUP FM
DATA: GT_MESSAGE_TAB TYPE TABLE OF ESP1_MESSAGE_WA_TYPE WITH HEADER LINE .
IF GT_MESSTAB[] IS NOT INITIAL.
CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
TABLES
I_MESSAGE_TAB = GT_MESSAGE_TAB.
ENDIF.
3 Mayıs 2011 Salı
SAP/ABAP: REPLACE ALL OCCURRENCES
REPLACE ALL OCCURRENCES OF 'STD'
IN GS_STD-TEXT_STRING WITH GS_STD-STDT.
Kaydol:
Kayıtlar (Atom)
İnsdroid
Sabahtan beri çatada çutada çatada çutada… Bitmedi yine de… Neyse, yolumuz uzun, toparlıyorum çantamı, adaptörü falan tıkıştırıyorum bir şe...
-
Why do we need to change status of a request? Let's imagine, you have a workbench request and you already relased linked task in it....
-
Metasploitable is a kind of vulnerable Linux virtual machine image for penetration testing. It is Debian 32bit based operation system, and r...
-
* DATA : * ls_object_identity TYPE borident , * lo_gos TYPE REF TO cl_gos_document_service . * ls_object_identi...