‎2007 Jun 13 1:13 PM
Hi All,
Is there any BAPI which updates the Fields ADRC-FLAGCOMM8 and 9.
I checked BAPI address change but it doesnt update the above fields.
Thanks in Advance
Regards,
Kishore Yerra.
‎2007 Jun 13 1:18 PM
hi,
after that bapi function module just write
commit and work.
and check whether it updates or not
‎2007 Jun 13 1:50 PM
Hi ,
The issue was not related to updation of data to Database tables.
Because the BAPI address change , does not have any structure or table parameters to hold the ADRC-FLAGCOMM8 and 9.
Is there any other BAPI which holds or takes the input corresponding to ADRC-FlAGCOMM8 & 9.
I understand that, we have to write a explicit commit or use the BAPI_COMMIT_WORK to actualy update it to the Database
Thanks in Advance.
Regards,
Kishore Yerra.
‎2007 Jun 13 2:03 PM
Hi
check the bapi
BAPI_BUPA_FS_ADDRESS_CHANGE
Reward points for useful Answers
Regards
Anji
‎2007 Jun 13 2:06 PM
Hi,
When u will maintain this information in address of vendor or customer. the field ADRC-FlAGCOMM8 will automatically get updated. this field shows that u have maintained at least one X.400 entry in address.
thanks and regard
sarbpreet multani
‎2007 Jun 13 1:39 PM
Hi,
there is no direct way to update this field. when u update address of any vendor or customer and put and entry in <b>X.400 addresse</b> it will update that field.
so u have to maintain the address. For this u can use bapi <b>'BAPI_ADDRESSORG_CHANGE'</b>
u can take help of below example here i am updating emails from clerk email for a vendor. u can take help from its documentation also
REPORT ZUPDATE_EMAIL
NO STANDARD PAGE HEADING LINE-SIZE 255.
----
Program : ZUPDATE_EMAIL
Author : Sarbpreet Singh
Run Frequency : once
Description : To update e-mail from clerk email.
Development Class: ZZMM
----
DATA : BEGIN OF addr.
INCLUDE STRUCTURE bapibus1006_address.
DATA : END OF addr.
DATA : adr LIKE bapiadsmtp OCCURS 0 WITH HEADER LINE.
DATA : guid LIKE but020-guid,
objtype like bapi4001_1-objtype,
obj_id like bapi4001_1-objkey,
obj_id_ext like bapi4001_1-extension,
context like bapi4001_1-context.
DATA : ret LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA : bapiadsmt_x LIKE bapiadsmtx OCCURS 0 WITH HEADER LINE.
DATA : address_number LIKE bapi4001_1-addr_no.
DATA : lfb1 LIKE lfb1 OCCURS 0 WITH HEADER LINE.
objtype = 'LFA1'.
obj_id_ext = ' '.
context = '0001'.
SELECT * INTO CORRESPONDING FIELDS OF TABLE lfb1 FROM lfb1.
LOOP AT lfb1.
IF NOT lfb1-intad IS INITIAL.
CLEAR : adr, bapiadsmt_x.
refresh : adr, bapiadsmt_x.
adr-e_mail = lfb1-intad.
bapiadsmt_x-updateflag = 'I'.
APPEND adr.
APPEND bapiadsmt_x.
obj_id = lfb1-lifnr.
CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'
EXPORTING
obj_type = objtype
obj_id = obj_id
obj_id_ext = obj_id_ext
context = context
IMPORTING
address_number = address_number
TABLES
bapiadsmtp = adr
bapiadsmt_x = bapiadsmt_x
return = ret
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
.
ENDIF.
ENDLOOP.
WRITE : 'done'.
thanks & regards
Sarbpreet Multani