How to pull the data into smartform after designing layout?

how to pull the data into smartform after designing layout?

call the smartform in your Driver program and pass your output internal tables in the smartforms paramaters
Check the below Sample code.
FORM label_print.
  DATA : g_fm_name TYPE rs38l_fnam,
         g_output  TYPE ssfcompop,
         g_control TYPE ssfctrlop,
         g_form TYPE tdsfname VALUE 'ZPRINT_LABELS',
         g_dest TYPE rspopname,
         g_printer TYPE rspoptype..
  REFRESH : i_out[],i_qals[].
  SELECT matnr maktx
         INTO TABLE i_out
         FROM makt
         FOR ALL ENTRIES IN i_mseg
         WHERE matnr = i_mseg-matnr
         AND   spras = sy-langu.
  SELECT prueflos objnr ersteldat erstelzeit matnr revlv charg mengeneinh
         INTO TABLE i_qals
         FROM qals
         FOR ALL ENTRIES IN i_mseg
         WHERE matnr = i_mseg-matnr
         AND   charg = i_mseg-charg.
*FM to accept the device type and returns the short name of the output device
  CALL FUNCTION 'EFG_GET_PRINTER'
    EXPORTING
      x_no_dialog  = ' '
      x_obligatory = 'X'
    IMPORTING
      y_tddest     = g_dest
    EXCEPTIONS
      cancelled    = 1
      failed       = 2
      OTHERS       = 3.
*device type name for the output device
  SELECT SINGLE patype                                  "#EC CI_NOFIELD
         FROM tsp03d
         INTO g_printer
         WHERE padest = g_dest.
*printer setting
  g_control-no_dialog = 'X'.
  g_output-tdarmod = '1'.
  g_output-tdcopies = '001'.
  g_output-tddest = g_dest.
  g_output-tdprinter = g_printer.
  g_output-tdnewid = 'X'.
  g_output-tdimmed = 'X'.
  CLEAR wa_mseg.
  LOOP AT i_mseg INTO wa_mseg.
    READ TABLE i_out INTO wa_out WITH KEY matnr = wa_mseg-matnr.
check for the status and filter the records
    CLEAR : wa_qals.
    LOOP AT i_qals INTO wa_qals WHERE matnr = wa_mseg-matnr
                                AND charg = wa_mseg-charg.
      CALL FUNCTION 'STATUS_TEXT_EDIT'
        EXPORTING
          objnr            = wa_qals-objnr
          spras            = sy-langu
        IMPORTING
          line             = l_status
        EXCEPTIONS
          object_not_found = 1
          OTHERS           = 2.
      IF l_status CS 'LTCA' OR l_status CS 'SKIP'.
        DELETE i_qals.
      ENDIF.
    ENDLOOP.
    SORT i_qals BY ersteldat DESCENDING erstelzeit DESCENDING.
    IF i_qals IS INITIAL.
      l_msg = text-002.
    ELSE.
      READ TABLE i_qals INTO wa_qals INDEX 1.
      SELECT prueflos vbewertung
             INTO TABLE i_qave
             FROM qave
             WHERE prueflos = wa_qals-prueflos
             AND   kzart = 'L'.
      IF sy-subrc <> 0.
        l_msg1 = text-003.
      ENDIF.
      SORT i_qave.
      CLEAR : wa_qave.
      IF NOT i_qave IS INITIAL.
        READ TABLE i_qave INTO wa_qave INDEX 1.
        IF wa_qave-vbewertung = 'A'.
          l_msg = text-002.
        ELSEIF wa_qave-vbewertung = 'R'.
          l_msg1 = text-003.
        ELSE.
          l_msg1 = text-003.
        ENDIF.
      ENDIF.
    ENDIF.
    CLEAR : wa_ser03.
    READ TABLE i_ser03 INTO wa_ser03 WITH KEY mblnr = wa_mseg-mblnr.
*Calling Smartform
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = g_form
      IMPORTING
        fm_name            = g_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    LOOP AT i_objk INTO wa_objk WHERE obknr = wa_ser03-obknr.
*Calling FM generated from the smartform
      DATA : l_date(10) TYPE c,
             l_date1(10) TYPE c,
             l_date2(10) TYPE c,
             l_date3(10) TYPE c,
             l_hyphen(1) TYPE c VALUE '-'.
      CLEAR : l_date,l_date1,l_date2,l_date3.
      l_date1 = wa_mseg-vfdat+0(4).
      l_date2 = wa_mseg-vfdat+4(2).
      l_date3 = wa_mseg-vfdat+6(2).
      CONCATENATE l_date1 l_hyphen l_date2 l_hyphen l_date3 INTO l_date.
      CALL FUNCTION g_fm_name
        EXPORTING
          control_parameters = g_control
          output_options     = g_output
          user_settings      = ' '
          g_matnr            = wa_mseg-matnr
          g_mat_text         = wa_out-maktx
          g_batch            = wa_mseg-charg
          g_rev              = wa_qals-revlv
          g_edate            = l_date
          g_lot              = wa_qals-prueflos
          g_qty              = wa_mseg-erfmg
          g_uom              = wa_mseg-erfme
          g_serial           = wa_objk-sernr
          g_smsg             = l_msg
          g_fmsg             = l_msg1
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      CLEAR  g_output-tdnewid.
    ENDLOOP.
    IF sy-subrc <> 0.
      CLEAR : l_date,l_date1,l_date2,l_date3.
      l_date1 = wa_mseg-vfdat+0(4).
      l_date2 = wa_mseg-vfdat+4(2).
      l_date3 = wa_mseg-vfdat+6(2).
      CONCATENATE l_date1 l_hyphen l_date2 l_hyphen l_date3 INTO l_date.
      CALL FUNCTION g_fm_name
        EXPORTING
          control_parameters = g_control
          output_options     = g_output
          user_settings      = ' '
          g_matnr            = wa_mseg-matnr
          g_mat_text         = wa_out-maktx
          g_batch            = wa_mseg-charg
          g_rev              = wa_qals-revlv
          g_edate            = l_date
          g_lot              = wa_qals-prueflos
          g_qty              = wa_mseg-erfmg
          g_uom              = wa_mseg-erfme
          g_serial           = wa_objk-sernr
          g_smsg             = l_msg
          g_fmsg             = l_msg1
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      CLEAR g_output-tdnewid.
    ENDIF.
  ENDLOOP.
  IF sy-subrc = 0.
    MESSAGE i000(zm).
  ENDIF.
ENDFORM.                    " label_print

Similar Messages

  • Connecting to SQl server ( MS acess front end) and pull the data into BI

    Dear all,
    i need to extract the data from SQl server ( MS acess front end) and pull the data into BI .
    i need to know what are the steps need to follow on this..
    can any one help me on this...!
    Thanks,
    Siva

    Hi,
    1. login to sql server u2013 with ur server credentials  and connect.
    2. select ur sql for ex: sap bw
    3. Right click u2013 sapbw - task - export data  From sql to excel I m exporting So give sql details 
    4. Destination u2013 select excel.. and browse where u want to save the fileu2026
    5. give next
    6. select from which table u want to export
    7. click on  next
    8. click on finish
    9. close
    10. go to desktop and open the xyz.xls file
    11. not make it as csv file and load the data to BI as a flat file
    Hope it will help you.
    Regards,

  • How to populate the data into the newly added infoobjects?

    Hi,
    how to populate the data into the newly added infoobjects?
    Thanx in advance,
    Ravi.

    hi ravi,
      here is one example how to enhance.
    Goto RSA6- select the 0Material.- Click on Enhance extract structure-> it will take u to the next screen there u need to create the field material group1. and append it to 0Material.
    Goback to RSA6-- RC on 0material-- it will take you to customer version edit screen- here unchk the Hide and Field only known in exit options n save it.
    Next Go back to RSA6-- 0material- click on Function enhancement it will take you to CMOD Screen( here we need to enter the project name and click create if not created on click display)
    In the next screen we find the function exits Like EXIT_SAPLRSAP_001 FOR T DATA AND EXIT_SAPLRSAP_002 FRO Master Data,_003 for Text n _004 for Hierarchies.
    select the appropriate function exit and double clikc on it. It will take you to Function builder screen.
    D Click on defn of Include ZXRSAU01. it will take you to abap editor screen.
    here u need to include the code for the enhanced fields n also write the code to populate the dat for that particular field.
    save it and avtivate the code.
    Hope this Is helpz,
    partha

  • How to maintain the data  into database table

    Hi,
    experts,
    how to maintain the data  into database table

    There are several ways to maintain data in the database
    1. Use table maintanance generator . You can create this using SE11 and data can be edited through SM30.
    2. Loginto  SE11 with the specified table and check the ATTRIBUTES tab. There you can set some parameters for maintaining the database. When you set Maintain database, you edit the data thorugh SE11 it self
    3. Through Se16 as well.
    4. A small abap program can do the above task as well.
    Thanks,
    Raj
    Edited by: Rajanya Kolavennu on Feb 5, 2008 8:33 PM

  • How to write the data into EEPROM using Labview?

    How to write the data into EEPROM using Labview?

    You would need some sort of EEPROM programmer. Typically might
    communicate with it via serial. I don't know how you would do this in
    LV. You would need to have the command protocol for the programming
    device to start with.
    Doug De Clue
    gpibssx wrote in message news:<[email protected]>...
    > How to write the data into EEPROM using Labview?

  • How to writing the data into the file at the same frequency of data acquisition using myRIO

    Hi everyone,
    I have a question regarding data acquisition fequency and data recording frequency of myRIO. Hope you guys can help me out.
    Basically, I want to acquire voltage input at analog input 0 at the frequency of 1kHz and then write the data into a file (tdms format). 
    However, I always found there were only 55 or 56 data points recorded every second in the data file (see the excel sheet). 
    To confirm my data acquisition was performed at the correct frequency, I added a small function in the main loop to indicate the time spent between two acquisition events. 
    To my surprise, the period of data acquistion is correct (1ms or 1kHz) but there are only 55 or 56 data point per second recorded in the data file.
    How can I record every data point acquired by the analog input?
    Thank you!
    P.S. I am very new to myRIO. How can I manually set the system time for myRIO? The default time of my myRIO is wrong. 
    Best,
    Tengyang
    Attachments:
    test result.xlsx ‏16 KB
    Main with timed loop.vi ‏122 KB
    test result.xlsx ‏16 KB

    Have a look at the Jakarta POI project, they have a Java API for creating Word documents.
    http://jakarta.apache.org/poi/hwpf/index.html

  • How to pull the date parameter to appear in the report template?

    Hi Gurus, and Experts,
    I need to pull the date parameter I selected in BIP to appear in my report template? How to code this in BIP?
    Identifier are: dto and dfrom
    date fromat string: MM-dd-yyyy
    Regards,
    JP
    Edited by: user10955574 on Nov 10, 2010 2:38 AM
    Edited by: user10955574 on Nov 10, 2010 2:39 AM

    Declare the parameter in the template as
    <?param@begin:param1?>
    and use it as <?$param1?>

  • How to extract the data into Excel / PDF from SAP

    Hi,
    We have spool number of a report output.
    We want to extract the data into Excel / PDF from SAP directly...
    Plz guide...

    Hi ,
    Please check this [Thread|HOW TO DOWNLOAD SAP OUTPUT TO EXCEL FILE;. Hope your problem will be solved.
    You can check [this also.|http://wiki.sdn.sap.com/wiki/display/sandbox/ToConvertSpoolDataintoPDFandExcelFormatandSenditinto+Mail]
    Thanks,
    Abhijit

  • How to put the data into cache and distribute to nodeusing oracle coherence

    Hi Friends,
    i am having some random number data writing into file,from that file i am reading the data and i want to put into cache,how can i put the data into cache and partition this data into different nodes ( machines) to caluculate like S.D,variance..etc..like that.(or how can i implement montecarlo using oracle coherence) if any one know plz suggest me with flow.
    Thank you.
    regards
    chandra

    Hi robert,
    i have some bulk data in some arraylist or object format,i want to put into cache.
    i am not able to put into cache.i am using put method like cache.put(object key ,object value) ,but its not allowing to put into cache.
    can you please help me.i m sending my code.plz go thru and tel me whr i did mistake.
    package lab3;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.net.cache.NearCache;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.PrintWriter;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;
    import java.util.Scanner;
    import javax.naming.Name;
    public class BlockScoleData {
         * @param args
         * s=The spot market price
         * x=the exercise price of the option
         * v=instantaneous standard deviation of s
         * r=risk free instantaneous rate of interest
         * t= time to expiration of the option
         * n – Number of MC simulations.
         private static String outputFile = "D:/cache1/sampledata2.txt";
    private static String inputFile = "D:/cache1/sampledata2.txt";
    NearCache cache;
    List<Credit> creditList = new ArrayList<Credit>();
         public void writeToFile(int noofsamples) {
              Random rnd = new Random();
              PrintWriter writer = null;
              try {
                   writer = new PrintWriter(outputFile);
                   for (int i = 1; i <= noofsamples; i++) {
                        double s = rnd.nextInt(200) * rnd.nextDouble();
                        //double x = rnd.nextInt(250) * rnd.nextDouble();
                        int t = rnd.nextInt(5);
                        double v = rnd.nextDouble() ;
                        double r = rnd.nextDouble() / 10;
                        //int n = rnd.nextInt(90000);
                        writer.println(s + " " + t + " " + v + " "
                                  + r );
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } finally {
                   writer.close();
                   writer = null;
    public List<Credit> readFromFile() {
    Scanner scanner = null;
    Credit credit = null;
    // List<Credit> creditList = new ArrayList<Credit>();
    try {
    scanner = new Scanner(new File(inputFile));
    while (scanner.hasNext()) {
    credit = new Credit(scanner.nextDouble(), scanner.nextInt(),
    scanner.nextDouble(), scanner.nextDouble());
    creditList.add(credit);
    System.out.println("read the list from file:"+creditList);
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    } finally {
    scanner.close();
    credit = null;
    scanner = null;
    return creditList;
    // public void putCache(String cachename,List<Credit> list){
    // cache = CacheFactory.getCache ( "VirtualCache");
    // List<Credit> rand = new ArrayList<Credit>();
    public Object put(Object key, Object value){
    cache = (NearCache)CacheFactory.getCache("mycache");
    String cachename = cache.getCacheName();
    List<Credit> cachelist=new ArrayList<Credit>();
    // Object key;
    //cachelist = (List<Credit>)cache.put(creditList,creditList);
    cache.put(creditList,creditList);
    System.out.println("read to the cache list from file:"+cache.get(creditList));
    return cachelist;
         public static void main(String[] args) throws Exception {
         NearCache cache = (NearCache)CacheFactory.getCache("mycache");
              new BlockScoleData().writeToFile(20);
         //new BlockScoleData().putCache("Name",);
              System.out
                        .println("New file \"myfile.csv\" has been created to the current directory");
         CacheFactory.ensureCluster();
         new BlockScoleData().readFromFile();
    System.out.println("data read from file successfully");
         List<Credit> creditList = new ArrayList<Credit>();
    new BlockScoleData().put(creditList,creditList);
         System.out.println("read to the cache list from file:"+cache.get(creditList));
    //cache=CacheFactory.getCache("mycache");
    //mycacheput("Name",new BlockScoleData());
    //     System.out.println("name of cache is :" +mycache.getCacheName());
    //     System.out.println("value in cache is :" +mycache.get("Name"));
    //     System.out.println("cache services are :" +mycache.getCacheService());
    regards
    chandra

  • How to uplaod the data into transaction IA01

    Hi All,
    I have tried to upload the data into transaction IA01 using direct input object 0470.
    But one structure for Service Package Overview tab is missing.Can anyone suggest on how we proceed about it,like is there any BAPI to upload the data.Because there are almost 150 fields that need to be uploaded into the transaction which has different tabs in it so it would be very difficult to handle with BDC's.
    Thanks and Regards,
    Shilpa

    Hi All,
    I have tried to upload the data into transaction IA01 using direct input object 0470.
    But one structure for Service Package Overview tab is missing.Can anyone suggest on how we proceed about it,like is there any BAPI to upload the data.Because there are almost 150 fields that need to be uploaded into the transaction which has different tabs in it so it would be very difficult to handle with BDC's.
    Thanks and Regards,
    Shilpa

  • How to pull the data using READ_TEXT

    Hi,
        I was trying to use the READ_TEXT function module to pull the data from the sales order, but i am not sure what are the values exactly i need to pass.
    ID
    LANGUAGE
    NAME
    OBJECT
    Since the above parameters are mandatory to get the text from sales order ... can you please suggest me. We are using customized screen ... if user enteres the data in the long text field in the customized screen - it should be updated in the sales order... how can i achieve... can any one suggest me
    regards
    jaya

    Hi,
    In that text TC --> come to change mode >menu goto->header.
    There you find all info.
    aRs

  • When I copy and paste the data from a web site in to excel, it comes in one big splurge - ie it is not 'delimited' - and I can't see how to delimit the data into cells. In Explorer, the data is delimited. Any clues ? John

    see above

    A couple of options:
    # When pasting the data into Excel use Paste Special, and choose either Text or Unicode Text.
    # Use the Dafizilla Table2Clipboard extension to copy the data - https://addons.mozilla.org/firefox/addon/dafizilla-table2clipboard

  • How to upload the  data into SAP R/3 System

    I have a scenario to  upload the flat file data into SAP R/3 System.
    I will describe my complete scenario here so that it will be better understanding for you to suggest the solution.
    The  segments that relevant for the upload of customer master data, namely
    HD : Header Segment
    PF  : Partner Function Segment
    OP : Output Segment
    TX : Tax Segment
    CR : Credit Segment
    CT : Customer Text Segment

    I think you can achieve this with IDOC creation. If it is so follow the steps below.
    Basic Type:
    Basic IDoc type defines the structure and format of the business document that is to be exchanged between two systems.
    Segments:
    Segments form the basic building blocks of an IDoc type and are used to store the actual datta. A segment type is the name of a segment and is independent of the SAP elease. A segment definition is the release-specific name of a segment.
    Steps in creating Segments:
    T.Code WE31
    Enter the name for your segment type and click on the create icon.
    Type the Short text.
    Enter the variable names and data elements.
    Save and Go back.
    Go to Edit -> Set Release.
    Repeat the steps to create more segments.
    IDOC TYPE:
    Business data is exchanged with an external system using the IDoc Interface.
    IDoc types (Special Structures) An IDoc type is defined through its permitted segments. Segments can be dependent on each other (parent and child segments). The IDoc interface can check for each IDoc whether thhe segments contained are compatible with thhe definitiion of its type. This systax check is activated or deactivated in the Partner Profiles.
    Steps in creating IDoc Type:
    T.Code WE30 to create IDoc Type.
    Enter the Object Name, Select Basic Type and click Create Icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDoc name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press enter
    The system transfers the name of the segment type to the IDoc editor.
    Follow these steps to add more number of segments to Parent or as Parent-child relation.
    Save it and go back.
    Go to Edit -> Set Release.
    Message Type:
    Steps in Creating Message Type:
    T.Code WE81.
    change the details from Display mode to Change mode
    After selection, the system will give this message "The table is cross client (See help for further info)". Press enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back.
    Assign Message Type to IDoc Type:
    T.Code WE82
    Change the details from Display mode to change mode.
    After selection, the system will give this message "The table is cross client (See help for further info)". Press enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back.
    Reward Points if useful.

  • How to post the data into word file

    Dear Forums
    I am a user of jDeveloper
    and working on jclient\swing.
    The problem is that i want to post\Transfer data to a formatted word file. In word file there is a same table containing same contents as jtable. Now after selection of a particular row \column the data of that row\column transferred to word file table.
    i have no idea about it.
    Help me for the Same
    thnkx.

    hi,
    I don't think the Javaworld stuff is needed in any case since ctrl c and ctrl v wor very fine. My problem is diffent. I want to copy paste using a mouse. I am using a Mouse Adapter with my table and using the DefaultEditorKit.copyAction() class as my action. But this does not work.. seems its not copying the data to the clipboard. But this migght be cause it works only with JTextComponent ?!
    Can you please tell me how to go about it.
    regards,
    Sumit.

  • How to fetch the data into one out parameter from two different queries

    Hi,
    I have an a problem how to implement condition in above procedure,and scenario is
    i have to get the output into one out parameter from two queries.i.e if one query data is null
    then i have to pick out data from another query into same out parameter.
    CREATE OR REPLACE PROCEDURE GET_POLICIESMAP_BASEDON_GHPLID(I_COMPANYID IN NUMBER,
    I_CARDID IN VARCHAR2,
    PR_RESULTSET OUT SYS_REFCURSOR) IS
    /* LOC_INSUREDID VARCHAR2(200);
    LOC_RELATIONCODE VARCHAR2(200);
    LOC_CURRENTPOLICYID VARCHAR2(4000);*/
    BEGIN
    OPEN PR_RESULTSET FOR
    WITH A AS
    (SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
    id INSUREDID,
    RELATIONCODE,
    CURRENTPOLICYID
    from INSUREDPERSONS IP
    LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
    ON PM.POLICYID = IP.Currentpolicyid
    where EIN IN (SELECT EIN
    FROM INSUREDPERSONS ipp
    JOIN VW_INSUREDINFO vw
    ON IPP.ID = vw.insuredid
    and vw.cardid = I_CARDID)
    AND IP.CURRENTPOLICYID in
    (SELECT ID
    from policies
    where companyid = I_COMPANYID
    and dead = 0
    AND POLICYTO > SYSDATE - 1))
    SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
    FROM A
    WHERE RELATIONCODE = 0
    AND (A.MAINPOLICYID is null or
    RELATIONCODE = 0 AND CURRENTPOLICYID = MAINPOLICYID)
    UNION
    SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
    FROM A
    WHERE RELATIONCODE > 0;
    /* HERE I NEED TO GET THE DATA FROM THIS BELOW QUERY INTO SAME OUT PARAMETER
    WHEN ABOVE QUERY DATA CONTAINS NULLS */
    /* IF PR_RESULTSET IS NULL THEN*/
    OPEN PR_RESULTSET FOR
    WITH A AS
    (SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
    id INSUREDID,
    RELATIONCODE,
    CURRENTPOLICYID
    from INSUREDPERSONS IP
    LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
    ON PM.POLICYID = IP.Currentpolicyid
    where FAMILYID IN (SELECT FAMILYID
    FROM INSUREDPERSONS ipp
    JOIN VW_INSUREDINFO vw
    ON IPP.ID = vw.insuredid
    and vw.cardid = I_CARDID)
    AND IP.CURRENTPOLICYID in
    (SELECT ID
    from policies
    where companyid = I_COMPANYID
    and dead = 0
    AND POLICYTO > SYSDATE - 1))
    SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
    FROM A
    WHERE RELATIONCODE = 0
    AND (A.MAINPOLICYID is null or
    RELATIONCODE = 0 AND CURRENTPOLICYID = MAINPOLICYID)
    UNION
    SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
    FROM A
    WHERE RELATIONCODE > 0;
    /* END IF;*/
    END GET_POLICIESMAP_BASEDON_GHPLID;
    Thanks in Advance,
    vvr.

    SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
                           id              INSUREDID,
                           RELATIONCODE,
                           CURRENTPOLICYID
             from INSUREDPERSONS IP
             LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
               ON PM.POLICYID = IP.Currentpolicyid
            where EIN IN (SELECT EIN
                            FROM INSUREDPERSONS ipp
                            JOIN VW_INSUREDINFO vw
                              ON IPP.ID = vw.insuredid
                             and vw.cardid = I_CARDID)In this code
    where EINEIN is a column in INSUREDPERSONS?
    and in the sub query below
    (SELECT EIN
                            FROM INSUREDPERSONS ipp
                            JOIN VW_INSUREDINFO vw
                              ON IPP.ID = vw.insuredid
                             and vw.cardid = I_CARDID)EIN belongs to INSUREDPERSONS or VW_INSUREDINFO?
    Please use Alias as we dont know your table structure.

Maybe you are looking for

  • Verizon sales associates and or customer service personnel practice deceitful behavior in order to eliminate unlimited plans in any way they can..

    I called up customer service n order to shut off one of my lines as a disciplinary action towards one of my children. I'm sure its a fairly common event. As I was completing this task, the representative advised me that instead of paying the data pla

  • Is the 16gb iPhone 5 enough for me

    I don't know wether to get the 16gb or 32 fb model. I only have about 200mb of music, i will take around 1000 photos and a few short videos and I like to have about 70 apps but not that high memory apps.

  • Can I use or convert existing .cfa & .pek files to use in a new video?

    I accidentally but permanently deleted all source files for a short video I was working on.   I still have video and audio files located in the Adobe Elements folders.  I can use the video files (MPEGs) to reconstruct the video portion but I can't se

  • Changing package defaults

    I want to change some of the default paths for apache (/home/httpd?  bleh!)  (/etc/httpd? bleh!!). Can you change this default with pacman, or is ABS the only way to do it?  Didn't see anything in the man page,  just wondering if there is a way I'm n

  • Youtube 3d support

    I have a Samsung A850 fifty inch projection hdtv 60 hz, which supports youtube 3d using Firefox on windows 7, using an Nvdia HDMI video card,and shutter glasses.. There is a new tablet, Momo5, which supports 2160p output to a 3d tv. Can you explain t