Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Debmas Overwriting

Former Member
0 Likes
574

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

1 REPLY 1
Read only

abdul_rouhi2
Explorer
0 Likes
429

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.