UDF in Work order of Production in the user defined field management
Hi all
I wanted to know which is the Screen for which this path indicates
Tools >Customisation Tools->User defined Field Management-->Production--> Work Order Row
when i create a UDF here i dont know where it is created or attached to which screen.
Pls Guide me
Praveen B K
Hi Marcia
Thank you for replying
I have SAP Business One 2007 B installed in my system and was installed just few days ago.
help me.
Praveen B K
Similar Messages
-
I can't see the user-defined fields I'm supposed to - where are they?
Following a recent CACI release upgrade users are expecting to see several user-defined fields within student details in the Enrolments Universe but we can't. Following upgrades, do I need to refresh or run something that'll encorporate any new additions to the existing tables?
Apologies, but this is the 1st time I have had to do this.
regards,
StevenHi,
which version of BOB are you talking about here? Did you already made your changes to the universe and exported it in your repository? What kind of reporting tool (WebI, DeskI, CR) are you using?
Regards,
Stratos -
Java user-defined transaction management not working correctly???
Hi everyone,
I have encountered a problem when using Java user-defined transaction management in my session bean. It threw an exception but I could not work out what that means. Could anyone comment on this? Thanks.
This BrokerBean is a stateless session calling other entities bean to perform some simple operations. There are 2 Cloudscape databases in use. Invoices (EB) use InvoiceDB and all the other EBs use StockDB.
If I comment out the user-defined transaction management code, then everything works fine. Or if I comment out the Invoices EB code, it is fine as well. It seemed to me that there is something wrong in transaction management when dealing with distributed databases.
--------------- source code ----------------------
public void CreateInvoices(int sub_accno) {
try {
utx = context.getUserTransaction();
utx.begin();
SubAcc subAcc = subAccHome.findByPrimaryKey(new SubAccPK(sub_accno));
String sub_name = subAcc.getSubName();
String sub_address = subAcc.getSubAddress();
Collection c = stockTransHome.findBySubAccno(sub_accno);
Iterator i = c.iterator();
ArrayList a = new ArrayList();
while (i.hasNext()) {
StockTrans stockTrans = (StockTrans)i.next();
int trans_id = stockTrans.getTransID();
String tran_type = stockTrans.getTranType();
int stock_id = stockTrans.getStockID();
float price = stockTrans.getPrice();
Invoices invoices = invoicesHome.create(sub_accno, sub_name, sub_address, trans_id, stock_id, tran_type, price);
stockTrans = stockTransHome.findByPrimaryKey(new StockTransPK(trans_id));
stockTrans.remove();
utx.commit();
utx = null;
} catch (Exception e) {
if (utx != null) {
try {
utx.rollback();
utx = null;
catch (Exception ex) {}
// e.printStackTrace();
throw new EJBException("BrokerBean.CreateInvoices(): " + e.getMessage());
--------------- exception ----------------------
Initiating login ...
Enter Username:
Enter Password:
Binding name:`java:comp/env/ejb/BrokerSB`
EJB test succeed
Test BuyStock!
Test BuyStock!
Test BuyStock!
Test BuyStock!
Test SellStock!
Test SellStock!
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: BrokerBean.CreateInvoices(): CORBA TRANSACTION
_ROLLEDBACK 9998 Maybe; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806
completed: Maybe
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio
n(ShutdownUtilDelegate.java:64)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at BrokerStub.CreateInvoices(Unknown Source)
at Client.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:22
9)
at com.sun.enterprise.appclient.Main.main(Main.java:155)
Caused by: java.rmi.RemoteException: BrokerBean.CreateInvoices(): CORBA TRANSACT
ION_ROLLEDBACK 9998 Maybe; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806
completed: Maybe
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.ja
va:389)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:43
1)
at BrokerBean_EJBObjectImpl.CreateInvoices(BrokerBean_EJBObjectImpl.java
:265)
at BrokerBeanEJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Ge
nericPOAServerSC.java:520)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Gen
ericPOAServerSC.java:210)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAS
erverSC.java:112)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProces
sor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadP
ool.java:99)Three things:
first, maybe you should think of putting ut.begin() just before the invoicesHome.create() method and ut.commit() just after the stockTrans.remove() method.It wont solve the current problem but will help in performance once the problem is solved.
second, your utx.commit() is outside the try block. how come the code is compiling then??
third, try doing a SOP call before and after invoicesHome.create() method and see where the problem actually lies.
let us know...
Hi SteveW2,
Thanks for being so helpful. Here are my replies:
Can I just ask why you're not using containermanaged
transactions?The reason why I didn't use container managed
transactions is because I don't really know how to do
that. I am more familiar with this user-defined
transaction handling.
I have attempted to implement the same method in an
entity bean and just let the container manage the
rollback itself. The same exception was thrown when
running the client.
Also, the transaction behaviour is likely to relateto
the app server youre using - which is it?What do you mean by the app server? I am using J2EE
1.3.1 if that is what you meant.
Finally, if your code has a problem rolling back,and
throws an exception, you discard your exception
thereby losing useful information.I have tried to print the exception stack as well, but
it is the same as just printing the general
exception.
This problem is very strange cause if I comment out
the transaction management thing, then everything
works fine. Or if I am only working with 1 single
database, with this user-defined transaction handling,
everything works fine as well.
Here is the error log from J2EE server if you are
interested.
------------ error log ---------------
javax.ejb.TransactionRolledbackLocalException:
Exception thrown from bean; nested exception is:
javax.ejb.EJBException: ejbCreate: Connection
previously closed, open another Connection
javax.ejb.EJBException: ejbCreate: Connection
previously closed, open another Connection
at InvoicesBean.ejbCreate(Unknown Source)
at
InvoicesBean_RemoteHomeImpl.create(InvoicesBean_Remote
omeImpl.java:31)
at InvoicesHomeStub.create(Unknown Source)
at BrokerBean.CreateInvoices(Unknown Source)
at
BrokerBean_EJBObjectImpl.CreateInvoices(BrokerBean_EJB
bjectImpl.java:261)
at BrokerBeanEJBObjectImpl_Tie._invoke(Unknown
Source)
at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispa
chToServant(GenericPOAServerSC.java:520)
at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.inter
alDispatch(GenericPOAServerSC.java:210)
at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispa
ch(GenericPOAServerSC.java:112)
at
com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:25
at
com.sun.corba.ee.internal.iiop.RequestProcessor.proces
(RequestProcessor.java:84)
at
com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThr
ad.run(ThreadPool.java:99)
javax.ejb.TransactionRolledbackLocalException:
Exception thrown from bean; nested exception is:
javax.ejb.EJBException: ejbCreate: Connection
previously closed, open another Connection
at
com.sun.ejb.containers.BaseContainer.checkExceptionCli
ntTx(BaseContainer.java:1434)
at
com.sun.ejb.containers.BaseContainer.postInvokeTx(Base
ontainer.java:1294)
at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseCo
tainer.java:403)
at
InvoicesBean_RemoteHomeImpl.create(InvoicesBean_Remote
omeImpl.java:37)
at InvoicesHomeStub.create(Unknown Source)
at BrokerBean.CreateInvoices(Unknown Source)
at
BrokerBean_EJBObjectImpl.CreateInvoices(BrokerBean_EJB
bjectImpl.java:261)
at BrokerBeanEJBObjectImpl_Tie._invoke(Unknown
Source)
at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispa
chToServant(GenericPOAServerSC.java:520)
at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.inter
alDispatch(GenericPOAServerSC.java:210)
at
com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispa
ch(GenericPOAServerSC.java:112)
at
com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:25
at
com.sun.corba.ee.internal.iiop.RequestProcessor.proces
(RequestProcessor.java:84)
at
com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThr
ad.run(ThreadPool.java:99)
What is "connection previously closed, open another
connection"? This might be the cause of the
exception.
I'll keep trying till I solve the problem.
Thanks,
Sasuke -
Linking the UDO of type document to user defined field
I created the user defined field and i need to link the UDO of type document to that user defined field. How to link the UDO to user defined field.
Dear
do you mean to add a user defined field to an document type UDO? if this is the case,
1. create the UDT
2. go to Tools-> customization tools->User Defined Fields-Management, expand User Tables, add the udf to the UDT
3. register the UDT as UDO.
best regards,
xiaodan an -
SALES ORDER: Total of a Field from the Grid in a User-Defined Field in ORDR
Hello!
I created a User-Defined Field called "U_Soma" in table ORDR (Marketing Documents / Title).
I need this U_Soma field Totalize the content of another User-Difined Field called "U_TotalPorUM" created in table RDR1 (Marketing Documents / Rows). It must get the Sum the value of all rows in the current record being edited.
Using the Query below, it works fine with already saved records:
SELECT SUM(T1.[U_TotalPorUM]) FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocEntry = $[ORDR.DocEntry]
However, I need that it work with non saved (yet) records.
Thank you!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 22, 2010 10:14 PMGordon, thank you for your fast answers!
In other circumstances I would agree with you.
But the U_Soma field must be used to control the maximum weight of a charge.
It becames very usefull if user can see that the charge limit is reached, still when the Sales Order is being edited.
(The U_TotalPorUM field shows the weight of each item).
I would appreciate any help!
Thanks a lot!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 23, 2010 7:28 PM -
In Firefox 4, how do I change the order of plugins on the Add-ons Plugins manager page? I turn Shockwave Flash on only when I want to watch a video and then turn it off to prevent screen freezing, and so I want it to PUT it and KEEP it at the top of the list.
Hit Ctrl+0 (That's a zero, by the way). I'm not sure if it will work, but hey, that's the first thing I would try.
-
When the user press the button Calculate Tax and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
All setup looks fine.
Please let me know what can be done on this?
Regards,
PeuHarryAustralia wrote:
I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again. -
Can I dynamically display a product showing the user's options
I'm a total Flash newbie so please use small words
My customer manufactures small aluminum products that can be
anodized in several colors. The products can have simple line
graphic artwork or user-specified text engraved into them with an
NC milling machine. If the user wants to add text he also selects
one of several possible fonts. The engraving can also be colored to
contrast with the body of the part.
My customer wants a application (Windows or Web) that can
dynamically display the product as the user makes his choices: i.e,
display an image of the product in the chosen color, then show it
engraved with the artwork and/or text. The text should be shown in
the correct font.
The products, colors, artwork and fonts are all known but the
user's text is obviously unpredictable, so it's impossible to
simply prepare photos of every possible combination. Can Flash (or
something else) programmatically generate and overlay text and
artwork on an image? Can it alter the colors or should I simply
have a photo of every product in every color?
Is this possible? Is Flash the appropriate technology?
ThanksSteve,
I am not sure if you have any software to start with, so I
dunno exactly what you need. You need an image editor, some sort of
html editor, and of course Flash. The easy answer is the Web
Premium version of CS3. It should have all you need. If you already
have some of those tools, then the main thing you need is Flash.
There are also some free alternatives out there from web creation
and image editing, but they don't integrate quite as well as having
all Adobe products.
Some good learning resources can be found at Lynda.com. It
has a ton of tutorials on programs that you would need to do this
including Photoshop and Flash. A subscription is a bit pricey, but
when you think that one book can be $50, being able to access so
many tutorials really seems like a good value. Also, there are some
good print book available there that you could use as a buying
guide. You'll need to get into ActionScripting with with this, so
look for a basic intro to Flash CS3, and then something regarding
getting started with ActionScript 3.
These forums are a good resource as well, but mainly when
you have specific questions. People can answer "Why does my text
disappear when I use a mask over it?" but it is harder to answer,
"I want to build a picture library, how do I do that?"
- B
- B -
I'm working on JSP that allows the user in this case to add a new restauran
I'm working on JSP that allows the user in this case to add a new restaurant to the database. I have 2 database tables, one being RestaurantTable and containing the columns:
Id (Restaurant Id) type: int (primary key)
Name (Restaurant Name) type: varchar
Address (Restaurant Address) type: varchar
PhoneNumber (Restaurant Phone Number) type: varchar
Category (Type of Restaurant) type: varchar
and the other being Rank and containing the columns:
Value (Restaurant rank number) type: float
Id (Restaurant Id same as in the RestaurantTable) type: varchar
Since all of my restaurants which are already in the database have ideas, if a user were to add a restaurant I want my JSP to give it the next Id that follows. For that I have created a SQL sequence which is rest_id_seq.
There error I'm getting is : Invalid column type
I understand that the value for Id must be an integer because that is what I defined it as when I created my table, but I don't understand anyother way to do it then to put the sequence in as it's value.
I'm really confused as to what to do. Any help would be appreciated. Thanks
I'll post again with my codeOk I really don't get why I can't post my code on here, I've been trying over and over again. I cut and paste my code and put it between and I hit the post button and the page does nothing.
-
Retain standard SAP order type after copying with user defined order type
Hello SAP Gurus,
We have a requirement of retaining the standard SAP order types after copying with User defined order types. But the issue is we don't want to see the standard SAP order type such as PM01, PM02 in production system while using transaction like IW31 etc.
Is there anybody who has answer to retain these stanadard SAP order types without deleting from system configuration?
Thanks in advance.
Cheers,
VaibhavVaibhav,
When you F4 on the order type field in IW31 you will get the popup showing the order type list. At the top of this list is a button with a green "+" sign (Insert in personal list).
You can use this button to select your favourite list.
This function is available in most F4 drop-down lists.
However, you cannot set this setting for all users. You will need to write an ABAP program to do this.
PeteA -
Use current user in the user Defined alerts
Hi
i created a UDQ with a filter on the Current user (where ???=$[USER]
and it's working fine.
but when i use it in the User Defined Alert, nothing happen. the UD Alert doesn't fire.
is there any solution?
10xH Gordan
for example:
select t0.docentry,t0.docnum,t0.cardcode,t0.cardname from ordr t0 where t0.docstatus='O' and t0.usersign=$[[USER]]
if you save it as UDQ and run it, it will return all open sales orders for current user.
try to link it to an alert, it won't show you any thing
regards;
Edited by: Dany Bittar on May 12, 2011 1:08 PM -
User Defined Field that gives the date output of the last price update.
We would like to create a User Defined Field (UDF) with a Formatted Search (FMS) on the Item Master form that gives the date output of the last price update specifically the wholesale price.
Last Price Update
Pricelist 2 = Wholesale
Is this feasible?
If it is feasible what is the recommended approach?
Current working UDF on Item Master.
/* Date output is based on all the latest updates on the Item Master.*/
select max(updatedate)
from aitm
where itemcode = $[oitm.itemcode]
Resources that were helpful.
1.(Note:1165947 - Tracking Item Price Changes.)
2. Case 4-I6: Query on price updates. Mastering SQL Queries for SAP Business One By: Gordon DuThank you Gordon,
We are looking for the date output of the 'Last Price Update' based on 'Pricelist 2 = Wholesale' which is the challenge.
These 2 are the parameters for the date output, I should have mentioned that in my original message.
Last Price Update
Pricelist 2 = Wholesale
Per reading a bunch of other similar Forum Questions it looked like it is might not be possible to do. With there being no date on the AIT1 table and AITM.Updatedate is based on any and all updates not just last 'Last Price Update' and not sure how to use the loginstanc.
Thanks,
Vern -
Accessing container element in the User Defined Function
Hi All,
I am accessing a container element in the user defined function.
But it is not working. Actually i want to split a message(1800 records) into a batch of 200.
But it goes in a infinite loop.
Please can you tell me where i am wrong.
Smita
The code is :
public void SplitMsg(String[] a,ResultList result,Container container){
Object container1;
String counter;
int i,j=0;
container1 = container.getParameter("value");
if( container1 == null){
counter = "0";
else {
counter = container.toString();
j = Integer.valueOf(counter).intValue();
for ( i = j ; i <= j + 199 ; i++){
if ( i >= a.length){
container.setParameter("value","9999999");
break;
result.addValue(a<i>);
j += 200;
counter = Integer.toString(j);
container.setParameter("value", counter);Here is another way to accomplish what you wanted.
For the target mapping, use this sequence for mapping
Source element -> removeContext -> Your User-defined Function -> Target Element
When defining User-Defined Function, select "Cache Queue" option.
Since you are using removeContext before calling the UserDefined function, your input to the user defined function will be a String array without ResultList.CC.
Now manipulate the array the way you want it, and build the ResultList result.
After every 200 records, use method
void addContextChange().
This will insert the ResultList.CC at the appropriate places.
Use Display Queue in the Mapping Editor to see the debug values. -
How to raise the user defined Exceptions in XI ?
Hi All
I am learning XI ...i want know how to set up the user defined Exceptions
in XI?
Where and What are the settings need to be done ?
Same time where can check the LOG file ? to see all the server information ?
Welcome to your answers
Regards
RakeshRakesh,
Check this weblogs which will guide you:
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio
Also check this thread:
Mapping test throughs exception for UDF that does'nt exist anymore
---Satish -
User Defined Fields and Reference Fields on the B/S
Dear Experts,
On the balance sheet in SAP 9.0/8.82 once you click on the expanded button, there are user defined fields and reference fields which are blank. Could someone assist on how to use them ?
Kind RegardsHi Martin,
If you add any user defined fields (UDF) in Journal Entry (JE) screen, You can use the udf's in the
balance sheet report.
Regards
Neslin
Maybe you are looking for
-
How to handle exception propagation in webservice client?
Hi , Is there a way to catch an exception thrown by Webservice server handler? We have a situation where we need to handle the exception on the client side thrown by the server handler. We are using Webspehere webservices created thru RAD 7 and clien
-
Previously purchased TV Programs - unable to download
I purchased the whole series of Homeland via my iPad to watch on holiday. It dodn;t have enough space so I deleted episodes after I had watched them in order to download more episodes. I can now view it via Apple TV but I cant seem to download it to
-
Hello, i have some propably simple question regarding pnp database. Which variables are used for begda and endda for personnel selection a which are used for data selection? Or are both dates same? If so how should i do this logic: select persons whi
-
Is there any way to not have events being made every time I put a picture into iPhoto. I see how this would be nice to put photos off my camera, but when I am just putting single photos in, it is a huge pain to get a different event for each one... I
-
Help with uninstalling avast! completely
I recently installed avast! free antivirus and it kept giving me a warning that some file (bootloader or something like that) had a warning because of it's "decompression rate". After some research, found out it was harmless and recommended that I un