The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

After installed February
2015 CU for SharePoint 2013 appear error when click on 'Shared
With' in list item.
The screenshots see here: 1 and 2
Is this a bug?

Yes, this is a known bug introduced with the November 2014 CU. There is no solution as of yet.
Trevor Seward
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • Error during project server 2013 The property or field 'StartDate' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

    Hi sir,
    when I have try to fetch the value of project start date and finish date and some other field value , I have recived error message like The property or field 'StartDate' has not been initialized. It has not been requested or the request has not been
    executed. It may need to be explicitly requested.
    I have used client context for project server 2013.
    I have also load and execute query.but fail to resolve it Please suggest me and provide solution.
    vijay

    Hi,    
    If you use the Include<TSource> Method in the Load method, we will retrieve only the ids of items in this query, so
    the listItems.ListItemCollectionPosition will not be initialized.
    You can use the <ViewFields> tag in CAML Query to specify the field values to return with each item instead.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Csom error The property or field 'LoginName' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

    Hi sir,
    When I have get the value of project owner the error is occured
    The property or field 'LoginName' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
    vijay

    Hi Vijay,
    The owner details are not loaded by default when you load all projects.
    You have to make sure the details of the project owner are loaded before you can access them:
    foreach (PublishedProject pubProj in projContext.Projects){
    User owner = pubProj.Owner;
    projContext.Load(owner);
    projContext.ExecuteQuery();
    Console.WriteLine(owner.LoginName);

  • SCRIPT5022: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

    Hi,
    i have a simple javascript which throws me the following error:
    SCRIPT5022: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
    I am using it under O365 inside an Content Editor WebPart. I have a list called "myTestList" with several items and one column called "points". I want to retrieve only the items which
    i have created and sum the points to show it inside a div. This is my code.
    <div id="myPoints" style="font-size: 50px;">0​</div>
    <script language="javascript" type="text/javascript">
    SP.SOD.executeOrDelayUntilScriptLoaded(retrieveMyItems, "sp.js");
    function retrieveMyItems() {
    var clientContext = new SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('myTestList');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Author' /><Value Type='Integer'><UserID /></Value></Eq></Where></Query></View>");
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem, 'Include(points)');
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onMyItemsQuerySucceeded), Function.createDelegate(this, this.onMyItemsQueryFailed));
    function onMyItemsQuerySucceeded(sender, args) {
    var listItemInfo = 0;
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var oListItem = listItemEnumerator.get_current();
    listItemInfo = listItemInfo + parseInt(oListItem.get_item('points'));
    var div = document.getElementById("myPoints");
    div.innerHTML = listItemInfo;
    function onMyItemsQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>​
    Whats wrong here?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    Solved!
    The set_viewXml line must be:
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Author' /><Value Type='Integer'><UserID Type='Integer'/></Value></Eq></Query></Where></View>");
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

  • The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested

    hi sir,
    I have try to update task assignments using csom model.
     erro message ::The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested
     foreach (PublishedAssignment assignItem in item.Assignments)
                                Guid id =assignItem.Id;
                               cc.Load(assignItem, a => a.Resource,a=>a.PercentWorkComplete);
                               cc.ExecuteQuery();
                               EnterpriseResource er = cc.EnterpriseResources.GetByGuid(assignItem.Resource.Id);
                               cc.Load(item.Assignments,c=>c.Where(uu=>uu.Id==id).IncludeWithDefaultProperties( l=> l.Task.Assignments,l=>l.Work));
                               cc.ExecuteQuery();
                               er.Assignments.Single(ll => ll.Id == id).Work = "9";
                               cc.Load(er);
                               cc.ExecuteQuery();
                               StatusAssignmentCollection sac = er.Assignments;
                               sac.Update();
                               sac.SubmitAllStatusUpdates("hello vijay");
    vijay

    Hi Vijay,
    You didn't load the 'er.Assignments' collection.
    Make sure it's loaded and it should work
    Hope this helps

  • "The property or field has not been initialized" Error, when debbuging app

    Hello,
    I'm  following the instructions of a dev book but I get the following error message when debugging the app.
    "The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."
    The code:
    var collListItems;
    $(document).ready(function () {
    getConfigValues();
    function getConfigValues() {
    var context = SP.ClientContext.get_current();
    var configList = context.get_web().get_lists().getByTitle('Configuration Values');
    var camlQuery = new SP.CamlQuery();
    collListItems = configList.getItems(camlQuery);
    context.load(collListItems);
    context.executeQueryAsync(onGetConfigValuesSuccess, onGetConfigValuesFail);
    function onGetConfigValuesSuccess() {
    var OrgLogoUrl;
    var OrgName;
    var listItemEnumerator = collListItems.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var oListItem = listItemEnumerator.get_current();
    var current = oListItem.get_item('Title');
    switch (current) {
    case 'OrganizationName':
    OrgName = oListItem.get_item('Value');
    break;
    case 'OrganizationLogoUrl':
    OrgLogoUrl = oListItem.get_item('Value');
    break;
    if (OrgName && OrgName.length > 0) {
    $('#DeltaPlaceHolderPageTitleInTitleArea').html(OrgName);
    $('.ms-siteicon-img').attr('title', OrgName);
    if (OrgLogoUrl && OrgLogoUrl.length > 0)
    $('.ms-siteicon-img').attr('src', OrgLogoUrl);
    else
    $('.ms-siteicon-img').attr('src', '../Images/AppLogo.png');
    function onGetConfigValuesFail(sender, args) {
    alert('Failed to get the Configuration Values. Error:' + args.get_message());
    What it have to do is to replace the Title and Site logo, using the "Title" and "Value" fields of the "Configuration Values" list.
    My dev environment: SharePoint online, Azure, VS2013 Ultimate (trial)
    I've tried to reach the author of the book but it's being 4 days and no response, maybe somebody here can help me.
    Thanks in advance.
    Jimmy

    Jaydeep, I don't get the values, see the HTML code below.
    <%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %>
    <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%-- The markup and script in the following Content element will be placed in the <head> of the page --%>
    <asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.js"></script>
    <!-- Add your CSS styles to the following file -->
    <link rel="Stylesheet" type="text/css" href="../Content/App.css" />
    <!-- Add your JavaScript to the following file -->
    <script type="text/javascript" src="../Scripts/App.js"></script>
    </asp:Content>
    <%-- The markup in the following Content element will be placed in the TitleArea of the page --%>
    <asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    KA Online Klas
    </asp:Content>
    <%-- The markup and script in the following Content element will be placed in the <body> of the page --%>
    <asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div id="menu">
    <ul>
    <li><a href="../Lists/Configuration Values">Site Configuration</a></li>
    <li><a href="../Lists/Site Assets">Site Assets</a></li>
    </ul>
    </div>
    </asp:Content>

  • I cannot type anything into the Google search field; each character typed brings up a list of suggestions below the search field, but nothing appears in the search field itself.

    When in Mozilla and I bring up Google, the search field appears but the cursor does not blink as it ordinarily would do. When I try to type a search string it doesn't appear in the search field, instead a list of suggestions appear depending on the character(s)

    Solved: This was caused by replacing the SegoeUI (Regular) true-type font. I have no idea what process or why that font was deleted, but finding the segoeui.ttf file on another Windows machine, emailing it to myself, saving it to disk, then right-clicking and choosing "Install" fixed this problem.

  • Adding custom webpart throwing Javascript error -The collection has not been initialized.

    Hi,
    I created a Javascript CSOM visual webpart and added to page. In the IE developer tools console, I am getting an error as below:
    "SCRIPT5022: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
    SP.Runtime.js, line 2 character 35853".
    My code is as below:
    <script type="text/javascript" src="../../_layouts/15/MicrosoftAjax.js"></script>
    <script type="text/javascript" src="../../_layouts/15/SP.Runtime.js"></script>
    <script type="text/javascript" src="../_layouts/15/sp.js"></script>
    <script type="text/javascript" src="../_layouts/15/sp.ui.controls.js"></script>
    <script type="text/javascript" src="/_layouts/15/test/Scripts/jquery-1.8.2.js"></script>
    <script type="text/javascript" src="/_layouts/15/test/Scripts/Rotator.js"></script>
    <script type="text/javascript" src="/_layouts/15/test/Scripts/bjqs-1.3.js"></script>
    <link rel="stylesheet" type="text/css" href="/_layouts/15/test/CSS/bjqs.css" />
    <SharePoint:FormDigest ID="FormDigestRotator" runat="server">
    </SharePoint:FormDigest>
    <div id="banner-fade">
    <ul id="carousel" class="bjqs">
    </ul>
    </div>
    // In Rotator.js
    $(document).ready(function () {
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', loadConfigData);
    function loadConfigData() {
    var clientcontext = new SP.ClientContext.get_current();
    var oweb = clientcontext.get_site().get_rootWeb();
    var olist = oweb.get_lists().getByTitle("LibName");
    var configquery = SP.CamlQuery.createAllItemsQuery();
    Allpictures = olist.getItems(configquery);
    clientcontext.load(Allpictures, 'Include(Title,ImgSubURL)');
    clientcontext.executeQueryAsync(Function.createDelegate(this, this.Configsuccess), Function.createDelegate(this, this.Configfailed));
    How to fix this javascript error? Due to this, the "Check-in" option is not working.
    Update: i believe the error is with "executeQueryAsync". How to fix this?
    Thanks

    Hi,
    I suggest you create a simple demo first, once it works, then add other customization into your project gradually. It will be easier to composite the correct code.
    Please apply the code below in your project for a try:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    _spBodyOnLoadFunctionNames.push("callCSOM");
    var clientContext;
    var website;
    var str="";
    // Make sure the SharePoint script file 'sp.js' is loaded before your
    // code runs.
    function callCSOM()
    //alert("call");
    $("#Button1").click(function()
    ExecuteOrDelayUntilScriptLoaded(sharePointReady, "sp.js");
    // Create an instance of the current context.
    function sharePointReady() {
    clientContext = SP.ClientContext.get_current();
    website = clientContext.get_web();
    clientContext.load(website);
    clientContext.executeQueryAsync(onRequestSucceeded, onRequestFailed);
    function onRequestSucceeded() {
    str="website.get_title(): "+website.get_title();
    alert(str);
    function onRequestFailed(sender, args) {
    alert('Error: ' + args.get_message());
    </script>
    <input id="Button1" type="button" value="Run Code"/>
    Thanks
    Patrick Liang
    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]
    Patrick Liang
    TechNet Community Support

  • The license key library has not been initialized yet." message.

    Hello you ABAP guys knows everything (amost).
    I am facing problems with licensing the ECC6.0 server. I got a file via e-mail. when trying to install it via "new license" I browse for file sent to me by SAP.
    When trying to install it I get the "The license key library has not been initialized yet." message.
    I tried to find relevant note. The most close note is note 982056  saying to look in trace file (which I do not find).
    i adjusted sec/libsapsecu , ssf/ssfapi_lib and ssf/name parameters and restarted the server but the problem persisted.
    What to do?

    Hi ! I am having the same problem .
    I wanted to extend the demo license of the NSP the first time. When trying to import the license file nsp.txt under transaction SLICENSE, I am getting the message that the license key library has not been initialized yet.
    Could anyone please help ?

  • Variable theContract might not have been initialized

    import java.text.*;
    import java.util.Date;
    import javax.swing.*;
    import java.lang.*;
    class Employer {
         private String name = "";
         public Employer(String na) {
              name=na;
         public Employer() {
              this("");
         public void setName(String na) {
              name=na;
         public String getName() {
              return name;
    class Maid {
         private String name = "";
         public Maid(String na) {
              name=na;
         public Maid() {
              this("");
         public void setName(String na) {
              name=na;
         public String getName() {
              return name;
    class MaidAgency {
         private String registrationNo = "";
         public MaidAgency(String no) {
              registrationNo=no;
         public MaidAgency() {
              this("");
         public void setRegistration(String reg) {
              registrationNo=reg;
         public String getRegistration() {
              return registrationNo;
    abstract class Contract {
         private String contractID = "";
         private String contractDate ="";
         private Employer employer;
         private Maid maid ;
         private MaidAgency agency;
         public Contract(String id, String date, Employer em , Maid ma, MaidAgency m) {
              contractID=id;
              contractDate=date;
              employer=em;
              maid=ma;
              agency=m;
         public Contract() {
              this("","",null,null,null);
         public void setEmployer(Employer em) {
              employer=em;
         public Employer getEmployer() {
              return employer;
         public void setMaid(Maid ma) {
              maid=ma;
         public Maid getMaid() {
              return maid;
         public void setAgency(MaidAgency m) {
              agency=m;
         public MaidAgency getAgency() {
              return agency;
         public void setID(String id) {
              contractID=id;
         public String getID() {
              return contractID;
         public void setDate(String date) {
              contractDate=date;
         public String getDate() {
              return contractDate;
         public abstract double commission();
    class NewMaid extends Contract {
         private double airFare = 0;
         public NewMaid(String id, String date, Employer em , Maid ma, MaidAgency m, double fare) {
              super(id, date, em, ma, m);
              airFare=fare;
         public NewMaid() {
              this("","",null,null,null,0);
         public void setFare(double fare) {
              airFare=fare;
         public double getFare() {
              return airFare;
         public double commission() {
              return 900;
    class TransferMaid extends Contract {
         private double commissionRate = 0;
         public TransferMaid(String id, String date, Employer em , Maid ma, MaidAgency m, double comm) {
              super(id, date, em, ma, m);
              commissionRate=comm;
         public TransferMaid() {
              this("","",null,null,null,0);
         public void setCommission(double comm) {
              commissionRate=comm;
         public double getCommission() {
              return commissionRate;
         public double commission() {
              return 350;
    public class Try {
         public static void main(String[] args) {
              String theEmployerName;
              String theMaidName;
              String theRegistrationNo;
              String theContractID;
              String theContractDate;
              String contractType;
              double theCommisionRate;
              double theAirFare;
              Employer theEmployer = new Employer();
              Maid theMaid = new Maid();
              MaidAgency theAgency=new MaidAgency();
              Contract theContract;
              theEmployerName=Console.readString("Employer Name : ");
              theEmployer.setName(theEmployerName);
              theMaidName=Console.readString("Maid Name : ");
              theMaid.setName(theMaidName);
              theRegistrationNo=Console.readString("Registration No. : ");
              theAgency.setRegistration(theRegistrationNo);
              theContractID=Console.readString("Contract ID :");
              theContractDate=Console.readString("Contract Date :");
              contractType= Console.readString("Contract Type (<N>ew Maid / <T>ransfer Maid) : ");
              while (!contractType.equals("N") && !contractType.equals("T")) {
                   JOptionPane.showMessageDialog(null,"Wrong Contract Type!");
                   contractType= Console.readString("Contract Type (<N>ew Maid / <T>ransfer Maid) : ");
              if (contractType.equals("N")) {
                   theAirFare=Console.readDouble("Air Fare : ");
                   theContract=new NewMaid(theContractID,theContractDate,theEmployer,theMaid,theAgency,theAirFare);
              else {
                   if (contractType.equals("T")) {
                        theCommisionRate=Console.readDouble("Commission Rate : ");
                        theContract=new TransferMaid(theContractID,theContractDate,theEmployer,theMaid,theAgency,theCommisionRate);
              System.out.println("Contract ID = " + theContract.getID());  // error
    }I think theContract has been initialized after i choose N or T, but it's not???
    aww..my head's spinning.
    help!

    By the way, my name is Monica. Ron is my last
    name. No problem, though--it's a common mistake
    here. :)That reminds me about a funny thing. I was driving from Miami to Canada a couple of years ago, and each night I had to try to find a hotel and check in. Most people didn't know how to write my last name so I usually just gave them my (Swedish) drivers license so that they would be able to fill out the forms. I usually didn't read what they wrote when I checked in, but used to take a look at the papers when I checked out. One of the hotels had checked me in as:
    First name: K�rkort
    Last name: Sverige
    which means:
    First name: Drivers license
    Last name: Sweden
    Kaj Bjurman

  • The difference between FIELD-SYMBOL and normal DATA TYPE

    Dear experts,
    Please see the example below, both are output the same result.
    DATA: EXTERNAL_RECORD(4000),
          POSITION TYPE I,
          LENGTH TYPE N,
          ENTRY TYPE STRING.
    EXTERNAL_RECORD = '0005Smith0007Edwards0005Young'.
    DO.
      LENGTH = EXTERNAL_RECORD+POSITION(4).
      IF LENGTH = 0.
        EXIT.
      ENDIF.
      ADD 4 TO POSITION.
      MOVE EXTERNAL_RECORD+POSITION(LENGTH) TO ENTRY.
      WRITE ENTRY.
      ADD LENGTH TO POSITION.
      IF POSITION >= 4000.
        EXIT.
      ENDIF.
    ENDDO.
    --OR It can be written as--
    DATA: EXTERNAL_RECORD(4000),
          POSITION TYPE I,
          LENGTH TYPE N.
    FIELD-SYMBOLS <ENTRY>.
    EXTERNAL_RECORD = '0005Smith0007Edwards0005Young'.
    DO.
      LENGTH = EXTERNAL_RECORD+POSITION(4).
      IF LENGTH = 0.
        EXIT.
      ENDIF.
      ADD 4 TO POSITION.
      ASSIGN EXTERNAL_RECORD+POSITION(LENGTH) TO <ENTRY>.
      WRITE <ENTRY>.
      ADD LENGTH TO POSITION.
      IF POSITION >= 4000.
        EXIT.
      ENDIF.
    ENDDO.
    Is there any special circumstances we need to use FIELD-SYMBOL?
    Why is FIELD-SYMBOL is introduce in the first place?
    Kindly advice with example.
    Thanks in advance for those who can help me on this.

    HI,
    You can use field symbols to make the program more dynamic. In this example the name of a table control is substituted by a field symbol. Thus you cal call the form with any internal table, using the name of the table control as a parameter.
    Example
    form insert_row
    using p_tc_name.
    field-symbols <tc> type cxtab_control. "Table control
    assign (p_tc_name) to <tc>.
    insert 100 lines in table control
    <tc>-lines = 100.
    Field symbols allow you to:
    **     Assign an alias to a data object(for example, a shortened
            name for data objects structured through several hierarchies
            - <fs>-f instead of rec1-rec2-rec3-f)
    **     Set the offset and length for a string variably at runtime
    **     Set a pointer to a data object that you determine at runtime (dynamic ASSIGN)
    **     Adopt or change the type of a field dynamically at runtime
    **     Access components of a structure
    **     (from Release 4.5A) Point to lines of an internal table
            (process internal tables without a separate work area)
    Field symbols in ABAP are similar to pointers in other programming
    languages. However, pointers (as used in PASCAL or C) differ from ABAP
    field symbols in their reference syntax.
    The statement ASSIGN f to <fs> assigns the field f to field
    symbol <fs>. The field symbol <fs> then "points" to the
    contents of field f at runtime. This means that all changes to the
    contents of f are visible in <fs> and vice versa. You declare
    the field symbol <fs> using the statement FIELD-SYMBOLS: <fs>.
    Reference syntax
    Programming languages such as PASCAL and C use a dereferencing symbol
    to indicate the difference between a reference and the object to which
    it refers; so PASCAL would use p^ for a pointer instead of p, C would
    use *p instead of p. ABAP does not have any such dereferencing symbol.
    **     In PASCAL or C, if you assign a pointer p1 to a pointer p2,
    you force p1 to point to the object to which p2 refers (reference semantics).
    **     In ABAP, if you assign a field symbol <fs1> to a field
    symbol <fs2>, <fs1> takes the value of the data object to
    which <fs2> refers (value semantics).
    **     Field symbols in ABAP are always dereferenced, that is,
    they always access the referenced data object. If you want to
    change the reference yourself in ABAP, you can use the ASSIGN statement
    to assign field symbol <fs1> to field symbol <fs2>.
    Using field symbols
    You declare field symbols using the FIELD-SYMBOLS statement.
    They may be declared either with or without a specific type.
    At runtime you assign a field to the field symbol using the ASSIGN
    statement. All of the operations on the field symbol act on the field
    assigned to it.
    When you assign a field to an untyped field symbol, the field symbol
    adopts the type of the field. If, on the other hand, you want to assign
    a field to a typed field symbol, the type of the field and that of the
    field symbol must be compatible.
    A field symbol can point to any data object and from Release 4.5A,
    they can also point to lines of internal tables.
    The brackets (<>) are part of the syntax.
    Use the expression <fs> IS ASSIGNED to find out whether the field
    symbol <fs> is assigned to a field.
    The statement UNASSIGN <fs> sets the field symbol <fs> so
    that it points to nothing. The logical expression <fs>
    IS ASSIGNED is then false. The corresponding negative expression
    is IF NOT <fs> IS ASSIGNED.
    An unassigned field symbol <fs> behaves as a constant with
    type C(1) and initial value SPACE.
    MOVE <fs>
    TO dest     Transfers the initial value SPACE to the variable dest
    MOVE 'A' to <fs>     
    Not possible, since <fs> is a constant
    (runtime error).
    To lift a type restriction, use the CASTING addition in the
    ASSIGN statement. The data object is then interpreted as though
    it had the data type of the field symbol. You can also do this
    with untyped field symbols using the CASTING TYPE <type> addition.
    The danger with pointers is that they may point to invalid areas.
    This danger is not so acute in ABAP, because the language does not
    use address arithmetic (for example, in other languages, pointer p
    might point to address 1024. After the statement p = p + 10, it would
    point to the address 1034). However, the danger does still exist, and
    memory protection violations lead to runtime errors.
    A pointer in ABAP may not point beyond a segment boundary. ABAP does
    not have one large address space, but rather a set of segments.
    Each of the following has its own segment:
    *     All global data
    *     All local data
    *     Each table work area (TABLES)
    *     Each COMMON PART
    You should only let field symbols move within an elementary field or
    structure where ABAP allows you to assign both within the global data
    and beyond a field boundary.
    Rgds
    Umakanth

  • Exit/bAdI for changing the item level field in VA02.

    Dear Guruss...
    I am facing a problem while trying toi change the account assignment group in VA02. The field is present at the iteem level in the tab BILLING.
    When I change the field by choosing one of the values provided in the search help and enter, the value is again reset to its initial value. However if I change the value and SAVE (without pressing enter) then the value is saved.
    The technical field name is VBAP-KTGRM, I have checked in the include:MV45AFZZ by putting break-points at all the forms but unfortunately none of them is getting triggered when I press enter.
    During the debugging I found tha the values of the structure VBAP are overwritten by those of XVBAP everytime I press enter.
    I also checked for the bAdI but can not get any help.
    Is there any bAdI or exit that can help me for this????
    Thanks in Advance......
    Abhi.....

    Hi Digvijay
       these are some of the enhancements/badi's which is related to t-code va02. just check it out
    Transaction Code -               VA02          Change Sales Order
         Enhancement/ Business Add-in               Description     
         Enhancement                    
         V60F0001               SD Billing plan (customer enhancement) diff. to billing plan     
         V46H0001               SD Customer functions for resource-related billing     
         V45W0001               SD Service Management: Forward Contract Data to Item     
         V45S0004               Effectivity type in sales order     
         V45S0003               MRP-relevance for incomplete configuration     
         V45S0001               Update sales document from configuration     
         V45P0001               SD customer function for cross-company code sales     
         V45L0001               SD component supplier processing (customer enhancements)     
         V45E0002               Data transfer in procurement elements (PRreq., assembly)     
         V45E0001               Update the purchase order from the sales order     
         V45A0004               Copy packing proposal     
         V45A0003               Collector for customer function modulpool MV45A     
         V45A0002               Predefine sold-to party in sales document     
         V45A0001               Determine alternative materials for product selection     
         SDTRM001               Reschedule schedule lines without a new ATP check     
         SDAPO001               Activating Sourcing Subitem Quantity Propagation     
          Business Add-in                    
         BADI_SD_SCH_GETWAGFZ               Scheduling Agreement: Read WAGFZ from S073     
         BADI_SD_V46H0001               SD Customer functions for resource-related billing
      Regards
    Zulfikhar ali
    Edited by: Zulfikhar Ali Bhutto.N on Sep 23, 2011 11:15 AM

  • From where the VBRK-STCEG field value in the invoice header gets filled.

    Hi Friends,
    I have a scenario in my client system. I have one sales organisation in Spain which sends a order to France based sales organisation. In the France based sales organisation the sales order will be created with sold to partner as the Spain sales organisation, and the delivery can happen either to same partner or sometimes to another ship to partner who is based in Spain.
    Now, my issue is whenever the France organisation creates invoice against Spain organisation for the sales order delivered, the VAT number of the customer in the VBRK-STCEG field is populated from Ship to partner's master data. The same value will be fetched into the table VEIAV-KUNDEUINR.
    In my case, I want the bill to partners VAT number to be populated in VBRK-STCEG field. How can it be done and where I need to maintain the config for this?
    Thanks
    Chandramouli

    Hello Chandramouli,
    Please find below some SAP Documentation for VAT set up in the IMG Config:
    Maintain Sales Tax Identification Number Determination
    In this IMG activity, you maintain how VAT registration numbers are determined in the sales order and billing document.
    Tax classification is included in this activity.
    Options available to assign to the Sales organization are:
    blank - according to priority rule
    A - generally from sold-to party
    B - generally from payer
    C - according to priority rule, destination country from ship-to party
    If you leave the field blank, the standard priority rule works as follows:
    1. If the payer has a VAT ID number and RG <> AG, then the tax number and tax classification are copied from the payer (in this case, the ship-to party is not relevant).
    The tax number is taken according to the 'tax country of destination'.
    2. If 1. does not apply:
    If the ship-to party has a VAT registration number and the sold-to party does not, tax number and tax classification are copied from the ship-to party.
    3. If 2. does not apply:
    Tax number and tax classification are copied from the sold-to party.
    If you enter A, tax number and tax classification are generally copied from the sold-to party.
    The tax number is copied according to the 'country of destination relevant for taxes'.
    If you enter B, tax number and tax classification are generally copied from the payer.
    The tax number is copied according to the 'country of destination relevant for taxes'.
    I hope this information is useful to you in your work.
    Best Regards
    Sitaraman

  • The payment reference field

    Hi,
    The user complains that the item 1 of 4 items in one document type AB, although it had the Credit memo and the Payment Ref. fields filled with the invoice number 9054525892 it was not cleared by the customer payment. They usually work with an automatic process to clear the documents.
    The customer pays an amount (he already knows the net amount) for the bank and by the return file, according to the original invoice it makes the clearing if all the documents have the same due date and Payment reference correctly filled.
    I would like to know why the item 1 of the document type AB was not considered even with the paymennt reference field filled.
    Does SAP recognize the payment reference just if it is a document type debit 40 / credit 11 or is it smart enough to find an ITEM inside a document to clear just it?
    I believe the user created a wrong document to give a discount.... but I would like to know how SAP works with the payment reference field.
    Thanks.

    Hi,
    Combining FI Documents Using a Payment Reference Number KIDNO.
    In some countries you may be required to combine receivables, linked liabilities or cancellations in the same payment program.
    This combination is carried out by filling field KIDNO in the billing header with the following values:
    F2 billing documents (customer invoices) with the billing number
    S1 cancellations using the reference to the corresponding F2 billing document to be canceled via the VBRK-KIDNO from the F2 billing document.
    If a reference for the credit memo request exists for a billing document, then the VBRK-KIDNO value of the reference billing document is copied.
    If there is no reference, then the KIDNO is given the current billing document number.
    When the customer pays the invoice, it quotes the payment reference number, which enables the vendor to match the payment to the invoice more quickly.
    The payment reference number consists of a sequential number and a check digit. Each country has its own rules as to how the check digit is calculated.
    Regards
    R.K

  • How to control the number of fields in the Advanced mode in af:query

    Hi,
    How to control the number of fields in the Advanced mode in <af:query>?
    Say i have 20 fields in my table and i created a view criteria with 2 fields. It would work perfectly in Basic mode. But in the Advanced mode all other fields selection is possible on clicking the ADD Fields button. I did not want the client to make a search with all 20 fields. Only 10 fields are to be listed in the Advanced Mode even though there are 20 fields in my table.
    How do i control the list of fields in ADDFields button?
    Any ideas?
    KR

    You can uncheck the Querable property of the attributes which you need not show up in the Advanced Mode (but they will not show up in other modes too !) or programatically set the same as mentioned here -
    http://adfcodebits.blogspot.com/2010/11/bit-27-setting-view-object-attributes.htmlAlso you can hide the AddFields button as suggested here - http://www.notjustjava.com/2011/12/cool-tips-to-showhide-components-of-the-query-control-of-adf/

Maybe you are looking for