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

Update Second Telephone Number through BAPIADDR1 in SD_CUSTOMER_MAINTAIN_AL

Hi,

I am updating Customer Address using the function module SD_CUSTOMER_MAINTAIN_ALL.

I have defined a structure ls_bapiaddr1( of type BAPIADDR1) and workarea itab1 ( of type KNA1)and populated BAPIADDR1 with the respective field values in KNA1 and passing the below parameters to the function module.

ls_bapiaddr1-addr_no = itab1-adrnr.

ls_bapiaddr1-NAME = itab1-name1.

LS_BAPIADDR1-NAME_2 = itab1-name2.

LS_BAPIADDR1-NAME_3 = itab1-name3.

LS_BAPIADDR1-NAME_4 = itab1-name4.

LS_BAPIADDR1-street = itab1-stras.

LS_BAPIADDR1-district = itab1-ort02.

LS_BAPIADDR1-postl_cod1 = itab1-pstlz.

LS_BAPIADDR1-city = itab1-ort01.

LS_BAPIADDR1-country = itab1-land1.

LS_BAPIADDR1-region = itab1-regio.

LS_BAPIADDR1-taxjurcode = itab1-txjcd.

LS_BAPIADDR1-transpzone = itab1-lzone.

LS_BAPIADDR1-po_box = itab1-pfach.

LS_BAPIADDR1-postl_cod2 = itab1-pstl2.

LS_BAPIADDR1-langu = itab1-spras.

LS_BAPIADDR1-tel1_numbr = itab1-telf1.

LS_BAPIADDR1-fax_number = itab1-telfx.

CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'

EXPORTING

I_KNA1 = itab1

I_BAPIADDR1 = ls_bapiaddr1

I_MAINTAIN_ADDRESS_BY_KNA1 = 'X'

PI_POSTFLAG = 'X'.

By using the above FM,all the address fields are populating correctly.

Here, the issue is if a customer has second telephone number ( KNA1-TELF2), then it is always updating with SPACE.

Even though, i am not passing any second telephone number here, it is changing to blank only.

Can you please suggest, how to rectify the above issue for not updating second telephone number with blank?

Thanks in advance,

Vamsee

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2009 at 08:27 PM

    I'm also having this problem.

    Experts, is there a way via FM to update telf2?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All,

      Thank you very much for all your inputs.

      I found out the root cause of the issue. This is purely address management memory issue. It does not belong to BAPI.

      I raised with SAP about this issue and the same they mentioned. In fact, this issue occurs when we process large amount of records only ( 1 lac above).

      Regards,

      Vamsee

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.