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

BAPI_ADDRESSCONTPART_CHANGE

Former Member
0 Likes
1,777

Hi,

I am not able to update pager number through this BAPI_ADDRESSCONTPART_CHANGE. This Bapi is for updating cotacts of a customer. I am able to update telephone, fax, mobile numbers, mail address, but not the pager number alone. Please help me out. What could be the problem?

Thanks in Advance.

Regards,

Dhana

17 REPLIES 17
Read only

Former Member
0 Likes
1,579

Hi,

Please help me out for this question.

Regards,

Dhana

Read only

Former Member
0 Likes
1,579

have you checked the structure <b>BAPIADPAG</b> in that BAPI

try updating the pager details and checkout if it works

Read only

0 Likes
1,579

Hi,

I have even debugged the BAPI.. The pager number table in getting populated in the BAPI. I am not able to find the reason, why the BAPI is not updating the Pager number.. Is there specific reason for the BAPI not updating the Pager Number?

Regards,

Dhana

Read only

0 Likes
1,579

Hi,

did you assign X to the PAGER field in structure BAPIADPAG_X .

Regards,

Sooness

Read only

0 Likes
1,579

Hi,

I have done that also.. Any other solution?

Regards,

Dhana

Read only

0 Likes
1,579

Hi,

pass the change pager number in this structure BAPIADPAG

and correspondinly pass X for the same field in BAPIADPAG_X

Read only

0 Likes
1,579
yes sooness is right, have you updated that

CLEAR: bapiadpag, bapiadpag_x.
bapiadpag-country = 'IND'.
bapiadpag-pager = '111111111111'.
bapiadtel_x-updateflag = 'I'.                   " to insert
APPEND: bapiadtel, bapiadtel_x. "Insert new ent

call change module
CALL FUNCTION 'BAPI_ADDRCONTPART_CHANGE'
   EXPORTING
        obj_type_p     = objtype
        obj_id_p       = obj_id
        obj_type_c     = objtype
        obj_id_c       = obj_id
        obj_id_ext     = obj_id_ext
        context        = context
   IMPORTING
       address_number = address_number
       person_number  = person_number
   TABLES
           BAPIADPAG  = BAPIPAG
            BAPIADPAG_X  = BAPIPAG_X
       return         = return.
Read only

0 Likes
1,579

<b>to delete an entry</b>

CLEAR: bapiadpag, bapiadpag_x.
bapiadpag-country = 'IND'.
bapiadpag-pager = '111111111111'.
bapiadtel_x-updateflag = 'D'.                   " to delete
APPEND: bapiadtel, bapiadtel_x. "Insert new ent

<b>to update an entry</b>

CLEAR: bapiadpag, bapiadpag_x.
bapiadpag-country = 'IND'.
bapiadpag-pager = '111111111111'.
bapiadtel_x-updateflag = 'U'.                   " to update
APPEND: bapiadtel, bapiadtel_x. "Insert new ent

Read only

0 Likes
1,579

Hi Chandrasekhar,

I have passed correct values to all the structures.. But BAPI is not udating Pager number alone.. It is updating fax number.

Regards,

Dhana

Read only

0 Likes
1,579

Hi,

ensure that you did the following:

move <b>pager_number</b> to wa_BAPIADPAG-PAGER

move <b>'I'</b> to wa_BAPIADPAG_X-UPDATEFLAG

move <b>'X'</b> to wa_BAPIADPAG_X-PAGER

append wa_BAPIADPAG to BAPIADPAG.

append wa_BAPIADPAG_X to BAPIADPAG_X.

If this doesn't work , try with field PAGER_NO

Regards,

Sooness

Read only

0 Likes
1,579

Hi,

I have tested with all the possibility fields and values..

Regards,

Dhana

Read only

0 Likes
1,579

Hi,

could you please paste your codes for the BAPIADPAG_X and BAPIADPAG structures. We will be in a better position to tell if you have made errors or not.

Regards,

Sooness

Read only

0 Likes
1,579

Hi,

I am just executing the BAPI directly.. Am not writing the code.

Regards,

Dhana

Read only

0 Likes
1,579

Hi,

then check whether the values you are inserting for :

COUNTRY exists in table T005 field land1

PAGER_TYPE exists in table TSAPD field PAGER_SERV

Regards,

Sooness

Read only

0 Likes
1,579

Hi Sooness,

Thanks for all your replies. The fields mentioned by you are existing in the table TSAPD. Any other solution?

Regards,

Dhana

Read only

0 Likes
1,579

Hi Dhana,

I have the same problem, I want to update/insert/delete address to the customer but I can't get any function to work.

have you solve this? how?

Regards,

Eduardo

Read only

0 Likes
1,579

Hi Eduardo,

Using this BAPI you can change the address of a customer.

BAPI_ADDRESSCONTPART_CHANGE

Regards,

Dhana