Weblogic700 sp4 custom realm for SAM authentication

we have an applicaiton running on WL7.0 sp4 which will be protected by sun access manager 7.1, but in the domain config we need to create a realm that authentication provider will be SAMAuthentication , I want to know whether we need to create a custom realm or we can create iplanet realm.

Well, once again, I'm going to have to provide my own answer.
After much waiting and then deciding to invest much time researching documentation and tracking down information to assist in my solution, I have manage to find the golden egg for my own recipe of a solution.
In addition to the very helpful info I have found at:
http://developers.sun.com/prodtech/appserver/reference/techart/as8_authentication/index.html
I have mange to get my custom realm to work with the additional configuration of my sun-application.xml for my ear file. Even though I only wanted to specify my custom realm for my web.xml file, it turns out that in addition to this, I had to also define it in my sun-application.xml file (manually in XML text mode - within Netbeans 5.5) as follows:
<sun-application>
    <realm>mycustrealm</realm>
    <security-role-mapping>
        <role-name>mycust_role</role-name>
        <group-name>mycust_group</group-name>
    </security-role-mapping>
</sun-application>

Similar Messages

  • Custom Realm for SJSAS 9.x using JAAS documentation too vague

    Hello there,
    I am trying to implement a custom realm for a particular web application on my SJSAS 9.x server. So far I have been unsuccessful and receive the following message in my server.log:
    [#|2006-10-20T13:51:56.390-0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=11;_ThreadName=httpWorkerThread-8080-1;javious;|SEC5046: Audit: Authentication refused for [javious].|#]
    The documentation I have been using for reference is at:
    http://docs.sun.com/app/docs/doc/819-3659/6n5s6m58k?a=view#beabs
    However, I have a number of questions.
    First of all, this section referenced by the URL above is identified as "Creating a custom realm". Then the second sentence of this section states "Note that client-side JAAS login modules are not suitable for use with the Application Server". Does this not mean that JAAS login modules are not suitable for use with SJSAS web applications since they are components of the Application Server? Is there a reason for providing information on creating a custom realm for this application server in which it is not suitable for? Why isn't it suitable for the application server? What if I want to implement my own realm for my web application so that I can maintain my application users separately in another application?
    Secondly, this section explains that I can create a custom realm simply by creating a custom JAAS login module and a custom realm class. It then goes on to explain how to construct these classes and what to include in them. Notably, the documentation states the following:
    The authenticateUser() method must end with the following sequence:
    String[] grpList;
    // populate grpList with the set of groups to which
    // _username belongs in this realm, if any
    return commitUserAuthentication(_username, _password,
      _currentRealm, grpList);Having looked at the API for authenticateUser I discovered that it is a void method, however the documentation states to return a value from "commitUserAuthentication(..). Also, my commitUserAuthentication method only excepts a single argument of type String[] representing a list of group names, therefore I am unable to supply the additional arguments as documented. This is confusing.
    Once finished reading the documentation, I am left hanging with hardly a clue as to what to do with these two new classes. Now having implemented a custom login module on Tomcat 5.x in earlier days, I did happen to have some experience to know to edit the security.properties, policy, and login.conf files. So anyhow from here I end up stumbling blindly through configuration of my domain1/login.conf and domain1/server.policy files. I also attempted to add my new realm within the admin console under security/realms and dropped my new jar file (with two classes) into the app server lib directory.
    All in all, this completely fails to work. I have even placed System.out.println statements in all of my implemented methods and none of this actually shows up in my server.log file. Why is this section so vague? Why isn't there a step-by-step example from start to finish of how to implement a simple custom realm in SJSAS9?
    Does anybody have any helpful suggestions?

    Well, once again, I'm going to have to provide my own answer.
    After much waiting and then deciding to invest much time researching documentation and tracking down information to assist in my solution, I have manage to find the golden egg for my own recipe of a solution.
    In addition to the very helpful info I have found at:
    http://developers.sun.com/prodtech/appserver/reference/techart/as8_authentication/index.html
    I have mange to get my custom realm to work with the additional configuration of my sun-application.xml for my ear file. Even though I only wanted to specify my custom realm for my web.xml file, it turns out that in addition to this, I had to also define it in my sun-application.xml file (manually in XML text mode - within Netbeans 5.5) as follows:
    <sun-application>
        <realm>mycustrealm</realm>
        <security-role-mapping>
            <role-name>mycust_role</role-name>
            <group-name>mycust_group</group-name>
        </security-role-mapping>
    </sun-application>

  • Policy Director Custom Realm for Weblogic

    I would like more information on how the Policy Director custom Realm for Weblogic
    works. What all methods are implemented and so on. If anyone could send me the source
    code of the custom Realm that would be of great help.
    Thanks in advance,
    Krish

    Well, once again, I'm going to have to provide my own answer.
    After much waiting and then deciding to invest much time researching documentation and tracking down information to assist in my solution, I have manage to find the golden egg for my own recipe of a solution.
    In addition to the very helpful info I have found at:
    http://developers.sun.com/prodtech/appserver/reference/techart/as8_authentication/index.html
    I have mange to get my custom realm to work with the additional configuration of my sun-application.xml for my ear file. Even though I only wanted to specify my custom realm for my web.xml file, it turns out that in addition to this, I had to also define it in my sun-application.xml file (manually in XML text mode - within Netbeans 5.5) as follows:
    <sun-application>
        <realm>mycustrealm</realm>
        <security-role-mapping>
            <role-name>mycust_role</role-name>
            <group-name>mycust_group</group-name>
        </security-role-mapping>
    </sun-application>

  • Creating a custom realm for tomcat. Help and suggestions please.

    Has anybody ever created a custom realm to authenticate users in tomcat.
    I would like to use form based login with my own realm.
    The form requires 3 fields to log in (hence the custom realm) . I would also like to be able to use the built-in functions like isuserinrole.
    If anybody has experience with this or knows of a place where to get valuable information please let me know.
    Thanks in advance!

    Hi
    Tomcatx.x.x uses the realm sandbox security tecnique
    1)In you'r abcd/web-inf/WEB.xml file
    write the realm config scripts for the required
    jsp/servlet pages[similar will be found in
      Tomcat/webapps/examples/web-inf/web.xml]
    2)In Tomcatx.x.x/conf/tomcat_users.xml
    declare the realm id/pass/roles
    3)If still not able to do then study the web.xml (pdf)
    avaliable at websiter http://www.moreservlets.com

  • auth-method BASIC with custom realm

    I've set up my web.xml with <auth-method>BASIC, and I've defined a custom realm
    for authentication. When I enter a valid userid/password at login, I can trace
    authUserPassword() in my custom realm, and I can see that it is returning an object
    which is a subclass of weblogic.security.acl.User, as it should. However, rather
    than acknowledging a successful login and moving on, the login dialog is redisplayed,
    (minus password). Further attempts to enter the same userid/password don't invoke
    authUserPassword(), presumably since the "failed" login is still cached. What
    am I missing?

    Have a look in the web server log to see under what account the failed
    accesses took place, that will help in identifying the cause.
    "Bill Welch" <[email protected]> wrote in message
    news:3b2a6431$[email protected]..
    >
    I've set up my web.xml with <auth-method>BASIC, and I've defined a customrealm
    for authentication. When I enter a valid userid/password at login, I cantrace
    authUserPassword() in my custom realm, and I can see that it is returningan object
    which is a subclass of weblogic.security.acl.User, as it should. However,rather
    than acknowledging a successful login and moving on, the login dialog isredisplayed,
    (minus password). Further attempts to enter the same userid/passworddon't invoke
    authUserPassword(), presumably since the "failed" login is still cached.What
    am I missing?

  • Errors encountered when trying to use a Custom Realm on BEA Weblogic Platform Domain .....

    Hi,
    We have created a WebLogic Platform Domain. A WebLogic Portal application(Portal
    7.0) and some Web Service apps are running on this domain.
    We have created a Custom Security Realm b'cos of our application requirements
    and now when I startup the Platform Domain, I see lot of errors.
    Some of the errors typically are
    "<Jan 16, 2003 4:07:02 PM EST> <Error> <HTTP> <101256> <The run-as user: wlisystem,
    for the servlet: ApplicationView for the webapp: /WLI_AI_Workshop_Control_Web,
    could not be resolved to a valid user in the system. Please check if the user
    exists.
    javax.security.auth.login.LoginException: Authentication Failed: User wlisystem
    denied in Realm Adapter realm weblogic"
    or
    Unable to deploy EJB: wlai-eventprocessor-ejb.jar from wlai-eventprocessor-ejb.jar:weblogic.ejb20.WLDeploymentException:
    weblogic.ejb20.interfaces.PrincipalNotFoundException: Authentication Failed: User
    wlisystem denied in Realm Adapter realm weblogic
    Do we have to create any predefined user accounts in the Security Store to get
    rid of these errors. I would appreciate if anyone can suggest some tips or workarounds
    for configuring or creating a Custom Security Realm for Web Logic Platform Domain.
    Thanks
    Vikram

    with 7.0 try to create system in your custom realm.. that may help.
    -kiran
    "Vikram" <[email protected]> wrote in message
    news:[email protected]...
    >
    Kiran,
    First time around, the Custom realm was not authenticating the user. I gotthe
    code to authenticate the user successfully. Now the WebLogic serverwouldn't even
    start. It would give me an error message which says "User System is notauthorized
    to boot Weblogic Server". For your reference, I am attaching the Log file.My
    custom realm classes output some debugging statements in the log file.From the
    log file u will see that the users are getting authenticated successfully.
    Please let me know if you have a custom realm working for you. I might bemissing
    something.
    Appreciate your help.
    Thanks
    Vikram
    "kirann" <[email protected]> wrote:
    does your realm able to authenticate user "wlisystem".
    thanks
    kiran
    "Vikram Datla" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    We have created a WebLogic Platform Domain. A WebLogic Portalapplication(Portal
    7.0) and some Web Service apps are running on this domain.
    We have created a Custom Security Realm b'cos of our applicationrequirements
    and now when I startup the Platform Domain, I see lot of errors.
    Some of the errors typically are
    "<Jan 16, 2003 4:07:02 PM EST> <Error> <HTTP> <101256> <The run-asuser:
    wlisystem,
    for the servlet: ApplicationView for the webapp:/WLI_AI_Workshop_Control_Web,
    could not be resolved to a valid user in the system. Please check ifthe
    user
    exists.
    javax.security.auth.login.LoginException: Authentication Failed: Userwlisystem
    denied in Realm Adapter realm weblogic"
    or
    Unable to deploy EJB: wlai-eventprocessor-ejb.jar fromwlai-eventprocessor-ejb.jar:weblogic.ejb20.WLDeploymentException:
    weblogic.ejb20.interfaces.PrincipalNotFoundException: AuthenticationFailed: User
    wlisystem denied in Realm Adapter realm weblogic
    Do we have to create any predefined user accounts in the Security Storeto
    get
    rid of these errors. I would appreciate if anyone can suggest sometips or
    workarounds
    for configuring or creating a Custom Security Realm for Web Logic
    Platform
    Domain.
    Thanks
    Vikram

  • Using fileReamd + custom realm w/ WLS6

    Hi,
    I would like to write a custom realm for WLS6.0, but I would like to
    delegate to the fileRealm for WebLogic accounts, such as 'system'. Can
    anyone suggest a straightforward way to accomplish this?
    Thanks,
    Dhiren
    Dhiren Patel -- Sr. Web Architect -- Align Technology, Inc.

    Duh. Momentary lapse of reason, please disregard.
    Dhiren
    Dhiren Patel wrote:
    Hi,
    I would like to write a custom realm for WLS6.0, but I would like to
    delegate to the fileRealm for WebLogic accounts, such as 'system'. Can
    anyone suggest a straightforward way to accomplish this?
    Thanks,
    Dhiren
    Dhiren Patel -- Sr. Web Architect -- Align Technology, Inc.--
    Dhiren Patel -- Sr. Web Architect -- Align Technology, Inc.

  • Reg..selling price for same product by sea and air

    Hi
    i have a basic question pl explain me
    my client selling the product to customer two ways by sea and air.if they sell the product by sea that is one cost(say Rs 12).If they sell by sea that's is one cost (say Rs 10),for same customer, how we define in SAP.
    Are we create two customer code for same customer or any other setting is there?
    Thanks&Regards
    Selva

    Hi Selva,
          This is can be configure easily,by selecting field in you condition table (V/03),here you need to select your org elements (Ex: sales org,Disb channel,Customer ) and also shipping type (VSART), and maintain the access sequence and condition type.In VK11 maintain condition record for that and finally you need to specify the shipping type in your sales order shipping tab (Air,Sea) according to that the price will pick form record.
             You may not find VSART (Shipping type) in standard field catalog it should be add from Conditions: Allowed fields,once you add it will come to filed catalog.
    Thanks
    Ram

  • Client certificate authentication with custom authorization for J2EE roles?

    We have a Java application deployed on Sun Java Web Server 7.0u2 where we would like to secure it with client certificates, and a custom mapping of subject DNs onto J2EE roles (e.g., "visitor", "registered-user", "admin"). If we our web.xml includes:
    <login-config>
        <auth-method>CLIENT-CERT</auth-method>
        <realm-name>certificate</realm-name>
    <login-config>that will enforce that only users with valid client certs can access our app, but I don't see any hook for mapping different roles. Is there one? Can anyone point to documentation, or an example?
    On the other hand, if we wanted to create a custom realm, the only documentation I have found is the sample JDBCRealm, which includes extending IASPasswordLoginModule. In our case, we wouldn't want to prompt for a password, we would want to examine the client certificate, so we would want to extend some base class higher up the hierarchy. I'm not sure whether I can provide any class that implements javax.security.auth.spi.LoginModule, or whether the WebServer requires it to implement or extend something more specific. It would be ideal if there were an IASCertificateLoginModule that handled the certificate authentication, and allowed me to access the subject DN info from the certificate (e.g., thru a javax.security.auth.Subject) and cache group info to support a specialized IASRealm::getGroupNames(string user) method for authorization. In a case like that, I'm not sure whether the web.xml should be:
    <login-config>
        <auth-method>CLIENT-CERT</auth-method>
        <realm-name>MyRealm</realm-name>
    <login-config>or:
    <login-config>
        <auth-method>MyRealm</auth-method>
    <login-config>Anybody done anything like this before?
    --Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    We have JDBCRealm.java and JDBCLoginModule.java in <ws-install-dir>/samples/java/webapps/security/jdbcrealm/src/samples/security/jdbcrealm. I think we need to tweak it to suite our needs :
    $cat JDBCRealm.java
    * JDBCRealm for supporting RDBMS authentication.
    * <P>This login module provides a sample implementation of a custom realm.
    * You may use this sample as a template for creating alternate custom
    * authentication realm implementations to suit your applications needs.
    * <P>In order to plug in a realm into the server you need to
    * implement both a login module (see JDBCLoginModule for an example)
    * which performs the authentication and a realm (as shown by this
    * class) which is used to manage other realm operations.
    * <P>A custom realm should implement the following methods:
    * <ul>
    *  <li>init(props)
    *  <li>getAuthType()
    *  <li>getGroupNames(username)
    * </ul>
    * <P>IASRealm and other classes and fields referenced in the sample
    * code should be treated as opaque undocumented interfaces.
    final public class JDBCRealm extends IASRealm
        protected void init(Properties props)
            throws BadRealmException, NoSuchRealmException
        public java.util.Enumeration getGroupNames (String username)
            throws InvalidOperationException, NoSuchUserException
        public void setGroupNames(String username, String[] groups)
    }and
    $cat JDBCLoginModule.java
    * JDBCRealm login module.
    * <P>This login module provides a sample implementation of a custom realm.
    * You may use this sample as a template for creating alternate custom
    * authentication realm implementations to suit your applications needs.
    * <P>In order to plug in a realm into the server you need to implement
    * both a login module (as shown by this class) which performs the
    * authentication and a realm (see JDBCRealm for an example) which is used
    * to manage other realm operations.
    * <P>The PasswordLoginModule class is a JAAS LoginModule and must be
    * extended by this class. PasswordLoginModule provides internal
    * implementations for all the LoginModule methods (such as login(),
    * commit()). This class should not override these methods.
    * <P>This class is only required to implement the authenticate() method as
    * shown below. The following rules need to be followed in the implementation
    * of this method:
    * <ul>
    *  <li>Your code should obtain the user and password to authenticate from
    *       _username and _password fields, respectively.
    *  <li>The authenticate method must finish with this call:
    *      return commitAuthentication(_username, _password, _currentRealm,
    *      grpList);
    *  <li>The grpList parameter is a String[] which can optionally be
    *      populated to contain the list of groups this user belongs to
    * </ul>
    * <P>The PasswordLoginModule, AuthenticationStatus and other classes and
    * fields referenced in the sample code should be treated as opaque
    * undocumented interfaces.
    * <P>Sample setting in server.xml for JDBCLoginModule
    * <pre>
    *    <auth-realm name="jdbc" classname="samples.security.jdbcrealm.JDBCRealm">
    *      <property name="dbdrivername" value="com.pointbase.jdbc.jdbcUniversalDriver"/>
    *       <property name="jaas-context"  value="jdbcRealm"/>
    *    </auth-realm>
    * </pre>
    public class JDBCLoginModule extends PasswordLoginModule
        protected AuthenticationStatus authenticate()
            throws LoginException
        private String[] authenticate(String username,String passwd)
        private Connection getConnection() throws SQLException
    }One more article [http://developers.sun.com/appserver/reference/techart/as8_authentication/]
    You can try to extend "com/iplanet/ias/security/auth/realm/certificate/CertificateRealm.java"
    [http://fisheye5.cenqua.com/browse/glassfish/appserv-core/src/java/com/sun/enterprise/security/auth/realm/certificate/CertificateRealm.java?r=SJSAS_9_0]
    $cat CertificateRealm.java
    package com.iplanet.ias.security.auth.realm.certificate;
    * Realm wrapper for supporting certificate authentication.
    * <P>The certificate realm provides the security-service functionality
    * needed to process a client-cert authentication. Since the SSL processing,
    * and client certificate verification is done by NSS, no authentication
    * is actually done by this realm. It only serves the purpose of being
    * registered as the certificate handler realm and to service group
    * membership requests during web container role checks.
    * <P>There is no JAAS LoginModule corresponding to the certificate
    * realm. The purpose of a JAAS LoginModule is to implement the actual
    * authentication processing, which for the case of this certificate
    * realm is already done by the time execution gets to Java.
    * <P>The certificate realm needs the following properties in its
    * configuration: None.
    * <P>The following optional attributes can also be specified:
    * <ul>
    *   <li>assign-groups - A comma-separated list of group names which
    *       will be assigned to all users who present a cryptographically
    *       valid certificate. Since groups are otherwise not supported
    *       by the cert realm, this allows grouping cert users
    *       for convenience.
    * </ul>
    public class CertificateRealm extends IASRealm
       protected void init(Properties props)
         * Returns the name of all the groups that this user belongs to.
         * @param username Name of the user in this realm whose group listing
         *     is needed.
         * @return Enumeration of group names (strings).
         * @exception InvalidOperationException thrown if the realm does not
         *     support this operation - e.g. Certificate realm does not support
         *     this operation.
        public Enumeration getGroupNames(String username)
            throws NoSuchUserException, InvalidOperationException
         * Complete authentication of certificate user.
         * <P>As noted, the certificate realm does not do the actual
         * authentication (signature and cert chain validation) for
         * the user certificate, this is done earlier in NSS. This default
         * implementation does nothing. The call has been preserved from S1AS
         * as a placeholder for potential subclasses which may take some
         * action.
         * @param certs The array of certificates provided in the request.
        public void authenticate(X509Certificate certs[])
            throws LoginException
            // Set up SecurityContext, but that is not applicable to S1WS..
    }Edited by: mv on Apr 24, 2009 7:04 AM

  • LDAP realm for authentication and ACL in Database

    We are thinking of using LDAP realm for authentication and we want to use ACL from a Database. But the documentation says: "WebLogic Server defers to the LDAP realm for authentication, but not for authorization. Authorization is accomplished with access control lists (ACLs), which are defined in the weblogic.properties file"
    Can we use LDAP realm for authentication and manage our ACL from a Database? or do we have to use the weblogic.properties file? Do the weblogic security API help in the above scenario? Thanks Ram

    Unfortunately, there is no easy way to do this in wls 6.0.
    The only way to handle it is to write your own custom realm
    that uses ldap for users and groups and a database for acls -
    probably not a viable alternative.
    -Tom
    "kevin doherty" <[email protected]> wrote:
    >
    Jeffrey Hirsch <[email protected]> wrote:
    You should be able to use the DelegatedRealm interface to utilize the authentication methods from LDAP and the authorization methods from RDBMSRealm...
    I'm trying to do this too, but we are using WL6 and I see that the DelegatedRealm interface has been deprecated in this version. I'd greatly appreciate more information on doing this in WL6.
    Thanks!
    -kd

  • Oracle Access manager 10.1.4 (coreid) multiple authentication for same URL

    I am evaluating oracle access manager hence new to this product.
    I have a requirement where i have a /wps URL.
    Users coming externally go through reverse proxy server to the final IIS web server. Internal user access IIS directly.
    /wps should be protected by reverse proxy using forms authentication
    while IIS server also protect /wps but should use basic authentication.
    Looks like policy is shared by all webgates so i can define one authentication method for /wps.
    Comparing this with CA Siteminder each agent have their own URLs to protect and so two agents can protect the same URL but with different authentication method. The single signon works as the protection level is same.

    I have not done what you are speaking of; so I would assume that Boland is correct. One thing that you may want to consider is making the external users log into another resource before they hit the /wps. If the other resource is forms protected and at the same authentication level (number on auth scheme), then they can hit the external login resource, get their OBSSO cookie, then slide right thru the basic authentication request of the current policy domain.
    Another idea would be to get a little more granular with your current policy domain. Have a file that's protected with forms auth in your policy domain that the external users authenticate to. Remember, this could be as simple as a dummy page that just does an HTTP redirect.
    Good luck.
    --Aaron                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to arrive same day two difference prices for same material/customer

    how to arrive same day two difference prices for same material/customer.pls give the solution
    thanks in advance
    Aravinthan.K

    Hi
    This is possible through some careful customization
    In your condition table you need to bring the field PRICE LIST
    That is customer/ Material/ Price list
    That is customer  ABCD / Material X / Price list 01---Price is Rs 10
    That is customer  ABCD / Material X / Price list 02---Price is Rs 20
    The condition records to be maintained like this
    So same material and same customer with price list 01 price is Rs 10 and with  price list 02 price is Rs 20
    Now in sales order you will find  price list field in item details SALES B tab
    Through incompletion log you can make this field as an mandatory field
    Now in sales order same material and same customer according to the price lists different price is picked
    In img-sd-basic functions-Maintain Price-Relevant Master Data Fields--here you can define different price lists
    Regards
    Raja

  • Custom Page for mixed mode authentication

    Hi,
    Need help in developing a custom page for mixed mode authentication which also should have a provision for the end user to reset his password and also generate a password in case he has forgotten his password.
    Please help.
    Sathiish Reddy

    Hi,
    From your description, my understanding is that you want to customize a login page with password reset function.
    You could create a custom login page by referring this article:
    SharePoint 2013 Custom Login Page.
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/69b21a77-8a0c-444a-94ac-880326a2e1bc/sharepoint-2013-custom-login-page?forum=sharepointdevelopment
    Here is a solution that includes web parts for registering users, changing passwords and password recovery, please customize your page by referring to the code in the solution:
    https://sharepoint2013fba.codeplex.com/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • One custom security realm for many wl servers?

    Is it possible to use one custom security realm for many weblogic servers...ie
    one login for all application on different weblogic server.

    Is it possible to use one custom security realm for many weblogic servers...ie
    one login for all application on different weblogic server.

  • Combining invoice printing in VF04 for same customer

    I have been having issues with combining the invoices and printing as one when the payer are the same. What actually is happening is: For SOrg01 customer SD transactions it checks the Invoice Split field which is currently set to "Z3 = Customer PO" for customer 1234567.  I checked the PO value for the sales orders of invoice 90109876 and 90109886 and they all have PO #A010-014, hence these two invoice should have been one.  But right the two invoices are split and printing separately instead it should have printed onto one invoice itself. I have checked the invoice splitting criteria as well as it says that when the splitting critera is set to Z3 which it is for that payer on both the invoices then only split else combine, but its not happening. I have checked all the settings on that customer but could not locate as to why this is happening.
    Could anyone please suggest me as where else the problem can possibly be or located , becuase as such it should have combined together. What other tabs on teh customer data can impact this?
    Thanks in advance.

    Yes, indeed there is a logic in VFOM transaction which does the splitting based on several things. The PO numbers field I ahve checked for each and every or SO on the billing documents of both the documenst and all are the same and as for the payer , they both have the same payer for teh same sales org. and that is SO01.
    CASE vbrk-vkorg.
         WHEN 'SO02'.
    *     Look in Customer Sales Table for Invoicing Indicator
           SELECT SINGLE * INTO zwa_knvv FROM knvv
                  WHERE vkorg EQ vbrk-vkorg AND kunnr EQ kuagv-kunnr.
           IF sy-subrc NE 0.
             zuk-vgbel = vbrp-vgbel.
           ELSE.
             CASE zwa_knvv-kvgr2.
               WHEN 'ZIS'.        " Single Location
                 zuk-vgbel = vbrp-vgbel.
               WHEN 'ZIM'.        " Multiple Location
                 CLEAR: zuk-vgbel, vbrk-hityp_pr.
             ENDCASE.
           ENDIF.
       ENDCASE.
    *  Determine The Orders Based On Soldto Attributes
       SELECT SINGLE * INTO zwa_kna1 FROM kna1
             WHERE kunnr EQ kuagv-kunnr.
       CASE zwa_kna1-katr1.
         WHEN 'Z1'.                       " Ship-To
           zuk-kunnr_sh = kuwev-kunnr.
           CLEAR: zuk-bstkd, zuk-werks, zuk-vgbel, zuk-ihrez.
         WHEN 'Z3'.                       " Purchase Order
           zuk-bstkd = vbkd-bstkd.
           CLEAR: zuk-kunnr_sh, zuk-werks, zuk-vgbel, zuk-ihrez.
         WHEN 'Z4'.                       " AFE
           zuk-ihrez = vbkd-ihrez.
           CLEAR: zuk-kunnr_sh, zuk-werks, zuk-vgbel, zuk-bstkd.
         WHEN 'Z5'.                       " Plant
           zuk-werks = vbrp-werks.
           CLEAR: zuk-kunnr_sh, zuk-ihrez, zuk-vgbel, zuk-bstkd.
         WHEN 'Z6'.                       " Sales Order
           zuk-vgbel = vbrp-aubel.
           CLEAR: zuk-kunnr_sh, zuk-ihrez, zuk-werks, zuk-bstkd.

Maybe you are looking for

  • How do i unlock my ipod password

    My daughter locked her Ipod touch. How do I unlock it? She forgot her password.......

  • Please help me... Its urgent

    Hi guys I am writing a program which will download the HTML source code of pages. Before downloading, I am checking whether that URL exists or not. But my program seems to hang when I use the function getPage of WebGrabber many times. My code is as f

  • Where to download VC?

    Hi, I can`t find VC download. Going thru "Downloads SAP NetWeaver™ Visual Composer 6.0 (Service Marketplace Account Required)" I get message No Data Available. Under service.sap.com/swdc > (anything) > Entry by application group > SAP NetWeaver is on

  • Transfering photos from iphoto library onto iphone

    Hello everyone! I just got my iphone 4 yesterday. I'm trying to transfer my photos from my iphoto library on my ibook G4 onto my iphone. Does anyone know a quick and painless method? Thanks in advance, Loyalmaccustomer

  • Firefox crash every couples of minute or so

    My firefox dont stop to crash for the past few day, I'm pretty sure that is the Flash player that make it crash. But I already uninstall the flash player and that did not stop to make it crash. IT disable now, but i need flash. Can you help me? <pre>