Update Bseg table for one field (Functional Area)

Dear all
I need to update function area in bseg table for existing records. How can i modify for that particular field without using update command. Is any BAPI is there for update document no. I have Lakhs records. So is any other way to modify that field.
This is happening in production. please give your valuable guide how to do it?

I'm not sure it is advisable to perform, take a look at OSS [Note 966428 - FB02: Functional area (FKBER) can be changed on coding block|https://service.sap.com/sap/support/notes/966428],*this note seems to imply that this area should not be changed..
Look alsio to Customizing (SPRO) Financial Accounting, Financial Accounting Global Settings, Document, Line Item, Document Change Rules, Line Item.
Keep in mind that this field is replicated from FI line items to other applications and tables.
If you must perform this change at you own risk, you may build a huge batch-input based on FB02 or FB09 transactions. Another solution is to reverse the documents and then post again those documents with functional area.
Regards

Similar Messages

  • Update BSEG table for PERNR

    Hi,
    How to update PERNR Field BSEG Table?
    My scenario is to update the (Personnel Number ) PERNR Field in FB50 Transaction.
    I get the following fields details from a third party system
    Document Information 
    o     I_BUKRS (Company Code) u2013 example: 0010
    o     I_BELNR (Document Number) u2013 example: 1700006041
    o     I_GJAHR (Fiscal Year) u2013 example: 2008
    u2022     Final Approver ID
    o     I_PERNR (Personnel No.) u2013 example U0050049
    For all line items of the document (represented by the key  (I_BUKRS, I_BELNR, I_GJAHR)) need to update the BSEG-PERNR field in FB50.
    Please let me know if you have any ideas like BAPI's or any alternative.
    Thanks & Regards,
    Satya

    Hi
    Try to use below the FM's
    FMUDBSEGH_UPDATE
    FMUDBSEG_UPDATE
    G_BKPF_BSEG_UPDATE
    before to that you need to read data from FM READ_BSEG. then update.
    hope it helps you
    Thanks!
    Edited by: Prasanth Maddela on Apr 21, 2009 6:26 PM

  • Select on MARA resulting into # values in internal table for one field

    Hi Team,
    I have written a SELECT statement on MARA table as below.
    TRY.
            SELECT matnr zzwftag FROM mara CLIENT SPECIFIED
              INTO CORRESPONDING FIELDS OF TABLE gt_mara WHERE
              mandt = sy-mandt AND
              zzwftag NE space
              AND zzwftag IS NOT NULL
              AND zzwftag NE '#'
              AND zzwftag NE '%#%'
              AND zzwftag NE '  '
              AND zzwftag NOT LIKE '%/%'(012).
          CATCH cx_sy_dynamic_osql_error.
            MESSAGE 'Error While Fetching Data from MARA'(044) TYPE 'S'(040)  DISPLAY LIKE 'W'(041).
        ENDTRY.
        IF NOT gt_mara[] IS INITIAL.
          DELETE gt_mara[] WHERE zzwftag EQ '#'
          OR zzwftag IS INITIAL
          OR zzwftag EQ space
          OR zzwftag EQ ' '.
        ENDIF.
    Observations: 1. In
    the resulting internal table I am seeing '#' values for fields zzwftag which are actually empty when I see the record in SE11 in MARA(ALV display). It shows '#' in it in SE16 display(We can choose User parameters and hence mode of display in SE11)
    The requirement is to avoid those records where zzwftag is initial i.e. blank. I tried to delete invalid records but to no avail.
    Please suggest any way where I can get the Select correct.
    Regards,
    Amit

    Please do not use so many not conditions in one query....
    Using so many negative conditions results in bad data.
    Instead use delete statements later this would not confuse the system.
    Also if you are using sy-mandt then i think you should not use client specified system will take care of it.
    TRY.
    SELECT matnr zzwftag FROM mara CLIENT SPECIFIED
    INTO CORRESPONDING FIELDS OF TABLE gt_mara WHERE
    mandt = sy-mandt AND
    zzwftag NE space.
    CATCH cx_sy_dynamic_osql_error.
    MESSAGE 'Error While Fetching Data from MARA'(044) TYPE 'S'(040) DISPLAY LIKE 'W'(041).
    ENDTRY.
    IF NOT gt_mara[] IS INITIAL.
    DELETE gt_mara[] WHERE zzwftag EQ '#'
    OR zzwftag IS INITIAL
    OR zzwftag EQ space
    OR zzwftag EQ ' '.
    delete gt_mara[] where zzwflag eq '%#%'.
    ENDIF.

  • Function Module/Table to retrieve check table for standard fields

    Hi,
    Is there any function module or database table that holds the check table for standard field? Ex. BUKRS = T001.

    Hi MArc,
    Goto DD03L table
    Enter fieldname and tablename, you will get check table in CHECKTABLE field.
    e.g. fname - MATNR, tbname MARD then CHECKTABLE - MARA
    Reg,
    Sachin

  • [svn] 4916: sdk-14180 Handle updates to more than one field in an item when autoupdates are off .

    Revision: 4916
    Author: [email protected]
    Date: 2009-02-10 13:32:12 -0800 (Tue, 10 Feb 2009)
    Log Message:
    sdk-14180 Handle updates to more than one field in an item when autoupdates are off.
    QE Notes: None
    Doc Notes: None
    Bugs: sdk-14180
    Reviewer: ryan
    tests: checkintests mustella:collections
    Ticket Links:
    http://bugs.adobe.com/jira/browse/sdk-14180
    http://bugs.adobe.com/jira/browse/sdk-14180
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/collections/ListCollectionView .as

    Revision: 4916
    Author: [email protected]
    Date: 2009-02-10 13:32:12 -0800 (Tue, 10 Feb 2009)
    Log Message:
    sdk-14180 Handle updates to more than one field in an item when autoupdates are off.
    QE Notes: None
    Doc Notes: None
    Bugs: sdk-14180
    Reviewer: ryan
    tests: checkintests mustella:collections
    Ticket Links:
    http://bugs.adobe.com/jira/browse/sdk-14180
    http://bugs.adobe.com/jira/browse/sdk-14180
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/collections/ListCollectionView .as

  • Update multi tables in one page

    I need to create a page that allow users to update ( no insert, no delete) 2 tables 1 view.
    home page users enter a record_no, then I pass the rec_no to p2 which has 3 regions. Each region points to one table\view respectively. All tables\view are linked by a same rec_no. Each region has a form on table with buttons: cancel,save.
    This works fine with only one region but When I start putting 2nd region,
    following issues arise
    1. data only display on most recently added region( form), it won't display on both regions
    2. when I click apply changes (save) on region 1, it erros on both regions that have not null columns. I think this is because it can't tell the difference on the button that I press.
    Is it possible to achieve this goal: update multiple tables in one page ? What is the best way to do it ?
    I don't want to use form with a report because it has extra page to go through.Ultimate goal is to make all regions Hide and show, so data won't clog whole screen if user has no need to see all at once. Is creating a view of these 3 tables\view the way to go ?
    Can you help ? My brain is fried now.
    Thanks.
    Tai

    Hello Tai,
    I understand your frustration. Sometimes, something that should seem easy turns out to be so difficult. In this case, what you can do is this:
    1. Get rid of the buttons in the second and third region. You can drive your updates all from only one set of buttons.
    2. Set a condition on your update button that it only do the update if all three regions data have been filled in - that is - the fields you need are NOT NULL.
    Sometimes, I have actually created a separate region called "Buttons" and that is all that resides there. When I have multiple regions on a screen that need input, I won't do any of the updates until all areas have been populated.
    As for hiding/displaying the various regions based on your user's need to see them, you can also set conditional display on the region so the user won't see them if they don't need to.. And/or use the hide/show region template.
    I hope this helps,
    Don.
    You can reward this reply by marking it as either Helpful or Correct :)

  • Multiple select list for one field in form

    Friends,
    I have a form , which is having many fields. One of the field are day/date. In this field i have to take 3 dropdown lists. like one for date, one for day and another for year. I have created three lov's for the day,date and year but for the field day/date i am able to apply only one lov. Any way so that i can display all the three lov for one field
    example
    day/date: day -- (dropdown list)
    date -- (dropdown list)
    year -- (dropdown list)
    thanks in advance
    adi
    Edited by: Adi's on Feb 16, 2010 11:46 PM
    Edited by: Adi's on Feb 16, 2010 11:47 PM
    Edited by: Adi's on Feb 16, 2010 11:52 PM

    nope, I just gave u an example to combime day , date and year fields in one select list, it does not matter whether they are in one table or multiple table and you dont require to create any tables for this, I assumed your lov for day / date / year are dynamic not static.
    Regards,
    Shijesh

  • Field functional area does not appear as an entry field into the document..

    Hi,
    We are using the functional area field in our system. In order to access this field, we proceeded
    to customize the system as follows:
    -  We already activate Cost of Sales Accounting for our Company Code.
    -  The field functional area was set optional through transaction OB41, for the posting keys required.
    -  The field functional area was set optional using transaction OB14, for the field status group assigned to the GL accounts.
    However, we cannot enter the area functional when we are posting documents related to customers and vendors. 
    Although the field functional area was set optional, it does not appear as an entry field into the document screen for the
    different transactions: fb70, fb60, f-02,fb01.  It is only happening when we areentering the document position for the vendor/customer.
    Regards,
    Efrain

    Hi,
    In FB70 or FB60 change the layout ........ select the line item layout configuration, you get a separate Table Settings screen pop up where in you need to select "Administrator"  button the system displays another pop up window where in you can check whether the Functional Area field is checked as invisible if so remove the check mark and active the settings.
    Kind Regards

  • Input Masks for one field

    Hi,
    Can I assign different input masks for one field on a presentation?
    Thanks

    Hi vijay,
    1. U have not given proper parameters
       while calling the FM.
    2. have a look at this (just copy paste)
    3.
    REPORT ABC.
    DATA : BEGIN OF ITAB OCCURS 0,
    UNAME LIKE USR01-BNAME,
    END OF ITAB.
    data : RETURN_TAB LIKE DDSHRETVAL occurs 0 .
    data : RETURN_wa LIKE DDSHRETVAL .
    PARAMETERS : A(12) TYPE C.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR A.
    ITAB-UNAME = 'U01'. APPEND ITAB.
    ITAB-UNAME = 'U02'. APPEND ITAB.
    ITAB-UNAME = 'U03'. APPEND ITAB.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    retfield = 'ITAB-UNAME'
    PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'A'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    tables
    value_tab = ITAB
    FIELD_TAB = FTAB
    RETURN_TAB = return_tab
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    break-point.
    regards,
    amit m.

  • Add List box for one field in ALV GRID

    Hi All,
      I need to add drop down list box for one field in ALV Grid.
      If any body knows, please help.
    Thanks in advance.
    Regards
    Manglesh

    Hi,
    Here is the ex where i have used for date parameter in the sel screen
    type-pools: vrm.
    data: name type vrm_id,
          list type vrm_values,
          value like line of list.
    parameters :    p_date like p_date2
                                  as listbox visible length 15.
    at selection-screen output.
      name = 'P_DATE'.
      value-key = '1'.
      value-text = 'Today'.
      append value to list.
      value-key = '2'.
      value-text = 'Last 7 days'.
      append value to list.
      value-key = '3'.
      value-text = 'Last 30 days'.
      append value to list.
      value-key = '4'.
      value-text = 'Last 90 days'.
      append value to list.
      value-key = '5'.
      value-text = 'Last year'.
      append value to list.
    Call the ''VRM_SET_VALUES' to display the values in Listbox
      call function 'VRM_SET_VALUES'
        exporting
          id     = name
          values = list.
    at selection-screen.
      if sy-ucomm = 'CLI1'.
        sscrfields-ucomm = 'ONLI'(001).
      endif.
      if p_date = '1'.
        p_date11 =  sy-datum .
      elseif p_date = '2'.
        p_date11 = ( sy-datum - 7 ).
      elseif p_date = '3'.
        p_date11 = ( sy-datum - 30 ).
      elseif p_date = '4'.
        p_date11 = ( sy-datum - 90 ).
      elseif p_date = '5'.
        p_date11 = ( sy-datum - 365 ).
      endif.
    Hope this helps u..
    Please reward points if useful.
    Regards,
    Sreenivas

  • How to use select statement for one field

    I want to fetch the data from table and only one field  , the below code i written is correct or not , because only for one field i used endselct  if i am not giving endselect it is  showing error. Please suggest me.
    DATA : SBELN TYPE VBAK-VBELN.
    parameters : s_vbeln type vbak-vbeln.
    select vbeln from vbak into sbeln
    where vbeln = P_VBELN.
    endselect.

    Hi ,
    As because you want single field but not single record so SELECT  SINGLE is not correct .
    You need to create a internal table with the field of VBELN.
    Then you need to fetch the records from the VBELN field of table VBAK.
    Try this code --
    DATA : t_itab like table of VBAK-VBELN.
    parameters : s_vbeln type vbak-vbeln.
    select vbeln from vbak into table t_itab
    where vbeln = s_VBELN.
    Regards
    Pinaki

  • WebPart is raising the following error "Invalid data has been used to update the list item.The field you are trying to update may be read only"

    I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["Pages"];
    web.AllowUnsafeUpdates = true;
    foreach (SPListItem items in list.Items)
    items["Author"] = "SharePoint";
    items["Created"] = "01/08/2014 01:44 PM";
    items.Update();
    list.Update();
    web.AllowUnsafeUpdates = false;
    protected void Page_Load(object sender, EventArgs e)
    but when i try adding this web part to a page i got the following error:-
    Invalid data has been used to update the list item.The field you are trying to update may be read only
    so can anyone advice?

    i only changed lines bitween 
    web.AllowUnsafeUpdates = true;
    and
    web.AllowUnsafeUpdates = false;
    and other parts of code remains without change
    so it will updates all pages in current web
    yaşamak bir eylemdir

  • How to find the Check table for a field ?

    Hello All,
            I have the filed name f1.
    Now I want to know the check table of this field programatically and if this field has a configuration table then I need that table also.
    eg: if werks is the field the Master         Table is : MARC
                                    and Configuration Table is : T001W.
    Is this possible first of all programatically ?
    If yes can anyone help me out ?
    Regards,
    Deepu.K

    Hi again,
    1. I don't know the master table for the field werks
    A field is never independent. It is always linked to a table,
    otherwise the information is only half.
    2. So incase if we do not know the tablename,
       its best to query the table DD03L with WERKS,
      and filer out CHECKTABLE with *,
      and take any one record.
    regards,
    amit m.

  • Table for BETRG Field

    Hi Experts,
    I am working on an ESS MSS project. Currently I am working on a report in which I have to find the expenses of an employee.
    The field BETRG gives me the expenses for that employee. but I am unable to find a table for this field.
    Does anybody know how to extract field

    Hi Mukul,
    Goto SE11 and give this  data element and try a where used list.
    U can get list of tables which uses this field.
    Here are some list of tables which uses this field.
    HRP1501(DB Table for Infotype 1501)
    HRP1502(DB Table for Infotype 1502)
    PA0021(For infotye 0021)
    PA0052(Wage maintainence)
    I thnk u shuld use these tables since ur looking for employee expenses.Still there are many PA tables associated with it .
    Chk which table suits ur requirement.
    P01CBF
    P01CEF
    P01CGP
    P01CSL
    P01CSO
    P01Y15
    Regards,
    Lakshman.

  • Master table for the field BSART

    hi friends
    pls tell me, which is the master table for the field BSART.
    because i want to get the search help fo that field....

    Hi babu,
    If u want know what the table and where the fields are resued go to T-code SE15. u can find ...
    Regards,
    Bharani.

Maybe you are looking for

  • Long voice memos not transferring to iTunes

    Hi, I need help. I have a 3gs 32GB iphone and for all purposes its been working alright, but since i did the ios 5.0 update (now ios 5.0.1 hoping this would solve the problem but no)some of my voice memo's have been duplicated on my phone. Also voice

  • Acrobat 9 Pro won't save bookmarks! Why?

    So this is a really weird thing that's been happening lately: I'll go through a PDF and add a bunch of bookmarks (it's an ebook that's been formatted, but with no chapter bookmarks set up), and I'll save it - and the bookmarks don't get saved! Anythi

  • Wrapping text at Web Analysis Item

    Hello, Does anybody have a clue how we can wrap the text at the columns of web Analysis Item at WEB application Designer 7.x At the previous version 3.x it was something done with table interface class. Although SAP clames that all this fancionality

  • Column view error

    Hello, I use column view to open indesign files and place textfiles and pictures into my documents. For a couple of weeks every now and then when i want to browse for an document the column view jumps to the first column, leaving the other colums bla

  • Web dynpro certifiication

    hi all, i have a query that whether one can have a webdynpro certification ? i know that abap certification is done and one has to appear for tests to get certified in abap....so is any similar certification is present? if yes the when can one appear