SAP SWO_OBJTYPE_PRINT Function Module for
SWO_OBJTYPE_PRINT is a standard swo objtype print SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for swo objtype print FM, simply by entering the name SWO_OBJTYPE_PRINT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWOS
Program Name: SAPLSWOS
Main Program: SAPLSWOS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWO_OBJTYPE_PRINT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SWO_OBJTYPE_PRINT'".
EXPORTING
* FORM = 'SWO_OBJECTTYPE_S' "Layout set name
* LANGUAGE = SY-LANGU "Language for layout set and texts
* OBJTYPE = "Object type
* NO_SEL_DIALOG = ' ' "
* WITH_INTERFACE = 'X' "
* WITH_DOC = ' ' "
* WITH_SOURCE = ' ' "
IMPORTING
WITH_INTERFACE = "
WITH_DOC = "
WITH_SOURCE = "
CHANGING
* PRINT_PARAMETERS = "
EXCEPTIONS
CANCELED = 1
IMPORTING Parameters details for SWO_OBJTYPE_PRINT
FORM - Layout set name
Data type:Default: 'SWO_OBJECTTYPE_S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language for layout set and texts
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJTYPE - Object type
Data type: SWOTBASDAT-OBJTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_SEL_DIALOG -
Data type: SWO_PRNSEL-NO_DIALOGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_INTERFACE -
Data type: SWO_PRNSEL-INTERFACEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_DOC -
Data type: SWO_PRNSEL-DOCUDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_SOURCE -
Data type: SWO_PRNSEL-SOURCEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SWO_OBJTYPE_PRINT
WITH_INTERFACE -
Data type: SWO_PRNSEL-INTERFACEOptional: No
Call by Reference: No ( called with pass by value option)
WITH_DOC -
Data type: SWO_PRNSEL-DOCUOptional: No
Call by Reference: No ( called with pass by value option)
WITH_SOURCE -
Data type: SWO_PRNSEL-SOURCEOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SWO_OBJTYPE_PRINT
PRINT_PARAMETERS -
Data type: PRI_PARAMSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELED - User cancelled print dialog
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SWO_OBJTYPE_PRINT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_form | TYPE STRING, " 'SWO_OBJECTTYPE_S' | |||
| lv_canceled | TYPE STRING, " | |||
| lv_with_interface | TYPE SWO_PRNSEL-INTERFACE, " | |||
| lv_print_parameters | TYPE PRI_PARAMS, " | |||
| lv_language | TYPE SY-LANGU, " SY-LANGU | |||
| lv_with_doc | TYPE SWO_PRNSEL-DOCU, " | |||
| lv_objtype | TYPE SWOTBASDAT-OBJTYPE, " | |||
| lv_with_source | TYPE SWO_PRNSEL-SOURCE, " | |||
| lv_no_sel_dialog | TYPE SWO_PRNSEL-NO_DIALOG, " ' ' | |||
| lv_with_interface | TYPE SWO_PRNSEL-INTERFACE, " 'X' | |||
| lv_with_doc | TYPE SWO_PRNSEL-DOCU, " ' ' | |||
| lv_with_source | TYPE SWO_PRNSEL-SOURCE. " ' ' |
|   CALL FUNCTION 'SWO_OBJTYPE_PRINT' " |
| EXPORTING | ||
| FORM | = lv_form | |
| LANGUAGE | = lv_language | |
| OBJTYPE | = lv_objtype | |
| NO_SEL_DIALOG | = lv_no_sel_dialog | |
| WITH_INTERFACE | = lv_with_interface | |
| WITH_DOC | = lv_with_doc | |
| WITH_SOURCE | = lv_with_source | |
| IMPORTING | ||
| WITH_INTERFACE | = lv_with_interface | |
| WITH_DOC | = lv_with_doc | |
| WITH_SOURCE | = lv_with_source | |
| CHANGING | ||
| PRINT_PARAMETERS | = lv_print_parameters | |
| EXCEPTIONS | ||
| CANCELED = 1 | ||
| . " SWO_OBJTYPE_PRINT | ||
ABAP code using 7.40 inline data declarations to call FM SWO_OBJTYPE_PRINT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_form) | = 'SWO_OBJECTTYPE_S'. | |||
| "SELECT single INTERFACE FROM SWO_PRNSEL INTO @DATA(ld_with_interface). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| DATA(ld_language) | = SY-LANGU. | |||
| "SELECT single DOCU FROM SWO_PRNSEL INTO @DATA(ld_with_doc). | ||||
| "SELECT single OBJTYPE FROM SWOTBASDAT INTO @DATA(ld_objtype). | ||||
| "SELECT single SOURCE FROM SWO_PRNSEL INTO @DATA(ld_with_source). | ||||
| "SELECT single NO_DIALOG FROM SWO_PRNSEL INTO @DATA(ld_no_sel_dialog). | ||||
| DATA(ld_no_sel_dialog) | = ' '. | |||
| "SELECT single INTERFACE FROM SWO_PRNSEL INTO @DATA(ld_with_interface). | ||||
| DATA(ld_with_interface) | = 'X'. | |||
| "SELECT single DOCU FROM SWO_PRNSEL INTO @DATA(ld_with_doc). | ||||
| DATA(ld_with_doc) | = ' '. | |||
| "SELECT single SOURCE FROM SWO_PRNSEL INTO @DATA(ld_with_source). | ||||
| DATA(ld_with_source) | = ' '. | |||
Search for further information about these or an SAP related objects