SAP Reports / Programs | Processing | SAP Utilities | Processing(IS-U-WM-PC) SAP IS

REWM_ISU_SDSM_COMP SAP ABAP Report - Select Orders and Generate IDocs ISU_SDSM_COMP







REWM_ISU_SDSM_COMP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Select Completed Orders and Generate IDoc ISU_SDSM_COMP...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter REWM_ISU_SDSM_COMP 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 REWM_ISU_SDSM_COMP. "Basic submit
SUBMIT REWM_ISU_SDSM_COMP AND RETURN. "Return to original report after report execution complete
SUBMIT REWM_ISU_SDSM_COMP VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: R_AUART = D Order type
Selection Text: X_DATUB = D Date to
Selection Text: X_DATUV = D Date from
Selection Text: X_STAI1 = User status
Title: Select Orders and Generate IDocs ISU_SDSM_COMP
Text Symbol: P05 = Successfully Processed Orders
Text Symbol: P06 = Error Messages
Text Symbol: E01 = Error blocking the following order:
Text Symbol: E02 = Error reading internal status number for following order:
Text Symbol: E03 = Error deleting user status for following order:
Text Symbol: P01 = Total Orders Found:
Text Symbol: P02 = Successfully Processed Orders:
Text Symbol: P03 = Orders With Errors:
Text Symbol: P04 = Statistics


INCLUDES used within this REPORT REWM_ISU_SDSM_COMP

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:

MASTERIDOCCREATE_ISU_SDSM_COMP CALL FUNCTION 'MASTERIDOCCREATE_ISU_SDSM_COMP' EXPORTING x_aufnr = t_viaufks-aufnr * X_RCVPRT = ' ' * X_RCVPRN = ' ' * X_RCVPFC = ' ' x_no_msg = 'X' IMPORTING * CREATED_COMM_IDOCS = y_error_line = wa_error_line EXCEPTIONS system_error = 1 order_not_found = 2 OTHERS = 3.

ENQUEUE_ESORDER CALL FUNCTION 'ENQUEUE_ESORDER' EXPORTING * MODE_AUFK = 'E' * MANDT = SY-MANDT aufnr = x_aufnr * X_AUFNR = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

STATUS_BUFFER_REFRESH CALL FUNCTION 'STATUS_BUFFER_REFRESH'.

STATUS_TEXT_CONVERSION CALL FUNCTION 'STATUS_TEXT_CONVERSION' EXPORTING client = sy-mandt language = sy-langu mode = 'E' objnr = x_objnr * STSMA = ' ' txt04 = x_stai1 IMPORTING * LANGUAGE_FOUND = status_number = status_intern EXCEPTIONS insufficient_input = 1 not_found = 2 object_not_found = 3 wrong_mode = 4 OTHERS = 5.

DEQUEUE_ESORDER CALL FUNCTION 'DEQUEUE_ESORDER'.

STATUS_CHANGE_EXTERN CALL FUNCTION 'STATUS_CHANGE_EXTERN' EXPORTING * CHECK_ONLY = ' ' * CLIENT = SY-MANDT objnr = x_objnr user_status = status_intern set_inact = 'X' * SET_CHGKZ = * IMPORTING * STONR = EXCEPTIONS object_not_found = 1 status_inconsistent = 2 status_not_allowed = 3 OTHERS = 4.

DEQUEUE_ESORDER CALL FUNCTION 'DEQUEUE_ESORDER'.

STATUS_UPDATE_DIALOG CALL FUNCTION 'STATUS_UPDATE_DIALOG'.

DEQUEUE_ESORDER CALL FUNCTION 'DEQUEUE_ESORDER'.



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 REWM_ISU_SDSM_COMP or its description.