Field deletion

i have a internal table from which i want to delete one field called matnr

If u r able to go in chnage mode of the program u can delete the field directly...
Data: begin of itab occurs 0,
         field1 type c,
field2 type c,
field3 type c,
end of itab.
here, if u want to delete field2, then u can directly modify the internal table...
Data: begin of itab occurs 0,
         field1 type c,
         field3 type c,
         end of itab.
If u want to delete the values from the field,
then u can clear it...
loop at itab.
clear itab-field2 .
modify itab index sy-tabix.
endloop.
Edited by: Sumi Vasu on Apr 22, 2008 8:50 AM

Similar Messages

  • Acrobat 9 Pro: fields deleted after changing compatibility of Acrobat for 4.0

    I have pdf's with many of fields in which I need to change compatibility on Adobe 4.0.
    When I try to do this (Save as optimized pdf with the option selected "make compatible with" on "Adobe 4.0 or later") program delete all of fields.
    This problem appears after changing OS from Win XP on Win 7 Enterprise 64-bit.
    Earlier I didn't have that problem.
    I will be grateful for any help, reinstalling Adobe has not helped and I did not find any clues on the internet.

    Unfortunately I can not share this documents.
    However, I noticed that only some of them have above problem. Now I have only to find its cause - changing the OS wasn't the cause of this problem.
    Thank you for your interest.

  • Runtime FIELD DELETION / HIDING of Internal Table

    Dear All,
    Can Anybody would like to say " How can i delete a field of internal table before passing it the FIELD_CATALOGE_MERGE Function In ALV Report"
    Or i wil be also thank ful to you if you would tell me " How can i hide the field of internal table at runtime In ALV Report"
    Warm Regards,
    Nirav Parekh

    HI,
    We do not have an option to delete a field from an internal table at runtime, we have an option to delete the data from it .
    To hide a Field in ALV :
    set <b>wa_fieldcatalog-no_out = 'X'.</b>
    loop at t_fieldcatalog into wa_fieldcatalog.
    if wa_fieldcatalog-fieldname = 'BOX'.
    wa_fieldcatalog-no_out = 'X'.
    modify t_fieldcatalog from wa_fieldcatalog.
    ENDIF.
    ENDLOOP.
    Regards
    Sudheer

  • System Field Deletion

    Hi,
    I have created a user defined table using coding with single field "typedesc".  When i see in the SQL server
    there are two fields "Code" and "Name" is available.
    But now i need to delete the field "Name" which has been created by the system automatically.
    Please let me know how can i delete the Ssytem Field "Name" using coding. (or) i need to make this field as non mandatory.
    Try
                oUserFieldsMD = Nothing
                oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                oUserFieldsMD.TableName = "@PSSIT_PMWCTYPE"
                oUserFieldsMD.Name = "typedesc"
                oUserFieldsMD.Description = "Type Desc"
                oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
                '    oUserFieldsMD.SubType = SAPbobsCOM.BoFldSubTypes.st_Quantity
                oUserFieldsMD.EditSize = 60
                lRetCode = oUserFieldsMD.Add
                If lRetCode <> 0 Then
                    oCompany.GetLastError(lErrCode, sErrMsg)
                    MsgBox(sErrMsg)
                Else
                    MsgBox("Field: '" & oUserFieldsMD.Name & "' was added successfuly to " & oUserFieldsMD.TableName & " Table")
                End If
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
    regards
    Suresh S

    Hi
    You can set value to Name field ugual to Code field value.
    Do it in the ItemEvent...
    Private Sub SBO_ManageItemEvent(...)  Handle ItemEvent
    If Not pVal.BeforeAction _
    And pVal.EventType = et_ITEM_PRESSED _
    And pVal.ItemUID.Equals("1") _     ' When you press "Ok" button
    And MyForm_Validate(oForm) _    ' MyForm_Validate(oForm) is the function to validate data in your form (if eou need to do it)
    Then
      ' USE 1 OF 2 EXAMPLES ...
      ' ...in the case of userdatasource
      oForm.DataSources.UserDataSources.Item("uName").Value = sCode
      ' ...in the case of dbdatasource
      oForm.DataSources.DBDataSources.Item("@YOUR_TABLE_NAME").SetValue("Name", 0, sCode)
    End If
    End Sub
    this method work fine and I hope this can be the solution for you.
    Regads
    Sierdna S.
    Edited by: Sierdna S on Oct 23, 2008 8:55 AM

  • Repository Fields delete

    Can we remove standard fields provided in repository for E.g. can we delete City, State field from Main table in Business partner repository. As i tried deleting some standered fields provided in Repository and i got an error while accessing MDM data manager (it stooped responding).
    Thanks
    Bindi

    Hi Bindi,
    The MDM Business content is the  standard template provided by SAP to accomodate the ERP structure of the master data within MDM,however it is in the Master data administrators control to customize the rep acc to his requirement.Which includes addinga nd deleting fields.
    So you can Add as well as delete any fields form the any business content rep.
    However make sure to take care of teh below things:
    - In Case you are deleting any lookup field which are nested then make sure the nested fields links are also correctly deleted and  recreated later if require with correct linking.
    - After deleting the fields and loading the rep again use Load with Update Indices instead of immediate.
    - Also check your rep for any fatal errrors and correct if any.
    Hope It Helped,
    Thanks & Regards
    Simona Pinto

  • Safari 3.0.4 (523.12) weird text field & delete button behavior

    Just installed the software update (10.4.11), and now have a weird problem with Safari 3.0.4 (523.12).
    When entering text into a text field _on a web page_ (i.e. NOT the address bar or the built-in Google search field), the screen scrolls when the space bar is pressed (oddly, a space IS entered into the text field).
    Also, once a few pages have been visited, hitting the delete key makes the browser act as if the "back" button had been pressed!
    What gives?
    I tried disabling plug-ins (and restarting Safari) in case one of them was causing a conflict, but it didn't help. I also repaired permissions with Disk Utility. For clarity, I hadn't tried rebooting before launching Safari.
    Is it possible to revert back to a previous version?

    Hi,
    Some other things to try:
    - delete the Safari prefs file at /Users/YourUsername/Library/Preferences/com.apple.Safari.plist
    - try resetting Safari via the Safari menu
    - a test you can do to help narrow down things is to try Safari in another user account. This will help us to know whether your problem is local to your account or system wide. If you don't have another account you can use System Preferences -> Accounts -> \[+\] to create a test one (and \[-\] to remove it if needed)

  • AET Fields Delete Problem

    I have added some fields in WEB UI through AET.
    After some time due to change in requirement I have deleted one field and Saved and Generated again.
    The problem is :
    The field still displayed in the Context node and in the Table .
    I want to remove it completely.

    HI Rafael,
    deletion of AET field happens in two steps:
    1. Go to Edit Mode. Select a field that you want to delete and press the Delete button. This will mark your field to be deleted.
    2. Press on Save and Generate button. "Save" persists the deletion mark. "Generate" processes the deletion of the field, namely delete the field from the DB and BOL structure, delete the dataelement and domain, etc.
    Regards,
    Steve

  • Keyboard error jump field to field delete

    Hi
    I am using several external keyboards such as Swiftkey or Swipe. And I noticed when I edit
    a contact and press the delete key, the cursor delete and jump to the next field instead of staying
    where it should.
    Do you noticed the same thing ?
    Thanks

    Hi,
    how is your dropdown done? by key/index?
    because with an indexed one, none is selected, thus returning a dump when you try to have
    an attribute error message (initial selected element).
    Greetz,
    Koen

  • Using CC field deletes To field recipient

    When addressing an email using both the primary recipient and a secondary in the CC or BCC fields, the contact/email address entered in the CC field (selected from the pull down menu as a CC) becomes the primary recipient, wiping out the original contact/email address. This is a new Windows 7 PC that I set up for a family member - fully patched and latest TB available.
    Has anyone else ever seen this? We support TB for many users at my workplace (I'm an IT Director) and so far, no one other than my family member has had this problem.
    thanks...

    Are you sure that the previously entered address hasn't just scrolled up out of sight?
    Look for a scroll bar at the right, or alternatively, if you hover the mouse cursor over the top edge of the text box you should be able to drag it down to make room to display more addresses.
    Additionally, if you hover the mousre cursor over the address box, you should get a pop-up window summarizing the addresses entered so far.

  • Changing From Field deletes email content - 2010

    Our users usually send emails from a different email address
    [email protected] rather than their normal email address.
    In Outlook 2010 they have the From field showing and usually change this prior to composing their email. However if they forget to do this and they compose their email, then chane the From field the content (but no their default signature) disappears.
    Any ideas? I'm a bit stumpted

    A little late to the party, but I encountered this issue in Outlook 2010 recently and could not find a solution documented anywhere online.
    It turned out in our case that the entire body of the email was being recognised as a signature, so any text entered in the body of the email was cleared when changing the "from" field.
    Hope this helps someone.

  • Genre field deleted after syncing

    Hi
    after syncing my ipod with my music library i discovered the genre field in itunes was blank. this has never happened before in all the years that i have been using itunes. i have several playlists which are based on this category. i have over 2500 tunes in my library so as you can see, to restore this category would be quite time consuming for me. has this happened to anyone else out there, and is there an easier solution? please email any responses to me at [email protected]
    thanx.
    ron

    My sister had this problem before with her first gen Nano. Macs format the iPod after a sync differently than PCs do.
    This is typical and expected behavior because when you hooked it up to the PC, it had to reformat the iPod.

  • When I try to share a photo in iPhoto by email the to: field deletes when I try to send...

    Please help really anoying and running out of options.
    Doug

    It does for me.  As a test launch iPhoto with the Option key held down and create a new, test library.  Import some photos and test to see if the same problem persists. Does it?
    OT

  • How to add or delete rows in tablecontrol?

    Hi,
    I am using a tablecontrol to enter data records.
    I want to use 2 buttons, one to insert a row into a tablecontrol and another to delete a selected row of a tablecontrol.
    How do I insert or delete rows of a tablecontrol?
    Thanks.

    Hi Kumar,
    Please look at the below sections......
    ADDING BLANK LINES
    To add blank lines to table control we do not need to change any of the fields of the structure CXTAB_CONTROL simply adding blank lines to the internal table will do.
    INSERT INITIAL LINE INTO itab.
    DELETING SELECTED ROWS
    Deletion of selected rows is simple. To delete selected rows first we will determine the rows which have been selected through selection column .
    FOR SINGLE ROW SELECTION
    IF mark EQ 'X' .             "mark is the name of selection column field
    DELETE itab FROM workarea . 
    ENDIF.
    FOR MULTIPLE ROW SELECTION
    *To deetermine the rows selected we will use the selection column field to loop
    *through the internal table.
    LOOP AT itab WHERE mark EQ 'X'.  "mark is the name of selection column field
    DELETE itab                                    " and is part of the internal table .
    ENDLOOP.
    Thanks,
    Ravi Kanth

  • Adding Additional field "Supplier name" & "Supplier No" in MB5B Report?

    Can i add the above stated two additional fields in the standard report of MB5b, is there any implicit enhancement in the standard report which can help achieve my objective?

    Hi,
    The possibility to include additional fields in the report MB5B is       
    limited to MSEG, just as you can see in the text of the                  
    report RM07MLBD_CUST_FIELDS itself:                                                                               
    This include contains the structure for additional fields for report 
    RM07MLBD ( transaction MB5B )                                                                               
    the following fields are not shown in the list of report             
    RM07MLBD                                                             
    If you want to insert some of these fields in the list of the        
    hidden fields delete the '*' in the type definition.                 
    >>* There are only fields from database table MSEG possible <<<<<<<<<<<  
    Please use only the following fields, because these fields           
    are considered during the creation of the field catalog;             
    plaese consider, that each active field will cost performance                                                                               
    If you need to add aditional information from other tables, like the     
    Reference Document Number you will need to  build your own query.    
    Regards,
    Mauro

  • Orphaned shadow fields cause "a duplicate name ... was found" - PowerShell solution

    When you create a site column of TaxonomyField type, SharePoint creates a "shadow" hidden field with the same name plus a trailing underscore and number. When you delete the main taxonomy field, SharePoint does NOT delete the shadow field. If you
    are creating custom fields programmatically (or by installing a feature), you will get an error complaining of a duplicate field name. You cannot resolve this through the UI, but PowerShell can help. After a day of pulling my hair, I wrote the following PS
    script. Please comment and improve: I did some testing, but hardly rigorous.
    # SiteColumnDuplicateKill
    # Run in PowerShell IDE
    ################## Constant Declaration ##########################################
    $siteUrl = "https://your.sitecollection.com"
    <#
        This script removes site columns that have been orphaned when a custom site column
        of type TaxonomyFieldType (or TaxonomyFieldTypeMulti) has been deleted. When such a column
        is created, SP creates a "shadow" field with the same name appended with an underscore
        and a number. For example, if you create a TaxonomyFieldType named "Foo", SharePoint
        creates a hidden column called "Foo_0". If you delete the Foo column, SharePoint 
        *DOES NOT* delete the shadow column! If you create another metadata column called
        "Foo", SharePoint will create a new hidden column called "Foo_1", because "Foo_0" already
        exists. As long as you create columns with the SP user interface, this bit of poor
        housekeeping causes no problems. 
        BUT -- if you create a site column by installing a feature, either via a manual wsp install
        or via Visual Studio's deploy function, there is a problem. SharePoint will look at the
        metadata column name in your feature and check to see if there is an existing shadow column
        corresponding to that name. E.g. if your feature includes a column called "Foo", SharePoint
        will look for a hidden column called "Foo_0". If it finds it, SharePoint throws an error
        complaining of a duplicate field name. This is clearly a bug: it ought to behave like the
        UI does: increment the tail number until it gets a unique name. Better still, the bug
        shouldn't exist at all: SharePoint shouldn't keep those shadow columns. But the bug is there,
        and this script solves the problem. It finds orphaned columns and removes them.
        Run this script whenever you delete a custom metadata site column -- either via the UI or
        by de-activating and removing a feature or by using the Visual Studio Retract function.
        NOTE: internally, site columns are called "Fields". I use the terms interchangeably in 
        my comments.
    #>
    function MakeFieldRef($aFieldTitle) {
        # Creates a PS custom object with information about a shadow field
        # Shadow fields look like this: "My metadata field_0"
        $mainFieldTitle = ""
        # Extract the main field title (the part before the last _)
        $pieces = $aFieldTitle.split("_")
        for($i = 0; $i -lt $pieces.length - 1; $i++) {
            $mainFieldTitle += $pieces[$i] + "_"
        # Remove the extra trailing _
        $mainFieldTitle = $mainFieldTitle.Substring(0, $mainFieldTitle.Length-1)
        # Instantiate the custom object
        $properties = @{'FieldTitle' = $aFieldTitle;
                    'RootTitle'=$mainFieldTitle;
                    'Index'= 0 + $pieces[$pieces.length - 1]}
        $object = New-Object –TypeName PSObject –Prop $properties
        return $object
    ###################### Main Processing ##################
    clear-host
    Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
    $site = Get-SPSite $siteUrl
    $web = $site.RootWeb
    #Find all hidden fields that end in an underscore plus one or more digits
    $shadowFields = $web.fields | ?{$_.Title -match "_+\d" -and $_.Hidden -eq $true} | Select Title
    #$shadowFields
    <#
    Loop through these shadow fields. For each, determine if there is a corresponding "main" field.
    If not, delete the shadow field, because it's not needed. E.g.:
        Shadow field: Foo_0
        If no field called "Foo", delete the shadow field
    If there *is* a corresponding main field, we need to preserve the shadow field
    that goes along with it. But what if there are several shadow fields? E.g.:
        Shadow fields: Bar_0, Bar_1, Bar_2
        If there is a field called "Bar", we must not delete Bar_2, because it 
        corresponds to that main field. But Bar_0 and Bar_1 are remnants of
        site columns that have been deleted, so we can get rid of them
    #>
    <# 
        Instantiate an array to hold the field ref objects. A FieldRef has properties FieldTitle, RootTitle and Index.
        RootTitle is the part of the field title preceding the last underscore, and Index
        is the integer value of the number following the last underscore. E.g.:
            shadow field title:  "Silly old Foo_1"
            FieldRef.FieldTitle:  Silly old Foo_1
            FieldRef.RootTitle:   Silly old Foo
            FieldRef.Index:       1
        We need this object to be able to sort the shadow fields in numerical order. Otherwise Foo_10 would sort before F00_9 
    #>
    $fieldRefs = @()
    foreach($field in $shadowFields) {
        # Create a field ref object with properties FieldTitle, RootTitle and Index
        $fieldRef = MakeFieldRef $field.Title    
        $fieldRefs += $fieldRef
    # Add a dummy entry to the end. Kluge to avoid the problem of 
    # an array of a single element showing a length of nothing
    $dummy = MakeFieldRef "zzzzzzDummy_999"
    $fieldRefs += $dummy
    # Sort the array of field refs
    $fieldRefs = $fieldRefs | sort-object RootTitle, Index
    <# Now go through the array of objects and determine if there is a corresponding main field#>
    for($i=0; $i -lt $fieldRefs.length - 1; $i++){
        $mainField = $web.fields[$fieldRefs[$i].RootTitle]
        # Does this main field exist?
        if(!$mainField) {
            # No - kill this shadow field
            $web.fields.delete($fieldRefs[$i].FieldTitle)
            write-host "Deleted " $fieldRefs[$i].FieldTitle
        } else {
            # Yes - we will kill this field if the *next* field ref has the same RootTitle
            $j = $i + 1
            if ($j -lt $fieldRefs.length -and $fieldRefs[$j].RootTitle -eq $fieldRefs[$i].RootTitle) {
                # The next field ref has the same root title, so we can delete this one
                $web.fields.delete($fieldRefs[$i].FieldTitle)
                write-host "Deleted " $fieldRefs[$i].FieldTitle
    Leigh Webber

    So can we kill these ones when they are in a collecting state? I thought you could.

Maybe you are looking for