Using ABAP DATA FLOW to pull data from APO tables

I am trying to use an ABAP Data flow to pull data from APO and receive error 150301. I can do a direct table pull and receive no error, but when I try to put it in an ABAP data data flow I get the issue. Any help would be great.

Hi
I know you "closed" this, however someone else might read it so I'll add that when you use an ABAP dataflow, logic can be pushed to ECC - table joins, filters, etc.  (Which can be seen in the generated ABAP).
Michael

Similar Messages

  • Using a substitution variable to pull data from a table

    Hello,
    I am working with a simple program that asks the user to enter any info that will relate to a table in the db.
    Thus far I have read 1,000 ways to accomplish this, and none of them work.
    PROMPT
    ACCEPT var PROMPT 'Enter var'
    DECLARE
    BEGIN
    SELECT &var
    FROM &table
    WHERE var=tablevar;
    END;

    Thanks for the feedback. Though I understand your logic, it doesn't seem to properly apply here. This is a more detailed explanation of what I've done.
    First, I create the table
    CREATE TABLE starbright
    (planet_num VARCHAR2(3),
    planet VARCHAR2(20));
    INSERT INTO starbright VALUES
    (257, 'Neptune');
    INSERT INTO starbright VALUES
    (367, 'Venus');
    INSERT INTO starbright VALUES
    (586, 'Mars');
    INSERT INTO starbright VALUES
    (725, 'Earth');Now, with that table created, I want to be able to periodically use PL/SQL to call data from the table, such as below
    DECLARE
    p_no := '&planet_num';
    BEGIN
    INSERT p_no
    INTO starbright;
    SELECT planet_num
    INTO p_no
    FROM starbright
    WHERE planet_num := p_no;
    dbms_output.put_line( 'Result: ' || planet );
    END;This is my generic error
    Error report:
    ORA-06550: line 2, column 6:
    PLS-00103: Encountered the symbol "=" when expecting one of the following:
       constant exception <an identifier>
       <a double-quoted delimited-identifier> table LONG_ double ref
       char time timestamp interval date binary national character
       nchar
    The symbol "<an identifier>" was substituted for "=" to continue.
    ORA-06550: line 6, column 8:
    PLS-00103: Encountered the symbol "P_NO" when expecting one of the following:
       into <a SQL statement>
    ORA-06550: line 11, column 18:
    PLS-00103: Encountered the symbol "=" when expecting one of the following:
       . ( * @ % & = - + ; < / > at for in is mod remainder not rem
       <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
       LIKE4_ LIKEC_ between group h
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:

  • Why do we want use 'Data Flow Task' to 'Data Flow Tast' in Control Flow?

    I found an example in my company's SSIS package folders. In Control Flow, it has one data flow connected to the other. Both of them are importing data from flat file and then exported to database. I think these two are kind of at the same level and cannot
    see any reasons to conncect them together.
    Thanks & Happy Thxgiving,
    Gavin 

    Hi Gavin,
    Just as Arthur said, if there is no relationship between those two data flow tasks, we don’t have to connect them together. If they connect together, maybe there are some relationship between them.
    According to your description, both of the data flow tasks are importing data from flat file and then exported to database. It seems that there is no direct relationship between them. Another possibility is that there is a precedence constraint between them.
    The precedence constraint can be based on a combination of the first execution results and the evaluation of expressions. We can check the issue by double-check the connection string between them.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Need to get data in FI-GL Datasource from EKKN table

    Hi Folks,
    I need two fields from EKKN table (NAVNW,AUFNR) into FI-GL datasource (0FI_GL_4) and those two should be available in report.
    As FI-GL DS is based on BSEG,BKPF, do we need to do any enhancements or any other technique?
    Thanks for relpy in advance.
    Shyamala.

    hi,
    Have you used this data source 2LIS_02_ACC?
    Above data source built on EKKN table. if you used above data source then you may try look up option at bw side.
    if not used then you may need to go with enhancement.
    Table BSEG and EKKN have same fields.
    EBELN
    EBELP
    ZEKKN
    By using  above fields conditions you can fill AUFNR and NAVNW.
    Take abap expert help to build logic at CMOD.
    I think you will be familiar with data source enhancement steps.
    One more thing, am seeing your requirement more enhancements on same data source.
    it may degrade loading performance.
    Thanks

  • Purge data older than an year from multiple tables

    Hello all,
    I have a requirement to purge data older than 1 year.
    These are multiple related table with 300 million rows in each and need to delete about 1 million rows. I need to archive the data to a different database for some tables and then delete and for the other tables I dont need to archive but just delete.
    All these tables are being used in transactional replication. 
    I need to join these tables to delete data as some of them wont have a timestamp column
    I was thinking to run the purge job based off 2 sql agent jobs one which will archive and the delete and the other which would only delete where archiving is not required. All these tables use a lot of guid based columns.
    What would be the best strategy to purge the data?  My concern is the transaction replication. Any help in preparing the script to purge data in batches older than 1 year.
    Thanks

    Hopefully this example will help you:
    DECLARE @transactions TABLE (transactionID INT IDENTITY, transactionDate DATE, clientID INT)
    DECLARE @clients TABLE (clientID INT IDENTITY, clientName VARCHAR(30))
    INSERT INTO @clients (clientName) VALUES ('James'),('Jean-Luc'),('Jonathon'),('Katheryn'),('Ben')
    INSERT INTO @transactions (transactionDate, clientID) VALUES ('2000-01-01',1),('2000-01-01',2),('2000-01-01',3),('2000-01-01',4),('2000-01-01',5),('2015-01-01',4),('2015-01-01',5)
    DELETE c FROM @clients c
    LEFT OUTER JOIN @transactions t
    ON c.clientID = t.clientID
    AND t.transactionDate > DATEADD(YEAR,-1,CURRENT_TIMESTAMP)
    WHERE t.clientID IS NULL
    DELETE t FROM @transactions t
    WHERE t.transactionDate < DATEADD(YEAR,-1,CURRENT_TIMESTAMP)
    SELECT *
    FROM @clients
    SELECT *
    FROM @transactions
    Of course, you're going to want to use similar logic to move the records before you delete them, but you can specify the table to delete by its alias in the delete statement.

  • Update data provider queryspecification wiith columns from multiple tables

    Hi
    I have scenario like I need  updated a queryspecificaiton with columns from multiple tables
    1. Ex:
      <bOQuery name="Query">
              <resultObjects identifier="DS0.DO1" name="A$Application_ID"/>
              <resultObjects identifier="DS0.DO2" name="A$Column_Name"/>
    A$Application_ID is from Table A and A$Column_Name from table B
    The query is not adding to dataprovier when I am trying to updated from REST API.
    Please help me.
    Thanks
    Kalyan

    Have a look at the Business Intelligence platform RESTful Web Service Developer Guide, section 3.4.7 (p. 197) - Report structure: getting and updating the structure (specifications) of a report, may be a good place to start(?). Also see KBA 1952419 - How to update the properties of a web intelligence report using RESTful web service SDK .
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Can VLOOKUP, OFFSET, INDEX and MATCH be used to SUM the value of cells from multiple tables?

    I have a problem thats needs a sulution. I have a Spreadsheet with multiple sheets and tables. The (Truck ) Sheets each represent a "Site" and the tables within from 1-31 show inventory counts for each day of the month.
    Shown below are Edited example's of a "Site" sheet and the Day tables contained within it.
    The Spreadsheet expands as a new "Site" (Truck ) is added regularly. Currently there are 30 "Sites" (Trucks).
    Also within the spreadsheet is a sheet (Checkpoint) which contains tables used to show summary data for each "Site" sheet. There is one table used to review one site, so currently there are 30 tables identical in format and structure reviewing 30 sites.
    An edited example of the summary table for Truck 1 is shown below.
    The table's in CP reference data within cells from other sheets. A LEN INDIRECT formula
    =IF(LEN(INDIRECT("Truck 1::Day "&COLUMN(cell)−3&"::K53",addr-style))<1,"",INDIRECT("Truck 1::Day "&COLUMN(cell)−3&"::k53",addr-style))
    was used to retrieve the values within certain cells. This formula works perfectly because when I add another "Site" I simply need to Dupicate a "Site" Template Sheet and then Copy Paste the LEN INDIRECT formula in to the newly created Summary table. 
    There is another sheet (Command Central) which contains a Master summary table. The Master Summary sheet is identical in structure to the CP Summary Tables. Its purpose is to show the combined data from the tables within Checkpoint (Truck 1-30). for instance MS::D5=Checkpoint::Truck 1:Truck 30::D5. I realize that Numbers cannot calculate cells within a range of table so I am hoping for a workaround. 
    Could someone please help me with a formula something like the LEN INDIRECT formula mentioned above or possible a something else that could work beside
    D5=Truck 1::D5,Truck 2::D5,Truck 3::D5...?
    When I use that formula type I will have to edit the formula every time I add a new site.
    Anothe issue Im having is getting D3:AH3 to show the correct count of names. I am using the following formula:
    D3=SUM(COUNTA(Truck 1::D3,Truck 2::D3,Truck 3::D3,Truck 4::D3))−SUM(COUNT(UNION.RANGES(Truck 1::D3,Truck 2::D3,Truck 3::D3,Truck 4::D3)))
    The cells it is counting are either blank (the refenced cell contains a LEN INDIRECT formula that places "" if needed) or contain a name. This formula works when I and addressing cells without the LEN INDIRECT formula. What am I doing wrong?

    Hello Wayne,
    Here are screenshots of the tables in question. The first on is the Master summary table.
    Cell D5 shows the value pulled from Checkpoint::Truck 1::D5
    Cell E5 shows the value pulled from Checkpoint::Truck 2::D5
    Cell F5 shows the value pulled from Checkpoint::Truck 3::D5
    Cell G5 shows the value pulled from Checkpoint::Truck 4::D5

  • Form is not Pulling records from database table.

    Hi all,
    it seems very simple question for you, but i got stuck here.
    I have created one table and insert some records in it from SQL.
    then i create one form and create a data block and pull all the fields form the table, now when i run this form it will not show the records... why ?
    is anything wrong am i doing ?
    Thanks for any help.
    Abid

    Yes when i press Execute Query it shows the records.
    can i add this on form level, i mean when form will load i can execute this query.
    how will this work.
    on_form_load
    execute_query;
    is that right ?
    Thanks for giving me clue, you soloved my problem.
    Abid

  • Unable to pull records from APO

    Hi,
    I am trying to run a full load which extracts data from APO system to BW(2.1C)system.
    The datasource in the APO system was changed sometime back and then the export datasource was done. I had replicated the datasource in BW and activated the transfer rules again.
    But when I try to load the infopackage, it runs for a very long time and does not extract any records. In the monitor screen, under Details tab the Extraction , Transfer Idocs & Processing sections are all "red" & shows 0 records.
    However, when I checked in RSA3 in APO , the extractor is pulling records.
    I have checked the system connections and Basis team have also confirmed that there is no issue with the connections between the 2 systems.
    Please help me to identify the problem and how to fix it.
    Would appreciate any help in resolving this issue.
    Thanks,
    SK

    In your BW system follow below steps,
    1.In the monitor screen menu,Environmnet>Transact RFC> In the source system
    2.This will take you to your APO system,user your APO client,user id and Password and login.
    3.Just run the transaction and review the date and time of the LUW and compare with ur data load time.
    Contact your basis team based on this info....
    Hope this helps..
    Raman

  • Pulling information from a table based on text input

    Hello,
    I was wondering if it was possible to find cells on another table based on the text input of one cell. For example, I have a 2nd table where I have all the properties of a monster, say a wolf. In the first table I want to enter different monsters multiple times but I don't want to copy and paste their properties in every single time, I just want it to draw the properties from the properties table whenever I type the monster id. If I type =Wolf Damage, Numbers immediately locates the correct number to plug in from the table, because the table axis are listed as Wolf and Damage. But I can't figure out how to make a text input part of a cell reference. If I type "Wolf" in B2, and then do the same thing =B2 Damage, it's obviously a sytax error. I've tried different combinations of =T(B2) Damage, but I feel like I'm missing the syntax to convert a string into an actual cell location.
    Thank you,
    ai48

    Would be a good idea to download (thru the Help menu),
    *_iWork Formulas And Functions User Guide_*
    and read carefully the description of the function VLOOKUP.
    Yvan KOENIG (VALLAURIS, France) mercredi 23 février 2011 22:54:36

  • How to show data in a matrix form from a table using SQL

    Dear Friends,
    I have a table with three columns with the following data:
    Market, Product, Date, Value
    Market-A Product-A 01/01/04 34
    Market-A Product-A 01/02/04 33
    Market-A Product-A 01/03/04 67
    Market-A Product-A 01/04/04 64
    Market-A Product-B 01/01/04 34
    Market-A Product-B 01/02/04 36
    Market-A Product-B 01/03/04 77
    Market-A Product-B 01/04/04 32
    Market-B Product-C 01/01/04 25
    Market-B Product-C 01/02/04 56
    Market-B Product-C 01/03/04 45
    Market-B Product-C 01/04/04 68
    Market-B Product-D 01/01/04 78
    Market-B Product-D 01/02/04 75
    Market-B Product-D 01/03/04 32
    Market-B Product-D 01/04/04 35
    I have a requirement where in I have to filter the products based on market and then show in the following format on the screen:
    After filtering based on Market-A (eg) the data should look like:
    01/01/04 01/02/04 01/03/04 01/04/04
    Product-A 34 33 67 64
    Product-B 34 36 77 32
    Kinldy suggest how can I write a query to get the data in this format using SQL
    Thanks & Regards,
    Vinay

    scott@ORA92> -- test data:
    scott@ORA92> SELECT * FROM a_table
      2  /
    Market-A Product-A 01/01/04         34
    Market-A Product-A 01/02/04         33
    Market-A Product-A 01/03/04         67
    Market-A Product-A 01/04/04         64
    Market-A Product-B 01/01/04         34
    Market-A Product-B 01/02/04         36
    Market-A Product-B 01/03/04         77
    Market-A Product-B 01/04/04         32
    Market-B Product-C 01/01/04         25
    Market-B Product-C 01/02/04         56
    Market-B Product-C 01/03/04         45
    Market-B Product-C 01/04/04         68
    Market-B Product-D 01/01/04         78
    Market-B Product-D 01/02/04         75
    Market-B Product-D 01/03/04         32
    Market-B Product-D 01/04/04         35
    scott@ORA92> -- query:
    scott@ORA92> SELECT product,
      2           SUM (DECODE (the_date, to_date ('01/01/2004', 'mm/dd/yyyy'), value)) AS "01/01/04",
      3           SUM (DECODE (the_date, to_date ('01/02/2004', 'mm/dd/yyyy'), value)) AS "01/02/04",
      4           SUM (DECODE (the_date, to_date ('01/03/2004', 'mm/dd/yyyy'), value)) AS "01/03/04",
      5           SUM (DECODE (the_date, to_date ('01/04/2004', 'mm/dd/yyyy'), value)) AS "01/04/04"
      6  FROM   a_table
      7  WHERE  market = 'Market-A'
      8  GROUP  BY product
      9  /
    Product-A         34         33         67         64
    Product-B         34         36         77         32
    scott@ORA92>

  • Data flow between R/3 AND APO

    How the chars and Navigational attributes are flowing in-between the R/3 AND APO ?
    Why we need to maintain the chars and nav attrr in APO? . Any input will be highly appreciated
    Thanks

    Hello Nick,
    Navigational Attributes : Characteristic attributes can be converted into navigation attributes. They can be selected in the query in exactly the same way as the characteristics for an InfoCube. In simple words an attribute is a characteristic that is logically assigned and subordinated to another characteristic. Navigational attributes offer a way to plan multiple objects while achieving optimum system performance in Demand Planning.
    e.g. Costs of the cost center drilled down by person responsible: You use the attribute u2018Cost Center Manageru2019 for the characteristic u2018Cost Centeru2019. If you want to navigate in the query using the cost center manager, you have to create the attribute u2018Cost Center Manageru2019 as a navigation attribute, and flag it as a navigation characteristic in the InfoCube.
    Characteristics : A planning object such as a product, location, brand or region.
    The master data of Demand Planning or Supply Network Planning encompasses the permitted values of the characteristics, the characteristic values. Characteristic values are discrete names or numbers . For example, the characteristic 'location' could have the values London, Delhi and New York.
    Regards
    Rahul Chitte
    Edited by: Rahul Chitte on Aug 30, 2010 5:07 PM

  • I used to be able to pull photos from my iphone into my itunes but something has changed. I dont remember how I did it before but I think an option is missing. Does anyone know what the process was for moving pics from your iphone to your itunes?

    I cant download the new iTunes soflware on my PC because I have not yet been able to sync my photos from my phone to my itunes. If I update to the new software on my pc, for some reason I can't then update my phone software. What Ive had to do the past few times is go the the Apple Store and have them load the new iTunes on my phone for me but then that means I lose all my pics. I dont remember how I used to get my photos from my phone to my itunes but i know i used to be able to. I think I lost some of my options. Does anyone know what this could be?  PS: I have the iphone 3g and Windows XP on my PC

    Refer to this article under section 4: Verify that the Apple Mobile Device USB Driver is installed
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538

  • How can I remove the "Show Data in Single Pane" button from ui:table?

    All I have is paginate selected in table properties.

    Hi,
    Thank you for explaining it so clearly. After enabling the pagination, go to the properties sheet for the table. Under the Appearance section there is a property called paginateButton. Uncheck this property and you will have pagination enabled but not the Show data in a single pane button.
    Cheers
    Giri

  • DS 4.2 get ECC CDHDR deltas in ABAP data flow using last run log table

    I have a DS 4.2 batch job where I'm trying to get ECC CDHDR deltas inside an ABAP data flow.  My SQL Server log table has an ECC CDHDR last_run_date_time (e.g. '6/6/2014 10:10:00') where I select it at the start of the DS 4.2 batch job run and then update it to the last run date/time at the end of the DS 4.2 batch job run.
    The problem is that CDHDR has the date (UDATE) and time (UTIME) in separate fields and inside an ABAP data flow there are limited DS functions.  For example, outside of the ABAP data flow I could use the DS function concat_date_time for UDATE and UTIME so that I could have a where clause of 'concat
    _date_time(UDATE, UTIME) > last_run_date_time and concat_date_time(UDATE, UTIME) <= current_run_date_time'.  However, inside the ABAP data flow the DS function concat_date_time is not available.  Is there some way to concatenate UDATE + UTIME inside an ABAP data flow?
    Any help is appreciated.
    Thanks,
    Brad

    Michael,
    I'm trying to concatenate date and time and here's my ABAP data flow where clause:
    CDHDR.OBJECTCLAS in ('DEBI', 'KRED', 'MATERIAL')
    and ((CDHDR.UDATE || ' ' || CDHDR.UTIME) > $CDHDR_Last_Run_Date_Time)
    and ((CDHDR.UDATE || ' ' || CDHDR.UTIME) <= $Run_Date_Time)
    Here are DS print statements showing my global variable values:
    $Run_Date_Time is 2014.06.09 14:14:35
    $CDHDR_Last_Run_Date_Time is 1900.01.01 00:00:01
    The issue is I just created a CDHDR record with a UDATE of '06/09/2014' and UTIME of '10:48:27' and it's not being pulled in the ABAP data flow.  Here's selected contents of the generated ABAP file (*.aba):
    PARAMETER $PARAM1 TYPE D.
    PARAMETER $PARAM2 TYPE D.
    concatenate CDHDR-UDATE ' ' into ALTMP1.
    concatenate ALTMP1 CDHDR-UTIME into ALTMP2.
    concatenate CDHDR-UDATE ' ' into ALTMP3.
    concatenate ALTMP3 CDHDR-UTIME into ALTMP4.
    IF ( ( ALTMP4 <= $PARAM2 )
    AND ( ALTMP2 > $PARAM1 ) ).
    So $PARAM1 corresponds to $CDHDR_Last_Run_Date_Time ('1900.01.01 00:00:01') and $PARAM2 corresponds to $Run_Date_Time ('2014.06.09 14:14:35').  But from my understanding ABAP data type D is for date only (YYYYMMDD) and doesn't include time, so is my time somehow being defaulted to '00:00:00' when it gets to DS?  I ask this as a CDHDR record I created on 6/6 wasn't pulled during my 6/6 testing but this 6/6 CDHDR record was pulled today.
    I can get  last_run_date_time and current_run_date_time into separate date and time fields but I'm not sure how to build the where clause using separate date and time fields.  Do you have any recommendations or is there a better way for me to pull CDHDR deltas in an ABAP data flow using something different than a last run log table?
    Thanks,
    Brad

Maybe you are looking for

  • Importing dates into Calendar from other Apps.

    Birthdays listed in Address Book can be brought into iCal. Is it possible to also bring in other dates such as Anniversaries etc. also from Address Book?

  • Creating Target Directory Paths

    My questions are mixed in below, marked with "Q:" Task 7A-1-6 in the PTools 8.48 Installation Guide talks about directory path structures that are required by the Oracle DBMS install wizard, but need to be manually created by me. I installed database

  • How to view your newly created webservice in dynamo administrator??

    hi everyone, i newly created a webservice for getGiftlistId and i can successfully see that in my dynadmin webservice Registry . but when it comes to accessing that getGiftlistId.wsdl i could not able to find the URL fo the same. For example we have

  • Slow Query Performance

    Hi BI expert, I have got a query and it's written basing on sales order line cube. This cube holds about 60,000 records at the moment. A selection secreen has also been designed for this for example; creation date, brand and sku. If the users specify

  • Release Procedure

    Hi, I have create a Purchase order Over delivery tolerance 2% above create new Release Procedure. Plz, advise me. By, Hari.S