Data not updating in database
Friends i have table and i have created a sequence on basis of that table.
For 1st page i have created an html region and made few items there and a save button.
I am filling data to the fields in page 1 and clicking the save button. In save button i have passed the address of the items of 1st page to items of 2nd page which contains the same field of page 1 and few more additional field.
the 2nd page which i have made is on basis of form on a table or view and taken exsisting sequence there. When i clicking the submit button in page 2 it is not updating my database and throwing error called unable to fetch row. Any suggestions on this?
Lev addition to this i wanted when my create button in 2nd page get clicks my database gets updated and also a query runs which checks the same data of combination variant_type,model_code,year_manuafacture. It means if i have 2 records in database with same variant_type,model_code,year_manufacture then in the field how_many in page 2 count of 3 gets updated and the other field solution avaiable get updated with Y.
For this in my local system in page 2 i created a plsql process and wrote this code and applied it with create button but its not working. Any idea where i am failing?
Declare
l_how_many Number;
l_sol_av Varchar2(1):= NULL;
Begin
select count(*)
into l_how_many
from quality
where 1=1
and variant_type= :P2_VARIANT_TYPE --'Road Bike'
and model_code = :P2_MODEL_CODE --'6'
and year_manufacture= :P2_YEAR_MANUFACTURE ; --'2000'
If l_how_many=null then
l_sol_av := 'N' ;
else
l_sol_av := 'Y';
end If ;
:P2_SOLUTION_AVAILABLE := l_sol_av;
:P2_HOW_MANY_RAISED := l_how_many;
Exception
when no_data_found then
null;
end;
Similar Messages
-
Subscreen data not updating to database
Hi,
I have created a subscreen in transaction code ME41/ME42/ME43. Whenever I put data on the custom subscreen, table ekpo is not getting updated with the input data. I have checked EXIT_SAPMM06E_013 and I did passed the new table to XEKPO. But it is still not working. Kindly advice.
Thanks and regards,
MarcHi Marc,
In EXIT_SAPMM06E_018 do as follows:
e_ci_ekpo = ekpo_ci.
The append structure CI_EKPODB is included in ekpo_ci. Moreover the screen fields should be created with reference to ekpo_ci.
This will update the database table with values for the custom field.
Hope this helps.
Regards,
Abhisek. -
Application Compatibility does not update the database.
Hi,
I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
Any Help would be appreciated.
Thanks
Rakesh Patel
rakesh patelHi Rakesh,
I am not sure if you have resloved your issue.
But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
If you would like further assistance, please post back and we will be always here to help you.
Any concern about this mark behavior, you can just unmark it.
Thanks for your understanding.
Regards,
Kelvin hsu
TechNet Community Support -
Data not populating in database
Hi All
I am trying to insert data into a custom table but unable to do so...
Steps followed
1. Created a custom table
2. Created an EO based on the table
3. Created a VO associated with the EO.
4. Created AM and associated the VO with it.
5. Created page and associated it with the AM.
Controller Code
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("initEmployee");
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if("Next".equals(pageContext.getParameter("event")))
pageContext.setForwardURL("OA.jsp?page=/xx0801/oracle/apps/per/selfservice/val_assignment/webui/PhonePG", null, (byte)0, null, null, true, "N", (byte)99);
if("Save".equals(pageContext.getParameter("event")))
am.invokeMethod("createEmployee");
}AMImpl Code
public employeeAMImpl()
public void initEmployee()
OAViewObject vo = getEmployeeVO1();
if(!vo.isPreparedForExecution())
{vo.executeQuery();
Row row=vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
public void createEmployee()
getTransaction().commit();
...A new row does get created in the table but the data columns are empty only the creation date, created by, last_updated_by etc are getting populated.
Thanks
I have put the debug statement as follows:
public void createEmployee()
EmployeeVORowImpl emp = (EmployeeVORowImpl)getEmployeeVO1().getCurrentRow();
String name = emp.getEmployeeNumber().toString();
System.out.println("Emp Num: " + name);
getTransaction().commit();
}The employee number got printed in the messages. However the row still doesnot have any data except the created by, creation date etc
Edited by: Subhasish on Jan 12, 2011 3:38 AM
I have put the debug statement as follows:
public void createEmployee()
EmployeeVORowImpl emp = (EmployeeVORowImpl)getEmployeeVO1().getCurrentRow();
String name = emp.getEmployeeNumber().toString();
System.out.println("Emp Num: " + name);
getTransaction().commit();
}The employee number got printed in the messages. However the row still doesnot have any data except the created by, creation date etc
Edited by: Subhasish on Jan 12, 2011 3:38 AM
Data not updating in table ,data transfered using DTW
Hi Everybody,
I had transfered data using DTW, it shows that data imported,but it not updated, that means it not shows in database.
So please so me any solution to this.
Regards,
Srinivas
Hi suda,
I am giving he detailes of the BusinessObject
BusinessObject =oUserLanguages
template=oUserLanguages.csv
i had copied the oUserLanguage.csv file and entered data into it and saved it(comma deliminated)
steps:
1.i had selected oUserlanguage object from list.
2.i had selected source file (oUserLanguage.csv )
3.the data properly matched and data is displayed when source tab is pressed. and ields are properly matched.
4.three check boxes are checked.
5.i had seen the message you are sucessfully specified required information for imporing data
6.in lost step it shows like below
Total: 2 business object(s)
2 business object(s) imported successfully
0 business object(s) not imported
0 business object(s) updated successfully
0 business object(s) not updated
7.in log files status shows succeeded
But I had cheked the languages , the data imported not shown.
Regards
srinivas
ERROR IN FILE--XI--RFC SCENARIO. BAPI did not UPDATE the DATABASE TABLE
Hi
I have created a scenario FILE -XI- RFC
File is picked by file adapter - Its working fine
I have used BPM
In RFC side i used BAPI_INCOMINGINVOICE_CREATE
Its working fine and return an Invoice Number and Fisical year .
When i Check this in the R/3 System , in Invoice no Does not Exist .
Message mapping is ok
SXMB_MONI all are ok
Receiver file i got the invoice no and fisical year .
The Problem is " DATABASE TABLE DID NOT UPDATED "
So should i do BAPI_COMMIT seperately ........
Any solution ................
VERY VERY URGENT .....
thanks in advance
B.Jude
hi jude,
Commit Control for Single BAPI Calls
If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values , S, I, and W are displayed. All other values are regarded as errors.
To change this setting, set the indicator BAPI Advanced Mode.
<b>In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.</b>
Regards,
Mandeep Virk
I have several drop-down lists that I want to pull data from a MySQL database on a server. I have set up data sources to use a system DSN (using mysql-odbc 3.51?) and a SQL query. The drop-down lists are using dynamic properties for the list items. The from was created in LiveCycle Designer 8.
The form works fine in LiveCycle's preview mode. If I open the form in Reader 8, the lists are populated. However, if I change the items in the database and reopen the form in Reader, the items do not reflect the database change. Furthermore, when I opened the form in Reader on a computer without the DSN, it happily showed the original data. i.e. it seems that Reader is never trying to read from the database.
If I reopen the form in Livecycle Designer and preview the form, the changes made in the database are present. If I save the form, the changes are reflected in Reader, but further changes are not.
In summary, LiveCycle Designer seems to be updating data from the database in its preview, but Reader is only showing the data that was there when last saved in LiveCycle Designer (some sort of cacheing?) and not updating from the database.
I guess the question is obvious - how do I make the form such the Reader always gets its data from the database (and gives some error if database unavailable)?
I believe OLEDB access is only available through Acrobat, not Reader.
When you save a form in Acrobat with a value in a field, that value is saved as the default value in the form regardless of whether or not it can access the database. That's why you're seeing the data in Reader.
Console Application not updating the database
Dear all,
I am new to c# development. I have a console application front end in program.cs
I have a local database on visual studio.
When I execute the stored procedure locally on the database the data is getting updated in the database.
When I update the same through Console Application - the data is not appearing in the database.
Can somebody throw light on this? Where I am missing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace AssetApp
class Program
static void Main(string[] args)
bool value = true;
while (value)
value = getdisplay();
//Console.ReadLine();
//value = false;
private static bool getdisplay()
Console.WriteLine("-------------------------------------- ");
Console.WriteLine("---------------------------------------");
Console.Clear();
Console.WriteLine("----------Asset Application------------");
Console.WriteLine(" 1 Company Asset ");
Console.WriteLine(" 2 Standby Laptop Register ");
Console.WriteLine(" 3 Scrap Register ");
Console.WriteLine(" 4 Purchase Register ");
Console.WriteLine(" 5 Service Call Report ");
Console.WriteLine(" 6 IT Helpdesk ");
Console.WriteLine(" 7 Exit ");
Console.WriteLine("---------------------------------------");
string input = Console.ReadLine();
switch (input)
case "1":
CompanyAsset();
break;
case "2":
Console.WriteLine("Standy Laptop Register");
break;
case "3":
Console.WriteLine("Scrap Register");
break;
case "4":
Console.WriteLine("Purchase Register");
break;
case "5":
Console.WriteLine("Service call Report");
break;
case "6":
Console.WriteLine("IT Helpdesk");
break;
case "7":
return false;
default:
break;
return true;
private static void CompanyAsset()
Console.WriteLine("------Company Asset------------------------");
Console.WriteLine("Type the Department Name");
string departmentName = Console.ReadLine();
Console.WriteLine("Type the First Name");
string firstName = Console.ReadLine();
Console.WriteLine("Type the Last Name");
string lastName = Console.ReadLine();
Console.WriteLine("Type the User Name");
string userName = Console.ReadLine();
Console.WriteLine("Type the Model Number");
string modelNumber = Console.ReadLine();
Console.WriteLine("Type the AssetTypeID");
string assetTypeID = Console.ReadLine();
Console.WriteLine("Type the SerialNumber");
string serialNumber = Console.ReadLine();
Console.WriteLine("Type the WarrantyStartDate");
DateTime warrantyStartDate = Convert.ToDateTime(Console.ReadLine());
Console.WriteLine("Type the WarrantyEndDate");
DateTime warrantyEndDate = Convert.ToDateTime(Console.ReadLine());
Console.WriteLine("Company");
string company = Console.ReadLine();
Console.WriteLine("EngineerID");
string engineerID = Console.ReadLine();
Console.WriteLine("ITHelpdeskID");
string itHelpdeskID = Console.ReadLine();
Console.WriteLine("EmpID");
string empID = Console.ReadLine();
//Handshake
SqlConnection myNewConnection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\AssetApp.mdf;Integrated Security=True");
//open the database
myNewConnection.Open();
//create command
SqlCommand myCommand = myNewConnection.CreateCommand();
//using the stored procedue to update the database using parameters add
myCommand.CommandText = "InsertAsset";
myCommand.CommandType = CommandType.StoredProcedure;
myCommand.Parameters.Add(new SqlParameter("@DepartmentName", departmentName));
myCommand.Parameters.Add(new SqlParameter("@FirstName", firstName));
myCommand.Parameters.Add(new SqlParameter("@LastName", lastName));
myCommand.Parameters.Add(new SqlParameter("@UserName", userName));
myCommand.Parameters.Add(new SqlParameter("@ModelNumber", modelNumber));
myCommand.Parameters.Add(new SqlParameter("@AssetTypeID", int.Parse(assetTypeID)));
myCommand.Parameters.Add(new SqlParameter("@SerialNumber", serialNumber));
myCommand.Parameters.Add(new SqlParameter("@WarrantyStartDate", warrantyStartDate));
myCommand.Parameters.Add(new SqlParameter("@WarrantyEndDate", warrantyEndDate));
myCommand.Parameters.Add(new SqlParameter("@Company", company));
myCommand.Parameters.Add(new SqlParameter("@EngineerID", int.Parse(engineerID)));
myCommand.Parameters.Add(new SqlParameter("@ITHelpdeskID", int.Parse(itHelpdeskID)));
myCommand.Parameters.Add(new SqlParameter("@EmpID", int.Parse(empID)));
int recordsAffected = myCommand.ExecuteNonQuery();
if (recordsAffected == 1)
Console.WriteLine("Successful your entry");
else
Console.WriteLine("Your entry is not successful");
myNewConnection.Close();
Console.WriteLine("");
Console.WriteLine("Press Enter to continue");
Console.ReadLine();
public static void StandbyLaptopRegister()
Console.WriteLine("-------------------------------");
Console.WriteLine("Select the Date & Time");
string DateTime = Console.ReadLine();
Console.WriteLine("");
ALTER PROCEDURE dbo.InsertAsset
@DepartmentName NVARCHAR(50),
@FirstName NVARCHAR(50),
@LastName NVARCHAR(50),
@UserName NVARCHAR(50),
@ModelNumber NVARCHAR(50),
@AssetTypeID INT,
@SerialNumber NVARCHAR(50),
@WarrantyStartDate SMALLDATETIME,
@WarrantyEndDate SMALLDATETIME,
@Company NVARCHAR(50),
@EngineerID INT,
@ITHelpdeskID INT,
@EmpID INT
@parameter1 int = 5,
@parameter2 datatype OUTPUT
AS
/* SET NOCOUNT ON */
BEGIN
INSERT CompanyAsset(DepartmentName,
FirstName,
LastName,
UserName,
ModelNumber,
AssetTypeID,
SerialNumber,
WarrantyStartDate,
WarrantyEndDate,
Company,
EngineerID,
ITHelpdeskID,
EmpID)
VALUES(@DepartmentName,
@FirstName,
@LastName,
@UserName,
@ModelNumber,
@AssetTypeID,
@SerialNumber,
@WarrantyStartDate,
@WarrantyEndDate,
@Company,
@EngineerID,
@ITHelpdeskID,
@EmpID)
/*RETURN @@IDENTITY*/
END
Cheers
Sathya
Hello,
Usually when I see
AttachDbFilename=|DataDirectory| ...
The database was added into the project via the IDE add new data source and if so make sure under the property window for the database that "Copy to Output Directory" is set to either the first or last option as the default "Copy always"
copies the database each time you build the project thus overwrites the last time you ran the project.
I would recommend the "Copy if Newer" which means the database is only copied if you make changes to the database. Set "Copy if newer", build run check results.
Of course this may not be the issue but may very well be too.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.
Mpc/gmpc will not update mpd database
As per thread title. I've installed mpc following the single user setup instructions. All the clients I've tried seem to connect to it normally, but I can't get them to update the database.
mpc output:
[jewdozer@OKW ~]$ mpc update / --wait
Updating DB (#4) ...
volume:100% repeat: off random: off single: off consume: off
gmpc appears to update normally, but the files don't show up in the database. ncmpcpp puts the last update at hours ago, presumably when mpd was first started.
This is my /etc/mpd.conf file:
[jewdozer@OKW ~]$ cat /etc/mpd.conf
music_directory "/home/jewdozer/Musik"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/db"
log_file "/var/log/mpd/mpd.log"
error_file "/var/lib/mpd/mpd.error"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "mpd"
The files never show up in the db file, and the log and error files are empty.
Ideas?
Last edited by jewdozer (2010-01-22 14:01:26)
Did you try to change the permissions of the directory or to put the files in your "home"?, for example my config file :
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.
######################## REQUIRED PATHS ########################
# You can put symlinks in here, if you like. Make sure that
# the user that mpd runs as (see the 'user' config parameter)
# can read the files in this directory.
music_directory "/home/mich/Musique"
playlist_directory "/home/mich/.mpd/playlists"
db_file "/home/mich/.mpd/mpd.db"
log_file "/home/mich/.mpd/mpd.log"
error_file "/home/mich/.mpd/mpd.error"
#sticker_file "/home/mich/.mpd/mpd.db"
######################## OPTIONAL PATHS ########################
# If you wish to use mpd --kill to stop MPD, then you must
# specify a file here in which to store MPD's process ID.
pid_file "/home/mich/.mpd/mpd.pid"
# If specified, MPD will save its current state (playlist,
# current song, playing/paused, etc.) at exit. This will be
# used to restore the session the next time it is run.
state_file "/home/mich/.mpd/mpd.state"
######################## DAEMON OPTIONS ########################
# If started as root, MPD will drop root privileges and run as
# this user instead. Otherwise, MPD will run as the user it was
# started by. If left unspecified, MPD will not drop root
# privileges at all (not recommended).
user "mich"
# The address and port to listen on.
#bind_to_address "archlinux"
port "6600"
# If the address is a path, then a UNIX domain socket will be
# created instead of listening on a TCP port.
#bind_to_address "/var/run/mpd/sock"
# Controls the amount of information that is logged. Can be
# "default", "secure", or "verbose".
#log_level "default"
########################### ZEROCONF ###########################
# If yes, service information will be published with Zeroconf.
#zeroconf_enabled "yes"
# The service name to publish. This name should be unique on
# your local network.
#zeroconf_name "Music Player"
########################## PERMISSIONS #########################
# MPD can require that users specify a password before using it.
# You may specify one ore more here, along with what users who
# log in with that password are allowed to do.
#password "password@read,add,control,admin"
# Specifies what permissions a user who has not logged in with a
# password has. By default, all users have full access to MPD
# if no password is specified above, or no access if one or
# more passwords are specified.
default_permissions "read,add,control,admin"
########################## AUDIO OUTPUT ########################
# MPD supports many audio output types, as well as playing
# through multiple audio outputs at the same time. You can
# specify one or more here. If you don't specify any, MPD will
# automatically scan for a usable audio output.
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
# for examples of other audio outputs.
# An example of an ALSA output:
#audio_output {
# type "alsa"
# name "My ALSA Device"
# device "hw:0,0" # optional
# format "44100:16:2" # optional
# use_mmap "yes"
# PulseAudio
audio_output {
type "pulse"
name "My MPD PulseAudio Output"
#server "localhost" # optional
#sink "alsa_output" # optional
# An example of an OSS output:
#audio_output {
# type "oss"
# name "My OSS Device"
# device "/dev/dsp" # optional
# format "44100:16:2" # optional
#audio_output {
# type "jack"
# name "my jack device"
# format "44100:16:2"
# An example of a shout output (for streaming to Icecast):
#audio_output {
# type "shout"
# encoding "ogg" # optional
# name "My Shout Stream"
# host "localhost"
# port "8000"
# mount "/mpd.ogg"
# password "hackme"
# quality "5.0"
# bitrate "128"
# format "44100:16:1"
# user "source" # optional
# description "My Stream Description" # optional
# genre "jazz" # optional
# public "no" # optional
# timeout "2" # optional
# An example of a null output (for no audio output):
#audio_output {
# type "null"
# name "My Null Output"
# Force all decoded audio to be converted to this format before
# being passed to the audio outputs.
#audio_output_format "44100:16:2"
# If MPD has been compiled with libsamplerate support, this
# specifies the sample rate converter to use. Possible
# values can be found in the mpd.conf man page or the
# libsamplerate documentation.
#samplerate_converter "Fastest Sinc Interpolator"
samplerate_converter "Best Sinc Interpolator"
############################# MIXER ############################
# MPD needs to know what mixer settings to change when you
# adjust the volume. If you don't specify one here, MPD will
# pick one based on which ones it was compiled with support for.
# An example for controlling an ALSA mixer:
#mixer_type "alsa"
#mixer_device "default"
#mixer_control "PCM"
# An example for controlling an OSS mixer:
#mixer_type "oss"
#mixer_device "/dev/mixer"
#mixer_control "PCM"
# If you want MPD to adjust the volume of audio sent to the
# audio outputs, you can tell it to use the software mixer:
mixer_type "software"
######################### NORMALIZATION ########################
# Specifies the type of ReplayGain to use. Can be "album" or
# "track". ReplayGain will not be used if not specified. See
# <http://www.replaygain.org> for more details.
#replaygain "album"
# Sets the pre-amp used for files that have ReplayGain tags.
#replaygain_preamp "0"
# Enable on the fly volume normalization. This will cause the
# volume of all songs played to be adjusted so that they sound
# as though they are of equal loudness.
#volume_normalization "no"
########################### BUFFERING ##########################
# The size of the buffer containing decoded audio. You probably
# shouldn't change this.
#audio_buffer_size "2048"
# How much of the buffer to fill before beginning to play.
# Increase this if you hear skipping when changing songs.
#buffer_before_play "10%"
# Similar options for the HTTP stream buffer. If you hear
# skipping while playing HTTP streams, you may wish to increase
# these.
#http_buffer_size "128"
#http_prebuffer_size "25%"
########################### HTTP PROXY #########################
# Specifies the HTTP proxy to use for playing HTTP streams.
#http_proxy_host "proxy.isp.com"
#http_proxy_port "8080"
#http_proxy_user "user"
#http_proxy_password "password"
############################# LIMITS ###########################
# These are various limits to prevent MPD from using too many
# resources. You should only change them if they start
# restricting your usage of MPD.
#connection_timeout "60"
#max_connections "5"
#max_playlist_length "16384"
#max_command_list_size "2048"
#max_output_buffer_size "8192"
###################### CHARACTER ENCODINGS #####################
# If file or directory names do not display correctly, then you
# may need to change this. In most cases it should be either
# "ISO-8859-1" or "UTF-8". You must recreate your database
# after changing this (use mpd --create-db).
filesystem_charset "UTF-8"
# The encoding that ID3v1 tags should be converted from.
id3v1_encoding "UTF-8"
######################### OTHER OPTIONS ########################
# Try disabling this if you have MP3s which appear to end
# abruptly. If this solves the problem, it is highly
# recommended that you fix your MP3s with vbrfix (available from
# <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point you can re-enable support for gapless MP3 playback.
#gapless_mp3_playback "yes"
# Enable this if you wish to use your MPD created playlists in
# other music players.
#save_absolute_paths_in_playlists "no"
# A list of tag types that MPD will scan for and make available
# to clients.
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
Last edited by Drexya (2010-01-23 09:09:58)
Data not updating from psa into Data Targets
Hiii,
We have started data upload in info cubes from psa . The number of records was 4 in psa . But after waiting for at least 3 hours ,still the data is not updated in info cube . The data which we want to upload in info cube (of stock) is of past date which due to some reason failed to update in BI from ECC . To upload the same that is data of past date we have deleted the setup table in ECC and then after filling the data again in set up tables, created a new info package from which uploaded data in PSA . But while trying to upload data in info cubes,it is not getting updated and the request status is showing still green yellow in psa.
Please suggest how to resolve this issue.
Thanks and regards
Are you loading material movements from 2LIS_03_BF in to cube? If so, please look at the below link for inventory data loads.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/906b837a-0d54-2c10-08b8-bde70337547e?QuickLink=index&overridelayout=true
Regards,
JB
Bdoc received but data not updated
Hello,
I am using CRM4.0
I changed the customizing in table CRMC_ACT_DECOM to change values of field KV_DEKO.
Then, I transported the modification usign R3AS4 to CDB.
I can see that the table CDBC_ACT_JOURN is updated correctly with the new values.
My problem is that I don't see the modification on MSA. When I try a select on this table, i just see the old values.
It tried to do an extract on replication object CRM_DNL_ADOCCH for my site, the bdoc is well sent and I can see the new data in it, but even after synchronisation, the data in MSA is not updated...
What am I missing ?
(the strange thing is that I didn't have this issue in dev environnement)
Thanks in advance,
EDIT : ok when I launch this query in query analyser :
SELECT *
FROM dbo.CDBC_ACT_JOURN
WHERE FIELDNAME = 'KV_DEKO'
I get all the data.
But when I am using the query in SQL Server entrerprise management, I don't see them !!
Edited by: Louis-Arnaud Bouquin on Nov 10, 2009 10:26 AM
>
sujith golla wrote:
> Status of the IDOC is "53", so successfully posted
> records that have the status can NOT be reprocessed using BD87
There are some tricks: you can either create a copy of the IDoc in WE19 and then process it or use report RC1_IDOC_SET_STATUS (be careful though) to update the IDoc status.
However, you might want to do some more research and use suggestions above before resorting to these measures.
Planning area data not updated in infocube in APO system
Hi all,
User is uploading a flat file using addon program to an infocube 1, from this infocube data for sales forecast KF is getting transferred to a planning area KF using standard program RTS_INPUT_CUBE. I can see the updated data in Planning book (which refer the same planning area) data views. In planning book the sales forecast data is also getting copyied to second KF 'Arrangement FC' and its correct.
Now there is a infocube 2 (second) which is getting data directly from this planning area (infocube also contains both KFs). But When i checked this infocube 2 , the updated data is availabe in Sales forecast KF , but arrangement forecast KF is having old data only and user is running query on second KF , so he is getting wrong report.
Since there is no data flow for this infocube 2, and it is getting data from planning area, I feel its remote infocube.
I have also found the datasource for this planning area but don't know how to move further to find why data is not updating properly? Please help on this.
I have information that 2 weeks before data was properly updated, but this time data is not updated,
system version is SAP SCM 4.0
Hi Vivek
it is advisable to run the background jobs when the planning books are not being accesses by the users to prevent such inconsistencis. Hence i would advise you to run the jobs durng non-working hours. and if you have a global system, then you may restrict to run the jobs based on regional levels.
in addition, it is also a good practice to run consistency jobs before and after your have completed the background jobs. i hope you are using process chains to execute the sequeuce of jobs. if yes, then you can add consistency check jobs in the process chains.
some of the consistency check reports are :
/SAPAPO/OM17 - liveCache Consistency Check
/SAPAPO/TSCONS - Consistency Check for Time Series Network
/SAPAPO/CONSCHK - Model Consistency Check
and so and so forth..
you can find these conssistency jobs under APO Adiminstration --> Consistency checks in APO.
let me know if this helps.
Rgds, Sandeep
hi alll
1. i have written below coding for vendor master update. i have two records in text file, in that first record not updated. while updating its shows error. but second record updated. how can i solve. plse help me
2. I want to show the error message or i want to print how can i do it
REPORT ZVENTESTBDC.
data : begin of it_xk01 occurs 0,
LIFNR(10) type c,
BUKRS(4) type c,
EKORG(4) type c,
KTOKK(4) type c,
NAME1(30) type c,
SORT1(10) type c,
LAND1(3) type c,
AKONT(10) type c,
FDGRV(10) type c,
WAERS(3) type c,
end of it_xk01.
DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\entegall\Desktop\vendor.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = it_xk01.
loop at it_xk01.
refresh it_bdcdata.
perform open_group.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-REF_LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
it_xk01-lifnr.
perform bdc_field using 'RF02K-BUKRS'
IT_XK01-BUKRS.
perform bdc_field using 'RF02K-EKORG'
IT_XK01-EKORG.
perform bdc_field using 'RF02K-KTOKK'
IT_XK01-KTOKK.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-LAND1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
IT_XK01-NAME1.
perform bdc_field using 'LFA1-SORTL'
IT_XK01-SORT1.
perform bdc_field using 'LFA1-NAME2'
perform bdc_field using 'LFA1-LAND1'
IT_XK01-LAND1.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-FDGRV'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-AKONT'
IT_XK01-AKONT.
perform bdc_field using 'LFB1-FDGRV'
IT_XK01-FDGRV.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
IT_XK01-WAERS.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'=UPDA'.
*perform bdc_transaction using 'XK01' using IT_BDCDATA mode 'A' UPDATE 'S'
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE 'A'
UPDATE 'S' MESSAGES INTO IT_BDCMSGCOLL.
*perform close_group.
endloop.
FORM BDC_DYNPRO USING PROG SCR.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROG.
IT_BDCDATA-DYNPRO = SCR.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.
go through this porgarm u will get the clear picture about down loading the error msg.
PROGRAM ID : ZSD_CONDREC_DISCOUNT_ZSWD
DESCRIPTION : BDC PROGRAM TO UPLOAD CONDITION RECORDS FOR Discount
TRANSACTION : VK11
CONDITION TYPE : ZSWD(Key combination 3)
VERSION : 1.0
Text Elements
001 : Select Options
002 : C:\SD\Error\Discount-ZSWD
003 : Error Download Path
004 : C:\SD\Error\Discount-ZSWD - DDMMYYYY HH:MM:SS.txt
REPORT ZSD_CONDREC_DISCOUNT_ZSWD
MESSAGE-ID 00.
*include bdcrecx1.
TABLES : t100.
Internal table declaration *
DATA : BEGIN OF it_price OCCURS 0,
index(4), "Index
kschl(4), "Condition type
vkorg(4), "Sales organization
vtweg(2), "distribution channel
spart(2), "Division
matnr(18), "Material no
kbetr(11), "Rate
konwa(5), "Rate unit (currency or percentage)
kmein(3), "Condition unit
krech(1), "Calculation type for condition
datab(10), "Validity start date
datbi(10), "Validity end date
er_message(100),
END OF it_price.
Internal table to get the error data *
DATA : it_error LIKE it_price OCCURS 0 WITH HEADER LINE.
DATA : bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
DATA : i_msgtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
Internal table to find the error from the legacy data *
DATA : BEGIN OF it_erfind OCCURS 0,
index(4), "Index
er_message(100), "For Error Message
END OF it_erfind.
Variables declaration *
DATA : g_message(200),
time(10),
date(10) ,
v_error_filename LIKE rlgrap-filename.
date = sy-datum.
time = sy-uzeit.
Initialization
INITIALIZATION.
Generating Error file name with date and time.
PERFORM make_file_name.
Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETER: p_file LIKE ibipparms-path OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) text-003.
SELECTION-SCREEN COMMENT 33(79) text-004.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN:END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file .
PERFORM get_filename.
Start of selection
START-OF-SELECTION.
PERFORM upload_data.
PERFORM fill_data.
END-OF-SELECTION.
*& Form fill_data
text
FORM fill_data.
LOOP AT it_price.
*Start of Screen 1
PERFORM bdc_dynpro USING 'SAPMV13A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RV13A-KSCHL'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ANTA'.
PERFORM bdc_field USING 'RV13A-KSCHL'
it_price-kschl.
Key Combination: Sales org / Dist. channel / Division / Material
PERFORM bdc_dynpro USING 'SAPLV14A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RV130-SELKZ(03)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=WEIT'.
PERFORM bdc_field USING 'RV130-SELKZ(03)'
'X'.
*Start of Screen 2
PERFORM bdc_dynpro USING 'SAPMV13A' '1800'.
PERFORM bdc_field USING 'KOMG-VKORG'
it_price-vkorg.
PERFORM bdc_field USING 'KOMG-VTWEG'
it_price-vtweg.
PERFORM bdc_field USING 'KOMG-SPART'
it_price-spart.
PERFORM bdc_field USING 'KOMG-MATNR(01)'
it_price-matnr.
PERFORM bdc_field USING 'KONP-KBETR(01)'
it_price-kbetr.
PERFORM bdc_field USING 'KONP-KONWA(01)'
it_price-konwa.
PERFORM bdc_field USING 'KONP-KMEIN(01)'
it_price-kmein.
PERFORM bdc_field USING 'RV13A-KRECH(01)'
it_price-krech.
PERFORM bdc_field USING 'RV13A-DATAB(01)'
it_price-datab.
PERFORM bdc_field USING 'RV13A-DATBI(01)'
it_price-datbi.
perform bdc_dynpro using 'SAPMV13A' '1821'.
perform bdc_field using 'BDC_CURSOR'
'KOMG-MATNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'. "Save the entry
PERFORM bdc_transaction TABLES i_msgtab USING 'VK11' 'N' 'L'.
*To fetch the error message from the standard error table
SELECT SINGLE * FROM t100 WHERE sprsl = 'E'
AND arbgb = sy-msgid
AND msgnr = sy-msgno.
g_message = t100-text.
*subroutine to change the error message for every document number
PERFORM replace_parameters USING sy-msgv1
sy-msgv2
sy-msgv3
sy-msgv4
CHANGING g_message.
WRITE: / 'System variables:'.
SKIP.
WRITE: / ' Sy-msgty:', sy-msgty.
WRITE: / ' Sy-msgid:', sy-msgid.
WRITE: / ' Sy-msgno:', sy-msgno.
WRITE: / ' Sy-msgv1:', sy-msgv1.
WRITE: / ' Sy-msgv2:', sy-msgv2.
WRITE: / ' Sy-msgv3:', sy-msgv3.
WRITE: / ' Sy-msgv4:', sy-msgv4.
SKIP.
WRITE: / 'Message:'.
SKIP.
WRITE: / sy-msgty, g_message.
*To find out the error in the legacy data if there is anything and pass
*the document no with error message to the seperate internal table
*called it_erfind
IF sy-msgty = 'E'.
it_erfind-index = it_price-index.
it_erfind-er_message = g_message.
APPEND it_erfind.
ENDIF.
*Finally we are segregating the error and downloading the error data.
AT LAST.
*To segregate the error
PERFORM segregate_error.
*To download the error from it_error internal table with err mesg
PERFORM error_download.
PERFORM display_message.
ENDAT.
ENDLOOP.
perform close_group.
CLEAR it_price.
ENDFORM. "fill_data
*Subrotine to replace the parameters
FORM replace_parameters USING p_par_1 p_par_2 p_par_3
p_par_4 CHANGING p_message.
erst mal pruefen, ob numerierte Parameter verwendet wurden
DO.
REPLACE '&1' WITH p_par_1 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&2' WITH p_par_2 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&3' WITH p_par_3 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&4' WITH p_par_4 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
falls keine numerierten Parameter vorh., ersetzen wie gehabt
REPLACE '&' WITH p_par_1 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_2 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_3 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_4 INTO p_message.
CONDENSE p_message.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "REPLACE_PARAMETERS
*Subroutine to segregate the error data from the legacy data
FORM segregate_error.
LOOP AT it_erfind.
LOOP AT it_price WHERE index = it_erfind-index.
MOVE-CORRESPONDING it_price TO it_error.
it_error-er_message = it_erfind-er_message.
APPEND it_error.
ENDLOOP.
ENDLOOP.
ENDFORM. "segregate_error
*Subroutine to download the error data from the it_error table.
FORM error_download.
IF it_error[] IS NOT INITIAL.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
codepage = 'IBM'
filename = v_error_filename
filetype = 'DAT'
TABLES
data_tab = it_error.
ENDIF.
ENDFORM. "error_download
Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "BDC_DYNPRO
Insert field *
FORM bdc_field USING fnam fval.
IF FVAL <> NODATA.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDIF.
ENDFORM. "BDC_FIELD
*& Form bdc_transaction
text
-->MESSTAB text
-->TCODE text
-->CTUMODE text
-->CUPDATE text
FORM bdc_transaction TABLES messtab USING tcode ctumode cupdate .
CALL TRANSACTION tcode USING bdcdata
MODE ctumode
UPDATE cupdate
MESSAGES INTO messtab.
REFRESH bdcdata.
CLEAR bdcdata.
ENDFORM. " bdc_transaction
Uploading data file to internal table. *
FORM upload_data.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_file
CODEPAGE = 'IBM '
filetype = 'DAT'
TABLES
data_tab = it_price
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. "upload_data
*& Form display_message
FORM display_message .
IF it_error[] IS INITIAL.
MESSAGE i019(zmsg). "Success
ELSE.
MESSAGE e020(zmsg). "Failed
ENDIF.
ENDFORM. " display_message
*& Form get_filename
text
--> p1 text
<-- p2 text
FORM get_filename .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
FIELD_NAME = p_file
IMPORTING
file_name = p_file .
IF sy-subrc NE 0 .
WRITE : / 'Enter File Name'.
ENDIF.
ENDFORM. " get_filename
*& Form make_file_name
FORM make_file_name .
WRITE sy-datum TO date MM/DD/YYYY.
WRITE sy-uzeit TO time USING EDIT MASK ' __ __ __'.
CONCATENATE text-002 date time '.txt'
INTO v_error_filename.
ENDFORM. " make_file_name
regards
prabhu
Data not updated in business entity after change in architectural object
Hi,
A business entity was created from Architectural Object.
When we modify the address in the architectural object, the data is not updated in the business entity.
Is there any solution that make an automatic update for the address in business entity after a change in architectural object ?
Thx for your help.
Regards
Saad
Hi,
I have created new infopackage and ran. Now the following message I have got on the monitor.
"Data not received in PSA Table
Diagnosis
Data has not been updated in PSA Table . The request is probably still running or there was a short dump.
Procedure
In the short dump overview in BW, look for the short dump that belongs to your data request. Make sure the correct date and time are specified in the selection screen.
You can use the wizard to get to the short dump list, or follow the menu path "Environment -> Short dump -> In Data Warehouse".
Removing errors
Follow the instructions in the short dump."
Any more thoughts?
Thanks,
Rao.
Data not Updated in Custom Screen fields-Vendor Master
Hello,
I have created a custom screen in vendor master transaction and also implemented the two BADI's below.
Business Add-In: Processing Master Data Enhancements
(CUSTOMER_ADD_DATA/VENDOR_ADD_DATA)
Passed the Custom Program and Screen No in the method GET_TAXI_SCREEN
Business Add-In: Customer Subscreens
(CUSTOMER_ADD_DATA_CS/VENDOR_ADD_DATA_CS)
activate it with the BADI Processing Master Data Enhancements with method CHECK_ADD_ON_ACTIVE.
I also created a new screen and used few fields from LFA1 (Append structure fields) such that the fields on the screen are : LFA1-ZZFIELD1 etc...
Now the issue is the screen is displayed, but the data entered on the screen is not updated on the table LFA1 or data from the table is not displayed on the custom screen.
Am i missing something?
Regards,
Shiva
Solved this problem.
I built the query against InfoCube and not the characteristic itself. That's why I can't see the update.
Thanks.
Maybe you are looking for
-
How to put two devices on one Data plan?
I've had my phon with a 2gb Data plan for about a year and just recently bought a Jetpack with a 6gb Data plan to replace my original and be shared between the two. A month later I get my bill and find im still being charged for both. I kind of expec
-
Parent-Child hierarchy without facts in top-level
Hello folks, I've got a fact table which looks like: fact_id | costs | some_id 1 | 5 | 1 2 | 10 | 1 and a hierarchy which looks like: id | super_id | some_id 1 | null | null 2 | 1 | 1 3 | 1 | 1 In the business logic layer I defined two keys for the d
-
RDBMS: oracle 10g R2 when execute to statement to determinate size of data files, the data file DATA8B.ORA is negative, why? before droped a table with 114,000,000 rows in this tablespace. FILE_NAME FILE_SIZE USED PCT_USED FREE G:\DIL\DATA5D.ORA 4096
-
Problem: Bluetooth in OS X Lion
I have a problem. Yesterday, I downloaded and installed OS X Lion in my Macbook Pro (2009). Everything is OK, except Bluetooth. I don't know the reason, but my computer doesn't recognize Bluetooth integrated in my Macbook Pro. What can i do? Thanks i
-
Hi. After upgrading the package linux from 3.9.5-1 to 3.11.6, many modules such as wifi or psmouse are not loaded. My PC is Asus Zenbook UX31E. If I do by hand like # modprobe ath9k # modprobe psmouse wifi and psmouse are OK, but I want to set all ne