SAP Reports / Programs | Personnel Time Management(PT) SAP PT

RPTREQ_MAIL SAP ABAP INCLUDE - RPTREQMAIL







RPTREQ_MAIL is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RPTREQ_MAIL into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RPTREQ_MAIL. "Basic submit
SUBMIT RPTREQ_MAIL AND RETURN. "Return to original report after report execution complete
SUBMIT RPTREQ_MAIL VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT RPTREQ_MAIL

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

DOCU_GET_FOR_F1HELP CALL FUNCTION 'DOCU_GET_FOR_F1HELP' EXPORTING id = 'DT' langu = lang object = text * TYP = 'E' * IMPORTING * DOKSTATE = * HEAD = TABLES line = lcl_std_text EXCEPTIONS ret_code = 1 OTHERS = 2.

SO_NEW_DOCUMENT_ATT_SEND_API1 CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' EXPORTING document_data = document_data put_in_outbox = ' ' commit_work = 'X' IMPORTING sent_to_all = sent * NEW_OBJECT_ID = TABLES packing_list = packing_list * object_header = * CONTENTS_BIN = contents_txt = contents * CONTENTS_HEX = * OBJECT_PARA = * OBJECT_PARB = receivers = receivers_max EXCEPTIONS too_many_receivers = 1 document_not_sent = 2 document_type_not_exist = 3 operation_no_authorization = 4 parameter_error = 5 x_error = 6 enqueue_error = 7 OTHERS = 8.

SAP_WAPI_GET_HEADER CALL FUNCTION 'SAP_WAPI_GET_HEADER' EXPORTING workitem_id = wi_id IMPORTING workitem_attributes = attribs return_code = subrc.

RH_SUBSTITUTES_GET CALL FUNCTION 'RH_SUBSTITUTES_GET' EXPORTING act_plvar = p_actor-plvar act_otype = 'US' act_objid = p_actor-user act_endda = sy-datum TABLES subst_str = subst_str EXCEPTIONS no_substitute_found = 1 OTHERS = 2.

RH_STRUC_GET CALL FUNCTION 'RH_STRUC_GET' EXPORTING act_otype = l_subst_str-otype act_objid = l_subst_str-objid act_wegid = 'SAP_TAGT' TABLES result_tab = agents_tab EXCEPTIONS no_plvar_found = 1 no_entry_found = 2 OTHERS = 3.

RH_GET_SMTP_ADDRESS CALL FUNCTION 'RH_GET_SMTP_ADDRESS' EXPORTING plvar = p_actor-plvar otype = agents_type objid = agents_id IMPORTING smtpadr = smtp.

HR_GET_EMPLOYEES_FROM_USER_DB CALL FUNCTION 'HR_GET_EMPLOYEES_FROM_USER_DB' "Note1222939 EXPORTING "Note1222939 user = l_uname "Note1222939 begda = sy-datum "Note1222939 endda = sy-datum "Note1222939 TABLES "Note1222939 ee_tab = it_employees. "Note1222939

SUSR_USER_ADDRESSKEY_GET CALL FUNCTION 'SUSR_USER_ADDRESSKEY_GET' "Note1222939 EXPORTING "Note1222939 bname = l_uname "Note1222939 IMPORTING "Note1222939 persnumber = l_persnr "Note1222939 addrnumber = l_addrnr "Note1222939 EXCEPTIONS "Note1222939 address_not_found = 1 "Note1222939 OTHERS = 2. "Note1222939

ADDR_PERS_COMP_COMM_GET CALL FUNCTION 'ADDR_PERS_COMP_COMM_GET' "Note1222939 EXPORTING "Note1222939 address_number = l_addrnr "Note1222939 person_number = l_persnr "Note1222939 table_type = 'ADSMTP' "Note1222939 TABLES "Note1222939 comm_table = lt_adsmtp "Note1222939 EXCEPTIONS "Note1222939 parameter_error = 1 "Note1222939 address_not_exist = 2 "Note1222939 internal_error = 4 "Note1222939 OTHERS = 5. "Note1222939

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = pernr infty = '0002' begda = sy-datum endda = sy-datum IMPORTING subrc = return TABLES infty_tab = p0002_tab.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RPTREQ_MAIL or its description.