Ansicht
Dokumentation
CRM_SOLUTION_ATTACH_DISPATCH - Zugriff auf Anlagen zu einer Lösung
PERFORM Short Reference CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
This function module allows to deal with any kind of document attached to a solution in the solution database.
These attachments can be of 3 kinds:
- WWW link that contains the URL of an external document, generally available on the Internet
- An annotation that someone entered for a solution,
- A business document (commonly named BDocs) that is managed through specific function modules and classes (commonly named BDS for Business Document Services)
The function handles attachments in different ways, depending on the input parameters.
It is the entry point for handling the attachments of a solution in the database. Eventually, other function modules named CRM_SOLUTION_ATTACH_... perform the operation on the attachments (retrieving, loading data, downloading to the Internet, ...)
Parameters
-
iv_islnr
- iv_islnr
- The solution number and version are mandatory when you want to obtain the list of attachments for a specific solution.
- iv_get_data
- This indicator is used to load data for a specific attachment into an internal table. The URL is mandatory in this case.
- iv_get_info_only
- This indicator is used to retrieve attachment set for a specific solution, but the function sends back only header information for each attachment (see note below example 1).
- iv_send_data_www
- This indicator is used to download data to the Internet client.
- iv_url
- This URL is unique. It has been generated by the Data Provider.
Dependent functions
- CRM_SOLUTION_ATTACH_SET
- CRM_SOLUTION_ATTACH_GET
- CRM_SOLUTION_ATTACH_WWW_SEND
Example
Getting the attachement list for a specific solution in the database:
CALL FUNCTION 'CRM_SOLUTION_DISPATCH',,
EXPORTING
iv_islnr,,=
iv_islvr,,=
IMPORTING
et_sol_attach,,=
et_return,,=
,,This function call generates a unique URL for each business document attached
to the solution. Please refer to CRM_SOLUTION_ATTACH_SET documentation for more information. If you
want to use the fonction to get only information about the attachments used the following variant to call the function:
EXPORTING
iv_islnr,,,,=
iv_islvr,,,,=
iv_get_info_only,,= 'X'
CALL FUNCTION 'CRM_SOLUTION_DISPATCH',,
EXPORTING
iv_get_data,,,,= 'X'
iv_url,,,,,,=
IMPORTING
et_sol_attach,,,,=
et_return,,,,=
CALL FUNCTION 'CRM_SOLUTION_DISPATCH',,
EXPORTING
iv_send_data_www,,= 'X'
iv_url,,,,,,=
Note: You can combine the 2 last calls to load and send the data to the Internet.
.
NOTE:
Once you obtained the attachments for a specific solution, you can call the function to load the data into an internal table:
.
Finally, you can call the function to send the data to the Internet
Notes
Further information
Parameters
ET_RETURN
ET_SOL_ATTACH
IV_GET_DATA
IV_GET_INFO_ONLY
IV_ISLNR
IV_ISLVR
IV_SEND_DATA_WWW
IV_URL
Exceptions
Function Group
CRM_SERVICE_REQ_FLOW_PREP
Addresses (Business Address Services)
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 5842 Date: 20240523 Time: 093228 sap01-206 ( 65 ms )