Creating sets using a table data

Hi,
I have a table  TVBVK which is for sales and not related to FI data. I am trying to create sets so that the sales office would be the parent node and the sales group would be the child. I am using GS01 and it seems that it would not work because the parent which is the sales office value that is different from the child value that is the sales group. 
How would I create an hierarchy using sets by reading from this table? Would it be possible? Could I create sets so that the field names are different?
Thanks

Hi,
How woull that be? Would you elaborate why?
Thanks
Will

Similar Messages

  • Creating sets to load hierarchy data to BW

    Hi,
    I was able to create sets using GS01 and change set using GS02, create a Datasource, and load the data as an hierarchy in BW.
    My question is creating and changing sets is a manual process using these transactions, so what's the point of doing this instead of entering the data directly in BW to create and maintain the hierarchy? I would think then that the preferrred method would be to write an ABAP program to create a flat file with the hierarchy layout and then upload to BW?
    Would some clarify what's the point of using GS01 and GS02 as opposed to maintaining it directly in BW or upload a flat file?
    Is there a way to automatically create and change sets?
    Thanks,
    Will

    Hi,
    I also have the similer problem for hierarhcy files, I used to get the dump of hierarchy data. all child parent info comes in a single rows.  see the example below :
    <b>Country state city territory customer</b>
    I have developed a Foxpro local program, which will convert above flat data into BW Hierarchy loadable flat file.
    Similer you can also do the same. get the flat file from R3 and then convert to BW hierarhcy file using local program and then load to BW.
    Sanjiv
    Message was edited by:
            Sanjiv Kumar

  • Create XML file from table data

    Dear All,
    with dataservice 4.0, I want to create an XML file from a table data.
    Table have a single column but more record, for example:
    0001000488;100;EUR;
    0001000489;200;EUR;
    0001000450;300;EUR;
    My desired XML output:
    <Data>
      0001000488;100;GBP;
      0001000489;200;EUR;
      0001000450;300;EUR;
    </Data>
    I try with a sample query but the sistem write only the last record in XML file:
    <Data>
      0001000450;300;EUR;
    </Data>
    Can everyone help me?
    Thank in advance.
    Simone

    Hello
    That is a very simple (also odd) XML document structure, and as such doesn't require use of the XML target.  It can be easily acheived by writing a normal file with a header and footer, which is acheived using a row_generation and a query to generate the hard coded open and close tags.
    Michael

  • Creation of PDF Document  using ADF Table data in new window

    Hi Guys,
    I have a requirement of creating a pdf document from adf table and it must open in a new window.I know creation of pdf document using itext pdf jar.But in my case how to write the table data to pdf and how to open it in new window.
    Thanks,
    Srinivas.

    In the TF do like this..
    view activity A-------dialog:invokePdf------->view activity B (invokePdf)
    Fragment A command button would be
    <af:commandButton action="#{pageFlowScope.PdfBean.openPDF}"
    text="Generate" id="cbpdf"
    useWindow="true"
    windowWidth="700" windowHeight="700"/>
    in the action add a return like return "dialog:invokePdf";
    Control flow outcome is "dialog:invokePdf". B would be just a empty fragment.

  • Create Menu items from table data?

    Wondering if anyone knows of a way(if even possible) to create menu items on logon from table data where the menu data is stored?

    You'd have to make the menu code generic as well - probably the bet bet would be to have each menu item calling a common procedure but passing in the menu item selected - you'll then have to cross reference that with the current function of that menu item and do the right thing.

  • Can we create cursor using the table created dynamically

    Dear all,
    Can we create the cursor using the table which is created dynamically using "Execute immediate" within the same procedure,
    or is there any way to call the table created dynamically ..
    please Do Help me in this
    thanks alot
    Edited by: khaja on Jan 18, 2009 10:57 AM

    Well, I don't think this approach is bad in any possible circumstances. It depends on the requirements we don't know. Yes, usually applications should not be designed in this way. But 'usually' does not mean 'never'. One possible case is described in Oracle's example Referencing Database Objects that Do Not Exist at Compilation. It's possible to assume that tables inv_01_2003, inv_04_2003, etc from the referenced topic What Is Dynamic SQL? are generated automatically by some job using dynamic create table stmt. If the OP has similar requirements tnen this approach is not bad. It may not be the best one but it at least is not so bad as you said.
    I believe that OPs know their requirements much better than me. This is why I always try to answer the exact question. If the approach is really ugly then I don't answer such questions at all.
    Regards,
    Dima
    Message was edited by:
    DimaCit

  • Questions about creating sets using FM

    Hi,
    It seems that FM G_SET_CREATION is not a true function module where I could provide all the parameters wit the values and the sets would be created automatically. Somehow, I have to write a program to do the BDC steps. Has anyone written a program to use FMs G_SET_CREATION and G_SET_MAINTENANCE? How would I use these FMs?
    Thanks,
    Will

    Hi Will,
    Please check this sample code in for BDC line item loop.
    FORM populate_data .
      data: lv_po(35) type c,
            gv_num(3) type n value '001',
            gv_fname1(132) type c,
            gv_fname2(132) type c,
            gv_fname3(132) type c,
            gv_fname4(132) type c.
      sort gt_sdata by BSTKD POSNR.
      describe table gt_sdata lines l1_num.
      loop at gt_sdata INTO gs_sdata.
        if lv_po ne gs_sdata-bstkd.
          lv_po = gs_sdata-bstkd.
          clear: gv_fname1, gv_fname2, gv_fname3, GV_FNAME4.
          perform bdc_dynpro      using 'SAPMV45A' '0101'.
          perform bdc_field       using 'BDC_CURSOR' 'VBAK-AUART'.
          perform bdc_field       using 'BDC_OKCODE' '/00'.
          perform bdc_field       using 'VBAK-AUART' 'OR'.
          perform bdc_field       using 'VBAK-VKORG' '300'.
          perform bdc_field       using 'VBAK-VTWEG' '20'.
          perform bdc_field       using 'VBAK-SPART' '01'.
          perform bdc_dynpro      using 'SAPMV45A' '4001'.
          perform bdc_field       using 'BDC_OKCODE' '=KKAU'.
          perform bdc_field       using 'VBKD-BSTKD' gs_sdata-BSTKD.
          perform bdc_field       using 'VBKD-BSTDK' gs_sdata-BSTDK.
          perform bdc_field       using 'KUAGV-KUNNR' '1195'.
          perform bdc_field       using 'KUWEV-KUNNR' gs_sdata-KUNNR1.
          perform bdc_field       using 'RV45A-KETDAT' GS_SDATA-KETDAT.
          perform bdc_field       using 'RV45A-KPRGBZ' 'D'.
          perform bdc_field       using 'RV45A-DWERK' 'INDY'.
          if gv_num = gs_sdata-POSNR.
            concatenate 'RV45A-KWMENG(' gv_num ')' INTO GV_FNAME1.
            concatenate 'VBAP-POSNR(' gv_num ')' INTO GV_FNAME2.
            concatenate 'RV45A-MABNR(' gv_num ')' INTO GV_FNAME3.
            concatenate 'KOMV-KBETR(' gv_num ')' INTO GV_FNAME4.
            perform bdc_field       using 'BDC_CURSOR' 'GV_FNAME1'.
            perform bdc_field       using GV_FNAME1 gs_sdata-POSNR.
            perform bdc_field       using GV_FNAME2 gs_sdata-MABNR.
            perform bdc_field       using GV_FNAME3 gs_sdata-KWMENG.
            perform bdc_field       using GV_FNAME4 gs_sdata-KBETR.
            gv_num = gv_num + 1.
    *        APPEND gs_sdata.
    *        Clear gs_sdata.
          endif.
          perform bdc_dynpro      using 'SAPMV45A' '4002'.
          perform bdc_field       using 'BDC_OKCODE' '=SICH'.
          perform bdc_field       using 'BDC_CURSOR' 'VBAK-GWLDT'.
          perform bdc_field       using 'VBAK-AUDAT' '08/24/2006'.
          perform bdc_field       using 'VBAK-VKBUR' '30'.
          perform bdc_field       using 'VBAK-GWLDT' GS_SDATA-GWLDT.
          perform bdc_field       using 'VBAK-WAERK' 'USD'.
          perform bdc_field       using 'VBKD-PRSDT' '08/24/2006'.
          perform bdc_field       using 'VBKD-KDGRP' '03'.
          clear gs_sdata.
          continue.
        endif.
        AT END of BSTKD.
          perform bdc_transaction using 'VA01'.
          clear gs_sdata.
        ENDAT.
      endloop.
    ENDFORM.                    " populate_data
    Hope this will help.
    Regards,
    Ferry Lianto

  • Seeking simple example pl/sql to create text file from table data

    hello,
    I am hoping someone can provide very simple example of creating a file on my local harddrive using a pl/sql program. The basic steps are as follows:
    First, I store some text in a varchar2 variable like this:
    1. select sometext into otextvar from mytable where recordid = 1;
    Second, I want this text to become a file in my data directory:
    2. c:\data\sometext.txt
    The second step is where I need help.
    Any suggestions are greatly appreciated.

    Use this function
    It will create for you a file in your /home/oracle directory with sysdate name and will insert all table names in it
    CREATE OR REPLACE PROCEDURE my_proc AS
    CURSOR cursor1 IS
    SELECT table_name from all_tables;
    CURSOR cursor2 IS
    SELECT sysdate from dual;
    rec1 cursor1%ROWTYPE;
    rec2 cursor2%ROWTYPE;
    created_file_name VARCHAR2(100);
    file_name utl_file.file_type;
    BEGIN
    OPEN cursor2;
    LOOP
    FETCH cursor2 INTO rec2;
    EXIT WHEN cursor2%NOTFOUND;
    created_file_name:=rec2.sysdate;
    file_name := utl_file.fopen('/home/oracle', created_file_name,'W');
    OPEN cursor1;
    LOOP
    FETCH cursor1 INTO rec1;
    EXIT WHEN cursor1%NOTFOUND;
    utl_file.putf(file_name, '%s\n',rec1.TABLE_NAME);
    END LOOP;
    utl_file.fclose(file_name);
    END LOOP;
    END my_proc;
    SQL>exec my_proc;

  • Using internal table data in difrent programs

    hi ..
    I am running a program that does many things and I need to use the data in one of the internal tables in another program.
    You may say why?
    Because I need to make sure that the first program runs successfully then I need to generate a report with that data in separate program.
    Thanks

    Hi Mohammed
    Another approach for the solution:
    1. Which John has mentioned in his first post. You can use the ABAP memory. For this inspect "IMPORT ... TO MEMORY ID ..."/"EXPORT ... FROM MEMORY ID ..." statements.
    2. Fill a range object and send it as the select-option at the interface of the second report using SUBMIT (which John also mentioned).
    3. May be you can use shared data areas.
    *--Serdar
    Message was edited by: Serdar Simsekler

  • Multiple Result Set Using Nested Table

    Package declaration------------
    CREATE or REPLACE PACKAGE dummy
    AS
    TYPE CResValues IS TABLE OF VARCHAR2(2000);
    FUNCTION GetValue(p_user IN VARCHAR2,
    p_owner IN VARCHAR2, p_resource IN VARCHAR2,
    ResValues OUT CResValues) RETURN INTEGER; END dummy;
    Package Body declaration------------
    CREATE OR REPLACE PACKAGE BODY dummy
    BEGIN
    FUNCTION GetValue(p_user IN VARCHAR2,
    p_owner IN VARCHAR2,
    p_resource IN VARCHAR2,
    ResValues OUT CResValues) RETURN INTEGER IS
    ----implementation
    END dummy;
    /* Problems While executing HELP*/
    DECLARE
    TYPE CResValues IS TABLE OF VARCHAR2(2000);
    resvalues CResValues;
    total INTEGER; BEGIN
    select dummy.GetValue('tt', 'test', 'test', resvalues) INTO total FROM DUAL;
    END;
    /////////ERROR in PL/SQL////////////////
    ERROR at line 5:
    ORA-06550: line 5, column 8:
    PLS-00306: wrong number or types of arguments in call to 'dummy'
    ORA-06550: line 5, column 1:
    PL/SQL: SQL Statement ignored
    null

    Thank you for the response.
    I used the XMLType and Queue is created so far ok. This queue is actually used through Event Based Queue in Scheduler. Now when i use the XMLTYpe payload and specify that in event_condition as follows in dbms_scheduler.create_job it throws "ORA-25448: rule . has errors".
    following is the code. Does this mean dbms_scheduler queue spec does not support XMLType payload?
    dbms_scheduler.create_job(
    job_name => v_name,
    job_type => 'stored_procedure',
    job_action => v_action,
    start_date => systimestamp,
    queue_spec => v_qspec,
    event_condition => 'tab.user_data.xdata.extract(''/Application/@name'') = '''||v_event1||''' and tab.user_data.extract(''/Application/Scripts/Procedure/@name'')= '''||v_event2||'''',
    enabled => true,
    auto_drop => true);
    dbms_scheduler.set_attribute(name => v_name, attribute => 'max_runs', value => 1);
    dbms_scheduler.set_attribute(
    name => v_name,
    attribute => 'raise_events',
    value => dbms_scheduler.job_all_events);
    exception when others then
    dbms_output.put_line(sqlerrm);
    my xml message is like below
    <?xml version="1.0"?>
    <Application id="1" name="TEST" module="EXP">
         <Scripts> ||chr(10)||<Procedure id=1 name="sp_init"/>||chr(10)||</Scripts>||chr(10)||
    </Application>

  • Creating tabs using nested tables and templates

    Hello all - Hopefully everyone had a good Easter !
    is it possible to create a template of the tab structure i
    want, and then insert this new template and modify the colours for
    each different tab link / page link? ie, all the tabs will have the
    same links but will have different colours on different pages.
    you're welcome to jump on my website at
    http://www.bondimigration.com.au/overview_10.html
    to get an idea of what I'm talking about..

    Use a server-side include for the menu on each page, give
    each button a
    unique ID, and use a page-specific stylesheet (either linked
    or embedded) to
    change the style values for the selected button.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "dooner1" <[email protected]> wrote in
    message
    news:evg1bo$66e$[email protected]..
    > Hello all - Hopefully everyone had a good Easter !
    >
    > is it possible to create a template of the tab structure
    i want, and then
    > insert this new template and modify the colours for each
    different tab
    > link /
    > page link? ie, all the tabs will have the same links but
    will have
    > different
    > colours on different pages.
    > you're welcome to jump on my website at
    >
    http://www.bondimigration.com.au/overview_10.html
    to get an idea of what
    > I'm
    > talking about..
    >
    >

  • Create report using two table

    hi,
    i have two table for emp attendance and leave .
    1 table name --emp_att
    emp_id------- number;
    att_date -----date;
    status ---------varchar(30);
    in_time -------timestamp;
    out_time -----timestaemp;
    session--------- varchar2(12)
    2--emp_leave
    emp_id -------- number;
    leave_date ---- date
    leave type----- varchar2(17);
    session -----------varchar2(12);
    Here Leave Type ------SL,CL,PL THESE ARE LEAVE
    now i want a report like
    eg :-
    emp_id---DATE ----STATUS----IN TIME----OUT TIME------ SESSION
    101 01-JAN-2009 PRESENT 09:35 AM 3:56 PM 2009-2010
    102 01-JAN-2009 SL 09:20 AM 3:30 PM 2009-2010
    103 01-JAN-2009 PRESENT 09:35 AM 3:30 PM 2009-2010
    104 01-JAN-2009 SL 09:15 AM 3:56 PM 2009-2010
    105 01-JAN-2009 PRESENT 09:35 AM 3:56 PM 2009-2010
    106 01-JAN-2009 PRESENT 09:35 AM 3:30 PM 2009-2010
    107 01-JAN-2009 CL 09:35 AM 3:56 PM 2009-2010
    108 01-JAN-2009 PRESENT 09:40 AM 3:30 PM 2009-2010
    THANKS
    Manoj

    what happens if the employee is absent do we still have records in emp_att table or there is data in emp_leave only.Why are you asking us? It's your application, you should know the business logic.
    I'm afraid I still don't understand what your question is. You want us to spend our time answering your question. We can't do that if we don't understand your point or the application you're working on. You need to spend an equal amount of time framing your post.
    Please try again.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Use Members on Data Form is unvalid if the Run on Save setting is not on

    Hi, I found a problem of the setting Use Members on Data Form is unvalid if the Run on Save setting is not on. It will just get the default value of the variables but not the form members, I don't know whether it is a bug or a normal behavior. Does anyone have experience to fix it or avoid it? Thanks.

    Hi,
    If you are running your rule simply double clicking on the name of it at the botom left corner, that's the normal behaviour I would expect.
    However, instead of running it that way, if you create a menu, attach the rue to a menu item, add the menu to your form and then run it by right clicking on your form, it will pass all selected form members to your variables.
    Cheers,
    Alp

  • Storing data in data bse using nested tables

    using nested tables data can be stored in data base or not.
    if yes i need simple example for taht and how to retireve the data from data base.

    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11822/adobjvew.htm#ADOBJ00511
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17126/composites.htm#LNPLS99981

  • Table Data Source Search Result gives ClassCastException

    I set up a table data source and queried it using the following URL:
    http://machine_name:port/ultrasearch/query/search.jsp?usearch.p_mode=Advanced
    and specified my table data source. The result URLs
    came up with the right primary key id. However when I
    click the URL, I get:
    java.lang.ClassCastException: com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].sql.OrclCallableStatement
    at oracle.ultrasearch.query.DisplayUtil.displayTableUrl(DisplayUtil.java:131)     
    at display.jspService(_display.java:1568)     [SRC:/display.jsp:81]     
    at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)     
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)     
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)     
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    I have specified NUMBER as the data type for my primary key column and it is of type NUMBER in my table DDL. Is that OK or could this be causing the problem?
    Dinesh

    Dinesh,
    Can you provide the following information for creating the table data source:
    - Is the table data source based on a table or a view?
    - Is the table/view in the local or remote database?
    - If the table is in the local database, is the table in the instance owner schema or another schema?
    - Do you login to Ultra Search Admin Tool as the instance owner or other users?
    - Does the instance owner schema have privileges to read the contents in the table/view?

Maybe you are looking for

  • How do I move my itunes account from one country to another?

    How do I move my itunes account from one country to another?  I set up my itunes account in the United States and now I live in England.  I would like to transfer my purchases from my US account to my British account and then download them onto my ne

  • How to extract elements from a document

    I'm new to Java and I'm using JDOM in a JSP page. I've a document like this: <OFFERTA> <FACOLTA idFacolta="F1"> <CORSO value="xxx"/> <CORSO value="yyy"/> </FACOLTA> <FACOLTA idFacolta="F2"> <CORSO value="zzz"/> </FACOLTA> <FACOLTA idFacolta="F3"> </F

  • Mini with iTunes and XP

    When my Mini is connected to my Windows XP machine, all of the songs on the Mini are "grayed" . I can not select or use them. Any ideas? JC

  • Financial Accountig missing in SAP Customizing Implementation Guide

    Hi After upgrading SAP ERP 2004 to SP-Stack 17, the entry "Financial Accounting" is missing in SAP Customizing Implementation Guide (Transaction SPRO). Any ideas? Thanks Andreas

  • "Your Benefits and Payroll Information" links referencing the wrong URL-ESS

    Hi Everyone, At my project we need to change the underlying URL for the following links found under "Your Benefits and Payroll Information" page. Other Benefits and Discount Programs Family Status Change Form for Mid-year Benefit Changes  Other Benef