Hello: Help  in creating a query

Hello All,
   I have to join two tables, LIPS AND VBAP on the fields
   lips-pspnr = vbap-ps_psp_pnr.
  The problem i'm facing is: The table stores the value in converted form, the function is CONVERSION_EXIT_KONPD_OUTPUT.
Kindly guide me.
For the reference i'm posting my code.
  select single pspnr into ppspnr from lips where vbeln = wa_hd_gen-deliv_numb.
CALL FUNCTION 'CONVERSION_EXIT_KONPD_OUTPUT'
   EXPORTING
     INPUT         = ppspnr
  IMPORTING
    OUTPUT        = ppspnro
  PSELT         =
  CONCATENATE ''''  PPSPNRO  '''' INTO PPSPNRO .
  CONCATENATE 'vbap~ps_psp_pnr = ' ppspnro   INTO clause SEPARATED BY SPACE.
  APPEND clause TO where_clause.
   select single vbap~vbeln into s_vbeln from vbap WHERE (where_clause).
  select single vbapvbeln into s_vbeln from vbap WHERE vbapps_psp_pnr = ppspnro.
Thanks.

hi Ushma..
use the following Function module
CONVERSION_EXIT_ABPRJ_INPUT   
Converts External Project Number to Internal Project Number
CONVERSION_EXIT_ABPRJ_OUTPUT  
Converts Internal Project Number to External Project Number
CONVERSION_EXIT_ABPSN_INPUT   
Format > Without Edition (Project Number / WBS Element umber)
CONVERSION_EXIT_ABPSN_OUTPUT  
Format > With Edition (Project Number / WBS Element Number)
CONVERSION_EXIT_ABPSP_INPUT   
Conversion External > Internal WBS Element Number
CONVERSION_EXIT_ABPSP_OUTPUT  
Conversion Internal > External WBS Element Number
Regards
Deva

Similar Messages

  • I need some help on creating a query

    This is my first crack at writing query's.  
    I am trying to create a query for a list on clients with a file name on the system. I found a lot of samples on the web, however i keep getting errors on all of them. 
    Here is on sample:
    select SMS_G_System_COMPUTER_SYSTEM.Name, 
    SMS_G_System_SoftwareFile.FilePath, SMS_G_System_SoftwareFile.CreationDate, 
    SMS_G_System_SoftwareFile.FileDescription, V_R_System.ResourceType, 
    V_R_System.ResourceId from V_R_System inner join SMS_G_System_COMPUTER_SYSTEM on 
    SMS_G_System_COMPUTER_SYSTEM.ResourceID = V_R_System.ResourceId inner join SMS_G_System_SoftwareFile on 
    SMS_G_System_SoftwareFile.ResourceID = V_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName = "test1234.exe" 
    First i was getting an error:
    Invalid object name 'SMS_R_System' and i had to change to V_R_System instead of SMS_R_System. "Is it because
    SQL and WQL difference?????"
    Now i am getting Invalid object name 'SMS_G_System_COMPUTER_SYSTEM' "Here is where i am stuck"
    If possible i would like to explanation as well "maybe some good links", please keep in mind just getting started with query's.
    Thanks for the help.
    I am writing/testing query in sql management studio.
    If there is a better way or a tool please let me know.

    The application i am looking for does not show up in ADD/REM.
    I was asking what is the difference between V_R_System instead of SMS_R_System?
    And what should i use instead of SMS_G_System_COMPUTER_SYSTEM?
    Maybe you can share some links so i can read a little more?
    Thank you.

  • Help in creating a Query

    Hi,
    I have 2 ODS, one holding the PO data and other with GR data.
    Now I want to create a report where where I can show pick up specfic field from each of the ODS and show.
    For example I want to Open order summary report.
    Here my selection is on PO Creation date.
    In the report I need to show these fields.
    PO Creation date - from PO ODS
    PO Num  - from PO ODS
    PO line  num - from PO ODS
    PO item text - from PO ODS
    PO Qty - from PO ODS
    GR Qty - from GR ODS.
    For this I have used replacement path for Variables PO Num and PO line Num.
    I am able to get the result required, But the PO qty and GR qty are showed in different line rather than Combined into one line.
    When I move the PO creation date into free charector then it is showing combine information of PO & GR qty in one line. 
    Can any one provide me the best data model which I should go.
    Note : Presently we are using Infoset but we want to get ride of it.
    Regards,
    Tony

    Hi Doniv,
    we have tried it, but the problem when we use multiprovider or infocube is when we select the data based on fields which are not common on the boths sides it will not pick up the data correctly. For example PO creation date is on PO ODS. So when you create a query on the multiprovider with PO creation date as in selection. Then it will pick on PO data as PO creation date is not in GR ODS.
    anyother ways...
    Regards,
    Tony

  • How to create a Query iView based on user's parameter?

    Hello,
    I've created a Query iView which depends on a Costumize parameter that the user enters - On stage 5 of the wizard I've entered a customize parameter on a certain field and called it "user_param". The wizard entered the Query: WHERE... = {$user_param}. So far so good...
    My question is, after creating this iView, how Do I implement it at the Portal so the user will have a place to enter his parameter and receive the result?
    when opening the Query I don't see such place. According to SPA's documentation, the user should enter the parameter at the "personalize" menu. When I put this iView in a page and open the "Personalize" menu there is no such place.
    Which further configurations should I do in order it to work?

    If you open the iview, there should be a personalize property or setting for the URL parameter. Make sure that it is set to read/write. I just got off a portal project where I did a few of these, but I don't have access to one right now, so I can't give you the exact steps, but you should get the idea.
    Good luck,
    Tom \

  • QUERY HELP!!! trying to create a query

    i'm creating a summary report
    i have a table with sale dates
    for example i have a table tab_1 and column saleDate as
    saleDat
    1923
    1936
    1945
    2003
    2005
    saleDate contains years and there are some missing years where no sale
    was made
    My report has to display years starting from earliest year
    so i have to create a query that starts with 1923
    but the problem is that I have to have years that are not in table.
    for example i have to display years 1924 which is not in table
    so the part of report has to look like
    1923 blah blah summary.........
    1924 "
    1925
    1926
    2005
    2006
    upto current year (2006 may not be in the table, but i have to display)
    i just need to know the query that can query all the years starting from
    the ealiest saleDate to current year
    thanks in advance

    Please write the query in the following form:
    SELECT a.year, --- place other columns from your table.
    FROM (SELECT (:start_num + rownum) year
    FROM all_tab_columns
    WHERE :start_num + rownum <= :end_num) a,
    tab_1 b
    WHERE a.year = b.saleDat(+);
    Note:
    1) if your start year and end year are 1923 and 2006. Then input as below:
    :start_num = 1922
    :end_num = 2006
    2) Since for some of the years (1924 etc) may not be there in your so you may need to use NVL to print proper indicators.
    3) If you have more than one record in tab_1 for a particular year then group them based year and then use it.
    Hope this helps.
    - Saumen.

  • Help: How to create a query like this?

    I am working on a report and I am facing on a question like this:
    TABLE TEST has two columns A and B
    A B
    2 INFO21
    2 INFO22
    3 INFO31
    3 INFO32
    3 INFO33
    I'd like to create a query which will return
    A INFO
    2 INFO21, INFO22
    3 INFO31, INFO32, INFO33
    Please help.
    Thank you in advance
    Jimmy

    A lot of pretty fine examples here:
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
    Rgds.

  • Help need to create a query

    I need to fetch records from a table. Please help me to create a query
    The Tablename is Employee. It has the following records
    Department Empname Gender
    Finance Tom Male
    Finance Rick Male
    Finance Stacy Female
    Corporate Tom Male
    Corporate Rob Male
    I want to select the value of the Gender field from the Employee table corresponding to a Department
    If all the values in the Gender field are 'MALE' corresponding to 'finance' in the Department field, the value should be 'MALE'
    If there is a value 'FEMALE', the gender corresponding to the Empname 'TOM' should be considered as the gender

    Tables have rows - not records.
    Your question is a basic SQL language question - which means you do not know the SQL language. This forum is not a classroom for teaching you the SQL language.
    Use the following as the basic outline of how your SQL language statement need to look like for selecting the required from the table:
    SELECT
      <<sql projection goes here>>
    FROM <<table name goes here>>
    WHERE <<filter conditions go here>>
    {code}
    The SQL projection specifies the list of columns the SQL need to return to the caller.
    The filter condition is basic predicates and AND and OR  can be used for multiple predicates.
    Go to http://tahiti.oracle.com and look for the +SQL Reference Guide+ for the Oracle version you are using. The +SELECT+ statement syntax is covered in detail and sample statements are provided.
    And please do not expect this forum to be used as a classroom, or expect this forum to do your homework for a class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Hello, I have created a distribution kit for my program.The problem is that the when the program is installed onto another computer, it fails to communicate with field point (Using FP-AO-200 and FP-AO-1000). Help is greatly appreciated, Thanks faen9901

    Hi Everyone,
    I have a program that sends information(analog output) to lab windows cvi in the form of a text file or user input.
    The program runs on the computers that I have the field point explorer and lab windows cvi installed on. In order to run the program without always installing labwindows/cvi and field point; I wanted to create an executable file that could be load on another computer.
    I used the create distribution kit part of labwindows/cvi to do this.After creating the distribution kit, I then installed it
    to another computer.
    My user interface appears on the screen, when the user clicks on the exe. file, but no data is sent to the field point module. I know that the data is being read from the user and textfile because in it appears in the uir.
    The following are some details about the problem:
    1. On another computer without labwindows/cvi and field point explorer not installed - no data is sent to field point module
    I know this because a current is being read on the current meter connected to field point module.
    My questions are the following:
    1. What are the possible reasons for the data not being sent to the field point module?
    2. Do I still need to create an iak. (Installing Field point Explorer) file stored on any new computer that I install my created distribution kit file too?
    Thankyou very much for any help that you can provide. I greatly appreciate it.
    Faen9901

    Re: Hello, I have created a distribution kit for my program.The problem is that the when the program is installed onto another computer, it fails to communicate with field point (Using FP-AO-200 and FP-AO-1000). Help is greatly appreciated, Thanks faen9901Faen9901,
    1) If you do not install FieldPoint Explorer, the FieldPoint Server is not installed so there is nothing on the target computer that knows how to talk to the FieldPoint system.
    2) Yes, you need an IAK file on the target computer. Assuming the settings (i.e. com port#) are identical you can simply include the iak file as part of the distribution.
    3) You also need to include as part of your installer the file "fplwmgr.dll". If this file is not installed, your program will not be able to access the FieldPoint Server. Alternatively, this file is installed automatically if FieldPoint Explorer detects LabWindows/CVI or Measurement Studio Development versions on the target computer or if you choose to do a custom FieldPoint Explorer installation and
    choose to provide LabWindows/CVI support.
    Regards,
    Aaron

  • Help: How to create a query that transpose the column content?

    Here, suppose that I have two tables
    TAB_A:
    ID     TYPE
    1     AA
    1     AB
    1     AC
    2     BA
    2     BB
    2     BC
    2     BD
    I'd like to create a query that gives result as:
    ID     TYPE
    1     AA AB AC
    2     BA BB BC BD Any suggestions?
    Thank you in advance.
    Jimmy

    Hi
    Try this:
    SELECT id,
    replace(LTRIM(MAX(SYS_CONNECT_BY_PATH(type,'*'))
    KEEP (DENSE_RANK LAST ORDER BY curr),'*'),'*', ', ') AS type
    FROM (SELECT id, type,
    ROW_NUMBER() OVER (PARTITION BY id ORDER BY type) AS curr,
    ROW_NUMBER() OVER (PARTITION BY id ORDER BY type) -1 AS prev
    FROM tab_a)
    GROUP BY id
    CONNECT BY prev = PRIOR curr AND id = PRIOR id
    START WITH curr = 1;
    Ott Karesz
    http://www.trendo-kft.hu

  • Need help in creating query!

    Hi!
    can anybody help me in generating query from emp table
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
    7566 JONES MANAGER 7839 02-APR-81 2975 20
    7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
    7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
    7782 CLARK MANAGER 7839 09-JUN-81 2450 10
    7788 SCOTT ANALYST 7566 19-APR-87 3000 20
    7839 KING PRESIDENT 17-NOV-81 5000 10
    7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
    7876 ADAMS CLERK 7788 23-MAY-87 1100 20
    7900 JAMES CLERK 7698 03-DEC-81 950 30
    7902 FORD ANALYST 7566 03-DEC-81 3000 20
    output should be
    JOB ENAME
    ANALYST SCOTT
    ......................................FORD
    CLERK ADAMS
    .......................................MILLER
    .......................................JAMES
    MANAGER JONES
    ..................................... BLAKE
    ......................................CLARK
    PRESIDENT KING
    SALESMAN WARD
    .....................................TURNER
    Edited by: user9198143 on Nov 13, 2010 8:15 PM
    Edited by: user9198143 on Nov 13, 2010 8:17 PM
    Edited by: user9198143 on Nov 13, 2010 8:19 PM

    SQL> break on job
      1  select job, ename from emp
      2* order by job
    SQL> /
    JOB       ENAME
    ANALYST   SCOTT
           FORD
    CLERK       MILLER
           JAMES
           ADAMS
    MANAGER   CLARK
           JONES
           RAHIM
           BLAKE
    PRESIDENT KING
    SALESMAN  JABBAR
    JOB       ENAME
    SALESMAN  RAFIQ
           KARIN
           SALAM
           TURNER
           MARTIN
           ALLEN
           WARD
    18 rows selected.Edited by: sb92075 on Nov 13, 2010 6:51 AM

  • Help needed in MV Query

    Hello,
    I have created a MV as follows:
    CREATE MATERIALIZED VIEW Test1_MV
    BUILD IMMEDIATE
    REFRESH COMPLETE
    ENABLE QUERY REWRITE
    AS
    SELECT b.Customer_ID,
    j.MONTH_END_DATE,
    (AVG(sum(COUNT *(case when (m.DIM1_DSC ='ABC') then 1 else 0 end)))OVER (ORDER BY b.Customer_ID, j.MONTH_END_DATE ROWS 5 PRECEDING)) AS AVG_ABC_Count,
    (AVG(sum(AMT *(case when (m.DIM1_DSC ='ABC') then 1 else 0 end)))OVER (ORDER BY b.Customer_ID, j.MONTH_END_DATE ROWS 5 PRECEDING)) AS AVG_ABC_Amount,
    (AVG(sum(COUNT *(case when (m.DIM1_DSC ='DEF') then 1 else 0 end)))OVER (ORDER BY b.Customer_ID, j.MONTH_END_DATE ROWS 5 PRECEDING)) AS AVG_DEF_Count,
    (AVG(sum(AMT *(case when (m.DIM1_DSC ='DEF') then 1 else 0 end)))OVER (ORDER BY b.Customer_ID, j.MONTH_END_DATE ROWS 5 PRECEDING)) AS AVG_DEF_Amount,
    sum(COUNT *(case when (m.DIM1_DSC ='ABC') then 1 else 0 end)) as Cumm_ABC_Count,
    sum(AMT *(case when (m.DIM1_DSC ='ABC') then 1 else 0 end)) as Cumm_ABC_Amount,
    sum(COUNT *(case when (m.DIM1_DSC ='DEF') then 1 else 0 end)) as Cumm_DEF_Count,
    sum(AMT *(case when (m.DIM1_DSC ='DEF') then 1 else 0 end)) as Cumm_DEF_Amount
    FROM
    DIM_CUSTOMERTABLE b,
    DM_TIME j,
    DIM2_TABLE k,
    DIM3_TABLE l,
    DIM1_TABLE m,
    FACT_TABLE cd
    WHERE
    cd.CUSTOMER_ID = b.CUSTOMER_ID
    AND cd.DATE_ID = j.MONTH_ID
    AND cd.DIM2_ID = k.DIM2_ID
    AND cd.DIM3_ID = l.DIM3_ID
    AND cd.DIM1_ID = m.DIM1_ID
    AND j.YEAR_DSC in('2007','2008')
    GROUP BY b.CUSTOMER_ID, j.MONTH_END_DATE
    ORDER BY b.CUSTOMER_ID, j.MONTH_END_DATE;
    I have a problem..
    My Fact Table has only one row for a customer_Id say 123 i.e., it has data for only DIM1 of data for the year 2007 as follows:
    AMT     DATE_ID     DIM1_ID     DIM2_ID     DIM3_ID     COUNT     CUSTOMER_ID
    5310.85     2007.5     2     2     2     1     123
    So when i query the MV, i should get AVG_ABC_Count and AVG_ABC_Amount should be same as Cumm_ABC_Count and Cumm_ABC_Amount. Because average of one value is the same value itself..But I am getting different values for Average and Cummulative.
    I am grouping by Customer_Id and Date. But why is it that the data is differing.

    Please somebody help me with this..I am stuck at this point..I am not able to find out the reason why i am getting the results like this..If anybody has any idea, will be very helpful..

  • How to create ABAP Query for vendor open items

    HI,
    My client has requested me to create ABAP Query for vendor open items . So that it will be usefull for the users . Could anyone help me with this. I will assign you points.Thanks in advance.

    Hello,
    Use Table BSIK <Open Items of AP > & BSAK <AP Cleared items>......
    For Query you can use SQ01.
    USE BSID & BSAD for AR open/clear items...
    LFA1, LFB1 are vendor master data tables
    This is FYI
    Hope this helps.
    Rgds
    Rajendra

  • Linking Access tables, creating a query with using both Access and Oracle

    Hello,
    I am using 3.0.04.34 version Oracle Developer. I am supposed to create a script/procedure to use both Access tables and oracle tables together. There is an option in developer to copy the access tables into oracle. But it doesn't help me. Because when we updated the access tables
    the copied ones are not be updated. How can I created a linked access tables to oracle and create a query with using both access and oracle table together.
    I will appreciate if you guys help me. I look forward to hearing from you guys.
    Thanks,
    Pinar

    Pinar,
    to be able to query MS Access tables in Oracle you need an additional product, the Oracle Database Gateway for ODBC. It allows you to link any foreign database into an Oracle database using a suitable ODBC driver. You can then access the MS Access tables through a database link based on the Database Gateway for ODBC. This will also allow you to join local Oracle and remote MS Access tables from your Oracle database.
    There's a note on My Oracle Support which gives you more details:Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
    And there's also a dedicated Forum: Heterogeneous Connectivity

  • Help with a basic query

    Hello
    I am looking at a set of records and need to query them but cannot work out what syntax to use to get the desired result.
    This is the query for the basic data
    SELECT
    SCE_STUC,
    SCE_CRSC,
    SCE_STAC
    FROM SRS_SCE
    WHERE SCE_AYRC = '2009/0'
    and Sce_stuc LIKE '0702794'
    This gives:
    SCE_STUC SCE_CRSC SCE_STAC
    0702794     OAKC3ZSKG     C
    0702794     UBSH1BINS W
    0702794     UBSH1WIDS C
    So I need to create a query that shows where a person (sce_stuc) has a C status for sce_crsc OAKC3ZSKG but also has another SCE_CRSC not OAKC3ZSKG that is not status C.
    I am using Oracle SQL developer btw
    Any help much appreciated

    Hi thanks for these
    So I am looking for people that are C on course OAKC3ZSKG but have a record that is not C for another course this could be an In ('W','N') etc.
    Sorry I have not been that clear so looking to return:
    SCE_STUC SCE_CRSC SCE_STAC
    *0702794     UBSH1BINS      W*
    where the student has
    SCE_STUC SCE_CRSC SCE_STAC
    0702794     OAKC3ZSKG     C
    0702794     OAKC3ZSKG     C
    0702794     UBSH1BINS     W
    Again many thanks

  • Help to write the query

    Hello
    I have created 2 user defined fields
    Field 1 must be changed by the user before they save the sales order, it's a numeric field, value is 0 or 1. Field is called 'SPRECPTE'
    The second field is a field to block the user as long as the above field is not changed. This field is alphanumeric and mandatory but the problem is when you create the UDF you must define a default value.
    Here comes the query to remove the default value and make the control possible when you select the cardcode from OCRD.
    Then the field 2 is blank and it must be field up to allow booking when you change UDF1 from 0 to 1. But the query work to empty the field 2 but it does not when SPRECPTE is equal to 1
    Declare @U_SPRECPTE as numeric (1,0)
    Set @U_SPRECPTE = $[$U_SPRECPTE.1.0]
    IF U_SPRECPTE=0
    Select '' ELSE 'A'

    During order entry, the system checks freight cost based on formated search to add sales tax on freight fields.It was calculated for every line.
    Now we are in live condition the formated search slows down order entry as every time an item is keyed in it recalculates every item again....
    Then I decide to stop the fms based on item feild is modified and to valide the calculation before saving the order
    To secure a sales order is saved without calculating the whole order I created 2 UDF to block users....
    So one UDF must be mandatory and without default value, the first field launch the calculation through FMS of the whole order
    I hope I am clear I am not familair with SBO store procedure but if you think it may help please explain
    B Regards

Maybe you are looking for

  • How to Count Number of completed line items in past 6 months / 12 months ?

    How to Count Number of completed line items in past 6 months / 12 months ? Hi, I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT. Purchase Order document = ZEBELN Line Item = ZEBELP. I need to

  • Does anyone have experience with XTC/C OR XTC/2 controller​?

    I am trying to use a serial connection to program an XTC/C controller.. if anyone can give me some help that would be great. I am running off of labview v6 and the examples given for serial I/O aren't responding to the machine.

  • How to reinstall my iTunes 10 music after doing system reinstall on Window 7 64 bit and then downloading iTunes 11.

    What is the best way to reintroduce the backed up iTunes folder that contains my music collected in iTunes 10 after doing a clean reinstall of Windows 7 and thereafter installing iTunes 11. Howl will iTunes 11 recognize my songs collected in iTunes 1

  • Help to access a file

    sir,    in my project i would store a waveform in agillent storage oscilloscope 64521d in floppy disk .the file extension is *.cls format which contain the values with some information about the scale.how can i retrive the data present in that file t

  • Elements 10 possibilities

    Does anyone have any info on whether Elements 10 will get rid of gray background (or give options), and make menus etc conform to Windows standards and become readable at high resolutions? These have been topics of complaint for so long it really is