Skip to Content
author's profile photo Former Member
Former Member

How can i update the ADRT table REMARK field

How can i update the ADRT table REMARK field

by using only function modules or BAPI's not by direct update's

please help me

i need it urgently

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2016 at 12:04 PM

    Hello ,

    I have the same requirement.

    Did you get success ? Please share.

    Thank you !

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      I got success to update REMARK field in ADRT table.

      We can do following steps :

      Get Sequence number:

      CALL FUNCTION 'ADDR_SELECT_ADRCOMC_SINGLE'

      EXPORTING

      addrnumber = p_adrnr "Address Number

      TABLES

      et_adrcomc = lt_adrcomc.

      IF sy-subrc EQ 0.

      SORT lt_adrcomc BY comm_type.

      READ TABLE lt_adrcomc

      INTO ls_adrcomc

      WITH KEY comm_type = 'INT'

      BINARY SEARCH.

      IF sy-subrc EQ 0.

      ls_commtab-consnumber = ls_adrcomc-high_value + 1. "Sequence Number

      ENDIF.

      ENDIF.

      ls_commtab-smtp_addr = p_email. "Email Address

      ls_commtab-remark = p_remark. "Remark to add

      ls_commtab-updateflag = 'I'. "Flag for insert

      APPEND ls_commtab TO lt_commtab.

      Update Remark in XD02 (ADRT table)

      CALL FUNCTION 'ADDR_COMM_MAINTAIN'

      EXPORTING

      address_number = p_adrnr "Address Number

      date_from = '00010101'

      language = sy-langu

      table_type = 'ADSMTP' "Constant

      check_address = 'X'

      iv_time_dependence = 'X'

      iv_consider_adrcomc_for_insert = 'X'

      IMPORTING

      returncode = lv_return

      TABLES

      comm_table = lt_commtab.

      IF sy-subrc = 0.

      IF p_test IS INITIAL.

      CALL FUNCTION 'ADDR_MEMORY_SAVE'.

      ENDIF.

      IF sy-subrc = 0.

      WRITE : / 'Table ADRT is updated successfully for address :',

      p_adrnr.

      ENDIF.

      ELSE.

      WRITE : / 'Error- Table ADRT is not updated for address : ',

      p_adrnr.

      ENDIF.

      Once data is updated in remark field of ADRT table, it will be reflected in XD02 also.

      Please let me know if I am not clear enough.

      Thank you !
      Harish Bhatt

      Capture.JPG (44.3 kB)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.