Does BAPI call the validations defined for standard transactions ?

Hi Experts,
Can anyone tell me if BAPI handles the validations defined for standard transactions ? I have a standard transaction KB15N. Validation defined for a field works fine when run thorugh the transaction. But if same data is updated using BAPI , validations are not getting called and wrong data is updated in the system.
Could you please confirm if BAPI handles validations ? If yes, how to take care of it ?
Best  Regards,
V joshi

Hi Thomas,
Thanks for your quick reply.
I have following condition in the prerequsite of validation
Prerequsite :      Transaction code = 'KB15N'
check :               Sr cost element > '90000000' AND Sr cost element < '9ZZZZZZZ'
I am using BAPI  'BAPI_ACC_MANUAL_ALLOC_POST'  for posting.
Do i need to modify the pre-requisite  condition ? Kindly guide.
Regards,
V Joshi

Similar Messages

  • "Save a copy" does not run the JavaScript defined for AA WS/DS

    I'm displaying the pdf in browser (IE) and need to audit the user saving the file (e.g. from the floating toolbar's "Save a copy"). However, the script inserted to run on Additional Action Did Save/Will Save is not invoked (the script and the structure of the document are ok because I'm doing the exact same thing for Did Print and works just fine).
    So it looks like "Save a copy" is not "Save" .
    Any idea on how to work around this?
    Thanks,
    Radu

    Thanks a lot for the quick answer.
    I'm "injecting" in the pdf some JavaScript to run on AA+DS (ie. this.submitForm(<servlet>Action=Save#FDF)... so that I "know" when the user saves the pdf and I can do my auditing stuff). To my surprise the JavaScript is not executed when the user "Saves a Copy".
    The point about printing is that the script and document structure are correct since I'm calling this.submitForm(<servlet>Action=Print#FDF) on AA+DP to audit printing of the same document and works.
    Radu

  • Weblogic does not call the ProxySelector class for http url

    We are using weblogic server for our project. I have created a ProxySelector class and made it the default in my code. When my code tried to access the external url, the ProxySelector is called for socket url but not http url. Because of this, I am not able to return any HTTP proxy object from the ProxySelector and it fails.
    Note: The code works fine if I execute it from tomcat.

    Hi This is the method that I have for invoking webservices. It uses a Dispatch API. The myProxySelector is an instance of MyProxySelector which is already made defult in the appication startup.
    This MyProxySelector has a threadlocal variable useProxy to indicate whether the proxy should be used or not. so I am setting the variable just before reply = dispatch.invoke(sm);
    public class WebServiceDispatch {
    public Object invoke() throws GLException {
    Object result = null;
    try {
    Service service = Service.create(getOperation().getServiceName());
    service.addPort(getOperation().getOperationName(), SOAPBinding.SOAP11HTTP_BINDING, call.getServiceEndpoint());
    Dispatch<SOAPMessage> dispatch = service.createDispatch(getOperation().getOperationName(), SOAPMessage.class, Service.Mode.MESSAGE);
    initHandlers(dispatch);
    Map<String, Object> ctx = dispatch.getRequestContext();
    if (call.useWSS()) {
    ctx.put(SOAPConstants.WSSE_SECURITY, new WSSHeader(getCredentials().getUsername(), getCredentials().getPassword(), call.sendEncryptedPassword()));
    } else if (call.getCredentials() != null ) {
    String user = getCredentials().getUsername();
    if ( user != null ) {
    ctx.put(Dispatch.USERNAME_PROPERTY, user);
    if (getCredentials().getPassword() != null ) {
    if (call.sendEncryptedPassword()) {
    ctx.put(Dispatch.PASSWORD_PROPERTY, getCredentials().getPassword().getEncryption());
    } else {
    ctx.put(Dispatch.PASSWORD_PROPERTY, getCredentials().getPassword().getText());
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage sm = mf.createMessage();
    SOAPHeader sh = sm.getSOAPHeader();
    SOAPBody sb = sm.getSOAPBody();
    for ( Iterator<?> it = call.getOperation().getOrderedParameters().iterator(); it.hasNext(); ) {
    WebServiceParameter parameter = (WebServiceParameter) it.next();
    if (parameter.isBodyParam()) {
    sb.addChildElement((SOAPElement)call.getParameterValue(parameter));
    } else {
    sh.addChildElement((SOAPElement)call.getParameterValue(parameter));
    String endPoint = call.getServiceEndpoint();
    myProxySelector.setUseProxy(useProxyServer);
    if (getOperation().getReturn() != null) {
    reply = dispatch.invoke(sm);
    result = getReplyElement(reply);
    call.setParameterValue(getOperation().getReturn(), result);
    } else {
    dispatch.invokeOneWay(sm);
    } catch (Throwable t) {
    throw GLException.factory(new CausedBy("Error Invoking Web Service Dispatch"),t);
    return result;
    .........// more code to get webservice details from db and load useProxyServer flag value
    Here is the ProxySelector code
    public class MyProxySelector extends ProxySelector {
    protected ThreadLocal<Boolean> useProxy = new ThreadLocal<Boolean>();
         public ThreadLocal<Boolean> getUseProxy() {
              return useProxy;
         public void setUseProxy(boolean useProxy) {
              setUseProxy(useProxy? Boolean.TRUE: Boolean.FALSE);
         public void setUseProxy(Boolean useProxy) {
              this.useProxy.set(useProxy);
         private ProxySelector jvmDefaultSelector = null;
         public ProxySelector getJVMDefaultSelector() {
              return jvmDefaultSelector;
         private static MyProxySelector myProxySelector = null;
         private MyProxySelector(ProxySelector jvmDefaultSelector) {
              this.jvmDefaultSelector = jvmDefaultSelector;
         public static MyProxySelector getInstance() {
              if(myProxySelector==null) {
                   myProxySelector = new MyProxySelector(ProxySelector.getDefault());
              return myProxySelector;
         @Override
         public List<Proxy> select(URI uri) {
              try {
                   if (uri == null) {
                        throw new IllegalArgumentException("URI can't be null.");
                   Boolean useProxyObject = useProxy.get();
                   if(useProxyObject == null) {
                        String protocol = uri.getScheme();
                        if ("http".equalsIgnoreCase(protocol) || "https".equalsIgnoreCase(protocol)) {
                             return getProxyList();
                        } else if(jvmDefaultSelector != null) {
                             return jvmDefaultSelector.select(uri);;
                   if(useProxyObject.booleanValue()) {
                        String protocol = uri.getScheme();
                        if ("http".equalsIgnoreCase(protocol) || "https".equalsIgnoreCase(protocol)) {
                             return getProxyList();
              } catch(Exception e) {
              } finally {
                   if (useProxy != null) {
                        useProxy.remove();
              return getNoProxyList();
         @Override
         public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {
              if (uri == null || sa == null || ioe == null) {
                   throw new IllegalArgumentException("Arguments can't be null.");
              if (jvmDefaultSelector != null) {
                   jvmDefaultSelector.connectFailed(uri, sa, ioe);
    private static final String PROXY_HOST = "glog.integration.http.proxyHost";
    private static String httpProxyHost = GLProperties.get().getProperty(PROXY_HOST);
    private static final String PROXY_PORT = "glog.integration.http.proxyPort";
    private static String httpProxyPort = GLProperties.get().getProperty(PROXY_PORT);
    private static ArrayList getNoProxyList() {
              ArrayList noProxyList = new ArrayList<Proxy>();
              noProxyList.add(Proxy.NO_PROXY);
              return noProxyList;
    private static ArrayList getProxyList() {
         Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(httpProxyHost, Integer.parseInt(httpProxyPort)));
              ArrayList proxyList = new ArrayList<Proxy>();
              proxyList.add(proxy);
              return proxyList;
    public static class Startup implements StartupShutdown {
    public void load(T2SharedConnection conn) throws GLException {}
    public void activate(T2SharedConnection conn) throws GLException {
         ProxySelector.setDefault(getInstance());
    public void unload() throws GLException {}
    Edited by: pshivrat on Sep 3, 2010 10:09 PM

  • What are the valid values for CPU in conditional disable structure config?

    After diggin' around for some time (but to no avail)...
    Does somebody know the valid values for the CPU (symbol) in the conditional disable structure configuration or where I can find this information?
    Best regards,
    Horst

    Not sure but you can try this:
    http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/app_apptarget_cpu/
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Define the Characteristics of the validity table for non-cumulatives

    Hi Friends,
      Here I am designing MultiProvider ( ZCA_M01), based on the Two Business content info cubes (0IC_C03 & 0SD_C03 ) & one customized info cube (ZPUR_C01).
    I done Identification for char & keyfigures also.
    When i trying to activating the Multiprovider, here i am getting the error , error message is : Define the Characteristics of the validity table for non-cumulatives.
    Even here I am attaching the error message help also.
    Message no. R7846
    Diagnosis
    The InfoCube contains non-cumulative values. A validity table is created for these non-cumulative values, in which the time interval is stored, for which the non-cumulative values are valid.
    The validity table automatically contains the "most detailed" of the selected time characteristics (if such a one does not exist, it must be defined by the user, meaning transfered into the InfoCube).
    Besides the most detailed time characteristic, additional characteristics for the InfoCube can be included in the validity table:
    Examples of such characteristics are:
    •     A "plan/actual" indicator, if differing time references exist for plan and actual values (actual values for the current fiscal year, plan values already for the next fiscal year),
    •     the characteristic "plant", if the non-cumulative values are reported per plant, and it can occur that a plant already exists for plant A for a particular time period, but not yet for plant B.
    Procedure
    Define all additional characteristics that should be contained in the validity table by selecting the characteristics.
    In the example above, the characteristics "plan/actual" and  "plant" must be selected.
    The system automatically generates the validity table according to the definition made. This table is automatically updated when data is loaded.
    Please take as a high priority.
    Thanks & Regards,
    Vanarasi Venkat.

    Hi Venkat,
    If you want to include 0IC_C03 cube in your multi provider the you must make sure that the time characterestics ( 0CALDAY, 0CALMONTH ....) are present in all of the other info providers which you are including in the MP. The Time char to choose depends upon the Inventory cube in which you have mentioned during the definition. As you are using the standard cube 0IC_C03 it has the time char as 0CALDAY. Try to include this in all the other info providers and dont include more tha one Non-cumulative in the MP.
    Try this and see if it helps....

  • Method 'publishCatalog' does not match any of the valid signatures for mess

    When I run my client, I get "Method 'publishCatalog' does not match any of the valid signatures for message-style service methods" I know that it means that my web service method should conform to one of those 4 methods (http://ws.apache.org/axis/java/user-guide.html#ServiceStylesRPCDocumentWrappedAndMessage), and I made it conform, yet I still get that error.
    Here's my Service and Client code:
    import org.w3c.dom.Element;
    import org.apache.axis.client.Service;
    import org.apache.axis.client.Call;
    import org.apache.axis.message.SOAPBodyElement;
    import org.apache.axis.utils.XMLUtils;
    import java.io.File;
    import java.io.FileInputStream;
    import java.net.URL;
    import java.util.Vector;
    public class CatalogPublisherServiceClient {
         public static void main(String[] args) throws Exception{
              String endpointURL="http://localhost:8080/axis/services/CatalogPublisherService";
              org.apache.axis.client.Service service = new Service();
              Call call = (Call)service.createCall();
              call.setTargetEndpointAddress(new URL(endpointURL));
              SOAPBodyElement[] reqSOAPBodyElements = new SOAPBodyElement[1];
              File catalogFile = new File("catalog.xml");
              FileInputStream fis = new FileInputStream(catalogFile);
              reqSOAPBodyElements[0] = new SOAPBodyElement(XMLUtils.newDocument(fis).getDocumentElement());
              SOAPBodyElement[] resSOAPBodyElements = (SOAPBodyElement[]) call.invoke(reqSOAPBodyElements);
              SOAPBodyElement resSOAPBodyElement = null;
              for(int i=0; i<resSOAPBodyElements.length; i++){
                   resSOAPBodyElement = (SOAPBodyElement)resSOAPBodyElements;
                   System.out.println(XMLUtils.ElementToString(resSOAPBodyElement.getAsDOM()));
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import org.w3c.dom.Text;
    import java.util.Vector;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    import org.apache.axis.MessageContext;
    import org.apache.axis.utils.XMLUtils;
    import org.apache.axis.message.SOAPBodyElement;
    public class CatalogPublisherService {
         public SOAPBodyElement[] publishCatalog (SOAPBodyElement[] soapBodyElements) throws Exception {
              Element soapBody = (Element)soapBodyElements[0];
              NodeList productList = soapBody.getElementsByTagName ("PRODUCT");
         int productCount = productList.getLength();
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setNamespaceAware(true);
         DocumentBuilder builder = factory.newDocumentBuilder();
         Document responseDoc = builder.newDocument();
         Element resRoot = responseDoc.createElementNS("http://www.axis03.ws", "CATALOGUPDATE");
         resRoot.setPrefix("CU");
         Element itemCount = responseDoc.createElement("ITEMCOUNT");
         Text itemCountText = responseDoc.createTextNode (String.valueOf(productCount));
         Element dateReceived = responseDoc.createElement("DATERECEIVED");
         SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
         String date = sdf.format(new Date());
         Text dateReceivedText = responseDoc.createTextNode(date);
         //Append the child elements appropriately
         resRoot.appendChild(itemCount);
         itemCount.appendChild(itemCountText);
         resRoot.appendChild(dateReceived);
         dateReceived.appendChild(dateReceivedText);
         SOAPMessage message=null;
         MessageFactory msgFactory = MessageFactory.newInstance();
         message = msgFactory.createMessage();
         SOAPBodyElement[] result = new SOAPBodyElement[1];
         result[0] = new SOAPBodyElement(resRoot);
         return(result);

    That's a really helpful answer and not smug at all, thanks Carey.
    I just downloaded a DVD image from my university's MSDN Academic Alliance program, named "Microsoft
    Windows 7 with Service Pack 1 Debug/Checked Build 64-bit (English)", which I wanted to use to install over an existing 32-bit version. I thought the install screen was giving this weird unskippable error described in the OP before I even entered
    a key because the 32-bit key I had used on the HDD was somehow interpreted to be used in an upgrade, but no. Even after I wiped the hard drive, this error persisted.
    Guess I'll go Google some more on how to install my legit copy of Windows, because this self-serving shit sure isn't helping.
    edit: IF YOU GOOGLED THIS AND ARE STILL LOOKING FOR YOUR ANSWER, CHECK HERE:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_install/the-product-key-entered-does-not-match-any-of-the/47e6f575-5792-404b-9b7f-2065bdb91011

  • Error (Data mining): The specified mining structure does not contain a valid model for the current task.

    I'm trying to run the Cross validation report on a mining structure that contains just Microsoft Association Rules mining model. In Target Attribute, I've tried:
    Actual(Service Description).SE value
    Actual([Service Description]).[SE value]
    Actual(Service Description)
    Actual([Service Description])
    just because i don't know what is the exact correct format, but none of them worked, and I always get the following error:
    Error (Data mining): The specified mining structure does not contain a valid model for the current task.
    the following is my mining model structure

    Association rules does not allow for cross-validation
    Mark Tabladillo PhD (MVP, SAS Expert; MCT, MCITP, MCAD .NET) http://www.marktab.net

  • Hello to you in the company Apple. I am having a problem in the Apple Store ID does not allow me to work on the Apple Store I hope that you will help. You have sent you yesterday and today I want to call the phone number for Mei you and explain to you why

    Hello to you in the company Apple. I am having a problem in the Apple Store ID does not allow me to work on the Apple Store I hope that you will help. You have sent you yesterday and today I want to call the phone number for Mei you and explain to you why with many thanks

    Sorry, but you can't reach Apple here. This is a user to user forum and Apple does not follow these discussions.
    Try this link to contact Apple directly:
    Apple - Support - iPhone - Contact Support
    Did you already have a look at this page?
    App Store Frequently Asked Questions (FAQ)

  • ABAP program has to pick up the valid pricelist for the customer

    Hi all!
    does anyone know how to pick up valid pricelist for the customer?
    I mean I need to take the valid pricelist for customer... I have this information:
    <b>KNA1-KUNNR</b>      Customer Number 1
    <b>T189-PLTYP</b>      Price list type
    <b>MARA-MATNR</b>      Material nr
    <b>BSEG-BELNR</b>      Invoice nr
    <b>KONH-KNUMH</b>      Number of suplier
    and now I need to take pricelist in order to use this pricelist for preparing invoice to customer...
    As I know rates for materials are stored in KONP... but how to connect this yable with pricelist...?
    Award points are waiting for you!
    BR, M.

    Hi Seshu!
    maybe you mean A006? Because A006 contains field PLTYP while A004 and A005 does not. But anyway thanks for your input, it is very usefull.
    BR, M.

  • HT4007 The installed graphics card does not meet the minimum requirements for Aperture.

    The installed graphics card does not meet the minimum requirements for Aperture.  I have not used Aperture in a while and just got this error message.  I tried applying OS updates and reinstalling Aperture and still get the same message.  Does anybody have a solution or work around.

    Are you using a non-standard Graphics Cards?  Then this may be the reason.
    You may also get this error message, if you accidentally booted into "Safe Boot Mode". Then certain extensions of the Graphics card will be disabled and Aperture cannot be launched.
    Reboot and make sure that you this time will boot into regular boot mode.
    See: Mac OS X: What is Safe Boot, Safe Mode?
    If you are indeed running the system in Safe Mode, the question is, what made this happen? Do you use a wireless mouse and keyboard? There is a strange bug that makes Mac OS X boot into Safe mode, if you turn the wireless devices on, while the system is booting. Make sure they are active, before you boot.
    But if you did not boot into Safe Mode, you could try to boot into this mode to reset the graphics card and then boot again into regular mode.
    Merry Christmas!
    Léonie

  • Hi  I'm try to set up a new Epson printer SX 445 to my router/network but each time I run the set up wizard it fails to complete saying Security Key/Password Check fail.  *entered security key/password does not match the one set for for router.  I know th

    Hi
    On my macbook pro
    I'm try to set up a new Epson printer SX 445 to my router/network but each time I run the set up wizard it fails to complete saying Security Key/Password Check fail.
    *entered security key/password does not match the one set for for router.
    I know that the password is correct and have rechecked this by changing it a few times
    and I still get the same result.
    My network internet service provider is not interested and says to call Epson.
    Anybody have any clues how I can resolve this?
    Regards

    I personally suggest the new Drobo FS. Since it has an iTunes server built in and you can use any size sata hard drive in it it is better and a NAS that has to use the same size drives.

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • My icloud account on my new iphone does not match the user ID for itunes as it is an old apple ID. There is no password for this ID so I cant change it and it wont let me change the apple ID. Any help?

    my icloud account on my new iphone does not match the user ID for itunes as it is an old apple ID. There is no password for this ID so I cant change it and it wont let me change the apple ID. Any help?

    To change to iCloud ID on your phone you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID then sign in with the new ID.  If you don't know the password for the old ID, and if the old ID is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I have changed my icloud email in my iphone but in macbook still using old email. I tried to delete the old email in macbook but it requires password and it does not accept the old password for the old email anymore. How do I remove this old email?

    I have changed my icloud email in my iphone but in macbook still using old email. I tried to delete the old email in macbook but it requires password and it does not accept the old password for the old email anymore. How do I remove this old email?

    Hello farahani hairon nizar,
    If your Apple ID was changed from your old account, you may have to change it back to your old account to be able to sign out and then change it back after that is done. Take a look at the article below for more information. 
    If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/en-us/HT203828
    Regards,
    -Norm G.  

  • TS1702 The Calendar app that came on my i4S Phone does not sync the correct time for items posted on my Yahoo Calendar.  Actually, they post exactly 4 hours earlier than the correct time on my Yahoo Calendar.  Does anyone have a "fix" to correct the "time

    The Calendar app that came on my i4S Phone does not sync the correct time for items posted on my Yahoo Calendar. Actually, items post exactly 4 hours earlier than the correct time on my Yahoo Calendar.   My i4S is in the correct New York time zone.  Help?

    I posted this question a while ago and didn't receive any responses but there are a lot of people who have viewed it and 10 have said they have the same question so I thought I would update you that I added my nanny to my exchange server account (created an email for her) and I send all invites to that email address and they work.  So sending invites from an exchange server account to a non-exchange server account apparently is a bug so to solve it, get on an exchange server I guess.

Maybe you are looking for

  • How to change the alpha of a graphic symbol in flash depending on score

    i'm making a game and i don't know what script to use to change the alpha color of the graphic symbol i used. the game is a shooting game, ex: target points is 50, if the score is 25 the alpha color should be at 50%, if  score is 50 alpha is at a 100

  • Import photos from a different Lightroom catalog

    This question was posted in response to the following article: http://help.adobe.com/en_US/Lightroom/3.0/Using/WS9616DD60-0C3A-484b-8413-053347F21456.htm l

  • Satellite C660d-A2k - How to increase display backlight using battery mode

    I bought a new laptop, installed all the drivers and it works. How to turn on the backlight? It only works when I charge the laptop. turn off when it goes off. If add the screen brightness to maximum and turn charging the screen becomes even brighter

  • How to add effects to Photo Booth?

    Last night I was playing around in Quartz Composer and figured out, that you can use the iSight camera as an image input. I added some effects and my composition would make a nice video chat effect in Photo Booth. But how can I add my .qtz movie to P

  • [Jena] Debugging addInBulk()

    Hello, I am evaluating Oracle 11g with the Jena Adaptor 2.0. Currently I am trying to load customer records from one large file in N-TRIPLE format using addInBulk(). I did this successfully with a file with 100 sample records, and now I am trying it