2008 Jan 11 3:08 PM
Hi all
We are populating the contacts for a customer in the R/3 by using the DEBMAS inbound idoc. we have noticed that when ever an inbound debmas idoc is processed the existing contacts are being overwriteen with the new contacts in the DEBMAS. Is there any way to avoid this. any setting in SAP system to avoid the overwriting of contacts ??
Please give sugestions on this issue
Thank you
Hi all
We are populating the contacts for a customer in the R/3 by using the DEBMAS inbound idoc. we have noticed that when ever an inbound debmas idoc is processed the existing contacts are being overwriteen with the new contacts in the DEBMAS. Is there any way to avoid this. any setting in SAP system to avoid the overwriting of contacts ??
Please give sugestions on this issue
Thank you
2009 Jul 31 12:31 AM
Old posting but just in case:
If you're not intending to change value of a customer master field, make sure segment field has value '/' which means NO DATA. Alternatively, you can use this code to auto populate initial fields in each segment with '/' in a user-exit:
...
PERFORM fill_with_slash CHANGING ls_e1kna1m.
...
FORM fill_with_slash CHANGING ps_segment.
* local data
DATA: lv_index TYPE sy-index.
FIELD-SYMBOLS: <fs_comp> TYPE ANY.
* fill empty fields with '/'
DO.
ADD 1 TO lv_index.
ASSIGN COMPONENT lv_index OF STRUCTURE ps_segment TO <fs_comp>.
IF sy-subrc EQ 0.
IF <fs_comp> IS INITIAL.
<fs_comp> = '/'.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
ENDFORM.