SAP Reports / Programs | Production Planning and Control | Production Planning for Process Industries | Process Data Documentation(PP-PI-PDO) SAP PP

PPPI_WRITE_ORDER_F01 SAP ABAP INCLUDE - PPPIWRITEORDERF01







PPPI_WRITE_ORDER_F01 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 PPPI_WRITE_ORDER_F01 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 PPPI_WRITE_ORDER_F01. "Basic submit
SUBMIT PPPI_WRITE_ORDER_F01 AND RETURN. "Return to original report after report execution complete
SUBMIT PPPI_WRITE_ORDER_F01 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 PPPI_WRITE_ORDER_F01

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:

VB_CP_HEADER_DATA CALL FUNCTION 'VB_CP_HEADER_DATA' EXPORTING i_aufnr = aufnr IMPORTING e_caufvd = caufvd e_afpod = afpod e_psfc_head = psfc_head e_tco09 = tco09 EXCEPTIONS order_not_found = 1 OTHERS = 2.

NW_DB_AFAB_RANGE_READ CALL FUNCTION 'NW_DB_AFAB_RANGE_READ' TABLES afab_tab = afabb_tab aufpl_pre_tab = aufpl_pre_tab EXCEPTIONS OTHERS = 0.

CO_DB_AFVGD_ARRAY_READ CALL FUNCTION 'CO_DB_AFVGD_ARRAY_READ' EXPORTING afvg_nummer = caufvd-aufpl TABLES afvdb_tab = afvgd_tab EXCEPTIONS not_found = 01.

STATUS_TEXT_EDIT CALL FUNCTION 'STATUS_TEXT_EDIT' EXPORTING objnr = afvgd-objnr only_active = c_yes spras = sy-langu IMPORTING line = afvgd-vsttxt EXCEPTIONS object_not_found = 01.

CR_WORKSTATION_READ CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING id = afvgd-arbid IMPORTING arbpl = afvgd-arbpl EXCEPTIONS not_found = 01.

CR_WORKSTATION_READ_ROUTING CALL FUNCTION 'CR_WORKSTATION_READ_ROUTING' EXPORTING id = afvgd_tab-arbid werks = afvgd_tab-werks vgwkz = ja IMPORTING works = rcr01 EXCEPTIONS not_found = 01 type_not_allowed = 02 wrong_parameters = 03.

CR_WORKSTATION_READ_ROUTING CALL FUNCTION 'CR_WORKSTATION_READ_ROUTING' EXPORTING id = afvgd_tab-arbid werks = afvgd_tab-werks vgwkz = ja IMPORTING works = rcr01 EXCEPTIONS not_found = 01 type_not_allowed = 02 wrong_parameters = 03.

CR_WORKSTATION_READ CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING id = afabb_tab-arbid IMPORTING arbpl = afvgd-arbpl.

COC1_FEATURE_CHECK CALL FUNCTION 'COC1_FEATURE_CHECK' EXPORTING feature_id = affv_tab-atinn language = sy-langu IMPORTING feature_name = atbez feature_neutral_name = affvd-atnam value_assignment_with_longtext = ltext function_for_auto_valuation = atfkt EXCEPTIONS invalid_class_type = 01 missing_feature_information = 02 no_feature_found = 03 no_feature_valid = 04 no_language = 05.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = p_element function = 'SET' type = 'BODY' window = 'MAIN' EXCEPTIONS element = 1 function = 2 type = 3 unopened = 4 unstarted = 5 window = 6 bad_pageformat_for_print = 7 OTHERS = 8.

STATUS_TEXT_EDIT CALL FUNCTION 'STATUS_TEXT_EDIT' EXPORTING flg_user_stat = c_yes objnr = caufvd-objnr only_active = c_yes spras = sy-langu IMPORTING anw_stat_existing = caufvd-astex line = caufvd-sttxt user_line = caufvd-asttx EXCEPTIONS object_not_found = 01.

CO_ZK_TEXTKEY_AFFV CALL FUNCTION 'CO_ZK_TEXTKEY_AFFV' EXPORTING afvzl = affv_tab-afvzl aufnr = caufvd-aufnr IMPORTING id = loc_id name = loc_name object = loc_object.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING client = sy-mandt id = loc_id language = affv_tab-txtsp name = loc_name object = loc_object IMPORTING header = texth TABLES lines = textl EXCEPTIONS not_found = 01.

TEXT_INCLUDE_REPLACE CALL FUNCTION 'TEXT_INCLUDE_REPLACE' EXPORTING header = texth IMPORTING newheader = texth TABLES lines = textl.

FORMAT_TEXTLINES CALL FUNCTION 'FORMAT_TEXTLINES' EXPORTING formatwidth = h_max_linesize linewidth = h_max_linesize TABLES lines = textl.



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