Ansicht
Dokumentation
CRMC_OUTPUT_002 - Define Conditions for Output (Old)
CPI1466 during Backup CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
To send condition-dependent output with the setting "Determination Technique using Conditions", you must have defined your own conditions in this step. The conditions control the start of output issue. In this section you can also make the entries for Smart Forms.
You can use the Stop indicator in the output list to control whether output determination stops after successful issue of output with this processing medium.
You have selected Output using conditions in the Determination Techniques field when defining the action. Action definitions with other determination techniques are not displayed in this IMG activity.
No conditions for this category are delivered.
SAP delivers the following Smart Forms for output in CRM:
- Form CRM_ORDER_CONFIRMATION_01, Style CRM_STYLE_01
- This form is suitable for faxes, print outs and e-mail.
- Form CRM_ORDER_LEASING_01, Style CRM_STYLE_01
- This form is suitable for faxes, print outs and e-mail.
- Formul CRM_OPPORTUNITY_01
- This form is suitable for faxes, print outs and e-mail.
- In the screen area Conditions for actions choose the required output type (in an action profile) by double-clicking.
- On the right a list of possible processing media appears for this output type.
- Select the required line by double-clicking and choose the icon Change condition.
- The screen areas Schedule conditionand Action and processing appear.
- In the screen area Schedule condition you can enter conditions for issuing output. After entering the conditions, you must activate them.
- In the screen area Action and processing you can change default values from the action profile and make recipient settings and settings for the form of output (for example, Smart Forms).
- If you want to change the default values, deselect the indicator "Presettings from action definition".
- If you want to select Smart Form print outs as the medium for processing, you must make the printer settings (printer address or spool settings).
Here is an example requirement (ABAP/4-Coding) that you could enter in the screen area for schedule condition. You can find further examples in the SAP Library under CRM -> Basic Functions -> Output Determination
The condition works as follows:
- Function module SPPF_GET_COMM_DATA reads the standard communication type from the BP master for the sold-to party.
- The system checks whether the standard communication type is e-mail.
* T = condition true
* F = condition false
data: l_deflt_comm type ad_comm.
* determine the communication type from the customer
call function 'SPPF_GET_COMM_DATA'
exporting
partners = l_context->partner
partner_role = '0001'
importing
deflt_comm = l_deflt_comm.
* check communication type
if l_deflt_comm eq 'INT'.
rule_evaluation_outcome = 'T'.
else.
rule_evaluation_outcome = 'F'.
endif.
You can also use function module CRM_OUTPUT_CHECK_DOCUMENT to check whether the document has the status "incorrect".
Fill RESBD Structure from EBP Component Structure PERFORM Short Reference
This documentation is copyright by SAP AG.
Length: 4161 Date: 20240523 Time: 155311 sap01-206 ( 55 ms )