Database error changing table ADR6
Hi,
We have a standard job HRALXSYNC which runs in banckground everyday. The job is getting failed everyday with the error 'Database error changing table ADR6'. Has anyone faced this issue before. Is it being caused by inconsistent data in ADR6 table? Or is it throwing this error due to some other reasons ? Kindly post your responses. I would appreciate your help.
Regards,
Mani
Debugged the program and found out the error entry. then corrected the same
Similar Messages
-
Database error changing table ADR2 - Inbound IDOC Create Order
Hi experts,
I have a backgroud job for program RBDAPP01 to process inbound IDOC message type OILLDD. It woked perfectly for years. Few days ago, the job got short dump and cancelled. In Error log, it shows error MESSAGE_TYPE_X Database error changing table ADR2 in function module ADDR_SAVE_INTERN.
I already try to activate trace log to see sql statement but still couldn't find anything suspicious. Have anyone been through this problem before? Please suggest.
Regards,Hi,
Please check if this SAP note is useful. 1300825
Regards,
Srini. -
USMM: Database error reading table TUMRES
Dear Experts,
i want to make an export to LAW file with SAP program RSLAW_PLUGIN.
In some of the systems the export (by downloading a file) works but in this ECC 6.0 the result is an error message:
Database error reading table TUMRES
Message no. BV103
The message contains no other information.
Knows anybody a solution for this error?
For any answers i would be very happy.
Thanks and best regards
MichaelHi All,
I am having similar issue, As mentioned above TUMRES is empty in SE 16.
I have rerun the measurement but background job is cancelling with
28.11.2014 09:48:27 Job cancelled after system exception ERROR_MESSAGE 00 564 A
Thanks
Sam -
Database error reading table ADRC
Hi,
I am trying to add address in adrc table using the function module ADDR_SAVE_INTERN.
When i pass the value of ADRC tables contents in this function module, I am getting an error saying "Database error reading table ADRC". Can you guess let me know what is this error?
Thanks
SlasherHi slasher,
it is always difficult and therefore not recommended to use SAP internal functions for any kind of database update. Addresses are part of business objects as all kinds of business partners, users, companies and the like. You should rather try to associate your addresses with one of those objects and do the maintenance by maintaining the business object. For this purpose you have a lot of BAPI functions like i.e. BAPI_BUPA_ADDRESS_CHANGE.
Regards,
Clemens -
Usmm: database error when reading the table TUMRES
Hi folks,
I´m getting this error when i´m trying to run the EXPORT to LAW FILE on a system measurement. What could be the problem because:
1. on my User classifications all my users on the column STATUS are not GREEN but silver like deactivated.
2. On the column CONTRACTUAL USER TYPE all are TEST
3. On the column CLASSIFICATION TYE TEXT are set as DEFAULT USER TYPE
4. When i run the System Measurement Statistics they show me a warning windows telling me that 1 MEASUREMENT JOB TERMINATED and when i get i can see that the ICM - Incident and Commissions Management is the one that has terminated.
5. There is nothing on the SM21 related with that.
6. The TUMRES table exist I checked with tcode SE16 but I could not certify if there is content or not.
7. On the tcode LICENSE_ADMIN the COMBINE USERS and CONSOLIDATE ALL DATA are green but I need first to IMPORT DATA FROM SYSTEM.
Please what can i do,
nelson\Hi Nelson,
This error message "Database error reading table TUMRES" would occur usually when any background jobs get terminated while performing measurement using transaction USMM.
I recommend you implement Note 1674661 - USMM: Application 900 (ETM) measurement result in short dump. and try to measure again
Regards,
Juan -
Error while creating publisher change tables in CDC
Hi,
I am implementing Change Data Capture. I got getting following error while creating publisher change tables in Staging database. My database version is 10.2.0.2.0 .
I appreciate your help.
ERROR at line 1:
ORA-29540: class oracle/CDC/PublishApi does not exist
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 611
ORA-06512: at line 2
Thanks,
Venkat.This problem got fixed when I ran below script!!
@$ORACLE_HOME/rdbms/admin/initcdc.sql; -
APEX Error: Current version of data in database has changed since user init
Hi:
APEX 4.1
I have a page with 2 regions. The first region is built with custom SQL using the APEX APIs. I have a process the can successfully update records.
I built the second region with the tabular form wizard. This created the multi row update process.
I created a region button and the two process respond to that button: process for first region, then process for the second region.
When I add data to the second region and click the region button, I get the following error:
Current version of data in database has changed since user initiated update process. current row version identifier = "A884FA378C851786DDFE3A33709CB23C" application row version identifier = "9ED06A0F09F80F054AB781CA24CC4CBF"
I know it has something to do with these two types of regions being on the same page, because when I create a page of just the table form, the data is updated.
Can anyone suggest what I might be doing wrong?
Thanks.Hello
If you try update the same data from 2 places you will got this message because:
Apex forms have locking mechanism.
1. During fetch data to form apex calculate checksum from every items on the forms.
2. Before update process apex again fetch data from database (in background) and calculate checksum again if checksum from point 1 is the same like this checksum APEX realy update data with new item values. If no, You will got your error (apex secure You, You realy don't know what you update).
According this if you change data which you use in the form between 1 and 2 point you will got this "error". You can check it for example if you change data from SQL/Plus or from other form.
Probably you forget about this locking mechanism during designe your process from APEX API <- successfully update records (maybe successful but you don't know what you updated) : )
If I helped You please check correct or helpful :) -
MRU Error : Current version of data in database has changed since user init
When i use HTMLDB Wizard to create Master Detail Form
(You can see step by step what i doing by see this url :
http://jroller.com/resources/w/wildan83/MRU%20Error.pdf
The is error in MRU :
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "0EEFFABE8252B0B279DB14A77F567F5D"., update "CNAP2"."ENROLLMENT" set "STUDENT_ID" = :b1, "SECTION_ID" = :b2, "ENROLL_DATE" = :b3, "FINAL_GRADE" = :b4.
If there something missing.., just say ..
Thanks for the help.Oh i see ..,i never think if that is the source of the MRU
error.
Ok ..,
Now ..., i have new question .., how can i change so the the primay key in detail table (enrollment table), i have one primary key with two columns .., if you don't understand what i mean ..,
check this alter table statement :
ALTER TABLE ENROLLMENT
ADD CONSTRAINT ENR_PK PRIMARY KEY
(STUDENT_ID
,SECTION_ID) ;
Now the question is .., when i using wizard to create master detail form .., html db automatically make student_id and section_id as the primary at "application level (html db)" .., how can i change this behaviour ..,
i want the html db not treat this two column as primary key ?
Do i have to create master detail form manually to accomplish this ?
Thanks before .., sorry if my english is not too good. -
ORA-31495 error in synchronous change table on "string"."string"
IN ORACLE 9I
TABLE COLUMN DATA TYPE VARCHAR2 16
WHEN UPDATE COLUMN VALUE WITH 11 CHARACTERS IT GIVES ERROR
ORA-31495 error in synchronous change table on "string"."string"
ORA-01401 value too large for column
IF I UPDATE COLUMN VALUE UPTO 10 CHARACTERS IT COMMITS AND GIVES NO ERRORWhat is the characterset of your database base
how you create table as
create table table1 (col1 varchar2(16 char)) or
create table table1 (col1 varchar2(16 byte))Try to create table with create table table1 (col1 varchar2(16 char)) then try insert
Regards
Singh
Edited by: Singh on Sep 2, 2008 1:00 PM -
Hi
We are getting the next erros with the jobs:
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS F6H Database error: TemSe->XRTAB(2)->1 for table TST01 key
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS GZZ > retry creation JOBLGX btctlgow216#
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS F6H Database error: TemSe->XRTAB(2)->1 for table TST01 key [400]JOBLGX13132201X28173,1
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS GZZ > retry creation JOBLGX btctlgow216#
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS F6H Database error: TemSe->XRTAB(2)->1 for table TST01 key [400]JOBLGX13132201X28173,1
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS GZZ > retry creation JOBLGX btctlgow216#
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS F6H Database error: TemSe->XRTAB(2)->1 for table TST01 key [400]JOBLGX13132201X28173,1
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS ECF Failed to create log for job POLCASHWIN
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS EBC > Job POLCASHWIN
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS EAY Failed to read status entry for job POLCASHWIN
13:13:51 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS EBC > Job POLCASHWIN
13:24:21 PRDAUNE2_PRD_02 BTC 22 000 SAPSYS BYM SQL error 0 . Work processes in reconnect status
We make a consistency check of spool and temse but nothing is wrong, but if we apply Check Status in the SM37 some jobs change to Active and run but other are in same status Ready
We olny found the note 67055 but recommended the consistency check.
Best Regards
Reynaldo RebolledoHi Reynaldo,
Check for Tablespace PSAPTEMP size for Oracle database when job is running.
If tablespace is full try adding datafile and run the job.
Award Points if Helpful -
Database error when updating table ADRC
Hi,
We are on ECC 5.0 & are facing a problem whille maintaining anything relevant to table ADRC.
For eg., if we try to maintain storage location or create a vendor code (XK01), for some inputs it works ...but most times the update just terminates with a message "Database error when changing table ADRC".
Pls. help.
Thanks,
Saba.Hi
You can refer to following SAP Notes in case they help:
385440 Repairing inconsistencies in Customizing addresses
417809 Customizing objects display incorrect addresses
186910 Customers / vendors with incorrect address
Otherwise i want to know more about the error you are getting to help you in better way.
Thanks and Regards
Esha Rajpal -
Getting database error while updating data to mysql table.
user registration.jsp < jsp user view to get input >
<?xml version="1.0" encoding ="UTF-8"?>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Registeres USers Login Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body>
<%--debugging code--%>
<%@ include file="debug.jsp" %>
<table width="1049" cellpadding="5" align="center">
<tr>
<td width="2378"><div align="center">
<h2 align="center"> User Registration</h2>
<p>
<c:url var="HmePgeURL" value="/cw/router/home" scope="page"/>
<a href="${HmePgeURL}">Home</a> <c:url var='BSPgeURL' value='/cw/router/login' scope='page'/>
<a href="${BSPgeURL}">Buy or Sell</a>
</p>
</div></td>
</tr>
</table>
<p align="center"> </p>
<p>This website is only open to members of the De MontFort University.
You will need a current @learner.dmu.ac.uk e-mail address in order to register.</p>
<p> If you've already registered for one site you do not need to register again </p>
<c:url value="/cw/router/userregistration" var="UregPgeURL" scope="page"/>
<form name="frmregister" method="post" action="${UregPgeURL}">
<div>
<table width="726" height="285" border="0" align="left" cellpadding="2" cellspacing="0">
<tr>
<td width="157" align="right" >Name:</td>
<td width="561" > <input name="txtname" type="text" value="${param.txtname}"/> </td>
</tr>
<c:if test="${!empty requestScope.reqInvalidUserName}">
<c:out value="${requestScope.reqInvalidUserName}"/>
</c:if>
<tr>
<td width="157" align="right" >Department</td>
<td align="left" >
<select name="txtdepartment" value="${param.txtdepartment}" >
<option></option>
<option value="Faculty of Art and Design">Faculty of Art and Design</option>
<option value="Faculty of Business and Law">Faculty of Business and Law</option>
<option value="Faculty of Computing Sciences and Engineering">Faculty of Computing Sciences and Engineering</option>
<option value="Faculty of Health and Life Sciences">Faculty of Health and Life Sciences</option>
<option value="Faculty of Humanities">Faculty of Humanities</option>
</select>
</td>
</tr>
<tr>
<td align="right" >Programme</td>
<td ><input type="text" name="txtprogramme" value="${param.txtprogramme}" />
(eg: BIS,SE) </td>
</tr>
<tr>
<td align="right" >Telephone Number: </td>
<td ><input name="txtphonenum" type="text" value="${param.txtphonenum}" /></td>
</tr>
<tr>
<td align="right" >Date Of Birth: </td>
<td ><input name="txtday" type="text" size="15" value="${param.txtdob}" />(of format YYYY-MM-DD)</td>
</tr>
<tr>
<td align="right" >Username</td>
<td align="left" >
<input name="txtuserid" type="text" size="15" value="${param.txtuserid}" />
(eg. p07269027 from [email protected])</td>
<c:if test="${!empty requestScope.reqInvalidUserId}">
<c:out value="${requestScope.reqInvalidUserId}"/>
</c:if>
</tr>
<tr>
<td align="right" >Password</td>
<td align="left" >
<input name="txtpassword" type="password" size="15" value="${param.txtpassword}" />
</td></tr>
<c:if test="${!empty requestScope.reqInvalidPassword}">
<c:out value="${requestScope.reqInvalidPassword}"/>
</c:if>
<tr>
<td align="right" >Confirm Password </td>
<td align="left" >
<input name="txtpasswordconf" type="password" size="15" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input name="frmsubmit" type="submit" value="Register User" />
<input type="reset" name="Reset" value="Reset" />
</td>
</tr>
</table>
<c:if test="${!empty requestScope.reqQueryErrorMessage}">
<c:out value="${requestScope.reqQueryErrorMessage}"/>
</c:if>
<c:if test="${!empty requestScope.reqInvalidUpdate}">
<c:out value="${requestScope.reqInvalidUpdate}"/>
</c:if>
</div>
</form>
</body>
</html>
proregistration.jsp ( registration process jsp)
<?xml version="1.0" encoding ="UTF-8"?>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%-- \WEB-INF\jsp\cwjsps\probooksforsale.jsp --%>
<%-- Probookforsale --%>
<%-- skip field validation and provide blankpage if first time in --%>
<c:if test="${empty param.frmsubmit}">
<c:set var="reqOutcome" scope="request" value=" "/>
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- initial request --%>
</c:if>
<%-- validate txtname --%>
<c:if test="${empty param.txtname}">
<c:set var="reqInvalidUserName" scope="request" value= "User Name Cannot Be Empty"/>
</c:if>
<%-- validate txtuserid --%>
<c:if test="${empty param.txtuserid}">
<c:set var="reqInvalidUserId" scope="request" value= "User ID Cannot Be Empty"/>
</c:if>
<%-- validate txtpassword--%>
<c:if test="${empty param.txtpassword}">
<c:set var="reqInvalidPassword" scope="request" value= "Password Cannot Be Empty"/>
</c:if>
<%-- if userid invalid or username invalid --%>
<%-- redisplay form with originl typed-in data and with errors marked --%>
<c:if test="${empty param.txtname or empty param.txtuserid}">
<c:set var="reqOutcome" scope="request" value= "failure" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
</c:if>
<c:catch var="pgeQueryError">
<sql:update var="pgeRowCount" scope="page" >
<%-- insert details to trader table --%>
INSERT INTO trader(dbTraderName,dbTraderDepartment,dbTraderProgramme,dbTraderPhoneNum ,dbTraderDOB,dbTraderPNumber,dbTraderPwd)
VALUES(?,?,?,?,?,?,?)
<sql:param value="${param.txtname}"/>
<sql:param value="${param.txtdepartment}"/>
<sql:param value="${param.txtprogramme}"/>
<sql:param value="${param.txtphonenum}"/>
<sql:param value="${param.txtdob}"/>
<sql:param value="${param.txtuserid}"/>
<sql:param value="${param.txtpassword}"/>
</sql:update>
</c:catch>
<%-- check For query Error --%>
<c:if test="${not empty pgeQueryError}">
<c:choose>
<%-- check duplicate record --%>
<c:when test="${pgeQueryError.rootCause.errorCode =='1062'}">
<c:set var="reqQueryErrorMessage" scope="request" value="User already Registered - Duplicate Record" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/>
</c:when>
<c:otherwise>
<%-- database error --%>
<c:set var="reqQueryErrorMessage" scope="request" value="Database Error" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
</c:otherwise>
</c:choose>
<c:set var="reqOutcome" scope="request" value="failure" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
</c:if>
<%-- check For no rows returned --%>
<c:if test="${pgeRowCount !=1}">
<c:set var="reqInvalidUpdate" scope="request" value="*** rowCount not = 1"/>
<c:set var="reqOutcome" scope="request" value="failure"/>
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
</c:if>
<%-- Otherwise --%>
<%-- Outcome is success --%>
<c:if test="${pgeRowCount ==1}">
<c:set var="reqOutcome" scope="request" value="success" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/> <%-- success --%>
</c:if>
router.jsp ( maps the jsp page based on success and failure)
<?xml version="1.0" encoding ="iso-8859-1"?>
<%-- /WEB-INF/jsp/cwjsps/router.jsp --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%-- setup session if one does not exist --%>
<%@ page session="true" %>
<%-- set up debug variable --%>
<c:set var="sessDebug" scope="session" value="true"/>
<%-- get pathinfo information from the request --%>
<%-- this defines which use case has been requested --%>
<c:set var="pgePathInfo" scope="page" value="${pageContext.request.pathInfo}" />
<%-- uc02 : Login --%>
<c:if test="${pageScope.pgePathInfo =='/home'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/>
</c:if>
<c:if test="${pageScope.pgePathInfo =='/login'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/prologin.jsp"/>
</c:if>
<%-- uc01 : View Details Of Books For Sale --%>
<c:if test="${pageScope.pgePathInfo =='/viewbooksforsale'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/probooksforsale.jsp"/>
</c:if>
<%-- uc01 : process User registration--%>
<c:if test="${pageScope.pgePathInfo =='/userregistration'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/proregistration.jsp"/>
</c:if>
<%-- uc01 : debug --%>
<c:if test="${pageScope.pgePathInfo =='/debug'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/debug.jsp"/>
</c:if>
<%-- uc01 : view Traders Own View --%>
<c:if test="${pageScope.pgePathInfo =='/Traderhomepage'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/Traderhomepage.jsp"/>
</c:if>
<%-- otherwise --%>
<jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/> &nbHi..
Correcting the record from PSA is temporary solution depends on u r criticality....
Only Solution is to correct the record at source system level... Generally Material master data record is imp so just try to fix temporarily so that it vl not affect u r loads until it is corrected at Source System level..
Note: inform the problem to u r co-ordinator and try to correct it ASAP... and explain the temp solution(PSA correction)...
cheers.. -
Need help to change user email id in table ADR6
Hi,
i want to update user email id in table adr6. i hv written following code but not working to change email in table adr6.
DATA lo_nd_email TYPE REF TO if_wd_context_node.
DATA lo_el_email TYPE REF TO if_wd_context_element.
DATA ls_email TYPE wd_this->element_email.
DATA lv_mail_id LIKE ls_email-mail_id.
navigate from <CONTEXT> to <EMAIL> via lead selection
lo_nd_email = wd_context->get_child_node( name = wd_this->wdctx_email ).
get element via lead selection
lo_el_email = lo_nd_email->get_element( ).
get single attribute
lo_el_email->get_attribute(
EXPORTING
name = `MAIL_ID`
IMPORTING
value = lv_mail_id ).
DATA:lv_bname TYPE BAPIBNAME-BAPIBNAME.
DATA:lt_return TYPE TABLE OF bapiret2.
DATA:PER_NO TYPE AD_PERSNUM,
ADDR_NO TYPE ADRC-ADDRNUMBER."AD_ADDRNUM.
DATA:SEARCH TYPE REF TO IF_WD_CONTEXT_NODE.
SEARCH = WD_CONTEXT->GET_CHILD_NODE( 'USER' ).
SEARCH->GET_ATTRIBUTE( EXPORTING NAME = 'BNAME'
IMPORTING VALUE = lv_bname ).
DATA:wa_address TYPE bapiaddr3.
DATA : CONS_NO TYPE AD_CONSNUM.
IF lv_mail_id IS INITIAL.
get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
report message
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'Please Enter Email Id'.
ENDIF.
DATA:l_addr type addr_keynr.
DATA:C_YES(1).
CLEAR:C_YES.
C_YES = 'X'.
TYPES: ty_comm_smtp TYPE adsmtp ,
ty_returncode TYPE SZAD_FIELD-RETURNCODE,
ty_error TYPE ADDR_ERROR,
adsuse TYPE ADSUSE.
DATA:EMAIL_ID TYPE AD_SMTPADR,
lt_comm_smtp TYPE STANDARD TABLE OF ty_comm_smtp, """"Data Object
lv_returncode TYPE STANDARD TABLE OF ty_returncode,
error_table TYPE STANDARD TABLE OF ty_error,
lt_adsuse TYPE STANDARD TABLE OF adsuse.
data:ls_comm_smtp like LINE OF lt_comm_smtp,
ls_returncode like LINE OF lv_returncode .
CALL FUNCTION 'SUSR_USER_ADDRESSKEY_GET'
EXPORTING BNAME = lv_bname
IMPORTING PERSNUMBER = l_addr-persnumber
ADDRNUMBER = l_addr-addrnumber
EXCEPTIONS ADDRESS_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
REFRESH: lt_comm_smtp.
CALL FUNCTION 'ADDR_PERS_COMP_COMM_GET'
EXPORTING
address_handle = ''
address_number = l_addr-addrnumber
person_handle = ''
person_number = l_addr-persnumber
DATE_FROM = '00010101'
LANGUAGE = SY-LANGU
table_type = 'ADSMTP'
iv_current_state = space "*981i
IMPORTING
returncode = ls_returncode
TABLES
comm_table = lt_comm_smtp
error_table = error_table
et_usage = lt_adsuse "*981i
EXCEPTIONS
parameter_error = 1
address_not_exist = 2
person_not_exist = 3
internal_error = 4
OTHERS = 99.
IF sy-subrc <> 0.
IF sy-subrc = 1 OR sy-subrc = 2 OR sy-subrc = 3.
raise_message 'AM' 'A' 885 'ADDR_PERS_COMP_COMM_GET' space
space space internal_error.
ELSE.
same_message_dia_a internal_error.
ENDIF.
ENDIF.
ENDIF.
CLEAR:ls_comm_smtp, email_id.
READ TABLE lt_comm_smtp INTO ls_comm_smtp INDEX 1.
EMAIL_ID = ls_comm_smtp-smtp_addr. """""""OLD EMAIL ID which we get from ADDR_PERS_COMP_COMM_GET
CONS_NO = ls_comm_smtp-CONSNUMBER.
CLEAR:ls_comm_smtp.
ls_comm_smtp-CONSNUMBER = CONS_NO.
ls_comm_smtp-FLGDEFAULT = 'X'.
ls_comm_smtp-HOME_FLAG = 'X'.
ls_comm_smtp-UPDATEFLAG = 'U'.
ls_comm_smtp-smtp_addr = lv_mail_id.
TRANSLATE email_id TO UPPER CASE.
ls_comm_smtp-smtp_srch = email_id.
REFRESH :lt_comm_smtp.
append ls_comm_smtp to lt_comm_smtp.
IF SY-SUBRC = 0.
CALL FUNCTION 'ADDR_PERS_COMP_COMM_MAINTAIN'
EXPORTING
address_handle = ' '
address_number = l_addr-addrnumber
person_handle = ' '
person_number = l_addr-persnumber
table_type = 'ADSMTP'
iv_time_dependence = C_YES "*981i
IMPORTING
returncode = ls_returncode
TABLES
comm_table = lt_comm_smtp
error_table = error_table
EXCEPTIONS
parameter_error = 1
address_not_exist = 2
person_not_exist = 3
internal_error = 4
OTHERS = 99.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDIF.
IF sy-subrc = 0.
COMMIT WORK.
ENDIF.
i hv also tried second approch available on sdn CALL FUNCTION 'ADDR_COMM_MAINTAIN'. but in this fm person number we can't pass.
please help meHi Abhilesh,
You can use the following FM's to update the Email ID. There are many posts ADDR* FM using for updating Email ID. Please have a look if you have a doubt.
DATA: iadsmtp TYPE adsmtp OCCURS 0 WITH HEADER LINE.
"Retrieving Address Details
CALL FUNCTION 'ADDR_COMM_GET'
EXPORTING
address_number = addrnr
table_type = 'ADSMTP'
TABLES
comm_table = iadsmtp
EXCEPTIONS
OTHERS = 0.
READ TABLE iadsmtp index 1.
if sy-subrc is initial.
iadsmtp-SMTP_ADDR = 'new mail ID'. " Here pass your New Email ID
Modify iadsmtp.
Endif.
CALL FUNCTION 'ADDR_COMM_MAINTAIN'
EXPORTING
address_number = addrnr
table_type = 'ADSMTP'
substitute_all_comm_data = 'X'
TABLES
comm_table = iadsmtp
EXCEPTIONS
OTHERS = 0.
Then call FM 'ADDR_SINGLE_SAVE' to do the Commit. -
Tabular form Update Error,"Current version of data in database has changed
I'm getting an error when updating a Apex Tabular form. It's complaining that the row id's are out-of-sync. The error reads,' Current version of data in database has changed since user initiated update process. current row version identifier = "56DW5A8A7EBA3B42073AE6E71480A784" application row version identifier = "99B52A15F10E34647E9E18B6B7AE8C30" .
Has anyone received this error? Any solutions? Note that the primary is being populated by a trigger. I have another tabular form for a different application that updates without issue, this however, uses a sequence to update the primary key.
Thanks,
JamesMake sure that the form is defined such that it "knows" that the PK is being set by a trigger. Do not try to set it in the form if the trigger is doing it. Pretty much if a trigger attempt to modify any column that also was editable (including hidden columns) in the form, the two will conflict.
The other issue could be that do you have any items on the rows that are disabled? Disabled items are not sent to session state so Apex won't be able to properly compute the checksum and it'll find a discrepancy. -
Error "DATABASE PROBLEMS WITH TABLE MC11VA0HDRSETUP"
Hi Friends,
I got the following message when am trying to delete the setup tables.
" Error DATABASE PROBLEMS WITH TABLE MC11VA0HDRSETUP"
Am trying to delete the setup tables for application '11', but it gives me the above error. I have gone throug similar threads but it did not solve my issue.
Please can anyone provide a solution.
system detials:
R/3 release - 4.6c
PI - 2004_1_46c
SAP_BW - 30B
PI_BASIS - 2003_1_620
Any information will be appreciated
Thanks,
VBRHi Kishor,
Thanks for your reply.
I have gone through that SAP Note 456102 and it was not of much help for our issue because we are ahead of PI that is mentioned in the note.
Can you send your email id so that i can forward the error screenshots.
Regards,
VBR
Maybe you are looking for
-
Error: Field BNKA-BNKLZ . is not an input field
Dear Experts, My client following vendor creation process is as follows Requestor logs his request into EP -> it is recorded into MDM -> after approval from central team, it syndicate into SAP -> Idoc entry -> Table entry Now in case of vendor reques
-
Delay triggering of Output type
I have a requirement, wherein when I do a PGI in VL02N, 2 Output Types Z1 and Z2 are triggered. Z1 will generate the Billing Doc and Z2 will print a form with all the details inlcuding Billing Doc Number. However, Z1 takes time (abt 30 sec) to genera
-
Attributes not yet maintained for process chains
Hii All, when tried to load 0VENDOR master data from R/3 using process chains the chain failed and the error says "attributes are not maintianed" but when we checked the attributes ,they are all defined and in active state .so what might be the possi
-
Hey, we're using Super session, and mrp type reorder point. everything is going well but i have one problem during MRP Run, requirement which come from sales order didnt affect my available qty. does anyone know how to solve this? thanks
-
Personalization - FITV_POWL_TRIPS -
I have tried to hide several columns in the FITV_POWL_TRIPS abap webdynpro under adminstrative mode to transport from our DEV system up the landscape to QAS and PROD. I receive the popup to create a task when saving the changes. When going into se1