Object status - Get description instead of code (J_STATUS) for OBJNR
Hi,
I am modifying a report, in which one of the fields on output is "Object status," which is pulled from table "Jest". The field is called "Stat" and pertains to the specific OBJNR (object number.)
However, the status is a code (5 Char) but the user wants to see a description instead. Where can I get the description data for the status from?
Thanks,
John
Hello,
I think you may be talking about the statuses held in tables TJ02T and TJ30T (4.64). If yes, here's how we get to them:
f_system_status type j_stsma.
f_user_status type j_stsma.
select single c~txt04
into (f_system_status)
from equi as a
join jest as b
on bobjnr eq aobjnr
join tj02t as c
on cistat eq bstat
where a~sernr = i_old-sernr and
a~eqtyp = 'I' and
not b~inact = 'X' and
c~istat like 'I%' and
c~spras = 'EN'.
select single c~txt04
into (f_user_status)
from equi as a
join jest as b
on bobjnr eq aobjnr
join tj30t as c
on cestat eq bstat
where a~sernr = i_old-sernr and
a~eqtyp = 'I' and
not b~inact = 'X' and
c~stsma eq 'CPS-DEV1' and
b~stat like 'E%'.
Hope this helps!
K---
Similar Messages
-
How to show description instead of code on a view page?
I'm new so this is probably basic, but I didn't find an answer when I tried searching.
I'm using JDeveloper 10.1.3.3, ADF Business Components, ADF Faces.
In my application, I have both view pages and edit pages (some users will only have read access). Many of the fields will be populated from LOV and the code will be stored in the database.
The edit page is no problem - I have read-only VO for the LOV and I use af:selectOneChoice and display the description. But how do I display the same description on the view page? By defaiult the code is displayed when the entity based VO is dropped as a ADF Read Only Form.
I assume I need to do something in the BC, but I'm not sure how to get values from read-only VO into my entity based VO. Or do I have to make all my VO for LOVs entity based even though they will never be edited? Or is there something I can do in the view to get the description instead of the code?
Thank you for your help.
Karen Helt
Sr IT Programmer/Analysit
Hach CompanySo if I understand you properly, I need to create EOs for all my list of values (which are based on views of Oracle apps tables) and base my VO on those EOs. And then I setup associations between these EOs and the Item EO. Then I include the these EOs in my Items VO and add the description attributes to my list of attributes. I had done this for the list of users, but for the views of Oracle I had just created read only VO. Sounds like that won't work if I want to display the description. I know what to do - I guess I was hoping there was a way to use the read only VO.
Thanks
Karen -
IDoc Status 02 ( Could not find code page for receiving system )
Hi All,
I am getting Idoc status 02 when I am trying to send IDocs from ECC to PI system ( Production ).
Error description.
Could not find code page for receiving system
Message no. E0266
Diagnosis
For the logical destination PIP001, you want to determine the code page in which the data is sent with RFC. However, this is not currently possible, and the IDoc cannot yet be dispatched.
Procedure for System Administration
Possible causes are:
1. The entry no longer exists in the table of logical destinations.
2. The target system could not be accessed at runtime.
3. The logon language is not installed in the target system.
4. In the destination system, no logon language is maintained
Please help.
Thanks - Vinay.Hi Vinay,
Status 02 occurs when data is not passed to port suceessfully. Check the RFC desination is working fine and your able to connect to target system and also check correct port is assigned.
Regards,
Vinod. -
Infopackage Idocs in status 2 - could not find code page for receiver system
Hi,
We just migrated our production system from BW 7.01 non unicode to BW 7.4 on HANA.
We now encounter issues with idocs while loading data into bw from our ECC5 source. When we analyze idocs in the source system it appears with the message "could not find code page for receiver system"
One weird thing is that the idoc seems to have been created before we started the infopackage in bw.. We controlled system time and AS time and everything seems ok.
We did not encounter this issues on our previous migration test runs..
Hope someone can help
ChristopheHi,
Thanks for responding. We finally found out what the problem was.
We have two applications servers on our ECC with 2 different OS. One of them could not reach the new BW HANA server.
Regards
Christophe -
Drilling Down to "friendly" descriptions instead of codes
Hi,
In my dimension I managed to create the drill down functionality user-friendly in most of the cases (replace the code by the description field) but in one specific case the drill down only works correctly when the code is used.
This specific case is a drill down from department - employee - project.
I use the employee's firstname and lastname (a combination of 2 fields) as the logical level key for employee used for drill down, instead of employee_code, the PK logical level key.
In that case I cannot drill further to project. I don't get an error I just get the message my query is too restrictive and returns no rows.
When I only use first name in the logical level key it works.
I tried to create a new logical column being the combination of first & lastname and use this in the logical level key but this didn't work either, the same behaviour occured.
Thanks for any advice how to solve this issue!
Kris
Edited by: Kris Caluwaerts on Apr 3, 2009 3:08 PMThanks for your answer.
What I did is the following :
On the level of "Employee" I defined two logical keys.
One begin the PK which contains the code. This one is not checked as "Use for drill down"
A second key is defined on the same level. This one contains first & lastname and for this key the "use for drill down" is checked. -
How get and edit xml code of BI Publisher Report
Hi to all,
I need to do some costumization to one BI Publisher report. Investigating I found a solution to do my costumization. However this requieres edit the xml code. Can you please let me know how can I get and edit this code?
Thanks in advance
regards
Danielobiee / ebs .... ?
Investigating I found a solution to do my costumization. However this requieres edit the xml code.
no need edit seeded code (it's for SR)
your steps:
- get seeded code
- edit
- create custom report
Can you please let me know how can I get and edit this code?
for ebs you can look xml publisher responsibility, find by code -
Hi
Please, could you tell me what is the tables where the object status are storage from SD sales document for example?
Best Regards,
EnriqueHi Benito Enrique,
Please have a look at below tables.
AUSP
Characteristic Values
CMFK
Storage Structure for the Error Log Header
CMFP
Storage Structure for Errors Collected
FMSU
FI-FM Totals Records
FPLA
Billing Plan
FPLT
Billing Plan: Dates
INOB
Link between Internal Number and Object
JCDO
Change Documents for Status Object (Table JSTO)
JCDS
Change Documents for System/User Statuses (Table JEST)
JEST
Object Status
JSTO
Status Object Information
KANZ
Assignment of Sales Order Items u2013 Costing Objects
KEKO
Product Costing - Header
KEPH
Product Costing: Cost Components for Cost of Goods Mfd
KNKO
Assignment of a Cost. Est. Number to Config. Object
KOCLU
Cluster for Conditions in Purchasing and Sales
KSSK
Allocation Table: Object to Class
NAST
Message Status
SADR
Address Management: Company Data
VBAK
Sales Documents: Header Data
VBAP
Sales Documents: Item Data
VBEH
Schedule Line History
VBEP
Sales Document: Schedule Line Data
VBEX
SD Document: Export Control: Data at Item Level
VBFCL
Sales Document Flow Cluster
VBLB
Sales Document: Release Order Data
VBSN
Change Status Relating to Scheduling Agreements
VBUK
Sales Document: Header Status and Administrative Data
VBUP
Sales Document: Item Status
VBUV
Sales Document: Incompleteness Log
VEDA
Contract Data
Thanks,
Swamy H P -
Idoc failed in Bi system "Could not find code page for receiving system".
Dear Experts,
i am getting below error ,Idoc failed in Bi system "Could not find code page for receiving system".
All the idocs have been successfully posted except one which is giving this error
Idoc status 02 - could not find code page for receiver system.
Please guide me
thanks
vamsiHello Vamsi,
check Note 647495 - RFC for Unicode ./. non-Unicode Connections
If your ERP system sends e. g. chinese data to the SCM system, how should the system know which codepage to use? You have to set the MDMP flag in your ERP system in SM59 and configure in the MDMP extended settings which codepage should be used for what language.
Please check this thread - IDoc error - Could not find code page for receiving system
Hope it helps,
Thanks & Regards,
Amit Barnawal -
Tax code C0 for country IN has been deleted or incorrectly changed
Dear All
While making incoming payment in F-06 am getting an error (Tax code C0 for country IN has been deleted or incorrectly changed) Plz give me the solution.
regds
rajJust check on OBCL.
Thanks
Kalyan -
Tax code F6 for country SE has been deleted or incorrectly changed
Hello All
I am trying to clear one customer Invoice thru T.code F-28. After giving all parameters when simulating i am getting error message "Tax code F6 for country SE has been deleted or incorrectly changed"
Message # FS201.
We are using ECC 6 version.
Any one solved this error please help me.
Regrads
Ravi KiranHi ,
I had Solve my problem ,
This error can happen because of many reason,
1. The insistence for tax code would be because the G/L account used
has been made relevant for tax. Hence the system will not allow to post
the document without tax code.
2. If the tax code is not activated for any condition type (maintainanceof tax rate) using table 003 (Tax classification).
3. If G/L accounts are not assigned to any deductible condition in the
tax procedure.
4. If it is an input tax code then not assiging it to company code
in the following customising node.
SPRO > Logictics general > Tax on goods mvmt > India > Determination
of excise duty > Asssign tax code to company code..
5. If the requirement routine 166 is assigned to the main service tax
condition also.
Thanks
Devang -
RRB-How to get the activity description instead of WBS element in the bill
Dear All,
I am using RRB DIP profile to do my Resource related billing
RRB-How to get the activity description instead of WBS element in the billing
document.Now iam able to get the cost and the quantity used as line items but instead of getting the respective line items in the invoice iam still getting the WBS
element description for all the activities.Can some body guide me to overcome this problem.
Assured reward points for your suggestions and help.
Thanking you,
Best regards,
R.SrinivasanDear All,
Please can any body help me for the same.IT is urgent.I will award you points.
thankyou,
Best regards,
R.Srinivasan -
Object status for a sales document
Hi
I have maintained one status profile with 3 status and assigned it quotation document (Quotation -> Stauts Data - > Object status -> 3 new status in radio buttons ). In which table can i see that this document number and status of document?
Tj30t has the description and number of new status .
Thanks in advance.
Regds,
VaishnaviHi,
You can get document number and status details in V.26 transaction code.
Goto V.26, enter status e.g BLK ( blocked) and choose user status and execute.
System will show you list of the documents with status.
If you are using header status, then goto VBAK table get the value from the OBJNR field (Object number).
Goto JEST table and enter Object number and system will show the status. E.g E0001(Tehnical name) . (The sequence you maintained in status profiles)
E0001 CRT created
E0002 BLK Blocked
E0003 REL Released
Regards,
Chandrasekhar -
Memory leak problem while passing Object to stored procedure from C++ code
Hi,
I am facing memory leak problem while passing object to oracle stored procedure from C++ code.Here I am writing brief description of the code :
1) created objects in oracle with the help of "create or replace type as objects"
2) generated C++ classes corresponding to oracle objects with the help of OTT utility.
3) Instantiating classes in C++ code and assigning values.
4) calling oracle stored procedure and setting object in statement with the help of setObject function.
5) deleted objects.
this is all I am doing ,and getting memory leak , if you need the sample code then please write your e-mail id , so that I can attach files in reply.
TIA
Jagendrajust to correct my previous reply , adding delete statement
Hi,
I am using oracle 10.2.0.1 and compiling the code with Sun Studio 11, following is the brief dicription of my code :
1) create oracle object :
create or replace type TEST_OBJECT as object
( field1 number(10),
field2 number(10),
field3 number(10) )
2) create table :
create table TEST_TABLE (
f1 number(10),f2 number (10),f3 number (10))
3) create procedure :
CREATE OR REPLACE PROCEDURE testProc
data IN test_object)
IS
BEGIN
insert into TEST_TABLE( f1,f2,f3) values ( data.field1,data.field2,data.field3);
commit;
end;
4) generate C++ classes along with map file for database object TEST_OBJECT by using Oracle OTT Utility
5) C++ code :
// include OTT generate files here and other required header files
int main()
int x = 0;
int y = 0;
int z =0;
Environment *env = Environment::createEnvironment(Environment::DEFAULT);
Connection* const pConn =
env->createConnection"stmprf","stmprf","spwtrgt3nms");
const string sqlStmt("BEGIN testProc(:1) END;");
Statement * pStmt = pConn->createStatement(sqlStmt);
while(1)
TEST_OBJECT* pObj = new TEST_OBJECT();
pObj->field1 = x++;
pObj->field2 = y++;
pObj->field3 = z++;
pStmt->setObject(1,pObj);
pStmt->executeUpdate();
pConn->commit();
delete pObj;
} -
How do I get past the pass code on iPad running on Ios7.1 because j have forgotten it and I don not own a computer so it has to be with out
a computerUse a friend's computer. Your iPad will be erased.
How can I unlock my iPad if I forgot the passcode?
http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
iOS: Device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212
How can I unlock my iPad if I forgot the passcode?
http://tinyurl.com/7ndy8tb
How to Reset a Forgotten Password for an iOS Device
http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
Using iPhone/iPad Recovery Mode
http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
You may have to do this several times.
Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
~~~~~~~~~~~~~
‘iPad is disabled’ fix without resetting using iTunes
Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
2. Open iTunes with the iPad disconnected.
3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
5. Click ‘Setup as new iPad’ and then click restore.
6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
~~~~~~~~~~~~~
Try it and good luck. You have nothing more to lose if it doesn't work for you.
Cheers, Tom -
Connection object is getting closed before the stored procedure is complete
Hi Everyone,
I am facing an issue where by the java connection object is closed before the stored procedure it is connected to is complete.
I am not sure if the fault is in SP or Connection pool.
After spending some time, i could able to figure out that the procedure is taking a tad more time for processing as there are over 1000 records in the database tables it is dealing with.
Would that be a potential cause ? or Am i required to handle it in Java only ?
I want to know what could be possible causes for this issue ?
Please Help.
FYI,
The following are the logs which says,
XYZ (Stored Procedure) : Start Time is 1349217771302 Procedure started here
INFO >2012-10-02 18:43:09,935 [ConnectionPool]: Closing connection: DataSource [ABC](684)
INFO >2012-10-02 18:46:03,512 DAO[main]: XYZ : End Time is 1349217963512 Procedure ended here
Thanks in Advance.Hi ,
Thank you all for your quick response.
Well it's my bad i dint provide you any code to look into thinking that i am dealt with a gen issue and also i am too paranoid to post any code i am dealing with in the forum (i am sorry).
But here is some information for you,
Database : Oracle 10g
Java: 1.5 version
We are using only One connection object for the entire java backend process .
The SP is of over 1000 lines of code which for obvious reasons i can't past it here but this morning i figured out an issue in SP where by a query taking way more than usual time to execute which led to SP's poor performance and also the reason for why it is taking very long time than usual.
This query is a simple SELECT query where it is trying fetch over 2000 records from a table of over 3 million records. The execution time is over 30-40 seconds which is the root cause of SP's poor performance.
When i eliminated this from the logic and ran the query it could able process (inserting huge volume around 5000 records of data) in 1 second instead of 3-4 minutes earlier.
I tried to replicate this issue (which occurred in our production server) in my local system but no luck as there was no connection issue here but only the substantial time difference.
We are using a customized connection pool which is as follows,
I am not sure what's going on here because it seems to be greek and latin to me.
What we are doing in our DAO is we are using method of the below ConnectionPool.getInstance(SCHEMA) to get the connection object.
Looking forward to seeking advice from you on how connection pool in general works.
public class ConnectionPool extends Thread
private static final ConnectionPool me = new ConnectionPool();
private Hashtable dataSources = new Hashtable();
private static final int MIN_TIMEOUT = 0;
private long timeOut;
private Hashtable cons = new Hashtable();
private Hashtable active = new Hashtable();
private boolean trace = false;
private ConnectionPool()
registerDataSources();
this.timeOut = PropertyManager.getIntProperty("connectionPool.timeOut", MIN_TIMEOUT);
setName("ConnectionPool");
setPriority(MIN_PRIORITY);
if (timeOut > 0)
start();
private void registerDataSources()
dataSources.clear();
Properties props = System.getProperties();
String app = props.getProperty("X", "Y");
for(Enumeration e = props.keys(); e.hasMoreElements();)
String key = (String) e.nextElement();
if (key.startsWith(app + ".connectionPool.dataSources.") && key.endsWith(".selector"))
String ds = key.substring((app + ".connectionPool.dataSources.").length(), key.length() - ".selector".length());
LogManager.logStatus("Registering [" + ds + "] (selector) " +
props.getProperty(app + ".connectionPool.dataSources." + ds + ".selector"));
dataSources.put(ds,
new GenDataSource(
ds,
props.getProperty(app + ".connectionPool.dataSources." + ds + ".selector")));
continue;
if (!key.startsWith(app + ".connectionPool.dataSources.") || !key.endsWith(".server"))
continue;
String ds = key.substring((app + ".connectionPool.dataSources.").length(), key.length() - ".server".length());
try
LogManager.logStatus("Registering [" + ds + "] " +
props.getProperty(app + ".connectionPool.dataSources." + ds + ".url"));
loadDriver(props.getProperty(app + ".connectionPool.dataSources." + ds + ".driver"));
catch (Exception se)
LogManager.logException(se);
GenDataSource genDataSource = new GenDataSource(
ds,
props.getProperty(app + ".connectionPool.dataSources." + ds + ".useMatrix", "false").equals("true"),
props.getProperty(app + ".connectionPool.dataSources." + ds + ".server"),
props.getProperty(app + ".connectionPool.dataSources." + ds + ".url"),
props.getProperty(app + ".connectionPool.dataSources." + ds + ".user"),
props.getProperty(app + ".connectionPool.dataSources." + ds + ".password"));
// Set the schema if schema is defined in settings.xml file
if (genDataSource != null && props.getProperty(app + ".connectionPool.dataSources." + ds + ".schema") != null ) {
genDataSource.setSchema(props.getProperty(app + ".connectionPool.dataSources." + ds + ".schema"));
dataSources.put(ds, genDataSource);
public static Connection getConnection(String dataSource) throws SQLException
GenDataSource ds = (GenDataSource) me.dataSources.get(dataSource);
if (me.timeOut <= 0)
if (ds.getSchema() != null )
return updateSchema ( ds);
else
return DriverManager.getConnection(ds.url(), ds.user(), ds.password());
String key = dataSource;
Stack free;
GenPooledConnection pc = null;
synchronized (me)
if ((free = (Stack) me.cons.get(key)) == null)
free = new Stack();
me.cons.put(key, free);
if (!free.empty())
pc = (GenPooledConnection) free.pop();
if (pc == null)
if (ds.getSchema() != null )
pc = new GenPooledConnection("DataSource [" + key + "]",
updateSchema ( ds), free, me.active, me.timeOut, me.trace);
else
pc = new GenPooledConnection("DataSource [" + key + "]",
DriverManager.getConnection(ds.url(), ds.user(), ds.password()), free, me.active, me.timeOut, me.trace);
else
pc.touch();
LogManager.logStatus("Using " + pc);
me.active.put(pc.id(), pc);
return pc;
public void run()
for(;;)
try
sleep(60 * 1000);
synchronized (me) {
for(Enumeration e = cons.elements(); e.hasMoreElements();)
Stack stack = (Stack) e.nextElement();
for (int i = stack.size()-1; i >= 0; i--)
GenPooledConnection pc = (GenPooledConnection) stack.elementAt(i);
if (pc.isExpired())
stack.removeElementAt(i);
catch (Exception e)
GenUtil.reportException(e);
private static Connection updateSchema ( GenDataSource ds) throws SQLException {
Connection con = DriverManager.getConnection(ds.url(), ds.user(), ds.password());
if (ds.getSchema() != null ) {
String sql = "SET SCHEMA " + ds.getSchema()+ ";";
LogManager.logDebugMessage("updating the Schema with sql statement " + sql);
PreparedStatement ps = con.prepareStatement(sql);
ps.execute();
ps.close();
return con;
}Thanks.
Edited by: EJP on 5/10/2012 14:09: added {noformat}{noformat} tags. Please use them.
Maybe you are looking for
-
Loading Error in AppStore??
I can´t load iPhoto from AppStore. Instead of "BUY" is there a button "ACCEPT". But if i click on it and verify my ID there happens nothing! Anybody knows how to solve this?
-
Purple for video missing when syncing with itunes??
just had an upgrade to new 3g iphone which was faulty. apple replaced it today and i did a restore. now when im syncing my itunes library to it the colours showing what is being used at the bottom of itunes (ie music,video,photos and other) have main
-
Boot Camp won't recognize my AMD 6970m Video Card
Hello! About a week ago, I received my brand-new 27" iMac, which came with Boot Camp installed and executed via VMWare. Its main system specifications are: - Intel i5 Quad Core @3.10 Ghz (performance rated at 9.30 Ghz) - 4GB RAM - AMD Radeon HD 6970m
-
Most keys on wireless keyboard not working.
Hi i need help on my iMac wireless keyboard. it seems that most keys are not respoding, the picture shows the only keys that work. i have no idea what happend to it. can anyone please help me gain back all the keys? right now im only using a cheap us
-
Hello! Need help please~ I cannot erase and partition disk in disk utility. It always alert message that" Partition Failed with error. Couldn't open device". How can I fix this? Help please~