How to delete HR Infotype with ABAP

You can use FM HR_INFOTYPE_OPERATION for all types of infotype opertions.     data : lv_begda type prelp-begda, lv_endda type prelp-endda, lv_pernr type prelp-pernr, lv_infty type prelp-infty, lt_p0021 type table of p0021, ls_p0021 type p0021, ls_bapiret type bapireturn1, ls_bapiret2 type bapireturn1, lv_operation type pspar-actio. . lv_pernr = ‘PERNR’. lv_begda = sy-datum. lv_endda = sy-datum. lv_infty… Continue reading How to delete HR Infotype with ABAP

Show Multiple Message with FM C14Z_MESSAGES_SHOW_AS_POPUP

If you want to show more than one message as pop up,  C14Z_MESSAGES_SHOW_AS_POPUP  FM is a good option.       Example Program: REPORT ZMULTIPLE_MESSAGE. TYPE-POOLS: esp1. DATA: lt_messages TYPE esp1_message_tab_type. DATA: ls_messages TYPE esp1_message_wa_type. ls_messages-msgid = ‘E4’. ls_messages-msgno = ‘000’. ls_messages-lineno = 1. ls_messages-msgty = ‘E’. ls_messages-msgv1 = ‘Error!!!!’. APPEND ls_messages TO lt_messages. ls_messages-lineno… Continue reading Show Multiple Message with FM C14Z_MESSAGES_SHOW_AS_POPUP