Ansicht
Dokumentation

CRM_DAM_AUOC_SHIPTOADDRCHECK - store analysis of asset usage , create order for cd/dvd with distr.lock

CRM_DAM_AUOC_SHIPTOADDRCHECK - store analysis of asset usage , create order for cd/dvd with distr.lock

BAL Application Log Documentation   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is intended to be called by portal after an asset download or ordering a CD/DVD. It creates

  • in all cases statistic data for analysis of asset usage

  • only for process type CD/DVD-order a CRM-order specified by importing parameters,. The CRM-Order contains a ship-to-party partner, a link to the asset qualification of the documents, and a shipping condition to distinguish between CD or DVD orderd.

Example

Notes

Parameter IV_PORTAL_USER

The input parameter IV_PORTAL_USER is only used to determine the business partner, for which the role "internet user" must be maintained. By this, a SU01 user is mapped to the business partner. For each portal user a CRM user must be created with the same name.

This FM is intended to be called by a background process from a dedicated RFC user, which is not identical to the portal user. IV_PORTAL_USER is not used for any authority checks, so it doesn't offer any security lack. Instead, the authorizations of the actual RFC user are probed.

Parameter IV_SET_DISTR_LOCK

It is intended that FM /CRMDAM/KC_ORDER_ADD_ZIP_LINK is called after this FM, in order to add a link to the generated ZIP file which is burned on CD/DVD. IF a COMMIT WORK will occur after this FM, but before calling /CRMDAM/KC_ORDER_ADD_ZIP_LINK, the distribution lock must be set to the order status. In this case, it is better to use COMMIT WORK AND WAIT, if there is only a short span time between both FM calls. Usage of IV_SET_DISTR_LOCK:

  • 'X': Set distribution lock to the order status. Use this option, if COMMIT WORK is called after this FM, but before /CRMDAM/KC_ORDER_ADD_ZIP_LINK. In this FM, the flag IV_REL_DISTR_LOCK must then be set to 'X', too, in order to release the distribution lock.

  • initial: Do not set distribution lock to the order status. Use this option, if no COMMIT WORK is called after this FM, but before /CRMDAM/KC_ORDER_ADD_ZIP_LINK. In this FM, the flag IV_REL_DISTR_LOCK must then stay initial, too.

Anyway, after the call of FM /CRMDAM/KC_ORDER_ADD_ZIP_LINK a COMMIT WORK must be called.

Further information





Parameters

ES_ERROR
EV_RETURNCODE
IS_SHIPTO_ADDR1
IS_SHIPTO_ADDR2

Exceptions

Function Group

CRM_DAM_RFC

ABAP Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 2736 Date: 20240523 Time: 120531     sap01-206 ( 65 ms )