Application Development 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: 

How to update ADRT-REMARK field (by which tcode)?

Former Member
0 Kudos

How to update ADRT-REMARK field (by which tcode)?

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos

This field updates from some certain transaction like XD02>from address tab? Click on other communication and select email>from pop-up here you may have option give notes along with email id which going to store in ADRT-REMARK. Same with XK02 for vendor.

7 REPLIES 7

Former Member
0 Kudos

Hi,

Try to use the tcode MEAN. I think there will be a field in the transaction to enter the remark.

Regards,

Aditya

former_member181995
Active Contributor
0 Kudos

This field updates from some certain transaction like XD02>from address tab? Click on other communication and select email>from pop-up here you may have option give notes along with email id which going to store in ADRT-REMARK. Same with XK02 for vendor.

former_member555112
Active Contributor
0 Kudos

Hi,

ADRT-REMARK basically stores the notes which you enter against any communication number such as Telephone Number, Fax number etc for any business partner.

Say for example if you want to address details of a customer via XD01 or XD02; then in the communication tab enter the telephone number or fax number.

Click the button to add more details or more telephone numbers.

Over there you will find a field called as Comments.

This field is ADRT-REMARK.

You do not have a single transaction to maintain this field.

It depends upon the business partner for whom you want to add the details.

For a customer it is XD01 or XD02

For a vendor it is XK01 or XK02.

For a business partner it is BP.

For a user it is SU01D.

Regards,

Ankur Parab

0 Kudos

Hey guy.

I'm in the same boat, but am needing to update this field via ABAP code.

Anyone know if there's a BAPI I can use?

Basically a customer enters their e-mail on our website and my program will populate the ADRT table with certain details.

Any help appreciated

0 Kudos

Hi,

You can use the IDOC ADRMAS to populate emails and REMARK field.

In the segment E1BPCOMREM you can populate the REMARK field using the IDOC field COMM_NOTES

Best Regards,

Rodrigo.

0 Kudos

Hi,

I have the same requirement , to update this field REMARK for customer using ABAP code.

Can you please help me ?

Thank you !

Harish Bhatt

0 Kudos

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