SAP Reports / Programs | Transportation and Distribution | Industry Solution Oil | Transportation and Distribution(IS-OIL-DS-TD) SAP IS

ROIGSM02 SAP ABAP Report - Cancel TD Material document (created fr. Bulk Shipment)







ROIGSM02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for ROIGSM02 should be used to correct material movements which have been created through bulk shipment processing...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 ROIGSM02 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

O4H5 - Cancel material document from shpmt.


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 ROIGSM02. "Basic submit
SUBMIT ROIGSM02 AND RETURN. "Return to original report after report execution complete
SUBMIT ROIGSM02 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: P_BLDAT = D .
Selection Text: P_BUDAT = D .
Selection Text: P_BUTIM = D .
Selection Text: P_DISPL = Display selected document
Selection Text: P_MBLNR = D .
Selection Text: P_SHNUM = D .
Title: Cancel TD Material document (created fr. Bulk Shipment)
Text Symbol: 001 = Pls select material document
Text Symbol: 002 = Confirm to reverse material doc.
Text Symbol: 004 = Continue?
Text Symbol: 005 = General error
Text Symbol: 006 = Movement type:
Text Symbol: 007 = Material document
Text Symbol: 008 = reversed by
Text Symbol: 009 = Date:
Text Symbol: 010 = User:
Text Symbol: 011 = Problem log material movement(s) - Transaction code


INCLUDES used within this REPORT ROIGSM02

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:

DEQUEUE_E_OIGS CALL FUNCTION 'DEQUEUE_E_OIGS' EXPORTING SHNUMBER = OIGS-SHNUMBER.

ENQUEUE_E_OIGS CALL FUNCTION 'ENQUEUE_E_OIGS' EXPORTING SHNUMBER = P_SHNUM.

OIGO_SHIPMENT_F4_EXTENDED CALL FUNCTION 'OIGO_SHIPMENT_F4_EXTENDED' EXPORTING I_MODE = 'HELP' EXCEPTIONS OTHERS = 0.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING SELECTFIELD = 'MBLNR' TITEL = 'Pls select material document'(001) REDUCED_STATUS_ONLY = 'X' IMPORTING IND = G_TABIX TABLES FIELDS = L_STRUC FULL_TABLE = G_OIGSH_TAB EXCEPTIONS OTHERS = 99.

MIGO_DIALOG CALL FUNCTION 'MIGO_DIALOG' EXPORTING I_ACTION = 'A04' I_REFDOC = 'R02' I_NOTREE = 'X' I_SKIP_FIRST_SCREEN = 'X' I_DEADEND = 'X' I_OKCODE = 'OK_GO' I_NEW_ROLLAREA = 'X' I_MBLNR = P_MBLNR * i_mjahr = g_litab-mjahr * I guess the function knows what do do now :-) EXCEPTIONS ILLEGAL_COMBINATION = 1 OTHERS = 2.

MB_MOVEMENTS_REFRESH CALL FUNCTION 'MB_MOVEMENTS_REFRESH' EXCEPTIONS ERROR_MESSAGE = 4.

MB_READ_GOODS_MOVEMENT CALL FUNCTION 'MB_READ_GOODS_MOVEMENT' EXPORTING BUDAT = G_OIGSH_TAB-PSTDAT MBLNR = G_OIGSH_TAB-MBLNR MBLPO = G_EMSEG_TAB-AZEIL MJAHR = G_OIGSH_TAB-MJAHR NFCOD = 'ST ' STCOD = 'MB11' IMPORTING IMKPF = G_IMKPF ETCOD = L_TCODE TABLES IMSEG = G_IMSEG_TAB EXCEPTIONS ERROR_MESSAGE = 4.

OIG_MB_PROCESS_FOR_SHIPMENT CALL FUNCTION 'OIG_MB_PROCESS_FOR_SHIPMENT' CHANGING X_IMKPF = G_IMKPF.

OIG_MB_PROCESS_FOR_SHIPMENT CALL FUNCTION 'OIG_MB_PROCESS_FOR_SHIPMENT' EXPORTING I_POST = 'T' IMPORTING O_OLD_SUBRC = G_EMKPF-SUBRC CHANGING X_IMKPF = G_IMKPF.

MB_CREATE_GOODS_MOVEMENT CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT' EXPORTING IMKPF = G_IMKPF XALLP = C_X XALLR = C_X CTCOD = L_TCODE * I_OIB_NO_DIALOG = C_X "46B IMPORTING EMKPF = G_EMKPF TABLES EMSEG = G_EMSEG_TAB IMSEG = G_IMSEG_TAB T_MS1INT = G_MSEGO1_TAB T_MS2INT = G_MSEGO2_TAB EXCEPTIONS ERROR_MESSAGE = 99.

OIGS_SD_DOCUMENT_FLOW CALL FUNCTION 'OIGS_SD_DOCUMENT_FLOW' IN UPDATE TASK TABLES T_XVBFA = T_XVBFA T_YVBFA = T_YVBFA.

MB_POST_GOODS_MOVEMENT CALL FUNCTION 'MB_POST_GOODS_MOVEMENT' IMPORTING EMKPF = G_EMKPF.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING TEXTLINE1 = I_TEXT1 TEXTLINE2 = I_TEXT2 TITEL = I_TITLE IMPORTING ANSWER = P_ANSWER.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING I_S_LOG = LS_LOG IMPORTING E_LOG_HANDLE = GV_LOG_HANDLE EXCEPTIONS OTHERS = 1.

BAL_DSP_PROFILE_DETLEVEL_GET CALL FUNCTION 'BAL_DSP_PROFILE_DETLEVEL_GET' IMPORTING E_S_DISPLAY_PROFILE = LS_DISPLAY_PROFILE.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING I_S_DISPLAY_PROFILE = LS_DISPLAY_PROFILE I_T_LOG_HANDLE = GT_LOG_HANDLE EXCEPTIONS PROFILE_INCONSISTENT = 1 INTERNAL_ERROR = 2 NO_DATA_AVAILABLE = 3 NO_AUTHORITY = 4 OTHERS = 5.

FORMAT_TEXTLINES CALL FUNCTION 'FORMAT_TEXTLINES' EXPORTING FORMATWIDTH = 50 LINEWIDTH = 134 STARTLINE = 0 TABLES LINES = LT_TLINE EXCEPTIONS OTHERS = 0.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING I_S_MSG = IS_MSG EXCEPTIONS LOG_NOT_FOUND = 0 OTHERS = 1.



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