‎2007 Jun 01 7:06 AM
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
‎2007 Jun 01 7:48 AM
‎2007 Jun 01 7:53 AM
have you checked the structure <b>BAPIADPAG</b> in that BAPI
try updating the pager details and checkout if it works
‎2007 Jun 01 7:59 AM
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
‎2007 Jun 01 8:09 AM
Hi,
did you assign X to the PAGER field in structure BAPIADPAG_X .
Regards,
Sooness
‎2007 Jun 01 8:12 AM
‎2007 Jun 01 8:14 AM
Hi,
pass the change pager number in this structure BAPIADPAG
and correspondinly pass X for the same field in BAPIADPAG_X
‎2007 Jun 01 8:15 AM
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.
‎2007 Jun 01 8:19 AM
<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
‎2007 Jun 01 8:22 AM
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
‎2007 Jun 01 8:37 AM
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
‎2007 Jun 01 8:40 AM
Hi,
I have tested with all the possibility fields and values..
Regards,
Dhana
‎2007 Jun 01 9:02 AM
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
‎2007 Jun 01 9:13 AM
Hi,
I am just executing the BAPI directly.. Am not writing the code.
Regards,
Dhana
‎2007 Jun 01 9:30 AM
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
‎2007 Jun 01 9:33 AM
Hi Sooness,
Thanks for all your replies. The fields mentioned by you are existing in the table TSAPD. Any other solution?
Regards,
Dhana
‎2007 Jul 25 11:06 AM
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
‎2007 Jul 25 12:49 PM
Hi Eduardo,
Using this BAPI you can change the address of a customer.
BAPI_ADDRESSCONTPART_CHANGE
Regards,
Dhana