Problem in delimiting the Relationship

Hi,
When we try to create a create a new relationship using PP01 for a Org. Unit, it is not delimiting the existing relationship. It just creates another relationship.  But for some of SAP Standard relationships when i try to create the new relationship it automatically delimits the existing relationship. Whats wrong with my Z relationship. Why it is not delimiting the existing relationship.
Appreciate your help!
Thanks,
-Suresh Revuru

hI,
Double click on your relationship category in transaction BUBA and assign proper time constraint.
Thanks and warm regards,
Smita.

Similar Messages

  • Inbound IDoc(HRMD_A07) problem in delimiting the infotype records

    Hi All,
    I am using Inbound IDoc (HRMD_A07) approach to update infotypes. I found that I am able to create a record in an infotype, but there is a problem in delimiting the infotype.
    Please help me out in case I am missing something.
    Thanks,
    ABAP_DEV

    Hi,
    Did you get this resolved. Even i'm facing this issue. Is it a config or do we have to do something in the IDOC.
    Thanks,
    Jilly

  • Design problem about repreatable entity relationships

    Hi all!
    As I design the data model (let's name it the ERD, no matter the name is quite unfashonable), I have found almost identical structures of entities and relationships between them, but playing completely different roles in the semantics of the model.
    It obviously makes no sense to implement all such entities separately as the Entity EJB as they are to share most of the fields and methods, but I found no "handsome" solution when trying to implement them as sets of classes and interfaces forming "the abstract EJBs", and then by putting the conrete classes and complementary interfaces at the final packages to create "concrete EJBs". The problem was about types returned by the createXXX and findXXX methods, because they had to return the "abstract" EJBs but the EJB programming contract forces them to return the "concrete" ones, that are unknown to me when defining the "abstract ones". So it cancels the sense for creating them this way. It was also unclear how to operate the relationships in such model.
    The idea was:
    1. I define BaseSthLocalHome extends EJBLocalHome
    2. I define BaseSthLocal extends EJBLocalObject
    3. I define BaseSthBean implements EntityBean
    ... this way I have the "abstract bean", and then I can create many:
    SthOneLocalHome extends BaseSthLocalHome,
    SthOneLocal extends BaseSthLocal,
    SthOneBean extends BaseSthBean ... to have the first "concrete" EJB,
    SthTwoLocalHome extends BaseSthLocalHome... and so on to create the second, third and all the next "concrete" EJBs.
    Anyway, it did not work fine as I defined createXXX and findXXX methods at the BaseSthLocalHome interface - it made sense, because those methods did not depend on the other entities.
    Has anyone some idea of how to solve the design problem? Currently we are at very beginning of the project, so we have some "case study" time, and I would appreciate any solution: redesign of the data model, extraction of new EJB modules or any use of the objective inheritance.
    Thanks in advance!
    Marcin Gawlik

    Again me - I now it is a bad idea to reply for own messages, but I have just checked a new idea:
    The problem was about re-using the same components in different roles. I tried to do that by creating subclasses of the EJB classes, but it did not work. So I tried to define multiple entity EJBs that have the same class.
    Considering the given example, it would look:
    1. public interface BaseSthLocalHome extends EJBLocalHome
    2. public interface BaseSthLocal extends EJBLocalObject
    3. public abstract class BaseSthBean implements EntityBean
    ... then I created the deployment descriptor that deploys this pack of class and interfaces as three separate CMP Entity Beans:
    1. deploy BaseSthBean as the SthOne CMP entity EJB
    2. deploy BaseSthBean as the SthTwo CMP entity EJB
    3. ... and so one
    The question is: IS THERE ANY CONTRA FOR THIS WAY OF DEPLOYING EJBS? Is there any reason for not to use the same class and its complementary interfaces many times to create many separate enity EJBs working within the same EJB module?
    Thanks in advance!
    Gaw

  • Problem with 1:many relationship between entity beans.

    Hi All!
    I have two tables TMP_GROUP and TMP_EMPLOYEE with following fields:
    TMP_GROUP: ID, CAPTION, COMMENT, STATUS.
    TMP_EMPLOYEE: ID, LOGIN, GROUP_ID.
    For this tables i create two entity beans GROUP and EMPLOYEE respectively.
    The relationship looks like this
    descriptor ejb.xml:
    <ejb-relation>
                <description>description</description>
                <ejb-relation-name>employeesOfGroup</ejb-relation-name>
                <ejb-relationship-role>
                    <ejb-relationship-role-name>com.mypackage.GroupBean</ejb-relationship-role-name>
                    <multiplicity>One</multiplicity>
                    <relationship-role-source>
                        <ejb-name>GroupBean</ejb-name>
                    </relationship-role-source>
                    <cmr-field>
                        <cmr-field-name>employees</cmr-field-name>
                        <cmr-field-type>java.util.Collection</cmr-field-type>
                    </cmr-field>
                </ejb-relationship-role>
                <ejb-relationship-role>
                    <ejb-relationship-role-name>com.mypackage.EmployeeBean</ejb-relationship-role-name>
                    <multiplicity>Many</multiplicity>
                    <relationship-role-source>
                        <ejb-name>EmployeeBean</ejb-name>
                    </relationship-role-source>
                </ejb-relationship-role>
            </ejb-relation>
    descriptor persistent.xml:
    <table-relation>
                   <table-relationship-role
                        key-type="PrimaryKey">
                        <ejb-name>GroupBean</ejb-name>
                        <cmr-field>employees</cmr-field>
                   </table-relationship-role>
                   <table-relationship-role
                        key-type="NoKey">
                        <ejb-name>EmployeeBean</ejb-name>
                        <fk-column>
                             <column-name>GROUP_ID</column-name>
                             <pk-field-name>ejb_pk</pk-field-name>
                        </fk-column>
                   </table-relationship-role>
              </table-relation>
    Now i implement business method:
    public Long addEmployee(String login, long groupId) {
              Long result;
              try {
                   EmployeeLocal employee = employeeHome.create(login);
                   GroupLocal group =
                        groupHome.findByPrimaryKey(new Long(groupId));
                   Collection employees = group.getEmployees();
                   employees.add(employee);
                   result = (Long) employee.getPrimaryKey();
              } catch (CreateException ex) {
                   result = new Long(0);
              } catch (FinderException ex) {
                   result = new Long(0);
              return result;
    When i call this method from web service, the following exception is raised:
    com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception in method com.mypackage.GroupLocalHomeImpl0.findByPrimaryKey(java.lang.Object).
    P.S.
    1) I have transaction attribute set to "Required" for all methods of all beans
    2) I have unique index for each table:
    TMP_GROUP_I1: CAPTION
    TMP_EMPLOYEE_I1: LOGIN (however i think GROUP_ID must be added here too)
    3) I tried many:many relationship with this tables and it works fine
    4) I try another implementation of addEmployee method with
    EmployeeLocal employee = employeeHome.create(login, groupId);
    without using GroupLocal cmr-field and GroupLocalHome findByPrimaryKey method, the result is same error.
    Can somebody help me with this problem?
    Thanks in advance.
    Best regards, Abramov Andrey.

    I have posted excerpts from my orion-ejb-jar.xml file in this posting: Problem mapping a 1:M relationship between two entity EJBs w/ a compound PK
    Sorry for the duplicate postings, but I was getting errors on the submission.
    April

  • How to avoid the split problem when uploading the data from csv file

    Dear Friends,
                  I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
    i am using the code as below , please suggest me what i have to do in this regard
          SPLIT wa_raw_csv  AT ',' INTO
                    wa_empdata_csv-status
                     wa_empdata_csv-userid
                     wa_empdata_csv-username
                     wa_empdata_csv-Title
                     wa_empdata_csv-department.
    APPEND wa_empdata_csv TO  itab.
    in the flat file i can see for one of the record for the field Title  as
    Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .
    .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
    "Director,Finance - NAR"   wil not be split into two words.
    Thanks & Records
    Madhuri

    Hi Madhuri,
    Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
    If you are generating the file, use tab instead of comma.
    If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
    Regards,
    Mohaiyuddin

  • OM problem in transporting the request

    Message no. 5W612
    Diagnosis
    The system has transported a relationship to the specified object of an object currently being activated. However, the relationship cannot be activated.
    The problem is usually caused by the related object not being available in the target system.
    System Response
    The object is transported correctly but without the specified relationship.
    Procedure
    Make sure that the related object is available in the target system, or that it is included in the same transport request as the current object, before you repeat the transport.
    If the related object is not required or must not be available in the target system, no further action is required on your part.
    can any one tell me on this

    Hi Sikinder,
    You can try with OM reports like,
    RHINTE00  - transfer organizational Assignment.
    RHINTE10  - prepare Integration.
    RHINTE20 - Create missing Objects
    RHINTE30  - ransfer Org.assignment in batch input folder for infotype 0001
    These reports may help you to find the relationship where you can have so many selection options.
    I think defiitly these will help you.
    Reward me if helps,
    Vasu.

  • There was a problem connecting to the server "my_iMac" whenever I open Mail in Lion.

    Everytime I open my mail program on my new MacBook Pro (running 10.7.5) I get the error "There was a problem connecting to the server "my_iMac (running 10.5.8)" The server may not exist or it is unavailable".  I've read other posts that talk about resetting the sync server but that appears to be for folks who get the message as soon as they boot up their computer.  This problem appears to be specific to Mail.  I was once file sharing between my MacBook and iMac (which royally screwed up permissions on my iMac, a problem that took me a week to figure out) and I thought the MacBook got off without a scratch until I started noticing this problem.  Every Time I Open My Mail Program.  Any tips?  Why is my Mail program continually looking for my old Mac?
    Thanks in advance!
    p.s. never used Time Machine... never even opened it.

    I recently upgraded to Mountain Lion from Lion, and after turning on our old G5 running 10.5.8, the Mountain Lion iMac keeps saying it can't connect to the server (G5) when the G5 is off.  I can't get it to stop.  I can't tell if it's related to Mail or any other specific app for sure.
    I've tried turning the G5 on, connecting to it, and then disconnecting in hopes that the system would realize that the relationship was amicably terminated, but it keeps trying to log on anyway.
    What could be going on?

  • How I can to download sold-to-party and ship-to-party with the relationship

    Hello,
    I want to know how I can to download sold-to-party and ship-to-party through Middleware form R/3 to CRM and kept the relationships just as be defined in R/3
    When I downloaded a sold-to-party or a ship-to-party to CRM, they created in CRM as BPs without the relationships.
    How can I do this?
    Thanks and Kind regards,
    Ohad

    Hi,
    I downloaded "BUPA_REL" object, only the Contact Persons was downloaded,
    But is not relation ship to party with sold to party.
    So it's not solve my problem,
    Please help me.
    Thanks and Best regards,
    Ohad

  • Java Exception:The relationship ID is not an optional parameter

    Hi Experts,
    We are in SRM-MDM Catalog 3.0.
    When we click a item's short description in catalog search result list to open the item detail, the new screen opened with a internal server error. And the error summary is "java.lang.NullPointerException: The relationship ID is not an optional parameter." I have validated the XML mapping, I can not find any fields which were used for the "relationship ID".
    The SAP notefound in a forum is for SRM MDM Catalog 3.0 SP02 but we are using SRM MDM Catalog 3.0 SP09.Can anyone
    please advise.
    Below is error
    500 Internal Server Error
    SAP NetWeaver Application Server 7.00/Java AS 7.00
    Failed to process request. Please contact your system administrator.
    Hide
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    java.lang.NullPointerException: The relationship ID is not an optional parameter. at com.sap.mdm.data.commands.RetrieveRelationshipsCommand.execute(RetrieveRelationshipsCommand.java:91)
    at com.sap.mdm.extension.data.commands.RetrieveRelationshipsExCommand.execute(RetrieveRelationshipsExCommand.java:43)
    at com.sap.srm.mdm.Model.getRelationships(Model.java:3510)
    at com.sap.srm.mdm.Model.updateRecordRelationships(Model.java:3683)
    at com.sap.mdm.srmcat.uiprod.ItemDetails.displayFixedItemDetails(ItemDetails.java:6047)
    ... 34 more
    Regards
    Sunil

    Hi Sunil,
    when we upgrade the MDM system we also need to upgrade the java components .
    Only the Internal Catalogs use the name searches / masks which are stored in the MDM system .
    Please re check the Java Component upgrade . May be a few of the componenets are not upgraded properly .
    Let me know your finidings .
    Regards,
    Vignesh

  • [JPA]   @OneToOne doesn't set the ID of the relationship owner

    Hi,
    I have a problem. If there's a cascaded @OneToOne relationship between two entities and the relationship is of type @PrimaryKeyJoinColumn and I persist the inverse side, the owning side does NOT get a proper ID.
    Here's an example:
    Two tables:
    CUSTOMERS
      (ID number(18) not null,
       NAME varchar2(50))
    CUSTOMER_DATA
      (ID number(18) not null,
       CREDIT_CARD varchar2(50));The ID columns in both tables are primary keys.
    There's a foreign key from CUSTOMER_DATA(ID) to CUSTOMER(ID).
    So, I have two entities:
    @Entity
    @Table(name="CUSTOMERS")
    @SequenceGenerator(name="customerIdSeq", sequenceName="CUSTOMERS_SEQ", allocationSize=1)
    public class Customer {
         @Id
         @Column(name="ID", nullable=false)
         @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="customerIdSeq")
         private Long id;
         @Column(name="NAME")
         private String name;
         @OneToOne(mappedBy="customer", cascade=CascadeType.ALL)
         private CustomerData customerData;
         public Long getId() {
              return id;
         public void setId(long id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public CustomerData getCustomerData() {
              return customerData;
         public void setCustomerData(CustomerData customerData) {
              this.customerData = customerData;
    @Entity
    @Table(name="CUSTOMER_DATA")
    public class CustomerData {
         @Id
         private Long id;
         @OneToOne
         @PrimaryKeyJoinColumn
         private Customer customer;
         @Column(name="CREDIT_CARD")
         private String creditCard;
         public Long getId() {
              return id;
         public void setId(Long id) {
              this.id = id;
         public Customer getCustomer() {
              return customer;
         public void setCustomer(Customer customer) {
              this.customer = customer;
         public String getCreditCard() {
              return creditCard;
         public void setCreditCard(String creditCard) {
              this.creditCard = creditCard;
    }So, now I try to do the following:
         Customer cust = new Customer();
         CustomerData custData = new CustomerData();
         cust.setCustomerData(custData);
         custData.setCustomer(cust);
         cust.setName("OneToOne");
         custData.setCreditCard("1111-1111-1111-1111");
         em.getTransaction().begin();
         em.persist(cust);
         em.getTransaction().commit();And I get an exception:
         java.sql.SQLException: ORA-01400: cannot insert NULL into ("RMS"."CUSTOMER_DATA"."ID")Why does that happen? I set the relationship properly:
         cust.setCustomerData(custData);
         custData.setCustomer(cust);So, it seems logical that CUSTOMER_DATA.ID should automatically be assigned the same value as the one obtained for CUSTOMER.ID.
    What else am I supposed to do?
    Best regards,
    Bisser

    Just tried with the latest TopLink Essentials version (v2.1-b38) from here:
    https://glassfish.dev.java.net/downloads/persistence/JavaPersistence.html
    The same problem is still present.
    It sure looks like a serious deficiency in the JPA spec. Why do I even need to specify a separate @Id basic mapping, if I have specified the @OneToOne and the @PrimaryKeyJoinColumn annotations in the relationship? They should be sufficient for finding out what the ID should be? The ID can be obtained from the inverse entity.

  • Attach marketing attributes to the relationship

    Hi guys,
    I have the following problem and would really apreciate your thoughts on this.
    I want to attach my marketing attribute "invitation" to the relationship, because I have the constellation, that Joe is CP for company A,B and C. When I assign "invitation" to the CP Joe and use the segment Builder, I get Joe three times with the addresses for company A,B,C, but I only want to send the invitation to Joe working for A. So I am thinking that attaching the marketing attribute to the relationship between A and Joe would be a good solution. However, CRM5.0 doesn't offer this. Any idea how it could be done? Or if SAP is planning someting like this for CRM6.0?
    Thanks for your help
    Nadine

    Amit,
    i am also facing same problem while doing upload marketing attributes, it takes too much time to process. Please provide some inputs for this issue, we are loading almost 4 lakh of records..
    Please de me a favour..
    regards,,
    kumar

  • What is the relationship between CGI-Executables and cgi-bin?

    I am trying to get CGIs working locally on my Mac and am having difficulty understanding the relationship between CGI-Executables/ and cgi-bin/.
    I have activated CGI in my httpd.conf file, and have the following perl test script: /Library/WebServer/CGI-Executables/test.cgi file, and have the file permissions set appropriatly
    If I call the script from the actual url: http://127.0.0.1/CGI-Executables/test.cgi, it doesn't work. If I use: http://127.0.0.1/cgi-bin/test.cgi, it works fine.
    Why cgi-bin and not CGI-Executables? What is the relationship between /Library/WebServer/CGI-Executables/ and cgi-bin?
    And how do I get CGIs working in individual users' Sites/ file? Do all CGIs go in the /Library/WebServer/CGI-Executables/ directory, or can each users' Site/ directory have it's own cgi-bin?
    Ti Powerbook G4   Mac OS X (10.4.4)  

    Now I am having trouble getting CGI to work in the user directories. I have a perl script that works for 127.0.0.1/cgi-bin/test.cgi, but not for 127.0.0.1/~joe/cgi-bin/test.cgi.
    My apache error log says:
    [Tue Feb 14 08:14:23 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Users/joe/Sites/cgi-bin/first.cgi
    Permissions for Library/WebServer/CGI-Exectuables/test.cgi and /Users/joe/Sites/cgi-bin/ are 777.
    I think the problem is somewhere in my directory configs. Apache has so many, it's hard to know what's what.
    Here's the first directory directives in httpd.conf:
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    <Directory />
    Options FollowSymLinks
    AllowOverride Options
    </Directory>
    Farther down, there's this, which I added ExecCGI and index.cgi:
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    <Directory /Users/*/Sites>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    DirectoryIndex index.html index.cgi
    <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>
    Then down at the bottom of the file is something I suspect was added automatically when the user account was created:
    Include /private/etc/httpd/users/*.conf
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews Includes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    To further confuse things, there is another file /etc/httpd/user/joe.conf that has additional user-directory directives:
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Is there something in all these directory configurations that is preventing the user from accessing cgi-bin? Can I add directives to an .htaccess file in the user directory.
    Ti Powerbook G4   Mac OS X (10.4.4)  

  • What is the Relationship ID to find employee line manger and his subordinate?

    Dear Experts,
    1.Can you suggest FM - where using particular employee Position ID can we pull out his line manger and subordinate and also provide the relationship code to get the detail of line manager and subordinate.
    2.For eg say employee position ID -30000019 what input i should give in table HRP1001 to get his line manager & subordinate .
    Regards
    Vinodh

    Hi Vinodh,
    You should get that below is the process
    Click on the Details View/Edit and enter the below data
    Note: you need to enter the position number of the Manager who has sub ordinates.
    Output if you click on 16 Entries view.
    If you are question is answered please close the thread by marking as Correct Answer.
    Regards,
    Mohsin.

  • Problems with software the update with Nokia 6233

    Problems with software the update with Nokia 6233
    Hello,
    I have so far some-paints tries my software to update.
    Each time the update procedure begins, sometime stands then on the telephone “test mode”.
    On the computer wars I the reference in the update manager “connection to the telephone broken off” and wants the update to again start.
    If I change my profile attitudes since that for example, then after a telephone restart again deleted.
    What there can I make?
    GreetingsMessage Edited by adisaily on 24-Aug-2007 09:03 AM

    It sounds like your 5800 has the earpiece fault that was common with 5800's made before February.
    You need to take it to a nokia care point for repair under warranty.
    Care points/service centres and repair info:
    UK • Europe • Asia-Pacific • USA •
    Canada • Middle East and Africa
    Elsewhere: Click here, select your country, go to the support section, then select repair.

  • Problem in displaying the TaxRate columns .

    Hi Experts,
                            I am having a problem in displaying the 'TaxRate', in this Query there are some different Taxrate's columns  like-  ' 'Basic Excise Duty BED@10 %',  ' Education ces@2% ' , 'Secondary Education Cess @1%',    etc.   only  4 -5  tax's value should display  at a  time  and rest of  the TaxRate's  columns whose value is NULL  should not display.
    So, I want to display only those TaxRate's  columns whose  value  is not NULL  and If there is  no value for any taxrate's column  in the data, then it should Display only 'Excempt' column.
    This is my query...
    SELECT DISTINCT OSTA.Code , ORPC.DocNum AS 'Debit Note No.', ORPC.CardName AS 'Name', ORPC.CardCode AS 'code', ORPC.NumAtCard AS 'Supplier Ref.'  ,
                          RPC1.Dscription AS 'Description of Goods', ORPC.Address, RPC1.Quantity, RPC1.Price AS 'Rate', RPC1.LineTotal AS 'Amount', ORPC.DocDate,
                              (SELECT DISTINCT TaxRate
                                FROM          RPC4
                                WHERE      (staType = - 90) AND (StaCode = 'BED@10') AND (DocEntry = RPC1.DocEntry)) AS 'Basic Excise Duty BED@10 %',
                             (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_8
                                WHERE      (staType = - 60) AND (DocEntry = RPC1.DocEntry)) AS 'Education Cess @2%',
                             (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_7
                                WHERE      (staType = - 55) AND (DocEntry = RPC1.DocEntry)) AS 'Secondary Education Cess @1%',
                             (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_6
                                WHERE      (staType = 4) AND (StaCode = 'CST2') AND (DocEntry = RPC1.DocEntry)) AS 'Central Sales Tax(CST)',
                             (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_5
                                WHERE      (staType = 1) AND (StaCode = 'VAT4') AND (DocEntry = RPC1.DocEntry)) AS 'Input VAT@5%',
                              (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_4
                                WHERE      (staType = 1) AND (TaxRate = 12.500000) AND (StaCode = 'VAT12.5') AND (DocEntry = RPC1.DocEntry)) AS 'VAT12.5%',
                           (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_3
                                WHERE      (staType = 18) AND (StaCode = 'Add2') AND (DocEntry = RPC1.DocEntry)) AS 'ADD Tax 1%',
                                  (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_2
                                WHERE      (staType = 7) AND (DocEntry = RPC1.DocEntry)) AS 'Excempt'
    FROM         OSTA INNER JOIN
                          RPC4 AS RPC4_1 ON OSTA.Code = RPC4_1.StaCode CROSS JOIN
                          ORPC INNER JOIN
                          RPC1 ON ORPC.DocEntry = RPC1.DocEntry
    WHERE     (OSTA.Code IN ('BED@10','eCess 2%','HeCess 1%','CST')) AND (ORPC.CardCode = 'V00308') AND (ORPC.DocNum = '9220004')
    Kindly help me to solve this problem
    Regards
    Rahul

    Hi rahul,
    Try this:
    SELECT DISTINCT T0.DocNum AS 'Debit Note No.', T0.CardName AS 'Name', T0.CardCode AS 'code', T0.NumAtCard AS 'Supplier Ref.'
         ,T1.Dscription AS 'Description of Goods', T0.Address, T1.Quantity, T1.Price AS 'Rate', T1.LineTotal AS 'Amount', T0.DocDate,
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0)FROM RPC4 WHERE RPC4.StaType = -90 AND RPC4.DocEntry = T0.DocEntry) AS 'Basic Excise Duty BED@10 %',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = -60 AND RPC4.DocEntry = T0.DocEntry) AS 'Education Cess @2%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = -55 AND RPC4.DocEntry = T0.DocEntry) AS 'Secondary Education Cess @1%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 4  AND RPC4.StaCode = 'CST2' AND RPC4.DocEntry = T0.DocEntry) AS 'Central Sales Tax(CST)',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 1  AND RPC4.StaCode = 'VAT4'AND RPC4.DocEntry = T0.DocEntry) AS 'Input VAT@5%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 1 AND RPC4.StaCode = 'VAT12.5'AND RPC4.DocEntry = T0.DocEntry) AS  'VAT12.5%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 18 AND RPC4.StaCode = 'Add2'AND RPC4.DocEntry = T0.DocEntry) AS   'ADD Tax 1%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 7 AND RPC4.DocEntry = T0.DocEntry) AS  'Excempt'
    FROM ORPC T0
         INNER JOIN RPC1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE  (T0.CardCode = 'V00308') AND (T0.DocNum = '9220004')
    FOR BROWSE
    Thanks,
    Neetu

Maybe you are looking for

  • Multiple PR's generating for same material after MRP

    Hi Guru's, As per my business scenario, i am creating project with WBSE, Activities and BOM. By using the reference points, i am transferring the BOM to Project, then executing MRP run. But after MRP run i found that multiple PR's generated for the s

  • HELP How to download music from Musicstore to play on MP3 Player

    I just bought a okley sunglasses with MP3 Player... How can I buy music in a MP3 format on internet... Apparently the only way to buy/download music from internet on a mac it's with the music store but then it won't allow me to convert it into a MP3

  • JVM crash in solaris

    java -version java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode) uname -a : SunOS test-app 5.10 Generic_147440-06 sun4v sparc SUNW,Sun-Fire-T200 hs_err_pid file

  • Add  video and video recorder to iWeb like facebook?

    First, how do you add video to iWeb similar to facebook, simple click record from MAC and add to page? Possible to add recorder on the website? What about if you have your own website domain and use iWeb and or Dreamweaver? Is this possible? Thanks

  • Hyperlink navigation and f3 open declaration problem

    Hi: I am having an issue in FB4 where some classes are not accessible through hyperlink navigation (Command-Space) or Open Declaration (F3). The classes ARE available through Open Resource (Shift-Command-R) and the project compiles fine when I use th