Ansicht
Dokumentation
SD_PARTNER_SINGLE_MODIFY - NOTRANSL: Add, change and remove of a Partner
General Material Data ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
Functionality
Function module for adding, changing, or deleting a single partner.
To do this, the module uses the local memory of function group V09A (see also function module SD_PARTNER_OBJECT_CREATE). Identifiers are the object type and the object key.
The action to be performed is determined from a combination of the old and new customer number:
Old Customer Number | New Customer Number | Action |
---|---|---|
X | Y | Replace |
X | X | None |
Blank | Y | Add |
Blank | Y | Delete |
Based on the partner determination procedure, the system checks whether the action can be performed.
Import
- By transferring the action using the parameter FIF_INITIAL_VALUE, you can ensure that a mandatory partner has the value '0' or 'Blank'. Otherwise the system would consider the values to be initial, which might lead to the partner being deleted.
- The parameter FIF_DIALOG must be set to 'X' when the call is triggered by a dialog with the user, for example when the user changes a partner on a screen.
In this way you can control checks that are only to be run in dialog.
- Using the parameter FIF_NO_MESSAGES or FIF_LISTPROCESSING you can suppress error messages.
Warnings, which would lead to problems in reporting, can be changed to information messages.
- Using the parameter FIF_CLEAR_APPL_LOG you can prevent the error log from being deleted. By default the parameter is set to 'X'.
- Using the parameter FIF_HARD_DELETION you can delete a partner without taking the partner determination procedure into account. You should only use this parameter if consistency in partner processing can be ensured in another way (for example subsequent addition).
- The parameter FIF_PARTIAL_NEW_DETERMINATION is not currently released. When you have successfully added or changed a partner, this parameter should perform a new partner determination for the dependent partner roles.
Export
- The export parameter FEV_ACTION_DONE provides information about which action was performed.
- D - delete
- I - add
- U - change
- E - error
- This is the only parameter that gives reliable information about the action performed. The SY_SUBRC can be zero, even if the required action was not performed.
- The export parameter FRF_LOG_COUNT provides information about the number of error messages in the application log (object SDBFPD, subobject ERRORS).
- Using the parameter FIF_KNREF_PARNR you can specify a customer whose business partner relationships you want the system to use to determine values for the data element KNREF (customer-specific name for the business partner (plant, warehouse)).
Example
The following example replaces ship-to party 'SEMMLER' in the document header with ship-to party 'BACH'.
call function 'SD_PARTNER_SINGLE_MODIFY'
exporting
fic_objecttype = 'X'
fic_objectkey = 'Y'
fis_sdorgdata = sdorgdata
fif_pargr = 'TA'
fif_parvw = 'WE'
fif_posnr = '000000'
fif_kunnr_old = 'SEMMLER '
fif_kunnr_new = 'BACH '
importing
fev_action_done = action_done
exceptions
parameter_incomplete = 1
object_not_found = 2
check_error = 3
others = 4.
Notes
Further information
Parameters
FEV_ACTION_DONEFIC_OBJECTKEY
FIC_OBJECTTYPE
FIF_ADDRNUMBER_OLD
FIF_BOKRE
FIF_CLEAR_APPL_LOG
FIF_DIALOG
FIF_FORCE_UPDATE
FIF_HARD_DELETION
FIF_HISTUNR
FIF_HZUOR
FIF_INITIAL_VALUE
FIF_KNREF_PARNR
FIF_KUNNR_NEW
FIF_KUNNR_OLD
FIF_LISTPROCESSING
FIF_MANUAL_ADDRESS
FIF_MANUAL_ADDRESS_ORIGIN
FIF_NO_CPD_DIALOG
FIF_NO_DIALOG
FIF_NO_MESSAGES
FIF_PARGR
FIF_PARTIAL_NEW_DETERMINATION
FIF_PARVW
FIF_POSNR
FIF_PRFRE
FIF_VKORG
FIS_PARTNER_ADDRESS
FIS_SDORGDATA
FRF_LOG_COUNT
FRF_PARTNER_ADDRESS_COUNT
Exceptions
CHECK_ERRORNUMBERS_NOT_OK
OBJECT_NOT_FOUND
PARAMETER_INCOMPLETE
Function Group
V09AROGBILLS - Synchronize billing plans RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 5700 Date: 20240523 Time: 064605 sap01-206 ( 72 ms )