Getting a field from a derived record

I have been asked to put a value on a page that seems to be part of a PS-supplied derived record in Campus Solutions, derived_cs. My understanding is that derived records are built on the fly. I can see in App Designer what table is used for a prompt for the field I care about but since the field is part of a derived record, I don't see anything in the PeopleCode for the field for where its value gets written to. How do I figure out where the values entered on a page in fields of a derived record go? I need to get the real value. I don't want to try to reconstruct the derived record in my custom app. Thanks.
Ken

Derived/work records allow you to display the values of variables on pages. As you noted, they don't have database compliments. In other words, Derived/Work record field values are not persisted. This makes it difficult to determine where the values come from and, if they are data entry fields, where the values go. The movement of the data to and from a Derived/Work record is all done in PeopleCode. To find where the values come from, I usually start with an SQL trace level of 7. You can also use an SQL trace to determine where the values go. The nice thing about Derived/Work values that are persisted is that you will see values in the SQL insert bind variables. Unfortunately, when reading data from the database, you only see bind variables, you don't see the values that were selected. This makes finding where data comes from very difficult.

Similar Messages

  • How to get additional field from the second list base on lookup information column ?

    Hi everyone,
    Currently I created a SharePoint hosted Apps project and I need to know how can I get additional field from the second list base on lookup information column. example List1 Have 2 columns column1 and column2(Lookup Information from list2 (category)),
    List2 have 3 columns title, and category, and color.  so how can get the title and color from list2 base on this lookup information column (SharePoint Hosted apps and Javascript code)? that is possible?
    Best regards,
    ------------------------------------------------------------ ---Tola---

    You can build one custom lookup control. Refer to the following post
    http://www.stuartroberts.net/index.php/2012/10/03/enhanced-lookup-field-part-1/
    Alternatively, try the following solution from codeplex
    http://sp2010filteredlookup.codeplex.com/
    http://filteredlookup.codeplex.com/
    --Cheers

  • How to get Ethnicity field from IT 77 into BI

    We are in middle a new implementation of BI HCM and users want Ethnicity & Ethnic origin fields in BI. I can see Ethnic Origin as a attribute of Employee but can't find Ethnicity anywhere in standard BI content. What is the simplest way to get Ethnicity field from IT 77 (maintained by client) into BI.

    I would recommend enhancing the 0EMPLOYEE_ATTR DataSource by adding the Ethniticty column in an append structure of the extraction structure for that DataSource. Then to populate that field in the 0EMPLOYEE_ATTR DataSource, create a User Exit in CMOD (Function Module EXIT_SAPLRSAP_002).
    Then on BW, you're going to need to replicate the modified DataSource and in the 0EMPLOYEE InfioObject make sure you identify the attribute for Ethnicity as Navigational or Display. Then update the transformational processes to load into 0EMPLOYEE. Finally, you will need to add this custom InfoIObject to other InfoProvider(s) that you need it in (if any) to meet your end customer reporting requirements.
    Edited by: Dennis Scoville on Sep 10, 2009 8:33 PM

  • How to get back fields from INSERT statement in batch mode(getGeneratedKeys

    Hi,
    I wanted to insert records to database and get back some fields.
    I create prepared statement:
    preparedStatement = connection.prepareStatement(sqlQuery, columnIndexes);
    then I set parameters.
    Following code works properly:
    preparedStatement.executeUpdate();
    generatedKeys = preparedStatement.getGeneratedKeys();
    if (generatedKeys.next()) {
    doSomething();
    But when I try to do this by batch I get exception:
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 22
         at oracle.jdbc.driver.T4CNumberAccessor.unmarshalOneRow(T4CNumberAccessor.java:190)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:612)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:966)
         at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10644)
         at org.jetel.component.DBOutputTable.runInBatchMode(DBOutputTable.java:619)
    My "batch" code:
    for(...){
    setParameters(preparedStatement);
    preparedStatement.addBatch();
    preparedStatement.executeBatch();
    Isn't it a bug?
    Can I get back fields (eg. from last insert added to batch)?
    I hope somebody can help me.
    Agata

    This code works for me but only inserting one row. More than one causes an ArrayIndexOutOfBoundsException once sendBatch is called.

  • How to get Required field from R/3 to  load in Bw.

    To get a perticular value from R/3 to BW . in r/3 side I need to go to first table equi from there i pick equipmentno on the basis of this number i need to go to objnr from objnr i need to pick up objnr number and i have to see this number's value in table AUSP. like this same scenario i am facing in master as well as transaction tables , how i should fetch these values and load to BW .
    In standard datasources if i want to add the field value of which is derived by the value in two more tables then how do i Enhance the datasource.
    Can any one give clue to resolve It.

    Hi Srinivas,
       If you want to enhance any data source, by appending any field from any table.. basic rules are
    1. All the key fields in that perticular table should be available in your data source.
    2. Similar for more fields from different tables.
       Or if you want to extract more fields from different tables try to create a View on these table and go for generic extraction(create data source on this View). Choose which one if best option for your requirement.
    Hope it Helps
    Srini

  • Use field from file header record in detail records

    Hi,
    I receive a file with different records type (transmission header, file header, detail records, file footer). The fields in each record type are different. The transmission header tells me who the sender of the file is. I need this information, because I am merging data of various senders into one table.
    When processing the files, I need to split each file according to recordtype. (I can not use the same logic for each recordtype). How can I populate an extra column in the detail files with the value from the header record?
    What I tried so far is the following:
    - Populate a global variable using a script: This does not seem to work in the context of dataflows.
    - Create a 'join' between header record and detail record. However there are no fields I can join, so Data Services is not happy with that.
    - Store the field value from the header record in a DS (I chose a cache datastore, memory datastore did not work in batch scenario. I feel I can get this to work, but it seems quite an elaborate and expensive solution: First Filter the header record from the file, write the required field to the cache datastore, then read the same file but now filter the detail records, and join this with the datastore.
    Is there a better way to do this? I was hoping I could just use a script and read the first line of my file and move the value to a global variable....
    It would be great if someone could give me some tips...
    Many thanks,
    Jan.

    Hi Werner,
    I am not sure if I understand you correctly.
    I have declared $State as a global variable, not as a parameter.
    When I check my custom function I do get a warning that a variable is called which is not declared.
    I thought I did not have to worry about this as the variable does exist within the job where the function is called.
    It looks like I can not set a value to a global variable in a custom function.
    Is that correct, or is there something wrong with my syntax?
    Really the only reason I call a custom function is to set the global variable, so I could even make my function as simple as this:
    $State = 'NSW';
    Return 0;
    It still doesn't work...
    Any idea why?
    Thanks,
    Jan.

  • Question reg. how to get a field from a table

    What is EIN? (I think it is employer identification number). My functional consultant told me to get this value from company code. Can you tell me from which table and field I can get this value?
    Thanks,
    Krishen

    i think these tables are helpfull
    /SAPPCE/TDPC01
    /BEV1/RBVBAK
    /BEV1/RBVBAP
    VSVBAK_CN
    VSVBAp_CN
    VBAK and VBAP.
    Regards,
    Pradhan.

  • How to get private fields from super class?

    Hi.
    I must get protected and private fields from a class. I know that sounds werid but I have a very good reason for doing so, ask if you want.
    I have tried the getDeclaredField(String) method, but it apparently doesn't return the fields declared by the super classes.
    What's the smartest solution to this?
    Thank you all.
    edit: note that the superclass hierarchy's length is 3 and that there are several classes at the bottom level.
    Edited by: bestam on Sep 24, 2009 2:05 PM

    bestam wrote:
    I do not claim I have invented a new programming language Sir, you must be mistaken. This is not turing complete.
    This is a language for describing Cards or a game's rules if you want.
    AspectJ isn't Turing complete but AspectJ is still a compiler.
    This is how I have been working :
    - I have implemented the core library in Java (what is a Player, what is an Effect, what is a Card, what is a BuildingCard, what is a Player's Turn and so on)
    - It also includes packages dedicated to service, able to retrieve and send data to the clients via sockets.
    - Then I have "hardcoded" a dozen of specific cards in Java, for testing and validating the core library. I have been doing so by extending the BuildinCard's class for example.
    - But my ultimate goal is not to code thoses 1.000+ cards of the game in Java. I chosed to design a little language so that I would end up writing cards faster. While I'm traversing the syntactical tree representing the card, I feed the card's fields one by one. Some of them are quite primitive, some other are more complex and have a recursive nature for instance.
    Providing detail for how you implemented it doesn't change anything about what I already said.
    Thus, this is not really a compiler as it doesn't transform a text in language A into a text in language B.
    You really need to understand more about what "compilers" and certainly compiler theory do before you decide what they can and cannot do.
    And your statement still does not change what I said.
    Is this wrose than the bean design pattern from JSP ? I'm not sure.
    Bean design? A "bean" has almost zero requirements.
    Aside of that, it's a bit harsh to be told "read the fucking manual" while I have written my first compiler some years ago.Not sure who that was directed. I suggested some reading material on compiler theory.
    If you think that your idea is ideal then knock yourself out. Since I doubt I will end up seeing it in anything that I must maintain it doesn't matter to me. But you did in fact ask what the best solution was.

  • How to get jhelp field from DefaultHelpBroker

    Since java help 2.0 most of protected fields such as frame and jhelp got disappeared.
    About frame field, I can get this field using "getWindowPresentation().getHelpWindow() method.
    But I can't find any method to get "jhelp" field which was a protected field in earlier version.
    Anyone knows?
    Thanks ahead.

    I would recommend enhancing the 0EMPLOYEE_ATTR DataSource by adding the Ethniticty column in an append structure of the extraction structure for that DataSource. Then to populate that field in the 0EMPLOYEE_ATTR DataSource, create a User Exit in CMOD (Function Module EXIT_SAPLRSAP_002).
    Then on BW, you're going to need to replicate the modified DataSource and in the 0EMPLOYEE InfioObject make sure you identify the attribute for Ethnicity as Navigational or Display. Then update the transformational processes to load into 0EMPLOYEE. Finally, you will need to add this custom InfoIObject to other InfoProvider(s) that you need it in (if any) to meet your end customer reporting requirements.
    Edited by: Dennis Scoville on Sep 10, 2009 8:33 PM

  • How to get a field from an attached excel/csv?

    I currently manage some price lists for the company I work for. They are graphical, and usually created in inDesign and then exported to pdf.
    I'm looking for a way to attach our company's prices in an excel sheet, (or delimited file) and be able to pull a price into the pdf.
    For example, attaching an excel file with 2 columns, SKU & Price. Then saying, if text field SKU= "APPLE" text field PRICE = "0.50". Only I don't want the user to have any inpurt options, I want to do this myself and then save a flat version to distribute in the company.
    I've been working on this for a few weeks. My javascript skills are really rough.
    So far, I have some code in my pdf that looks like this:
    (Price.csv is an attachment in the PDF)
    var oFile = this.getDataObjectContents("Price.csv");
    var sData = util.stringFromStream(oFile, "utf-8");
    function ParseData(sData){
    var oData = {};
    sData.replace(
    new RegExp( "\\[(\\w+)=([^\\]]*)\\]", "gi" ),
    function( $0, $1, $2 ){
    oData[ $1 ] = $2;
    return( oData );
    // Parse the data into an object
    var oData = ParseData(sData);
    // Custom Calculate script for price text field
    (function () {
        // Get the value of the SKU field
        var sku = getField("SKU").valueAsString;
        // Look up the price
        var price = oData[sku];
        // Set the value of this field to the price if it's present,
        // otherwise blank this field
        event.value = price || "";
        console.println(price);
    I have two text fields on the form. One that I have filled in a valid SKU, and a blank one named event.
    I seem to be getting an undefined error on prices. I am completely lost as to where to go from here.
    Does anyone have an idea of where I may be going wrong? I get that undefined error and nothing appears on my form.
    Thank you in advance.
    (I have acrobat X pro)

    First of all, "undefined" is not an error. It just says that the script ended without returning any values.
    I would suggest starting by debugging the code that reads the input file (you have to use a plain-text file, by the way, not an Excel spreadsheet). Make sure that oData actually contains the data you expect it to contain. If that works OK, start debugging your calculation script and see what's going on there...

  • Can't get table field from two different tables if named same

    select c.notes, o.notes
    from cusomters c, orders o
    :does not work in getting the RS.
    :if i change database to:
    select c.customer_notes, o.order_notes
    from cusomters c, orders o
    :then it works.
    :i make PURE DYNAMIC META SQL database
    applicaitons, and i need for abstract SQL tables.
    i have the same problem in getting
    the max values:
    select
    max(height),
    max(weight),
    max(age)
    from person_stats
    group by geographical_area

    When you select from 2 different tables you need to join them on some condition, otherwise it has no idea how to associate the 2 tables together.
    try select c.notes, o.notes from cusomters c, orders o where c.customer_id = o.customer.id or whatever the join fields are.
    For the group by I believe you have to include the field that you group by:
    select geopraphical_area, max(height), max(weight), max(age) from person_stats group by geographical_area
    give them a try
    Jamie

  • How to get invoice field from SD tables

    Hi, experts,
    what is the "invoice field name" in SD tables.
    please specify in which tables i can find it

    Hi Praveen,
    in SD the order,delivery or invoice , evrything has field name vbeln.
    only difference is which table your are referreing.
    if you are working on VBAk, the vbeln will give the sales order..
    if in LIPs, it will give delivery while in VBRK for vbeln you will get invoice number.
    VBFA will give you the complete flow of order, delivery and invoice
    e.g:-
    Find sales order number and item from the delivery document
    number and delivery item no by using sales document flow table
        select single VBELV POSNV from VBFA into ITAB where
               VBELN = mseg~oivbeln and         "delievry
               POSNN = mseg~oiposnr,     and  "Delivery item
               VBTYP_N = 'J'.

  • Error in cfqueryparam, when getting date field from cfpop

    Hi all,
    i'm taking data from cfpop to store them in the database.
    There are problems with date data:
    INSERT .....
    POST_DATE = <cfqueryparam value="#date#"
    cfsqltype="cf_sql_timestamp">
    But it fails in some situations, for instance:
    The cause of this output exception was that:
    coldfusion.runtime.locale.CFLocaleBase$InvalidDateTimeException:
    "19 Sep 2006 00:51:33 +0200" is an invalid date or time string
    Ok, I'm using English locale and tried to use
    ParseDateTime(date, 'pop'). But it doesn't work either (!):
    "19 Sep 2006 00:51:33 +0200" is not a valid date format. But
    'pop' supposes, that this is format with time zone offset!!
    P.S. The problem was that some email messages had incorrect
    date format: one didn't have a day of week, another one - even day
    of month!!!
    To make life simpler, i've just added a regexp check:
    <cfif
    ReFindNoCase("[A-z]{3}\,\s[0-9]{2}\s[A-z]{3}\s[0-9]{2,4}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\s(?: \+|\-)?[0-9]{4}",
    date, 0)>
    <cfset dateField = date>
    <cfelse>
    <cfset dateField = now()>
    </cfif>
    I'm not going to parse every possible date format
    error.

    I don't believe there's anyway to have Access ignore it on an import. What you can try instead is link to the file (instead of importing it) and write a query that updates the table based on the linked table, with an appropriate edit on the date/time field.
    Doug Steele, Microsoft Access MVP
    http://www.AccessMVP.com/djsteele (no e-mails, please!)
    Co-author
    Access Solutions — Tips, Tricks, and Secrets from Microsoft Access MVPs (ISBN 978-0-470-59168-0)

  • How to add related fields from one transaction to other transacction?

    Hi all,
    I have a problem. I need to add an OPPORTUNITY field (SALESCYCLE) to the ACTIVITY transaction because of an upgrade and I'm now in a new world... The CRM 2007 is an unexplored place to me.
    I added some custom fields (Z fields from the CUSTOMER_H) by adding the context node BTCUSTOMERH to the BT126H_APPT component, view ApptDetails, with transaction BSP_WD_CMPWB (thanks Stephen Johannes for your blogs) and all works correctly.
    I tried doing the same with the SALESCYCLE and it doesn't worked... :_(
    I added the context node BTOPPORTH, but I'm sure I failed at the wizard step with the "Higher level context node" or with the "BOL Relation", but I can't find the correct answer. I found the field in the "Configuration tab", I put it in my view but the GET method doesn't work... The field remains always void.
    I don't have problems adding activity related fields, but when I try to add some flow related (opportunity one in my case) fields it's different.
    I have been looking for any solution but I have only seen that I can add this attribute directly to one context node and modify some BAdI or do any thing similar, but I don't know how to do that either. I will accept this solution if someone tells me how to do that... But I think the first solutions could be the most appropiate (I can be wrong... of course!)
    Thanks in advance....
    Sergio

    Thanks for your answer, Subhasis!
    Your solution is correct if I want to add to the Activity a field related to the Activity or some field on the DocFlow structure (the case you described), but it's not my case. I did that with customer fields before and all worked correctly.
    My scene is like this. I have an Opportunity and there is a follow-up Activity created. When I want to see the Activity, I need to show on the Activity transaction the preceding Opportunity field SALESCYCLE, which is at the CRMD_OPPORT_H table (BTOPPORTH context node).
    The problem comes when I add this context node to the Activity. I think the application is trying to get the field from the CRMD_OPPORT_H with ACTIVITY data and it returns void to the field. I think it forgets to get the opportunity data first and after that try to get the SALESCYCLE value from the CRMD_OPPORT_H (with the Opportunity GUID).
    By the moment, I have added the attribute SALESCYCLE to the BTDOCFLOW context node and, at the moment he do the GET, I change the field it gets by the GUID of the opportunity:
         dref = current->get_property( 'SALESCYCLE' ). "#EC NOTEXT
          dref = current->get_property( 'OBJKEY_A' ). "#EC NOTEXT
    Then I go to the CRMD_OPPORT_H directly to get the SALESCYCLE value...
    I know it's a bad solution... but it works and I don't know any other solution by now. If anyone can help me to do it correctly I'll be greatly appreciated!
    Regards,
    Sergio

  • Retreiving and setting fields from pdf

    Hi Everyone,
    I hope that you may be able to help. I'm working on putting together an extention to my program to allow users to load a pdf file from a database, and also save what the user has entered into the pdf, into a database. I started out using the ActiveView sample app and have gotten it to load a seleted pdf into my app. I am currently trying to get the fields from the pdf. I am using the FormsAutomation sample as a reference. Here is some code :
    This funtion is used to open the pdf (just like in the ActiveView sample)
        Public Sub OpenChartFile(ByRef Filename As String, PatientId As String, ChartId As Integer, isNew As Boolean )
            Dim ok As Integer
            Dim fIndex As Short
            ' change mousepointer to an hourglass
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
            ' change form's caption and display new text
            fIndex = FindFreeIndex()
            Document(fIndex) = New frmPDFView
            Document(fIndex).PatientId = PatientId
            Document(fIndex).ChartFileId = ChartId
            Document(fIndex).ChartFileName = Filename
            Document(fIndex).isNew = isNew
            Document(fIndex).Tag = fIndex
            Document(fIndex).Show()
            Document(fIndex).Text = UCase(Filename)
            Document(fIndex).MdiParent = gShell
            ' open the selected file
            AcroExchAVDoc(fIndex) = CreateObject("AcroExch.AVDoc")
            ok = AcroExchAVDoc(fIndex).OpenInWindowEx(Filename, Document(fIndex).Handle.ToInt32, AV_DOC_VIEW, True, 0, PDUseBookmarks, AVZoomFitWidth, 0, 0, 0)
            ' See IAC.bas and the Acrobat Viewer IAC Overview for information on the
            ' OpenInWindowEx open modes
            If Not ok Then
                MsgBox("Can't open file: " + Filename)
                Document(fIndex).Close()
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
                Exit Sub
            End If
            FState(fIndex).Dirty = False
            Document(fIndex).Show()
            Document(fIndex).FillChart() 'Used to fill the pdf from the DB
            ' reset mouse pointer
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
        End Sub
    Here is were I try and get the fields which is located in the PDFView form
        Public Sub FillChart()
            If Not pisNew then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields  '<-----******Errors here, "No document is currently open in the Acrobat Viewer"
                FillChartData( pPatientId,acroForm,pChartFileId, Me.tag )
            End If
        End Sub
    Here is where I plan to fill the pdf file (Located in a module file): I
    Public Sub FillChartData(PatientId As string, acroForm As AFORMAUTLib.Fields, ChartFileId As Integer, FormIndex As integer )
        Dim field As AFORMAUTLib.Field
    Try
        field = acroForm.Item("PatientName")
    Catch ex As Exception
        MsgBox(ex.Message, MsgBoxStyle.Critical, "ModChartSupport.FillChartData")
    End Try
    End Sub
    Is it possible to get the list of fields in the current setup using the ActiveView forms? If so, what am I missing? In the FormAutomation sample it seems to get the fields this way:
            avDoc = CreateObject("AcroExch.AVDoc")
            Dim file As String = System.Windows.Forms.Application.StartupPath & "\..\..\..\..\TestFiles\FormsAutomation.pdf"
            bOK = avDoc.Open(file, "Forms Automation Demo")
            'If everything was OK opening the PDF, we now instantiate the Forms Automation object.
            If (bOK) Then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields
            Else
                System.Runtime.InteropServices.Marshal.ReleaseComObject(avDoc)
                avDoc = Nothing
                MsgBox("Failed to open PDF Document. Aborting...")
                End
            End If
    The OpenChartFile function has already created the avDoc object for the form, so I think I'm alright there. What am I missing? Thanks for any help you can provide.

    So let's say you have the following fields in your file:
    Incident_Report
    ClientsName
    Date
    You can then add this code to the file's WillSave action (under Tools - JavaScript - Set Document Actions):
    var newFileName = this.getField("Incident_Report").valueAsString + "_" + this.getField("ClientsName").valueAsString + "_" + this.getField("Date").valueAsString + ".pdf";
    app.response("Please copy the text below and use it as the new file-name:","", newFileName)
    Of course, you can adjust the message to the user, and even the format of the file-name, although I've used the format you specified.

Maybe you are looking for

  • How can I use a song as a ring tone?

    I followed all the instructions that have been posted in this community but it turns out that when my song is changed to .m4r and I delete it from the library and then play it, it doesn´t appear in the tones. I tryed deleting it but then when I go wh

  • GRIR open item table

    In which table does the GRIR open item resides ?. I should be able to see GL account number (HKONT) field in that table. Please advice

  • Help using AT NEW, AT END OF

    Hi experts,        I am not able to get desired result by using at new and at end of in my report. This is what i have in my internal table ifinal. fields f2 and f3 are don't care. f1      f2       f3       f4     f5 a       x        x        10    5

  • Regular touch pannel such as LG T1710B

    Hi Experts, I have a very easy question for you guys: I was wondering if it is possible to use "commercial oriented" touch screen such as LG T1710B (http://www.lg.com/za/monitors/lg-T1710B-monitor) for Labview SCADA purpose. The VI is Modbus related

  • Where can I find direct downloads of Flash Player 11 for Windows?

    I install flash player frequently and would like to have an offline installer like there was in the past, not this thing that downloads every time and deletes itself afterward. I subscribe to the Adobe mailing list and get notices whenever there's a