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.

Similar Messages

  • Kernel Panic while transfering data between MAC HD and network drives

     Kernel Panic while transfering data between MAC HD and network drives. it's an iMAC 24" 2011. Snow Leopard 10.6.8. I can't seem to find the cause to this.Thank you guys !
    Here is the log fine  with error code:
    Error code: 0x0000000000000000
    Interval Since Last Panic Report:  5 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    3C5AA43F-D876-4F9D-A831-D8043218C6E0
    Tue Aug 16 14:54:46 2011
    panic(cpu 0 caller 0xffffff80002d1208): Kernel trap at 0xffffff7f815c6b54, type 14=page fault, registers:
    CR0: 0x000000008001003b, CR2: 0x0000000000000005, CR3: 0x0000000000100000, CR4: 0x0000000000040660
    RAX: 0x0000000000000000, RBX: 0xffffff8000000000, RCX: 0x0000000001000000, RDX: 0xffffff8013ae9200
    RSP: 0xffffff80de173ea0, RBP: 0xffffff80de173ed0, RSI: 0x0000000000000000, RDI: 0xffffff8013ae9200
    R8:  0x0000000000000001, R9:  0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000000
    R12: 0x0000000000000000, R13: 0xffffff8016207008, R14: 0xffffff8015a228f8, R15: 0x0000000000000000
    RFL: 0x0000000000010246, RIP: 0xffffff7f815c6b54, CS:  0x0000000000000008, SS:  0x0000000000000010
    Error code: 0x0000000000000000
    Backtrace (CPU 0), Frame : Return Address
    0xffffff80de173b40 : 0xffffff8000204d15
    0xffffff80de173c40 : 0xffffff80002d1208
    0xffffff80de173d90 : 0xffffff80002e3f4a
    0xffffff80de173da0 : 0xffffff7f815c6b54
    0xffffff80de173ed0 : 0xffffff80002524fe
    0xffffff80de173f00 : 0xffffff8000478c7f
    0xffffff80de173f40 : 0xffffff7f8159b158
    0xffffff80de173fa0 : 0xffffff80002c8527
          Kernel Extensions in backtrace (with dependencies):
             com.thursby.kext.cifs(5.1)@0xffffff7f815ae000->0xffffff7f815cffff
                dependency: com.thursby.kext.NetBIOS(5.1)@0xffffff7f8158b000
             com.thursby.kext.NetBIOS(5.1)@0xffffff7f8158b000->0xffffff7f815adfff
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    10K549
    Kernel version:
    Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64
    System model name: iMac12,1 (Mac-942B5BF58194151B)
    System uptime in nanoseconds: 105374280984
    unloaded kexts:
    (none)
    loaded kexts:
    com.vmware.kext.vmnet            3.1.3
    com.vmware.kext.vmioplug       3.1.3
    com.vmware.kext.vmci                3.1.3
    com.trendmicro.kext.KERedirect              1.0.0
    com.trendmicro.kext.filehook   1.5.0
    com.vmware.kext.vmx86            3.1.3
    com.thursby.kext.cifs    5.1
    com.thursby.kext.NetBIOS         5.1
    com.apple.filesystems.smbfs     1.6.7 - last loaded 60402747883
    com.apple.filesystems.autofs    2.1.0
    com.apple.driver.AppleTyMCEDriver      1.0.2d2
    com.apple.driver.AppleHWSensor           1.9.3d0
    com.apple.driver.AudioAUUC    1.57
    com.apple.driver.AppleUpstreamUserClient      3.5.7
    com.apple.driver.AppleMikeyHIDDriver                1.2.0
    com.apple.driver.AppleMCCSControl     1.0.20
    com.apple.driver.AppleIntelPenrynProfile           17
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AppleMikeyDriver       2.0.5f14
    com.apple.kext.ATIFramebuffer              6.3.6
    com.apple.driver.AppleBluetoothMultitouch     54.3
    com.apple.driver.AppleIntelHDGraphics               6.3.6
    com.apple.driver.AppleIntelNehalemProfile       11
    com.apple.driver.AudioIPCDriver             1.1.6
    com.apple.driver.AppleHDA       2.0.5f14
    com.apple.driver.AppleGraphicsControl               2.10.6
    com.apple.ATIRadeonX3000       6.3.6
    com.apple.iokit.AppleBCM5701Ethernet              3.0.5b8
    com.apple.driver.AppleIntelMeromProfile          19
    com.apple.driver.AirPort.Atheros9388   426.35.3
    com.apple.driver.ACPI_SMC_PlatformPlugin      4.7.0a1
    com.apple.driver.AppleLPC         1.5.1
    com.apple.driver.AppleBacklight              170.0.46
    com.apple.kext.AppleSMCLMU                1.5.2d10
    com.apple.driver.AppleIntelSNBGraphicsFB        6.3.6
    com.apple.driver.AppleUSBCardReader                2.6.1
    com.apple.driver.AppleIRController        303.8
    com.apple.iokit.SCSITaskUserClient        2.6.8
    com.apple.iokit.IOAHCIBlockStorage      1.6.4
    com.apple.driver.AppleUSBHub               4.2.4
    com.apple.driver.AppleFWOHCI               4.7.3
    com.apple.BootCache   31.1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib                1.0.0d1
    com.apple.driver.AppleEFINVRAM          1.4.0
    com.apple.driver.AppleAHCIPort             2.1.7
    com.apple.driver.AppleUSBEHCI              4.2.4
    com.apple.driver.AppleUSBUHCI             4.2.0
    com.apple.driver.AppleACPIButtons      1.3.6
    com.apple.driver.AppleRTC        1.3.1
    com.apple.driver.AppleHPET      1.5
    com.apple.driver.AppleSMBIOS                1.7
    com.apple.driver.AppleACPIEC 1.3.6
    com.apple.driver.AppleAPIC      1.4
    com.apple.driver.AppleIntelCPUPowerManagementClient         142.6.0
    com.apple.security.sandbox       1
    com.apple.security.quarantine  0
    com.apple.nke.applicationfirewall           2.1.12
    com.apple.driver.AppleIntelCPUPowerManagement     142.6.0
    com.apple.driver.AppleProfileReadCounterAction           17
    com.apple.driver.AppleProfileTimestampAction               10
    com.apple.driver.AppleProfileThreadInfoAction               14
    com.apple.driver.AppleProfileRegisterStateAction          10
    com.apple.driver.AppleProfileKEventAction       10
    com.apple.driver.AppleProfileCallstackAction    20
    com.apple.iokit.IOSurface           74.2
    com.apple.iokit.IOBluetoothSerialManager         2.4.5f3
    com.apple.iokit.IOSerialFamily   10.0.3
    com.apple.driver.AppleHDAHardwareConfigDriver          2.0.5f14
    com.apple.driver.IOBluetoothHIDDriver               2.4.5f3
    com.apple.driver.AppleMultitouchDriver             207.11
    com.apple.driver.DspFuncLib     2.0.5f14
    com.apple.iokit.IOAudioFamily  1.8.3fc2
    com.apple.kext.OSvKernDSPLib                1.3
    com.apple.driver.AppleSMBusController              1.0.10d0
    com.apple.iokit.IOFireWireIP     2.0.3
    com.apple.iokit.AppleProfileFamily         41
    com.apple.driver.AppleHDAController   2.0.5f14
    com.apple.iokit.IOHDAFamily     2.0.5f14
    com.apple.iokit.IO80211Family  320.1
    com.apple.iokit.IONetworkingFamily      1.10
    com.apple.driver.IOPlatformPluginFamily            4.7.0a1
    com.apple.driver.AppleSMBusPCI           1.0.10d0
    com.apple.driver.AppleBacklightExpert 1.0.1
    com.apple.iokit.IONDRVSupport              2.2
    com.apple.driver.AppleSMC       3.1.0d5
    com.apple.driver.AppleThunderboltEDMSink     1.1.1
    com.apple.driver.AppleThunderboltEDMSource               1.1.1
    com.apple.kext.ATI6000Controller           6.3.6
    com.apple.kext.ATISupport        6.3.6
    com.apple.iokit.IOGraphicsFamily            2.2
    com.apple.driver.AppleThunderboltDPOutAdapter         1.3.2
    com.apple.driver.AppleThunderboltDPInAdapter            1.3.2
    com.apple.driver.AppleThunderboltDPAdapterFamily   1.3.2
    com.apple.driver.AppleThunderboltPCIDownAdapter   1.1.6
    com.apple.driver.AppleUSBHIDKeyboard             141.5
    com.apple.driver.AppleHIDKeyboard     141.5
    com.apple.driver.BroadcomUSBBluetoothHCIController               2.4.5f3
    com.apple.driver.AppleUSBBluetoothHCIController        2.4.5f3
    com.apple.iokit.IOBluetoothFamily         2.4.5f3
    com.apple.iokit.IOUSBMassStorageClass              2.6.7
    com.apple.iokit.IOSCSIBlockCommandsDevice   2.6.8
    com.apple.iokit.IOUSBHIDDriver               4.2.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice      2.6.8
    com.apple.iokit.IOBDStorageFamily        1.6
    com.apple.iokit.IODVDStorageFamily     1.6
    com.apple.iokit.IOCDStorageFamily        1.6.1
    com.apple.driver.AppleUSBMergeNub 4.2.4
    com.apple.driver.AppleUSBComposite  3.9.0
    com.apple.driver.XsanFilter        402.1
    com.apple.iokit.IOAHCISerialATAPI         1.2.6
    com.apple.iokit.IOSCSIArchitectureModelFamily              2.6.8
    com.apple.driver.AppleThunderboltNHI               1.2.6
    com.apple.iokit.IOThunderboltFamily    1.4.9
    com.apple.iokit.IOFireWireFamily            4.2.6
    com.apple.iokit.IOUSBUserClient             4.2.4
    com.apple.driver.AppleFileSystemDriver              2.0
    com.apple.iokit.IOAHCIFamily    2.0.6
    com.apple.iokit.IOUSBFamily     4.2.4
    com.apple.driver.AppleEFIRuntime         1.4.0
    com.apple.iokit.IOHIDFamily      1.6.6
    com.apple.iokit.IOSMBusFamily                1.1
    com.apple.security.TMSafetyNet             6
    com.apple.kext.AppleMatch      1.0.0d1
    com.apple.driver.DiskImages     289
    com.apple.iokit.IOStorageFamily              1.6.3
    com.apple.driver.AppleACPIPlatform     1.3.6
    com.apple.iokit.IOPCIFamily       2.6.5
    com.apple.iokit.IOACPIFamily    1.3.0
    System Profile:
    Model: iMac12,1, BootROM IM121.0047.B0A, 4 processors, Intel Core i5, 2.7 GHz, 8 GB, SMC 1.71f22
    Graphics: AMD Radeon HD 6770M, AMD Radeon HD 6770M, PCIe, 512 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x9A), Atheros 9380: 4.0.35.3
    Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HDS722020ALA330, 1.82 TB
    Serial ATA Device: OPTIARC DVD RW AD-5690H
    USB Device: Hub, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
    USB Device: Officejet Pro 8000 A809, 0x03f0  (Hewlett Packard), 0x3612, 0xfd140000 / 5
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0xfd110000 / 4
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0xfd120000 / 3
    USB Device: FaceTime HD Camera (Built-in), 0x05ac  (Apple Inc.), 0x850b, 0xfa200000 / 3
    USB Device: Hub, 0x0424  (SMSC), 0x2514, 0xfa100000 / 2
    USB Device: Keyboard Hub, 0x05ac  (Apple Inc.), 0x1006, 0xfa130000 / 5
    USB Device: Apple Keyboard, 0x05ac  (Apple Inc.), 0x0220, 0xfa132000 / 8
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0xfa111000 / 6

    There is something incompatible would be my guess. Did you disconnect all your peripherals in safe mode just to check?
    You might now create a new temporary user account. Log into the new account. Do the panics still occur?
    I would also visit The XLab FAQs and read the FAQ on diagnosing kernel panics. Sometimes they can be difficult to track down. Looking at each new panic log would help determine if it's cause is associated with the same extensions.

  • 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

  • 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

  • Problem while retrving data from a view

    Hi Friends
      i have a problem while retriving data from a view <b>v_t685a</b>.
    the error message is :""" "V_T685A" is not defined in the ABAP Dictionary as a table, projection view or database view."""
    i wrote : select single VTEXT1 from V_T685A into w_cst_jin1 where
                        KSCHL = 'JIN1' and
                        KAPPL = 'V'.
    how to retrive the data.
    waiting for quick response
    Regards
    Mukesh

    Hi
    This is a Maintenance View, not a Database View
    SO can't fetch data using select statement.
    You can use the Table <b>T685</b> directly to fetch the condition Types data straight away instead of the view. write the same select for this table and use.
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • HT1296 I have a problem synching calendar data between my iPhone 3GS iOS 5.1 & Outlook 2007 on MS7.  The basic calendar is OK but the birthdays (little box icon) are a day early & cannot be changed to the correct date. How can I fix this?

    I have a problem synching calendar data between my iPhone 3GS iOS 5.1 & Outlook 2007 on MS7.  The basic calendar data transfer is OK but the birthdays (little box icon) are a day early & cannot be changed to the correct date. The birthday entries in my Outlook contacts have correct dates.How can I fix this?

    The following peocess corrects the calendar entry:
    edit the contact & change the birthday, save the change; edit the contact & change the birthday to the correct value, save the change again. The calendar entry then displays on the correct date.  Alternatively as a temp solution I can just de-select the "birthdays" calendar which stops the icon being displayed.
    Thanks for your advice, I think that it's n going to be a slow process to fix all the entries for not much return.

  • Fatal error while transferring data from one bb to another

    I was trying to transfer data from one bb to a different bb using the bb desktop manager tool.  It collected all the data from the first bb fine and then while transferring data to the new one it said a fatal error occured to try again.  That bb will not even turn on now.  No white screen or anything.  Its like there is no operating system.  I don't know what to do.  I tried to connect it and just update the software but that isnt working either.  Says it is not responding during initialization! I think I killed it.... any ideas what to do???

    You can try to reload the OS in one of the following ways
    http://www.blackberry.com/btsc/KB03485
    http://blackberryfaq.net/index.php/How_do_I_wipe_the_BlackBerry_using_Jl_Cmder%3F
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • HT201269 while transferring data from iphone 3GS to iphone 4S SMS details are not getting transferred.

    While transferring data from old iphone 3gs to new iphone4s through itunes the data in messages is not getting transferred.

    @ melfromvictoria
    Have you tried right clicking on the 4s and select "restore from back up"

  • HT1473 Im having problem while transferring songs from PC to Ipod. Ive followed all steps 'File Add to Library' but i cant find songs in my ipod. Ive also synced the ipod and backup as well but still same. what to do?

    Im having problem while transferring songs from PC to Ipod. Ive followed all steps 'File<Add to Library' but i cant find songs in my ipod. Ive also synced the ipod and backup as well but still same. what to do?

    Try:
    iTunes: Finding lost media and downloads
    iTunes: How to re-create your iTunes library and playlists
    Next try:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Also:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Problem while loading data from ODS to infoobject

    Hi guys,
    I am facing problem while loading data from <b>ODS to infoobject</b>.
    If I load data via PSA it works fine but
    if I load data without PSA its giving error as Duplicate records.
    Do u have any idea why it is so.
    Thanks in advance
    savio

    Hi,
    when you load the data via the PSA, what did you select? Serial or Paralel?
    If you select serial most likely you don't have duplicates within the same datapackage and your load can go through.
    Loading directly in the IObj will happen thefore if you have the same key in two different packages, the "duplicate records" will be raised; you can perhaps flag your IPack with the option "ignore duplicate records" as suggested...
    hope this helps...
    Olivier.

  • Problem while uploading data with GUI UPLOAD Function

    Hi,
      I am facing problem while uploading data with FM GUI UPLOAD    in out text file there are 7 row  but after the FM GUI UPLOAD  there are 14 entries are coming in Internal table   and each alternate row is coming as blank  with  0000 in some column   in internal table first row is proper and second line is blank so on.
    what can be the problem .
    The program in which we are using this we are using it from last 2 year but we are facing problem today only.
    regards,
      zafar

    Hi,
      The file formate is same as it is from last two years it is automatically generated by one another bar code server and there is no change  in the file formate.
      So waht can be the problem  to check any inconsistancy in system  i have develop a samll program fro  uploading a text file with same function module ,  but it is working fine.
    regards,
      zafar

  • How to rollback a traansacation if we got any problem while sending data to

    how to rollback a traansacation if we got any problem while sending data to a webservice...

    Is it SOA or OSB? Which version you are in..

  • What are the alternate methods of transferring data between apps built on ios

    Hi All,
    What could be the alternate methods of transferring data between apps built on ios?
    Please comment.
    Thanks
    Pankaj

    I'm not aware of any apps that can open pdfs from iBooks, but I could well be wrong. There are a small number of apps that will open pdfs from emails, you can also open pdfs from some applications ike dropbox which has an iOS app so you can access any document you can open on iOS and sync between devices and computers.
    Sorry if this is all a little vague, I'm not exactly sure what it is you are asking

  • While transfering data from my pc to my mac  my pc crashed. what do i do now??

    While transfering data from my old pc to my new mac the pc crashed what do i do now?

    If you used Migration Assistant and do not have the PC data on an external disk you can merge the two accounts by copying the data to through Shared folder.

  • Problem while writing data on xls file using jxl API

    Hi,
    I am getting problem while writing data on excel file using jxl api.
    When i write data on file and all handles associated to the file are closed, file size increases but when i open the file nothing is written in it and when file is closed manually from excel window, file size decreased to its original that was before writing data.
    here is code:
              FileOutputStream os = new FileOutputStream(this.dirPath + this.fileName, true);
              WritableWorkbook this.workbook = Workbook.createWorkbook(os);
    after writing data following handler are closed:
    this.os.flush();
                        this.workbook.write();
                        this.workbook.close();
                        this.os.close();
                        this.os = null;
    can any body help me.
    Thanks in advance

    Err, I did help you. I did understand your problem; and I solved it for you. What was missing was that you apparently made no effort to understand what you were being told. Or even consider it. You just argued about it, as though you were the one with the solution, instead of the one whose code didn't work.
    And the other thing that was missing was the part where you said 'thank you' to me for solving your problem. Somewhat more appropriate than biting the hand that fed you, frankly. I do this for nothing, on my own gas, and it's extremely irritating when people keep asking about problems I have already solved for them. I am entitled to discourage that. It's part of making them more efficient actually.
    But it happens often enough that it also makes me think I'm just wasting my time. Probably I am.

Maybe you are looking for