Fox Code:Inclusion of field which cant be used as field to be changed or in conditions

Hi Folks,
I have a field and value for that field is made by user selection.
Now, i want to include that field in filter used by the planning function.
But my question is could i include that field directly in filter using the same variable thats used in input layout and modifying the fox code by passing value to the field by this statement:
Let the field added be X.
X = VARC(VARIABLE NAME).
Kindly advice.
Thanks

Hi Kitu,
the code on how to read variable values in fox is different than what you stated.
you need to define first a local variable
data local type xxx. (local is an individual name, xxx is the info object name)
then you need to fill the local variable with the value from your bex variable.
local = varv (yyy). (yyy is the technical name of your bex variable).
regards
Cornelia

Similar Messages

  • Creation of drop down for a field which is created using otr

    Hi experts
    I have a requirement wherein i have to create a dropdown for a field which is added using otr (online text repository).
    When i did an F2 on the field on the UI i found that it had no context node and attribute and the view in the component workbench did not have a configuration also. The coding for that field is done in the htm page of that view using otr.
    For this field i need to create a dropdown (the dropdown values will be fixed). I thought it would be better to code in the method do_init_context.
    Request you to help me out with the code for this requirement as i do not have any idea with regard to otr.
    Thanks and regards
    Preeti Viswanath

    Hi Preeti,
    1.You need to maintain a page attribute(dd_list_type) which is of table type to the htm page of your view.
    2.Then in the set_models method of your view controller add the following code:
    * Put the data into the view attribute
      view->set_attribute(
            name   = 'dd_list_type'        
            value  = lt_list_type ).
    You can add OTR text list to the internal table lt_list_type.
    3.Then add the following code to .htm
    * ADDITIONAL CODING IN VIEW
    <% data:           lr_listl_type  type ref to data.
       field-symbols: <list_type>   type table.
       get reference of dd_list_type into lr_list_type.
       assign lr_list_type->* to <list_type>.
    %>
    <htmlb:dropdownListBox id="ListType"
                           table = "<%= <list_type> %>"
                           selection = "<%=controller->gv_model_id %>"
                           nameOfKeyColumn = "KEY"
                           nameOfValueColumn = "VALUE"
                           />
    Regards
    Leon

  • Which scenerio we use at new and on change....

    i which scenerio we use at new then on change....
    basically what is the difference b/w them...

    Hi,
    if u use 'at-new' statement , basically it dont pick first record of the itab where as 'on chage of' can pick from first record.
    all these control brake statements can work with header line except 'on change of' event.
    At New.
    Effect
    Beginning or end of a group of lines with the same content in the component comp1 comp2 ... and in the components to the left of comp1 comp2 .... The components comp1 comp2 ... can be specified, as described in the section Specification of Components, with the limitation that access to object attributes is not possible here.
    Example:
    codeLOOP AT itab result ...
    [AT NEW comp1.
    ENDAT.
    endloop.[/code]
    On Change of:
    Effect:
    The statements ON CHANGE OF and ENDON, which are forbidden in classes, define a control structure that can contain a statement block statement_block. After ON CHANGE OF, any number of data objects dobj1, dobj2... of any data type can be added..
    Example:
    In a SELECT loop, a statement block should only be executed if the content of the column CARRID has changed.
    codeDATA spfli_wa TYPE spfli.
    SELECT *
    FROM spfli
    INTO spfli_wa
    ORDER BY carrid.
    ON CHANGE OF spfli_wa-carrid.
    ENDON.
    ENDSELECT.[/code]
    difference btwn at new and on change of

  • How to find out which users are using SharePoint Designer to make changes in SharePoint 2010 site?

    Hi there,
    How to find out which users are using SharePoint Designer to make changes in SharePoint 2010 site?
    Thanks.

    You need to enable auditing on SharePoint server and it will let you know, if someone makes any critical changes for the same.
    Please walk through this informative KB to enable auditing on SharePoint :https://support.office.com/en-za/article/Configure-audit-settings-for-a-site-collection-f5a346d0-ee0f-4412-a5e6-d9b5abaa1012
    Here is one more resource :
    https://support.office.com/en-in/article/View-audit-log-reports-4293e8d5-4e7d-4201-b8ac-c8e63a100131
    Moreover, if you wish to audit such critical changes automatically, you may consider on this comprehensive application (http://www.sharepointauditing.com/) that helps to track every changes on SharePoint into
    real time and provides the captured data at granular level.

  • How can I set Array field which reside in a Structure field?

    I use Adobe java XMP toolkit.
    There are a few methods for setting structure and array items.
    setStructField() and appendArrayItem().
    However ducu stated that member of Structure may be array or structure, moreover array items also may be arrays or structures.
    So how can I set Array field in Structure or Structure field in Array???
    Thanks
    Andrey

    OK, it worked first time (without exception) as I tried to set value of EXISTING field.
    The trick is to add array or struct BEFORE setting their values.
    This short example shows how it works:
    XMPSchemaRegistry registry = XMPMetaFactory.getSchemaRegistry();
        registry.registerNamespace(extNS, "pdfaExtension");
        registry.registerNamespace(shemaNS, "pdfaSchema");
        registry.registerNamespace(propertyNS, "pdfaProperty");
        XMPMeta m = XMPMetaFactory.create();
        m.appendArrayItem(extNS, "pdfaExtension:schemas", new PropertyOptions().setArray(true), "", new PropertyOptions().setStruct(true));
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:prefix", "dc");
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:namespaceURI", "http://purl.org/dc/elements/1.1/");
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:schema", "Dublin Core Schema");
        m.appendArrayItem(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property", new PropertyOptions().setArrayOrdered(true), null, new PropertyOptions()
            .setStruct(true));
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[1]/pdfaProperty:name", "contributor", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[1]/pdfaProperty:category", "external", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[1]/pdfaProperty:description",
            "Contributors to the resource (other than the authors).", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[1]/pdfaProperty:valueType", "bag ProperName", null);
        m.appendArrayItem(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property", new PropertyOptions().setArrayOrdered(true), null, new PropertyOptions()
            .setStruct(true));
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[2]/pdfaProperty:name", "coverage", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[2]/pdfaProperty:category", "external", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[2]/pdfaProperty:description", "The extent or scope of the resource.", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[2]/pdfaProperty:valueType", "Text", null);
    Above code creates following XMP:
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.1.1">
      <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
        <rdf:Description rdf:about=""
            xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"
            xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"
            xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#">
          <pdfaExtension:schemas>
            <rdf:Bag>
              <rdf:li rdf:parseType="Resource">
                <pdfaSchema:prefix>dc</pdfaSchema:prefix>
                <pdfaSchema:namespaceURI>http://purl.org/dc/elements/1.1/</pdfaSchema:namespaceURI>
                <pdfaSchema:schema>Dublin Core Schema</pdfaSchema:schema>
                <pdfaSchema:property>
                  <rdf:Seq>
                    <rdf:li rdf:parseType="Resource">
                      <pdfaProperty:name>contributor</pdfaProperty:name>
                      <pdfaProperty:category>external</pdfaProperty:category>
                      <pdfaProperty:description>Contributors to the resource (other than the authors).</pdfaProperty:description>
                      <pdfaProperty:valueType>bag ProperName</pdfaProperty:valueType>
                    </rdf:li>
                    <rdf:li rdf:parseType="Resource">
                      <pdfaProperty:name>coverage</pdfaProperty:name>
                      <pdfaProperty:category>external</pdfaProperty:category>
                      <pdfaProperty:description>The extent or scope of the resource.</pdfaProperty:description>
                      <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                    </rdf:li>
                  </rdf:Seq>
                </pdfaSchema:property>
              </rdf:li>
            </rdf:Bag>
          </pdfaExtension:schemas>
        </rdf:Description>
      </rdf:RDF>
    </x:xmpmeta>

  • Which module/datasource uses ROCANCEL field?

    Hello SDN,
    Any idea on this one? I remember that this field in the datasource can be flagged as in-use or not in-use but not sure which module or datasource uses it or can use it. Any general guidelines? I remember it is to do with the behaviour of certain datasources. I am trying to brush up.
    Thanks.
    Adette

    Please check the link below
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/b7/413f3f2615e07fe10000000a114084/frameset.htm

  • How to delete code from Subject Prof which has been used in transaction

    Dear Experts,
    I want to delete code that has already been used in transaction. I know in can flag code group to cannot be used any more and can create new code group. But I cannot change code group and want to delete code from code group. Please help.
    Thanks and regards
    Pankaj Kumar

    Hi Pankaj
    Can you re-assign assign another code to the transactions.
    The system is not going to respond well if you just delete them.
    Regards
    Arden

  • I have an IPhone 5 with 2 email accounts and I can't seem to change the sound for my primary account. When I change the sound it is for my secondary email account which I hardly use. How do I change the sound for my primary account?

    I have 2 email accounts on an IPhone 5 and can't seem to change the sound for my primary email account.

    Try going to Settings>Notifications>Mail, tap your primary account, then tap New Mail Sound and set as desired.

  • Since upgrade to Yosemite, whenever I send an Email, the receiver sees it as coming from my wife only in the "From" column regardless of which signature I use. How do I change this?

    I recently upgraded to Yosemite.
    When I send an Email, the receiver sees that it comes from my wife in their "from" column
    We have separatee signatures that I can chose from and our Email account is identified with both of our names.
    How do I change this so that when I send something, the receiver knows it is from me and not from my wife.

    It may be that you have more than one outgoing mail account, and you're sending from the wrong one. From the Mail menu bar, select
              Mail ▹ Preferences...
    The Mail preference dialog opens. Select the Composing tab from the row of icons at the top. From the menu labeled
              Send new messages from:
    choose
              Account of selected mailbox
    Note that this setting may have no effect if you start a new message while a VIP or smart mailbox is selected in the mailbox list. Those are saved searches, not actual mailboxes.
    If the problem remains, select the Accounts tab in the preference dialog, then select the affected account in the list on the left.
    In the Account Information pane, select the correct server in the menu labeled
              Outgoing Mail Server (SMTP)
    If there's only one server in the menu, select
              Edit SMTP Server List...
    and add a new server with the correct settings. If you're not sure how to do that, try the Mail Settings Lookup.
    Another possibility is that the wrong card in your address book is selected as yours. Select your card in the Contacts application. Then select
              Card ▹ Make This My Card
    from the menu bar.

  • All of a sudden, instead of a google search bar in my toolbar, there is an ebay bar, which I never use. How do I change this back to google?

    Over to the right on my main screen, to the right of where you see the urls, is a search bar that used to be for google, now has been changed to ebay. I have no idea how this happened, but I want to change it back. How do I do that?

    You can click the search engine icon and select Google from the drop down list.
    See:
    *https://support.mozilla.com/kb/Search+bar
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • For the Primary Key Field with the combination of other fields

    Hai
    I Have a problem in creating trigger for the following
    the problem goes like this..
    i have a table with the fields
    fld1 (varchar2(6) fld2(varchar2(20)) fld3 (number)
    the fld1 is a primary key.
    here in this table i am inserting the values ..
    At the time of inserting the fld1 should get the part value of fld2
    say if new value for fld2 is "SAM & CO" then
    it should take the first letter and then followed by the sequence..
    i.e., the fld1 is the combination of a
    letter + firt letter of the fld2 + sequence
    fld1 fld2 fld3
    CS001 SSSSS 324234
    CP001 PPPPP 5345435
    CS002 SSSS 53543543
    Here the Sequence should vary depending on the alphabet of the fld1
    if P the the Sequence should be the next number of fld1 to P
    i.e.,
    if i add the value like this
    insert into tname(fld2,fld3) values('PQQQQ',34343)
    then it should be inserted as
    CP002 PQQQQ 34343
    I need the solution for this..
    Thanx
    Gaya3
    thanx
    gaya3

    There are not enough details to be sure since you have not provided the mappings. From just the error, it looks like you are using the tableC.tableA_ID field as the foreign key in the ManyToOne relationship to A, but have marked it as insertable=false, writeable=false, meaning that it cannot be updated or used for inserts.
    Either make it writable (set the settings to true), or add another basic mapping/attribute in the entity for TableC that maps to the field which you can use to set when you insert a new tableC entity. A simple example is available at
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/2.0/DerivedIdentifiers
    Best Regards,
    Chris

  • Can I use a field name in text module

    Hi,
    I get a object name of the standard text in a field.  Can I use that field in Text module.
    Thanks,
    Srinivas.

    Go to t-code SMARTFORMS->Text Module->Create or Edit-> choose add icon and type your field name (used in your smartform) like this &fieldname&, then use this Text module in your smartform.

  • Using the Field Browser to update fields in Word.

    BIP: 11.1.1.5.0
    Word: 2007
    I have a large RTF template I'm editing in Word, where in I'm duplicating a block with about 120 fields in it. I've copy and pasted the block and now need to update each field to point at a new rowset. For example:
    <xsl:value-of select="//ROWSET9_ROW[CATALOG='Product']/FIELD_NAME" />
    Becomes
    <xsl:value-of select="//ROWSET30_ROW[CATALOG='Product']/FIELD_NAME" />
    Given at takes about 10 seconds for the "BI Publisher Properties" dialogue to open each time I double-click a field, I hoped to use the Field Browser to speed up this process. I read the documentation and find that if I select a section of my template and then open the Field Browser, it will open containing a list of only those fields so selected, I can then edit a field and save the edit by clicking the "Update" button. However, when you click the "Update" button the list of fields in the Field Browser is refreshed to include every field in the report! Is there a way to prevent this behaviour? Is there a fast way to perform this kind of mass update that I'm missing?

    those 2 are the only ways to modify the code as far as i know.
    yes i have read what u have written and if use field update method soon u update one field it will show all the fields in in the field browser .
    that why if u want to update it without error u can double click on code in field browser and it will open the form field in the template automatically.
    else copy your code to a new word document and update your code their using update method in field browser and paste the code in your orginal once the update for the code is done.

  • Display long text field in multiple rows using CL_GUI_ALV_TREE

    Hi,
    I am working on ALV using CL_GUI_ALV_TREE. My last column in this ALV is a long text field which is a text editor field in a standard transactiion. As this text can have more than 250 characters value also, I want to display this field in more than one line , restricting each line to 75 characters. Is it possible to display a field content in more than one line? Please help.
    Thanks.

    HI,
    I dont think it is possible., but instead what i can suggest is  under last node which u want to split automatically, create 3 text edit fields and split ur text manually through program.

  • Field Status Groups Vs  Posting keys Field Status Groups

    Hi, Seniors,
    In my job posting Keys field status group fields I never used as required field  some cases just I used only Special G/L transaction Indicators except this I kept all the fields as Optional.  My doubt is How this fields can be used as independent priority If there is no important why dont we use only field status group fields like G001, G002, .....  why should we depend on Posting keys field status group Fields.
    Thanks in Advance
    Sarath babu

    Hi Sarath,
    If you do any chages in the FSG it will applicable to all G/L accounts which are using the same FSG. But if change posting keys FSG then it will applicable only to that particular posting key it wont effect rest of the G/L's. But you should takecare of the below things.
    I. A field which is suppressed at the posting key level shouldn’t be required in the
       field status group specified in the General Ledger Account.
    II. A field which is suppressed in the field status group under General Ledger
       Account shouldn’t be specify as required in the posting key level. 
    III. Posting keys are defined by Account type wise.
    Rams.N
    If this is helpful assign me points

Maybe you are looking for

  • Unable to change Still/Freeze Frame Duration in User Pref Edit tab

    Process-selected new project, change Still/Freeze Frame Duration in user preferences on the edit tab. Need to change to 10 minutes. Typed in the field 00:10:00:00. When I hit ok, I get a beep and it defaults back to what was in there, 01:00:00:00. So

  • DSC 8.6.1 wrong timestamps for logged data with Intel dual core

    Problem Description : Our LV/DCS 8.6.1 application uses shared variables to log data to Citadel. It is running on many similar computers at many companies just fine, but on one particular Intel Dual Core computer, the data in the Citadel db has stran

  • My ipad don't want to download apps

    My Ipad2 don't want to download any apps and the news paper in the morning.  I am on Wifi and can brows the internet. I can download apps on my Laptop and then transfer it to my ipad, but I can't download the apps directly on my ipad2. Any ideas?

  • Unable to install updates on Adobe Acrobat X Pro

    Apparently I'm yet another person who can't do it.  I keep getting an error message along the lines of "file not found."  The program's definitely there.  I use it frequently -- just can't get any updates.

  • 3 way 1080p hdmi splitter no signal

    hi all, just got a 3 way splitter and tried it .....no good , it works on the dvd and plays hdmi perfect but when i flick the switch for the btvision port to the output hdmi lead to the tv just get the no signal message . if i put hdmi lead direct in