Facing problem in transferring data in APD

Hi All,
I have a query which has 2 structures and so the in normal conditions also when the query is executed it takes a lot of time to execute and the output file is also huge.
Now the client wants to automate this query by adding one new field in it by using the APD.
I tried using the approach
Query -> hide columns -> Routine(to add the new field) -> hide columns -> PC file
This thing was working when there was a filter condition for only 2 sales offices but after removing the filter there are 22 sales offices and I am getting a "Run time error" or "Memory low error".
So i tried the 2nd approach i.e.
Query -> transformation -> DSO1(direct update) -> DSO(standard)
but here also i am facing the same problem.
Please give me a good solution as this issue has to be completed ASAP.
Thanks in advance.

Hi,
For trial purpose I have set a filter in which only 3 sales offices will be used out of 20. But still I am facing the same "Memory low" error. The sales offices I have considered have less data as compared to other sales offices but still I am facing this issue I dont know is this happening.
Can you guys share some info on this.

Similar Messages

  • Facing problem with a date column in select query

    Hi,
    I am facing problem with a date column. Below is my query and its fainling with " invalid number format model" .
    Query: SELECT *
    FROM EMP
    WHERE trunc(LAST_UPDATED) >= to_date(to_char(22-05-2009,'dd-mm-yyyy'),'dd-mm-yyyy')
    LAST_UPDATED column is "DATE" data type.
    Please help me Thanks

    Radhakrishna Sarma wrote:
    SeánMacGC wrote:
    WHERE LAST_UPDATED >= to_date('22-05-2009','dd-mm-yyyy');
    You do not need the TRUNC here in any case.
    I don't think so. What if the user wants only data for 22nd May and the table has records with date later than 22nd also? In that case your query willl not work. In order for the Index to work, I think the query can be written like this I think Sean is right though. Use of TRUNC Function is quiet useless based on the condition given here, since the to_date Function used by OP will always point to midnight of the specified date, in this case 22-05-2009 00:00:00.
    Regards,
    Jo
    Edit: I think Sean proved his point... ;)

  • Facing problem in saving data without overlapping in for loop

    Hi,
    I am facing problem in writting data withou overlapping if i run outer loop for 2 or more times and in inner for loop i am getting array in a way I want but when i try to build that array with logging temperature i am not able to do it. Please guide me through ths.
    Thank You
    Hnagpal
    Solved!
    Go to Solution.
    Attachments:
    data storage.vi ‏31 KB
    what i am getting.xlsx ‏10 KB
    what i want.xlsx ‏10 KB

    Thanks odessy27, Matthew Kelton, for replying.
    Matthew Kelton: Thanks for the solution i am adding outer loop so that i can increase the number of row. I am using it for some application which require me to save data several time and i used random number here but originally instead of random number there will be power meter reading and i want to save it every hour and plot it. I am also attaching a file what i made I don't know is this a good way or not. Actually i will also beneeded to plot a graph. But again how to increase a row and without replacing previous data i can write another row.
    Yes i want to make one row for each iteration.
    I attached both files in 2009 version.
    Thank You
    Himanshu Nagpal 
    Attachments:
    desired result.xlsx ‏10 KB
    data storage (1).vi ‏26 KB
    data storage.vi ‏37 KB

  • Facing  problem while loading data into XI

    Hi All,
    I am facing a peculiar problem while loading data into XI when we load small amount of data say 5-10 records these records gets processed, but when we try to load a bit higher volume say 100-500 which comes out to be around 7 record s per second then the record processing gets stalled. That is it gives a message that "recorded for outbound processing".
    So can any body throw some light on it and can tell us why we rare facing such problem and how can we resolve that problem.
    Thanks in Advance.
    Regards
    rahul

    Hi rahul,
    Deregistering and Registering the Queue is a temporary solution.
    The better way to this would be to Tune your Xi system as already mentioned by Vijaya as mentioned in the guide ,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7fdca26e-0601-0010-369d-b3fc87d3a2d9
    Regards,
    Bhavesh

  • Problem in transferring data from iPad 2 to iPad Air

    I just got a new iPad Air. I naturally wanted to transfer as much of the data as possible from my old iPad 2 (then to wipe the old iPad and pass it on).
    I read all the advice on line about changing.
    I did full and successful back ups of the iPad 2 to iTunes and to the cloud (I've always done regular backups throughout).
    Upon starting the new iPad Air, I selected it to download the saved iPad 2 backup to my new platform.
    Unfortunately, I found that whilst some data has been copied across to the new platform, some hasn't.
    I think that all my music has been moved ok.
    However, whilst my apps also seem to have been moved....the progress that I have made within the apps is totally missing. It's as if all the games etc are starting from the very beginning. Is this how it must be?
    Also, a few of the screenshots and photos have appeared on the new iPad but the vast majority are absent.
    My Google mail account is showing in the new iPad but not my other 3 mail accounts though this isn't a big problem as I can easily add the missing accounts.
    It's very frustrating as I had made huge progress with some games (over 3 to 4 years) and my pictures are important to me.
    Did I do something fundamentally wrong?
    Is it recoverable?
    I spent a lot of money to upgrade my iPad, and I currently wonder whether it was a mistake. At the moment I feel like I will need to retain the old and the new iPads which wasn't really part of the plan.
    Any advice would be appreciated.
    Regards.

    Hello,
    First.  You cannot transfer game progress from device to device.  As far as I know, no games do that, unless it's a game like Words with Friends, etc. 
    Are your photos in the iCloud?  You can download them that way.  Another option is by using a third party software to upload to your computer, and then upload to your new iPad Air.  I've used a program that does this because I've had a lot of different device and it's a one time payment but the software is always free to update.  You can back up literally everything and is faster than an iTunes backup.
    You didn't do anything wrong.  If there are pictures you want, you can always imessage them to yourself. Lol, if it's not a ton.  But like I said, a third part software is the easiest and fastest.  If you google it you would find some software. 
    Or upload the photos to a site like photobucket and then you can download the whole album.
    Just a few alternatives.

  • Problem in transfering data from DSO to InfoCube

    Hi,
    I am trying to transfer data from DSO to Infocube. But it is giving the following message.
    Last delta update is not yet completed
    Therefore, no new delta update is possible.
    You can start the request again
    if the last delta request is red or green in the monitor (QM activity)
    It is not allowing to load data to InfoCube from DSO. I checked the request number. But there is no request number in InfoCube. If request no is there I can delete the request from InfoCube and delete the data mart status in DSO and reload again.But there is no request id in IC. So plz guide me how I can tranfer data to InfoCube overcoming this problem.
    Actually further updata was running from DSO to IC. But it failed. Executing Function Module : RSPC_PROCESS_FINISH, I set the chain  green before loading
    data to InfoCube. So it starts executing the next chain. So there is no request id. So plz guide me how I can retain this request id.
    Edited by: Purushotham Reddy on Jan 28, 2008 11:19 AM

    Hi Reddy,
    Make the QM Status Red of the failed request even if it is red.
    and then run the same infopackage used in the chain. This will ask for repeat of last delta.
    If this process is understood to u then its fine otherwise read below:
    the other option is check if this failed request is present in PSA. If it is present in PSA then update the failed request from PSA, here u wont need to do a repeat of last delta. This Option is easier. this u can do from the ,manage tab of the data source I think this u might be surely knowing....
    Assign Points if it helps u.....
    Thanks,
    Nagesh.

  • Problem while transfering data from form to excel

    Hi all.
    I have a little problem. I have a procedure that fires on when-button-pressed trigger that goes to current block and download the data into an excel file.
    The block has 2200 records.
    The problem is that if I make the application visible all is ok; if I make the application not visible it remains "append" and nothing happens.
    I'm on developer suite 10g.
    Here is the code:
    PROCEDURE pr_Forms_to_Excel(p_block_name IN VARCHAR2 DEFAULT NAME_IN('system.current_block')) IS
    -- Declare the OLE objects
    application OLE2.OBJ_TYPE;
    workbooks OLE2.OBJ_TYPE;
    workbook OLE2.OBJ_TYPE;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    cell OLE2.OBJ_TYPE;
    range OLE2.OBJ_TYPE;
    range_col OLE2.OBJ_TYPE;
    -- Declare handles to OLE argument lists
    args OLE2.LIST_TYPE;
    -- Declare form and block items
    form_name VARCHAR2(100);
    f_block VARCHAR2(100);
    l_block VARCHAR2(100);
    f_item VARCHAR2(100);
    l_item VARCHAR2(100);
    cur_block VARCHAR2(100) := NAME_IN('system.current_block');
    cur_item VARCHAR2(100) := NAME_IN('system.current_item');
    cur_record VARCHAR2(100) := NAME_IN('system.cursor_record');
    item_name VARCHAR2(100);
    baslik VARCHAR2(100);
    row_n NUMBER;
    col_n NUMBER;
    filename VARCHAR2(100);
    BEGIN
    -- Start Excel
    application:=OLE2.CREATE_OBJ('Excel.Application');
    OLE2.SET_PROPERTY(application, 'Visible', 'TRUE');
    -- Return object handle to the Workbooks collection
    workbooks:=OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    -- Add a new Workbook object to the Workbooks collection
    workbook:=OLE2.GET_OBJ_PROPERTY(workbooks,'Add');
    -- Return object handle to the Worksheets collection for the Workbook
    worksheets:=OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    -- Get the first Worksheet in the Worksheets collection
    -- worksheet:=OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1);
    worksheet:=OLE2.GET_OBJ_PROPERTY(worksheets,'Item',args);
    OLE2.DESTROY_ARGLIST(args);
    -- Return object handle to cell A1 on the new Worksheet
    go_block(p_block_name);
    baslik := get_block_property(p_block_name,FIRST_ITEM);
    f_item := p_block_name||'.'||get_block_property(p_block_name,FIRST_ITEM);
    l_item := p_block_name||'.'||get_block_property(p_block_name,LAST_ITEM);
    first_record;
    LOOP
    item_name := f_item;
    row_n := NAME_IN('SYSTEM.CURSOR_RECORD');
    col_n := 1;
    LOOP
    IF get_item_property(item_name,ITEM_TYPE)<>'BUTTON' AND
    get_item_property(item_name,VISIBLE)='TRUE'
    THEN
    -- Set first row with the item names
    IF row_n=1 THEN
    baslik:=NVL(get_item_property(item_name,PROMPT_TEXT),baslik);
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, row_n);
    OLE2.ADD_ARG(args, col_n);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(cell, 'Value', baslik);
    OLE2.RELEASE_OBJ(cell);
    END IF;
    -- Set other rows with the item values
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, row_n+1);
    OLE2.ADD_ARG(args, col_n);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    IF get_item_property(item_name,DATATYPE)<>'NUMBER' THEN
    OLE2.SET_PROPERTY(cell, 'NumberFormat', '@');
    END IF;
    OLE2.SET_PROPERTY(cell, 'Value', name_in(item_name));
    OLE2.RELEASE_OBJ(cell);
    END IF;
    IF item_name = l_item THEN
    exit;
    END IF;
    baslik := get_item_property(item_name,NEXTITEM);
    item_name := p_block_name||'.'||get_item_property(item_name,NEXTITEM);
    col_n := col_n + 1;
    END LOOP;
    EXIT WHEN NAME_IN('system.last_record') = 'TRUE';
    NEXT_RECORD;
    END LOOP;
    -- Autofit columns
    range := OLE2.GET_OBJ_PROPERTY( worksheet,'UsedRange');
    range_col := OLE2.GET_OBJ_PROPERTY( range,'Columns');
    OLE2.INVOKE( range_col,'AutoFit' );
    OLE2.RELEASE_OBJ( range );
    OLE2.RELEASE_OBJ( range_col );
    -- Get filename and path
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG( args, p_block_name );
    OLE2.ADD_ARG( args,'Excel Workbooks (*.xls, *.xls');
    filename := OLE2.INVOKE_CHAR( application,'GetSaveAsFilename',args );
    OLE2.DESTROY_ARGLIST( args );
    -- Save as worksheet
    IF NVL(filename,'0')<>'0' THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG( args,filename );
    OLE2.INVOKE( worksheet,'SaveAs',args );
    OLE2.DESTROY_ARGLIST( args );
    END IF;
    -- Close workbook
    OLE2.INVOKE( workbook ,'Close');
    -- Release the OLE objects
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(worksheets);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.INVOKE(application, 'Quit');
    OLE2.RELEASE_OBJ(application);
    -- Focus to the original location
    go_block(cur_block);
    go_record(cur_record);
    go_item(cur_block||'.'||cur_item);
    END;
    Is there anyone that can help me????
    Thanks,
    Fabrizio

    Hi all.
    I have a little problem. I have a procedure that fires on when-button-pressed trigger that goes to current block and download the data into an excel file.
    The block has 2200 records.
    The problem is that if I make the application visible all is ok; if I make the application not visible it remains "append" and nothing happens.
    I'm on developer suite 10g.
    Here is the code:
    PROCEDURE pr_Forms_to_Excel(p_block_name IN VARCHAR2 DEFAULT NAME_IN('system.current_block')) IS
    -- Declare the OLE objects
    application OLE2.OBJ_TYPE;
    workbooks OLE2.OBJ_TYPE;
    workbook OLE2.OBJ_TYPE;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    cell OLE2.OBJ_TYPE;
    range OLE2.OBJ_TYPE;
    range_col OLE2.OBJ_TYPE;
    -- Declare handles to OLE argument lists
    args OLE2.LIST_TYPE;
    -- Declare form and block items
    form_name VARCHAR2(100);
    f_block VARCHAR2(100);
    l_block VARCHAR2(100);
    f_item VARCHAR2(100);
    l_item VARCHAR2(100);
    cur_block VARCHAR2(100) := NAME_IN('system.current_block');
    cur_item VARCHAR2(100) := NAME_IN('system.current_item');
    cur_record VARCHAR2(100) := NAME_IN('system.cursor_record');
    item_name VARCHAR2(100);
    baslik VARCHAR2(100);
    row_n NUMBER;
    col_n NUMBER;
    filename VARCHAR2(100);
    BEGIN
    -- Start Excel
    application:=OLE2.CREATE_OBJ('Excel.Application');
    OLE2.SET_PROPERTY(application, 'Visible', 'TRUE');
    -- Return object handle to the Workbooks collection
    workbooks:=OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    -- Add a new Workbook object to the Workbooks collection
    workbook:=OLE2.GET_OBJ_PROPERTY(workbooks,'Add');
    -- Return object handle to the Worksheets collection for the Workbook
    worksheets:=OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    -- Get the first Worksheet in the Worksheets collection
    -- worksheet:=OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1);
    worksheet:=OLE2.GET_OBJ_PROPERTY(worksheets,'Item',args);
    OLE2.DESTROY_ARGLIST(args);
    -- Return object handle to cell A1 on the new Worksheet
    go_block(p_block_name);
    baslik := get_block_property(p_block_name,FIRST_ITEM);
    f_item := p_block_name||'.'||get_block_property(p_block_name,FIRST_ITEM);
    l_item := p_block_name||'.'||get_block_property(p_block_name,LAST_ITEM);
    first_record;
    LOOP
    item_name := f_item;
    row_n := NAME_IN('SYSTEM.CURSOR_RECORD');
    col_n := 1;
    LOOP
    IF get_item_property(item_name,ITEM_TYPE)<>'BUTTON' AND
    get_item_property(item_name,VISIBLE)='TRUE'
    THEN
    -- Set first row with the item names
    IF row_n=1 THEN
    baslik:=NVL(get_item_property(item_name,PROMPT_TEXT),baslik);
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, row_n);
    OLE2.ADD_ARG(args, col_n);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(cell, 'Value', baslik);
    OLE2.RELEASE_OBJ(cell);
    END IF;
    -- Set other rows with the item values
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, row_n+1);
    OLE2.ADD_ARG(args, col_n);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    IF get_item_property(item_name,DATATYPE)<>'NUMBER' THEN
    OLE2.SET_PROPERTY(cell, 'NumberFormat', '@');
    END IF;
    OLE2.SET_PROPERTY(cell, 'Value', name_in(item_name));
    OLE2.RELEASE_OBJ(cell);
    END IF;
    IF item_name = l_item THEN
    exit;
    END IF;
    baslik := get_item_property(item_name,NEXTITEM);
    item_name := p_block_name||'.'||get_item_property(item_name,NEXTITEM);
    col_n := col_n + 1;
    END LOOP;
    EXIT WHEN NAME_IN('system.last_record') = 'TRUE';
    NEXT_RECORD;
    END LOOP;
    -- Autofit columns
    range := OLE2.GET_OBJ_PROPERTY( worksheet,'UsedRange');
    range_col := OLE2.GET_OBJ_PROPERTY( range,'Columns');
    OLE2.INVOKE( range_col,'AutoFit' );
    OLE2.RELEASE_OBJ( range );
    OLE2.RELEASE_OBJ( range_col );
    -- Get filename and path
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG( args, p_block_name );
    OLE2.ADD_ARG( args,'Excel Workbooks (*.xls, *.xls');
    filename := OLE2.INVOKE_CHAR( application,'GetSaveAsFilename',args );
    OLE2.DESTROY_ARGLIST( args );
    -- Save as worksheet
    IF NVL(filename,'0')<>'0' THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG( args,filename );
    OLE2.INVOKE( worksheet,'SaveAs',args );
    OLE2.DESTROY_ARGLIST( args );
    END IF;
    -- Close workbook
    OLE2.INVOKE( workbook ,'Close');
    -- Release the OLE objects
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(worksheets);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.INVOKE(application, 'Quit');
    OLE2.RELEASE_OBJ(application);
    -- Focus to the original location
    go_block(cur_block);
    go_record(cur_record);
    go_item(cur_block||'.'||cur_item);
    END;
    Is there anyone that can help me????
    Thanks,
    Fabrizio

  • Facing  problem in fetching data

    hello everyone ,
    can anyone help me out  frm the problem , i need to fetch  data in alv  report (  likp-vbeln  ,lips-vgbel , likp-kunnr , vbpa-lifnr , vbrp-vgbel,vbuk-fkstk,vbrk-kunrg, vbrk-fkart and lfa1-name1 )  using  input parameter lips-vbeln or likp-vbeln .every time  i stuck in  select querries  for  fetching fieds  of   vbpa vbrk  vbrp vbuk and lfa1 .
    i am new to this forum excuse for  any mistake  regarding the rules and restriction .
    ranjan

    Moderator message - Welcome to SCN.
    Please read Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Thread locked.
    Rob

  • Facing problem in getting data in different field

    hi,
    i have made a report in ALV format. n the whole code is this..
    TABLES: VBAK,vbap.
    type-pools: slis.       "ALV Declarations
    SELECT-OPTIONS:
    s_sales   for    vbak-kunnr    obligatory,
    s_date    for    VBAK-audat    obligatory.
    *Data Declaration
    types: begin of s_sales,
      kunnr like vbak-kunnr,
      ernam like VBRP-ernam,
      audat like VBAK-audat,
      aufnr like VBAK-aufnr,
      KBMENG like vbap-KWMENG,
      matnr like vbap-matnr,
      matwa like vbap-matkl,
      end of s_sales.
    DATA: IT_VBAKUK TYPE STANDARD TABLE OF s_sales INITIAL SIZE 0,
          WA_sales TYPE s_sales.
    *ALV data declarations.
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *start-of-selection.
    START-OF-SELECTION.
      perform data_retrieval.
      perform build_fieldcatalog.
      perform build_layout.
      perform display_alv_report.
    *&      Form  build_fieldcatalog
          text
    form build_fieldcatalog.
      fieldcatalog-fieldname   = 'KUNNR'.
      fieldcatalog-seltext_m   = 'Customer Code'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'ernam'.
      fieldcatalog-seltext_m   = 'Customer Name'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'stadat'.
      fieldcatalog-seltext_m   = 'Order Date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'aufnr'.
      fieldcatalog-seltext_m   = 'Order No'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'KWMENG'.
      fieldcatalog-seltext_m   = 'Quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'matnr'.
      fieldcatalog-seltext_m   = 'Material Code'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'matkl'.
      fieldcatalog-seltext_m   = 'Material Description'.
      fieldcatalog-col_pos     = 7.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    "build_fieldcatalog
    *&      Form  build_layout
          text
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
    endform.                    "build_layout
    *&      Form  display_alv_report
          text
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = gd_repid
          is_layout          = gd_layout
          it_fieldcat        = fieldcatalog[]
          i_save             = 'X'
        TABLES
          t_outtab           = IT_VBAKUK
        EXCEPTIONS
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  data_retrieval
          text
    form data_retrieval.
      select vbakkunnr VBakernam VBAkaudat vbakaufnr vbapKWMENG vbapmatnr vbap~matkl
      up to 10 rows
        from vbak inner join vbap on vbakvbeln = vbapvbeln
        into table IT_VBAKUK.
    endform.                    "data_retrieval
    When a execute this query it get this result:
    Customer code Customer No. Order Date      *Order No. *        *Quantity *        Material code  Material Description
    0000001390     0000001390     0000001390     0000001390     0000001390     0000001390     0000001390
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001001     0000001001     0000001001     0000001001     0000001001     0000001001     0000001001
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    You can see in all column data is repeating even tough i have given different field name...
    Kindly give me solution of this problem.
    Thanks n Regards.

    hi,
    i have these field:
    *select VBAK~KUNNR VBAK~ERNAM VBAK~AUDAT VBAK~AUFNR VBAP~KWMENG VBAP~MATNR VBAP~MATKL
      up to 10 rows
        from VBAK inner join VBAP on VBAK~VBELN = VBAP~VBELN
        into table IT_VBAKUK.
    endform.*
    I want to add these field in my parameter by using WHERE clause but don't know how to restrict these field using where clause.
    Kindly give me some example related to this.
    Regards

  • Problem while transferring data between views

    HI,
    I have been assigned to a requirement wherein i am working first time in web dynpro. So i followed all the pdf training document for developing application. Now there is a requirement wherein have created 2 views and its required nodes and i have attached those 2 views to window with necessary plug binding. Its for travel report . On first view i have one selection screen and ALV display for header data. Now i am using using components for alv which is defined both in controller as well as in view. Also i am suing onclick property of that alv. Now the thing is that there are 2 nodes respectively HEAD and ITEM. HEAD node would get displayed on first screen and based on selection of one row from that ALV, its corresponding item data would get displayed in another view  for which i have written code in method of first view . From that method i am filling data based on raw selection and passing it to second view. The problem is i have done necessary binding and pluging but still when i pass data from first view to second view dump get displayed saying that ITEM node not found for which i have added that ITEM node to both view first view and second view.still problem persist. As an RND i also removed table from second view and it was observed that control is flowing to second view it means there is no issue wid plug binding. Even when i removed alv from second view and put in first view then its working fine.What could be cause of this problem ? I am using ALV component SALV for first view and for second view i am using TABLE element of layout. Can i use same component for second view also ?
    Kindly suggest.
    Thanks
    Parag

    Hi,
    You have to created a new method subscribing ON_LEAD_SELECTION event of the ALV, which will get triggered on selection of a row in the ALV.
    Now, in the same method get the selected row data and write the logic to fill fetch the item details for the selected row and bind the item data to the ITEM node which you are going to display in second view. So as the item data is binded to the ITEM node, the data gets populated in the table (  which is there in second view ) .
    DATA:         node_X    TYPE REF TO if_wd_context_node,
                        elem_X    TYPE REF TO if_wd_context_element,
                        stru_X      TYPE f_main=>element_X .
      node_X = wd_context->get_child_node( name = wd_this->wdctx_X ).
    * get element via lead selection
      elem_X = node_search_results->get_element( r_param->index ).
    * get all declared attributes
      elem_X->get_static_attributes(
        IMPORTING
          static_attributes = stru_X ).
    depending on the stru_X values fetch the item data and bind the data to the ITEM node.
    Thanks,
    Shailaja Ainala.

  • Facing problem in writing data to excel sheet using ActiveX

    Hi.
    I want to write data from a one dimesional array to a particular excel sheet in a particular row.Please see the attached vi for explantion.
    It is giving error.But If I give a new file name when the appliation is getting closed it is writing data to the new excel file.
    Please help.
    Thanks in advance
    Attachments:
    Excel sheetWrite.vi ‏90 KB

    Thanks Jhoskin and Rudi .......
    I am able to write data to excel sheet now. I am attaching one"test.zip" file that contains a VI named "Squence.vi "that contains another subVI named "Write U94006 Table To XL.vi"which does the functionality of counting the number of rows in the excel sheet and writing data in the next blank row. I am using the same subVI in the VI named "Sequence.vi"two times so it is taking a lot of time in opening and closing the excel sheet. Will you please suggest some way of calling the subVI only one time.
    Rikki
    Attachments:
    Test.zip ‏105 KB

  • I am facing problem in loading data in ap_invoices_all  in R12 through API

    Hi,
    When I am trying to load data in R12 through API (ap_invoices_pkg. Insert_Row), I can see my record in base table ap_invoices_all but I can't find my record from frontend application.
    MAGSA AP Supervisor -> Invoices -> Entry -> Invoices.
    I will be very greatful if anyone can tell me the reason why I am not able to find my record.
    Thanks
    Ranjana

    I believe the issue is related to Multi Org Access Control (MOAC) - pl see MOS Doc 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code - for a discussion.
    HTH
    Srini

  • Facing problem in replicating data containing LOB column

    Hi All,
    did everyone implemented stream replication successfully using LOB data. MY replication is up and runningas all other tables (w/o LOB columns) are replicated fine but table with LOB column giveing Insert error. Is any thing special to be done for LOB column?
    thanks in advance

    hi,
    i have these field:
    *select VBAK~KUNNR VBAK~ERNAM VBAK~AUDAT VBAK~AUFNR VBAP~KWMENG VBAP~MATNR VBAP~MATKL
      up to 10 rows
        from VBAK inner join VBAP on VBAK~VBELN = VBAP~VBELN
        into table IT_VBAKUK.
    endform.*
    I want to add these field in my parameter by using WHERE clause but don't know how to restrict these field using where clause.
    Kindly give me some example related to this.
    Regards

  • Facing problem in selecting data based on the join s tatement ppls suggest

    hi
    cosider a sceneio as below
    there  are six tables    table1
                                    table2 
                                    table3       table4 
                                                               table5 table6
    join conditons between tables
    table1-lclic (primary key) = table2-lclic
    table1-lgreg = table3-lgreg (PK for table 3)
    table2-pobj = table4-pobj
    i have used join statment to join table 1 table 2table3
    i want to select data from table5
    table5-ccngn and table6-text
    now condion for validation is that
    table5-field1 is selected if table4-ctsex = table3-ctsty and tehre is no link between table 5 and table 3 o nly link is through table 4
    table4-ctsnum=table5-ctsnum (primary keys)
    can anyone suggest how to format the select statement
    regards
    Arora

    Hi Nishant,
    Using Table Joins for multiple tables would severely hamper the performance of the SAP system.
    Instead use individual select statements for each database table, and later reconcile all the internal tables.
    <b>Reward points, if helpful.</b>
    Regards,
    Atin

  • Error in subroutine READ_NAMTB while transferring data from HCM to xRPM.

    Hi Guys,
    I am facing a problem while transferring data from HCM to xRPM via ALE.
    We are getting the error " Error in subroutine READ_NAMTB" during the Inbound Processing of Idocs in xRPM.
    We have used the standard message type HRMD_ABA and IDoc type HRMD_ABA04 without any modifications.
    Request you all to kindly let me know the solution to fix this issue asap.
    Thanks in advance,
    Punkuj..

    It was a bug in SP2, it is fixed in SP2 Patch 4.
    Cheers !!
    Zaheer

Maybe you are looking for

  • XI PCK Does Not Read Imported Tables

    Scenario is as follows: 1. I have an environment from which I export all my objects (comm channels, send agr., receive agr.). 2. I use loadercli to extract all the following tables: TABLEEXTRACT table XI_AF_CPA_PARTY data outstream file '/home/j2eadm

  • Paragraph format import woes...

    I may be a bit rusty (almost three years of forced MS Wording, yuck) and a beginner with FM 9, so this may be entirely my own stupidity, but: I have set up a template document with para styles, master pages etc. When I import the styles into other do

  • Error in jdo_1_0.dtd

    It seems that .jdo file complains about the connection error for the following url that appears in every .jdo that is generated by kodo. http://java.sun.com/dtd/jdo_1_0.dtd what should I do to avoid the error? Thank you

  • 4GB RAM upgrade iMac 7.1 into a coma

    OK. Trying to upgrade my Dad's 20" iMac (v7.1 Intel Core 2 Duo 2.4GHz) from its base 2GB RAM to 4GB. Followed instructions explicitly and installed a pair of compatible 2GB modules from Crucial. Switch Mac back on and fan whirls but screen doesn't ap

  • Restoring T30 from recovery CD set and going round and round in circles!!!

    Hi! I bought an IBM ThinkPad T30 model 2367-8G3 from a computer fair which appeared to have originally been Scandinavian by the look of its keyboard!!! When I got it home I found it had a pirated copy of XP Pro VLK that practically every computer-fai