DataSource No Longer Fills Data Calls VB 2010

I am using a DataSource in my form app, and it was working fine for calls made across the board, Fill, Add, Delete, etc... It suddenly stopped working. I get no errors on build, no data is added to any ComboBoxes, and no new Adds work either.
I created a new DataSource from the same database that works fine with the exact same connection. The location of the database never moved, no changes were made to any properties of the DataSource or any of the Adapters assigned to the source, it just stopped
working. Here is some screen shots and code of my form.
I tried to do a Code Compare but since there are a bunch of Adapters assigned to the source I can't find any anomalies. What would kill a data connection so that the code still sees the connection, but nothing gets filled?
The following code no longer works, no Fill or Add to DCGDataSet;
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs)
'TODO: This line of code loads data into the 'DCGDataSet1.Main' table. You can move, or remove it, as needed.
Me.MainTableAdapter.Fill(Me.DCGDataSet.Main)
Me.MainTableAdapter.Fill(Me.DCGDataSet.Main)
'comboClear()
End Sub
Private Sub btnAddNew_Click(sender As Object, e As System.EventArgs)
' Add new Job to the database
Dim newJobRow As New DCGDataSetTableAdapters.MainTableAdapter
Dim intInsert As Integer
Dim jobText = txtBoxAddNewJob.Text
intInsert = newJobRow.InsertJob(jobText)
If intInsert = 1 Then
MessageBox.Show("New Job Added")
' Update the comboBox values
Me.MainTableAdapter.Fill(Me.DCGDataSet.Main)
txtBoxAddNewJob.Text = ""
clearTabOne()
Else
MessageBox.Show("Job Not Added")
End If
End Sub
The following call for a ComboBox works fine, this is the new DataSource;
Private Sub MainForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'DCGDataSet1.Main' table. You can move, or remove it, as needed.
Me.MainTableAdapter1.Fill(Me.DCGDataSet1.Main)
End Sub
This is the non-working DS
This is the working DS

I think I know what killed the Handles.  I was playing with a custom Control that created a Currency TextBox, when I found the Control didn't do what I wanted to, I deleted the Class, code and Control from my project.  Apparently in doing
so it also removed all calls to Handles, not sure why, but I am going to work on replicating the issue.
The reason I was asking was this:
When you create an event handler sub, then for whatever reason you delete that control (maybe cut it, then go to paste it elsewhere, or for whatever reason), it will immediately remove the Handles clause.
If you think about it, that's good. The sub is still there (you might use AddHandler rather than a Handles clause), but it can't access that control any longer because it's no longer there! Even for just a split second, if it doesn't exist, it removes that
Handles clause.
Still lost in code, just at a little higher level.

Similar Messages

  • Calendar no longer sends data to iphone since I got a new PC with Outlook 2010

    My iphone 4 used to happily sync with my old PC (Windows XP) but I've got a new PC with Outlook 2010 and the calendar no longer sends data from the PC to the iphone.
    I've used the Help questions here and created a new event on my phone which has now created a new calendar on the PC, so I have 2 calendars now, one with all events in and one only with events which are also on my phone.
    No new events added to my calendar are ending up on my phone.
    How do I:
    a: get rid of the new calendar which has opened (it is called "Outlook Data File", the existing one, which I want to keep, is called "Personal Folders)
    b: get the calendar to send info to my phone and back?

    My iphone 4 used to happily sync with my old PC (Windows XP) but I've got a new PC with Outlook 2010 and the calendar no longer sends data from the PC to the iphone.
    I've used the Help questions here and created a new event on my phone which has now created a new calendar on the PC, so I have 2 calendars now, one with all events in and one only with events which are also on my phone.
    No new events added to my calendar are ending up on my phone.
    How do I:
    a: get rid of the new calendar which has opened (it is called "Outlook Data File", the existing one, which I want to keep, is called "Personal Folders)
    b: get the calendar to send info to my phone and back?

  • How to fill data  for asset accoutning datasources

    hi gurus
    i want to know how to fill data for the FI:asset accounting data sources.As these datasources are not related to Logistics,i think filling setuptables concept doesnot come into picture here.thenhoe to  fill data for the datasources:0FI_AA_001,0FI_AA_005,0FI_AA_006
    Pls give me some inputs ASAP
    Its very Urgent
    Thanks in Advance
    Surya Reddy

    Hi,
    Asset Accounting works with Timestamp mechanism.  No Setup table concept like logistics.  Find the prerequisites for AA extraction.
    For Asset Accounting Delta Extraction you first need to have this BADI - FIAA_BW_DELTA_UPDATE active in the system:
    Check the link below for more details about the badi and the delta extraction procedure.
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/f4153c4eb5d82ce10000000a114084/frameset.htm
    Sequence of Data Requests
    For summarization of line items by master record characteristics (such as cost center) during posting of ODS objects to Info Cubes, master data must already exist prior to extraction of transaction data.
    Also the following sequence must therefore be kept to during extraction:
    1. 0FI_GL_4 General Ledger: line items (if required)
    2. 0ASSET_ATTR_TEXT Asset sub number (flexible updating)
    3. 0ASSET_AFAB Depreciation area real or derived
    Then the transaction data
    0FI_AA_11 FIAA: transactions and / or
    0FI_AA_12 Posted depreciations (period values)
    Hope it helps
    Regards
    Srikanth

  • After up date my I phone 5 will no longer work when calling an automated phone . Press 1 for this or 2 for that. It tells me wrong selection.

    Why will my phone no longer work when calling an system with automated dialing, press 1 for this or 2 for that. Tells me not a valid number.

    sunshinesunshine wrote:
    So basically if a iphone has a fault after the 1 year warranty period is over, there is nothing the consumer can do but purchase a new phone??
    Pretty much. Except that Apple will replace it for a fixed fee that is far less than the cost of a new phone. In the US the replacement cost for an iPhone 4 is $149. It is comparable in the UK. Unless you can prove that the fault was present at the time of purchase. A switch wearing out would probably be considered normal wear and tear, not a "fault".

  • Issue with Capturing Long text using CALL METHOD EDITOR- GET_TEXT_AS_STREAM

    HI Experts,
    Standard Long text is capturing using CALL METHOD EDITOR->GET_TEXT_AS_STREAM
         but not working for Custom Long text – Only changes
    Here is the Issue:
    1)      Created Custom Long text in TAB. --> Good
    2)      Entered few lines in custom Long text  --> Good
             Click on Standard Tab , Leaving Custom tab and Custom Long text-->Good
    4)      In PAI of Custom Tab – Changes captured using CALL METHOD 1 ( See below Code 1)--> Good
    5)      Entered few lines in Standard Long text in Standard Tab -->Good
    6)      Click another Standard Tab
    7)      In PAI of Standard Tab – Changes captured using CALL MEHTOD 2 ( See Below Code 2)-->Good
    8)      Come back to Standard Tab / Standard Long Text , Enter few more lines.
    9)      Change the Tab , IN PAI of Standard Tab/Standard Text , Changes Captured using CALL METHOD2 ( See Below CODE 3) --> Good
    10)   Go to Custom Tab , Custom Long text , Entered few more lines--> Good
    11)   Click on any other tab, Triggered again PAI of Custom tab / Custom Long text using Call Method1 ( See Below Code 4) -->Good triggered PAI same CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM.
    12)   But additional lines are not captured , saying ZERO LINES in Internal Table and IF_MODIFIED = NO  -->Issues lies here.
    CODE1 ( Custom Long text entry capturing – First Few Lines )
    Custom Long text Entries are stored in LS_OUTTAB-TEXT first time when entered few lines and LV_MOD is 1.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT ( FIlled with Lines entered in custom long text )
              IS_MODIFIED            = LV_MOD ( Value 1 , Modified )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    CODE2 ( Standard Long Text Entry Capturing – First Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT first time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE ( Value 1 , Modified )
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED.
    CODE 3 ( Standard Long Text Entry Capturing – Second time Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT  second  time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED. ( Value 1 , Modified )
    CODE4 ( Custom Long text entry capturing – Second Time Few Lines )
    Custom Long text Entries are not stored in LS_OUTTAB-TEXT Second Time when entered few lines and LV_MOD is 0.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT  ( ZERO ENTRIES )
              IS_MODIFIED            = LV_MOD   ( NOT MODIFIED Flag )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    Can anyone help me out of this.
    With Regards,
    Bala M

    Excellent Eitan,
    Here is what I am trying to Achieve.
    In Create Notification IW21 , They need 5 Long Text in Custom Tab ( Say Tab Name is MBR ).
    TAB1 NOTIFICATION Standard Information , TAB2 REFERENCE OBJ , TAB 3 MalFunction , Breakdown Standard one...... TAB 7 ( Custom Tab ).
    In Custom Tab , I added 5 LONG TEXT ( its 5 WHY Concept ).
    When the User enters data in 5 Long text , it should store long text along with Notification number when save.
    But Notification number will be generated @ the time of SAVE , but before that its just shows as
    %0000000001 ( and Number will be generated 1000065479) at Save.
    How to achive this .
    I did this:
    Added 5 Custom Container. and In PBO / PAI
      PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    IN PBO
       CREATE OBJECT TEXT_EDITOR1 ,    CREATE OBJECT TEXT_EDITOR2,    CREATE OBJECT TEXT_EDITOR3 like wise 5
       CALL METHOD TEXT_EDITOR1->SET_TEXT_AS_R3TABLE ,    CALL METHOD TEXT_EDITOR2->SET_TEXT_AS_R3TABLE .. Like wise 5 , So when the user Click on Custom Tab ( MBR ).
    It give 5 Long text.
    When he click tab1 or tab2 or tab3 .. and again tab MBR , still data is available.
    How to store this data for future retrival ( IW22 or IW23 ) ?
    Its working fine when I enter first time and goes here and there and finall save .
    IN SAVE BADI , I imported the Long text and created Standard Text SO10 with Notification Number with LONG1 , LONG2 .. means 1000065479LONG1 as standard text.
    But not working when I entered first time and go to tab1 and tab2 and then to MBR tab and added few more lines , its not exporting full lines and in IMPORT ( SAVE BADI ) giving ZERO Lines.
    Please help and thanks for your quick response.

  • How to fill data in a table automatically

    Hello Experts,
    I would like to know if its possible to fill data in a table by looping.
    I have the following table:
    Draws(
    NUM NUMBER,
    START_DATE DATE NOT NULL,
    END_DATE DATE NOT NULL,
    ACTIVE CHAR(1 BYTE) DEFAULT 'Y')
    Now my table should contain the foll:
    Num start_date end_date active
    1 23/01/2010 21:00:00 30/01/2010 19:00:00 Y
    2 30/01/2010 21:00:00 06/02/2010 19:00:00 Y
    I have an initial start date and the end_date is always (start_date + 7) and the next start date starts with the previous end_date but time changes from 19:00 to 21:00.
    Is there a way i can enter those values on a weekly basis???
    Thanks
    Edited by: Kevin CK on Jul 5, 2010 3:07 AM

    there are a number of ways to do weekly inserts. it just depends on your environment and what you want to manage.
    1. write a PL/SQL procedure to do the periodic insert. i assume you know how to do this since you only asked about doing the insert weekly.
    2. options for running the procedure weekly:
    a. using your OS job scheduler, schedule a batch job to run a sql script to execute the procedure.
    b. inside the Oracle database, use DBMS_SCHEDULER (or DBMS_JOB if you are on a version older than 10g) to run the procedure.
    c. write yourself a reminder on a sticky note to run the procedure each week, post it on your computer, and run it manually.
    if you need more details, just say so.

  • Confusing result between 'to_date' and 'long to date' in oracle query

    I have a table called "subscription" as below.
    desc subscription;
    Name Null Type
    SUBSCRIPTION_ID NOT NULL NUMBER(38)
    EXPIRATIONDATE DATE
    And output of a query as below.
    select subscription_id,expirationdate from subscription where subscription_id = 41919;
    SUBSCRIPTION_ID EXPIRATIONDATE
    41919 18-JAN-14 13:45:56
    And I am trying to execute following query in different ways.
    1st Query:
    select s.subscription_id from subscription$active s where s.expirationdate - (116/24) between TO_DATE('13-JAN-14 11:38:22', 'dd/mm/yyyy hh24:mi:ss') and TO_DATE('13-JAN-14 18:30:00', 'dd/mm/yyyy hh24:mi:ss') and s.subscription_id=41919
    Output:
    SUBSCRIPTION_ID
    41919
    2nd Query:
    select s.subscription_id from subscription$active s where s.expirationdate - (116/24) between (trunc(1389613102220 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy') and (trunc(1389637800000 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy') and s.subscription_id=41919
    Output:
    SUBSCRIPTION_ID
    Here both the above where clause are same. 1st one is trying to use "to_date" and 2nd one converts "long to date". But when I see the out put, the first one returns a row and 2nd doesnot return any result. I couldn't find out what is difference the 'long to date' conversion makes here.
    The conversion between long to date is also correct.
    select (trunc(1389613102220 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy') from dual
    Output:
    (TRUNC(1389613102220/(1000),0)/(24*60*60))+TO_DATE('01/01/1970','MM/DD/YYYY') -------------------------
    13-JAN-14 11:38:22
    And
    select (trunc(1389637800000 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy') from dual
    Output:
    (TRUNC(1389637800000/(1000),0)/(24*60*60))+TO_DATE('01/01/1970','MM/DD/YYYY') -------------------------
    13-JAN-14 18:30:00
    Can someone help me to understand the difference between the 1st and 2nd query ?

    Hi,
    Not sure what exactly you asking for. What is the requirement?
    Just formatted for better readability:
    -->-- Query 1
    SELECT
      s.subscription_id
    FROM subscription$active s
    WHERE
      s.expirationdate - (116/24) BETWEEN
           to_date('13-JAN-14 11:38:22', 'dd/mm/yyyy hh24:mi:ss')
           AND
           to_date('13-JAN-14 18:30:00', 'dd/mm/yyyy hh24:mi:ss')
      AND s.subscription_id=41919;
    -->-- Query 2
    SELECT
      s.subscription_id
    FROM subscription$active s
    WHERE
      s.expirationdate - (116/24) BETWEEN
           (trunc(1389613102220 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy')
           AND
           (trunc(1389637800000 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy')
      AND s.subscription_id=41919;

  • How to genetare reports(ssrs) with form library's data in sharepoint 2010

    Hi,
    How to genetare reports (ssrs) with form library's data in sharepoint 2010.I am saving infopath(2010) xml form data in form library.I have 500 and more forms in the form library( more forms can come in future).How to generate reports from this xml data (i
    want to make it automate)? Reports should get updated automatically when any changes made to data and if new form entered in the library.
    Please suggest possible solutions.I can not go for code base solution.( somthing SSIS, BCS or web service ....etc or anything else will be fine)
    Thanks in advance.

    Hi,
    According to your post, my understanding is that you wanted to generate SSRS report with form library in SharePoint 2010.
     In order to use the data stored on the InfoPath form, you need to add the controls on the form to be columns in SharePoint(This is the OOTB way without code).
    You can add the control during the publish process:
    Then when you create the SSRS report using the form library as the data source, you can use the fields just as the fields created in SharePoint.
    There is a tool called InfoPath DB in codeplex, you can have a look at it.
    http://infopathdb.codeplex.com/
    More reference:
    http://sharepoint.stackexchange.com/questions/28825/how-to-query-a-form-library-in-sharepoint-2010
    http://sharepoint.stackexchange.com/questions/38492/reporting-against-a-form-library
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Rogers - Long Distance Data?

    Hi all,
    I just got my first Data Plan and Blackberry (8900 Curve) from Rogers yesterday. I was wondering if using data outside of my local calling region (i.e. Toronto) will cause "Long Distance Data" charges? Or is there no such thing?
    Cheers,
    Ben 

    With the Canadian providers (including Rogers) Data roaming in Canada is free. So from Victoria to St Johns, there is no "long distance" as you put it for using data, regardless of the fact that you have a Toronto phone #.
    When you travel outside of Canada, that's when you start paying Data roaming charges.

  • Need Help Please Log Name: System Source: Microsoft-Windows-Kernel-Power Date: 11/10/2010 4:31:37 PM Event ID: 41 Task Category: (63)

    Log Name:      System
    Source:        Microsoft-Windows-Kernel-Power
    Date:          11/10/2010 4:31:37 PM
    Event ID:      41
    Task Category: (63)
    Level:         Critical
    Keywords:      (2)
    User:          SYSTEM
    Computer:      Felix-PC
    Description:
    The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Kernel-Power" Guid="{331C3B3A-2005-44C2-AC5E-77220C37D6B4}" />
        <EventID>41</EventID>
        <Version>2</Version>
        <Level>1</Level>
        <Task>63</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000002</Keywords>
        <TimeCreated SystemTime="2010-10-11T06:31:37.175213500Z" />
        <EventRecordID>96455</EventRecordID>
        <Correlation />
        <Execution ProcessID="4" ThreadID="8" />
        <Channel>System</Channel>
        <Computer>Felix-PC</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="BugcheckCode">244</Data>
        <Data Name="BugcheckParameter1">0x3</Data>
        <Data Name="BugcheckParameter2">0xfffffa8002d20b30</Data>
        <Data Name="BugcheckParameter3">0xfffffa8002d20e10</Data>
        <Data Name="BugcheckParameter4">0xfffff80002fcd5d0</Data>
        <Data Name="SleepInProgress">false</Data>
        <Data Name="PowerButtonTimestamp">0</Data>
      </EventData>
    </Event>

        <Data Name="BugcheckCode">244</Data>
    244 (dez) = F4 (hex)
    Bug Check 0xF4: CRITICAL_OBJECT_TERMINATION -
    This indicates that a process or thread crucial to system operation has unexpectedly exited or been terminated.
    Cause
    Several processes and threads are necessary for the operation of the system. When they are terminated for any reason, the system can no longer function.
    Please copy the dmp files from the folder C:\Windows\Minidump first to your desktop, zip all dmp into 1 zip file and upload the zip file to your Skydrive [1] and post a link here, so that I can look at the dumps with the debugger and to to see the cause of
    the crash.
    André
    [1]
    http://social.technet.microsoft.com/Forums/en-US/w7itproui/thread/4fc10639-02db-4665-993a-08d865088d65
    "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/

  • Techniques for a synchronous long-life data acquisition

    Hello All
    I have a digitizer, which needs to run at a constant rate for ever. When some condition occur (reading exceed treshold level), other data processing must take place.
    The data processing last for much longer time that the successive sampling, which means that I can not fit data processing in the same thread as the sampling process.
    It looks like I need some kind of buffer, which will be filled and keep track of the sampled data, and another thread for data processing and analizying.
    Can somebody give me a link, or advice about this kind of problems. What are the techniques for long-life data acquisition.
    Thank you in advance.
    Pawel

    Indeed a challenging application! Here is what has been done successfully in other applications:
    1) to separate the DAQ task from other tasks, put the data into a Queue. This creates a second software buffer for your data.
    2) for large buffers, so you can extract pre and post trigger data, use two files (a double buffered file buffer) and stream the data to each file successively within your DAQ VI.
    3) when you detect the threshold trigger in your DAQ loop, note the block number and pass this as part of the queue
    4) your processing loop, can then use the block number to get pre and post trigger blocks for further analysis.
    Hope this helps you get started.
    Preston Johnson
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • How to fill data in idoc

    Hi experts,
    Could u please give some sample codes for filling data into idoc.

    Hi Nisha,
    Go through this userdefined program u can understand .
    *& Report  ZBT_SEL_PROGRAM                                             *
    REPORT  zbt_sel_program                         .
    TABLES: mara.
                  Data declaration
    *--Material number selection.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    PARAMETERS:
    *--Rec.Partner
       p_rcvprn TYPE edi_rcvprn,
    *--Message type
       p_msgtyp TYPE edi_mestyp.
                  Internal table declaration
    DATA:
    *--MARA data
          it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
    *--To fill the segment Z1MARM
          it_temp_mara TYPE STANDARD TABLE OF z1marm WITH HEADER LINE,
    *--MAKT data
          it_makt TYPE STANDARD TABLE OF makt WITH HEADER LINE,
    *--To fill the segment E1MAKTM
          it_temp_makt TYPE STANDARD TABLE OF e1maktm WITH HEADER LINE.
    DATA: st_edidd TYPE STANDARD TABLE OF edidd WITH HEADER LINE,
          st_comm_cont TYPE STANDARD TABLE OF edidc WITH HEADER LINE,
          st_mast_cont TYPE edidc.
    *--Fetch the data from MARA table
    SELECT * FROM mara INTO TABLE it_mara WHERE matnr IN s_matnr.
    IF sy-subrc = 0.
      SORT it_mara.
    ENDIF.
    *--Fetch the data from MAKT table
    IF NOT it_mara[] IS INITIAL.
      SELECT * FROM makt INTO TABLE it_makt FOR ALL ENTRIES IN it_mara
                        WHERE matnr = it_mara-matnr.
      IF sy-subrc = 0.
        SORT it_makt.
      ENDIF.
    ENDIF.
    *--Fill the iternal tables which is type the same of Segments
    LOOP AT it_mara.
      MOVE-CORRESPONDING it_mara TO it_temp_mara.
      APPEND it_temp_mara.
      CLEAR it_temp_mara.
    ENDLOOP.
    LOOP AT it_makt.
      MOVE-CORRESPONDING it_makt TO it_temp_makt.
      APPEND it_temp_makt.
      CLEAR it_temp_makt.
    ENDLOOP.
    *--Fill the segments
    LOOP AT it_temp_mara.
      st_edidd-segnam = 'Z1MARM'.
      st_edidd-sdata = it_temp_mara.
      APPEND st_edidd.
      CLEAR st_edidd.
    ENDLOOP.
    LOOP AT it_temp_makt.
      st_edidd-segnam = 'E1MAKTM'.
      st_edidd-sdata = it_temp_makt.
      APPEND st_edidd.
      CLEAR st_edidd.
    ENDLOOP.
    *--Fill Master IDOC
    st_mast_cont-rcvprt = 'LS'.
    st_mast_cont-rcvprn = p_rcvprn.
    st_mast_cont-mestyp = p_msgtyp.
    st_mast_cont-idoctp = 'ZMATMAS01'.
    *--Create the communication IDOC by passsing master IDOC and control
    information.
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
      EXPORTING
        master_idoc_control                  = st_mast_cont
      OBJ_TYPE                             = ''
      CHNUM                                = ''
      TABLES
        communication_idoc_control           = st_comm_cont
        master_idoc_data                     = st_edidd
    EXCEPTIONS
       error_in_idoc_control                = 1
       error_writing_idoc_status            = 2
       error_in_idoc_data                   = 3
       sending_logical_system_unknown       = 4
       OTHERS                               = 5
    IF sy-subrc = 0.
    *--Commit work
      COMMIT WORK.
    ENDIF.
    *--Display IDOC Number.
    LOOP AT st_comm_cont.
      WRITE: 'IDOC Numbers:',st_comm_cont-docnum.
    ENDLOOP.
    Rewards some points.
    Rgds,
    P.Naganjana Reddy

  • Unable to read data in Excel 2010/2013 from encrypted Access 2010/2013 database

    A customer has an Access database (.accdb), which was encrypted/given a database password in Access 2013. It should be possible to read that data from Excel 2010/2013, but when clicking on Data-->From Access
    and the correct path is put in and the correct database password has been entered, Excel just keeps prompting for the database password. This happens with both Excel 2010 and 2013.
    The database password supplied is correct as evidenced by opening the database in Access 2013 using the same database password.
    A colleague in a separate company has found that a separate .accdb file he has recently encrypted also has the same problem as above, yet a .accdb file encrypted ages ago
    is readable from Excel.
    How do I get Excel 2010/2013 to read the data from the encrypted .accdb file, please?

    Since Access 2010 the encryption algorithm has changed:
    Source
    Follow the next steps to apply an encryption method that will allow you to (programmatically) connect to the database:
    1. Decrypt the database
    2. Change the encryption method:
        - In Access Options select 'Client Settings'
        - Scroll down to section 'Advanced'
        - 'Encryption Method': select option 'Use legacy encryption (..'
        - Click 'OK'
    3. Encrypt the database
    Hope this helps.
    Emiel Nijhuis

  • How to copy Excel sheet data to SharePoint 2010 List?

    Hi,
       I need to export excel data to SharePoint 2010 list. I have created 22 columns in list which are of following Column types:
    Single line of text,
    Multiple line of text,
    Choice
    Number,
    Date,
    Person or Group.
    Now i need to export the excel data to SharePoint list.
    When iam trying to copy data from excel to List , it is showing as "The selected cells are read only".
    can someone guide on this to export spread sheet data to SharePoint list without importing Spreadsheet.
    Thanks in advance.
    Badri

    I've updated the example of using PowerShell to include a Person field (user field) and a choice field.
    The CSV file has the following columns:
    TRIP_NO
    VESSEL_NAME
    FLAG
    AGENT_NAME
    CURRENT_LOCATION
    RPT_DATE
    EMPLOYEE
    EMPLOYEE_TYPE
    #Get the CSV file and connect to the SharePoint list
    $vessellist = import-csv -Path C:\Temp\VesselInPortReport.csv
    $l = (Get-Spweb "http://devmy101").GetList("http://devmy101/Lists/smarInPort")
    #Get the lists EmployeeType field (choice)
    $employeeType = $l.Fields["EmployeeType"] -as [Microsoft.SharePoint.SPFieldChoice]
    #Loop through the items and add them to the list
    $r = 1;
    foreach($item in $vessellist)
    $ni = $l.items.Add();
    #Add the Title, using the rows VESSEL_NAME column
    $ni["Title"] = $item.VESSEL_NAME;
    #Add the "Date Recorded" field, using the csv rows "RPT_DATE" column
    [DateTime]$rd = New-Object System.DateTime;
    if([DateTime]::TryParse($item.RPT_DATE, [ref]$rd)){
    $ni["Date Recorded"] = $rd;
    #Add the csv rows "TRIP_NO" column to the new list items "Trip Id" field (SPFieldNumber)
    [Int64]$tn = New-Object System.Int64;
    if([Int64]::TryParse($item.TRIP_NO, [ref] $tn)){
    $ni["Trip Id"] = $tn;
    #Add some other text properties
    $ni["Flag"] = $item.FLAG;
    $ni["Agent Name"] = $item.AGENT_NAME;
    $ni["Current Location"] = $item.CURRENT_LOCATION;
    #Add user information
    $ni["employee"] = $w.EnsureUser($item.EMPLOYEE); #In this case, the $item.EMPLOYEE value from the spreadsheet is a persons name. Eg. "Matthew Yarlett"
    $employeeType.ParseAndSetValue($ni,$item.EMPLOYEE_TYPE); #In this case, the $item.EMPLOYEE_TYPE value from the spreadsheet is valid choice present in the EmployeeType list field. Eg. "Manager"
    #Update the item
    $ni.Update()
    Write-Host ([String]::Format("Added record:{0}",$r));
    $r++;
    Regards, Matthew
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
    I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • My iphone 5 will no longer sync to Microsoft Outlook 2010.  Any ideas how to fix this?

    My iphone 5 will no longer sync to Microsoft Outlook 2010.  Any ideas how to fix this?

    Hi jenmik,
    Welcome to the Apple Support Communities!
    If you are having issues syncing your iPhone to Microsoft Outlook 2010, please read over and use the information provided in the attached article to assist you in troubleshooting. 
    Troubleshooting Sync Services on Windows with Microsoft Outlook 2003, Outlook 2007, or Outlook 2010 - Apple Support
    Cheers,
    Joe

Maybe you are looking for

  • Material price

    Dear All, Do we have a standard report in SAP to see material price in Purchase order, GRN & Valuated Stock? or anything like traking of material price in various conditions? Waiting Amit

  • 32bpp application doesn`t display correctly or crashes when we remote via SCCM 2007 remotetool

    By default remotetool's Color Depth is set to 16 bpp Daniel Synapse application is a PACS viewer used by radiology department in our hospital. Synapse is designed to run in 32 bpp, therefore when we remote to it, the picture is not dispayed. Instead

  • Change keyboard keys

    Hi, I bought a new Macbook Pro in Switzerland with the swiss (german) keyboard. How can I change the keyboard to have the spanish or us keyboard keys. Does Apple change it for free? Thanks Regards CLS

  • Draft Key No in PLD

    Hi all, can anyone pls tell me if it is possible to fetch the draft key number of marketing document in pld for that document

  • Graphical Chart Generation

    Post Author: RamprakashA CA Forum: Charts and Graphs Hai all,       I am using  Inbuilt  version of Crystal  report  in VS.NET 2005(Crystal Report Version  10), i am creating a consolidated report, i want to added 11 Bar chart and  Line Chart combine