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

Last SMTP Address not getting updated in the Customer master(Contacts tab).

Hi,

I am modifying a program in which I am supposed to Create customers Via standalone program using a flat file . at the moment only the general data is crerated.

For the Second Run of the same program I am uploading the Customer contacts.

all the contact are getting created but the SMTP Address of the last contact does not get updated.

all the values are correct including the SMTP Addresses but still the SMTP of the last address does not get created in the system.

The FM being used in the program is : ADDR_PERS_COMP_MAINTAIN_COMPL.

CALL FUNCTION 'ADDR_PERS_COMP_MAINTAIN_COMPL'

EXPORTING

updateflag = 'U' "Update

addr3_complete = ls_addr3_complete

person_group = 'BP'

substitute_all_comm_data = abap_true

check_address = ' '

IMPORTING

returncode = lv_returncode

TABLES

error_table = lt_error

EXCEPTIONS

parameter_error = 1

address_not_exist = 2

person_not_exist = 3

handle_exist = 4

internal_error = 5

OTHERS = 6.

Can any one please help me to sort out this Prblem.

Regards,

Deepak.

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 May 25, 2011 at 12:05 PM

    Check your program logic. I'd guess that you're failing to call the FM after the last record in the table.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The errors table and return code are checked on that last record? I'm sorry, but this still sounds like an error in the loop processing. In debug, have you watched every step of that last record? Does the problem occur if you have only one row in your internal table? If so, does that first row update correctly if you add a 2nd row to the internal table? Suggest you post the code for the loop at the internal table along with the FM call.

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.