SAP Reports / Programs | Production Planning and Control | Production Planning for Process Industries | Process Order(PP-PI-POR) SAP PP

IPIBTARF SAP ABAP INCLUDE - Include for pppibtar, Forms for Status Change and Locking







IPIBTARF 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 IPIBTARF 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 IPIBTARF. "Basic submit
SUBMIT IPIBTARF AND RETURN. "Return to original report after report execution complete
SUBMIT IPIBTARF VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include for pppibtar, Forms for Status Change and Locking


INCLUDES used within this REPORT IPIBTARF

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:

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING CLIENT = SY-MANDT OBJNR = DCAUFV-OBJNR STATUS = STK_EBRR EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING CLIENT = SY-MANDT OBJNR = DCAUFV-OBJNR STATUS = STK_ERL EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING CLIENT = SY-MANDT OBJNR = DCAUFV-OBJNR STATUS = STK_ABG EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

ENQUEUE_ESORDER CALL FUNCTION 'ENQUEUE_ESORDER' EXPORTING AUFNR = DCAUFV-AUFNR _SCOPE = '3' EXCEPTIONS FOREIGN_LOCK = 01 SYSTEM_FAILURE = 02.

QPSE_LOT_READ CALL FUNCTION 'QPSE_LOT_READ' "Status Prueflos EXPORTING I_PRUEFLOS = DCAUFV-PRUEFLOS IMPORTING E_QALS = QALS EXCEPTIONS NO_LOT = 01.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING CLIENT = SY-MANDT OBJNR = QALS-OBJNR STATUS = STK_PLVE EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING CLIENT = SY-MANDT OBJNR = QALS-OBJNR STATUS = STK_PAKO EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

DEQUEUE_ESORDER CALL FUNCTION 'DEQUEUE_ESORDER' EXPORTING AUFNR = DCAUFV-AUFNR.

ENQUEUE_EQQALS2 CALL FUNCTION 'ENQUEUE_EQQALS2' EXPORTING MANDANT = SY-MANDT PRUEFLOS = DCAUFV-PRUEFLOS _SCOPE = '3' EXCEPTIONS FOREIGN_LOCK = 01 SYSTEM_FAILURE = 02.

DEQUEUE_ESORDER CALL FUNCTION 'DEQUEUE_ESORDER' EXPORTING AUFNR = DCAUFV-AUFNR.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING client = sy-mandt objnr = lt_qals-objnr status = stk_lsto EXCEPTIONS object_not_found = 1 status_not_active = 2 OTHERS = 3.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING client = sy-mandt objnr = lt_qals-objnr status = stk_plve exceptions object_not_found = 1 status_not_active = 2 others = 3.

STATUS_CHECK call function 'STATUS_CHECK' exporting client = sy-mandt objnr = lt_qals-objnr status = stk_pako exceptions object_not_found = 1 status_not_active = 2 others = 3.

DEQUEUE_ESORDER call function 'DEQUEUE_ESORDER' exporting aufnr = dcaufv-aufnr.

DEQUEUE_EQQALS2 call function 'DEQUEUE_EQQALS2' exporting mandant = sy-mandt prueflos = lt_qals_04-prueflos.

ENQUEUE_EQQALS2 call function 'ENQUEUE_EQQALS2' exporting mandant = sy-mandt prueflos = lt_qals-prueflos _scope = '3' exceptions foreign_lock = 01 system_failure = 02.

DEQUEUE_ESORDER call function 'DEQUEUE_ESORDER' exporting aufnr = dcaufv-aufnr.

DEQUEUE_EQQALS2 call function 'DEQUEUE_EQQALS2' exporting mandant = sy-mandt prueflos = lt_qals_04-prueflos.

STATUS_CHANGE_FOR_ACTIVITY





CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING CHECK_ONLY = ' ' CLIENT = SY-MANDT NO_CHECK = 'X' OBJNR = OBJNR VRGNG = VORG EXCEPTIONS ACTIVITY_NOT_ALLOWED = 01 OBJECT_NOT_FOUND = 02 STATUS_INCONSISTENT = 03 STATUS_NOT_ALLOWED = 04 WRONG_INPUT = 05 WARNING_OCCURED = 06.

STATUS_PRE_READ CALL FUNCTION 'STATUS_PRE_READ' EXPORTING CLIENT = SY-MANDT TABLES JSTO_PRE_TAB = STAT_OBJ_TAB.

STATUS_CHECK_BY_SELSCHEM CALL FUNCTION 'STATUS_CHECK_BY_SELSCHEM' EXPORTING OBJNR = OBJNR SELID = P_SELID IMPORTING FULLFILL = FLG_STATUS_OK EXCEPTIONS NO_STAT_SCHEME = 01 NO_STAT_TAB = 02.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING BYPASS_BUFFER = ' ' CLIENT = SY-MANDT OBJNR = DCAUFV-OBJNR STATUS = STK_EBRC EXCEPTIONS OBJECT_NOT_FOUND = 01 STATUS_NOT_ACTIVE = 02.



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