SAP SO_FAX_DATA_DYNPRO Function Module for
SO_FAX_DATA_DYNPRO is a standard so fax data dynpro 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 so fax data dynpro FM, simply by entering the name SO_FAX_DATA_DYNPRO into the relevant SAP transaction such as SE37 or SE38.
Function Group: SO04
Program Name: SAPLSO04
Main Program: SAPLSO04
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SO_FAX_DATA_DYNPRO 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 'SO_FAX_DATA_DYNPRO'".
EXPORTING
* COMMUNICATION = 'FAX' "
* DYNP_NR_OF_TOP = '0099' "
* FAX_HEAD_DATA_IN = ' ' "Data to be displayed by default
* REPORT_OF_TOP = 'SAPLSO04' "
* DISPLAY_MODE = "
* OWNNAM = ' ' "
* ONE_FAX_ONLY = ' ' "
IMPORTING
FAX_HEAD_DATA_OUT = "Read data
OK_CODE = "
TABLES
* FAXDATA = "
EXCEPTIONS
PARAMETER_ERROR = 1 X_ERROR = 2
IMPORTING Parameters details for SO_FAX_DATA_DYNPRO
COMMUNICATION -
Data type:Default: 'FAX'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNP_NR_OF_TOP -
Data type: SY-DYNNRDefault: '0099'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FAX_HEAD_DATA_IN - Data to be displayed by default
Data type: SADRFDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
REPORT_OF_TOP -
Data type: SY-REPIDDefault: 'SAPLSO04'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY_MODE -
Data type: SONV-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
OWNNAM -
Data type: SOUD-USRNAMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONE_FAX_ONLY -
Data type: SONV-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SO_FAX_DATA_DYNPRO
FAX_HEAD_DATA_OUT - Read data
Data type: SADRFDOptional: No
Call by Reference: No ( called with pass by value option)
OK_CODE -
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SO_FAX_DATA_DYNPRO
FAXDATA -
Data type: SADRFDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARAMETER_ERROR - Incorrect parameter transfer
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
X_ERROR - Internal error (DB)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SO_FAX_DATA_DYNPRO 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: | ||||
| lt_faxdata | TYPE STANDARD TABLE OF SADRFD, " | |||
| lv_communication | TYPE SADRFD, " 'FAX' | |||
| lv_parameter_error | TYPE SADRFD, " | |||
| lv_fax_head_data_out | TYPE SADRFD, " | |||
| lv_ok_code | TYPE SY-UCOMM, " | |||
| lv_x_error | TYPE SY, " | |||
| lv_dynp_nr_of_top | TYPE SY-DYNNR, " '0099' | |||
| lv_fax_head_data_in | TYPE SADRFD, " SPACE | |||
| lv_report_of_top | TYPE SY-REPID, " 'SAPLSO04' | |||
| lv_display_mode | TYPE SONV-FLAG, " | |||
| lv_ownnam | TYPE SOUD-USRNAM, " SPACE | |||
| lv_one_fax_only | TYPE SONV-FLAG. " SPACE |
|   CALL FUNCTION 'SO_FAX_DATA_DYNPRO' " |
| EXPORTING | ||
| COMMUNICATION | = lv_communication | |
| DYNP_NR_OF_TOP | = lv_dynp_nr_of_top | |
| FAX_HEAD_DATA_IN | = lv_fax_head_data_in | |
| REPORT_OF_TOP | = lv_report_of_top | |
| DISPLAY_MODE | = lv_display_mode | |
| OWNNAM | = lv_ownnam | |
| ONE_FAX_ONLY | = lv_one_fax_only | |
| IMPORTING | ||
| FAX_HEAD_DATA_OUT | = lv_fax_head_data_out | |
| OK_CODE | = lv_ok_code | |
| TABLES | ||
| FAXDATA | = lt_faxdata | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| X_ERROR = 2 | ||
| . " SO_FAX_DATA_DYNPRO | ||
ABAP code using 7.40 inline data declarations to call FM SO_FAX_DATA_DYNPRO
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_communication) | = 'FAX'. | |||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_ok_code). | ||||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_dynp_nr_of_top). | ||||
| DATA(ld_dynp_nr_of_top) | = '0099'. | |||
| DATA(ld_fax_head_data_in) | = ' '. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_report_of_top). | ||||
| DATA(ld_report_of_top) | = 'SAPLSO04'. | |||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_display_mode). | ||||
| "SELECT single USRNAM FROM SOUD INTO @DATA(ld_ownnam). | ||||
| DATA(ld_ownnam) | = ' '. | |||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_one_fax_only). | ||||
| DATA(ld_one_fax_only) | = ' '. | |||
Search for further information about these or an SAP related objects