Scripting - is it possible to access a field value not exposed in IAPI?

Hi!
I have a scripting issue that I need some help with please - in a version 7.0 system.
The scenario is a contract pre-phase change script, where I need to check that there is a value in the Renewal Reminder Date on the parent Master Agreement / Agreement document, if certain conditions are met in the contract.
The problem is that:
1.  There is no method to get this property.
2.  The Renewal Reminder Date property is not listed in IAPI so I don't think retrieving the metadata for the field will work either.
3.  I have tried reading the value via SQL using the following code, but this returns no value, so either this approach is flawed or my coding is just wrong...
renewal_date = dbHandler.executeIsolatedQuery("SELECT T1.RENEWAL_REMINDER_DATE FROM FCI_CONTRACT T1 WHERE T1.OBJECTID = "+parentObjId);
The parentObjId reference above seems valid because it is used successfully else where.
Any thoughts / comments / feedback would be much appreciated!
Regards,
Stuart

Hi Stuart,
I can see in Reference Guide that there is API available for RENEWAL_REMINDER which is getRenewalReminder().
In case you are not able to find the API for RENEWAL_REMINDER can you please try this way:
String masterAgreementBeanName = doc.getDisplayName();
String masterAgreeRenewal="select fci_contract.renewal_reminder_date" +
  " from fci_contract where fci_contract.display_name="+"'"+masterAgreementBeanName+"'";
//print String  you will get date in string
  if(masterAgreeRenewal!=null)
  Date masterAgreeRenewalReminder=(Date) dbHandle.executeIsolatedQuery(masterAgreeRenewal);
  Calendar cal2=Calendar.getInstance();
  cal2.setTime(masterAgreeRenewalReminder);
renewalReminderDate= TypeFactory.createSysDate(cal2.getTime());
//print the object renewalReminderDate. It should give you date
Hope this helps.
Regards,
Kumud

Similar Messages

  • Is It possible to access checksum field of LIN frame?

    Hi All,
               I am using LabVIEW 8.2 and PCI 3072 LIN card (GÖPEL electronic GmbH) .
    Is it possible to access checksum field of LIN frame? I have to test one LIN driver - LIN conformance test. So I need to access timing of each byte, value of checksum, sync field etc. Anybody please reply
    Regards
    Preejesh M R

    Hi,
    You should have found some examples along with the Drivers provided in the CD which comes along with the card. If not, you can contact Goepel and they can provide them. Which driver APIs are you using for this device? Is there a function for checksum in the API, if not you can create a logic to read the string and convert it to a number and add all the bits together. My first suggestion,  however is to contact Goepel.
    Thanks, 
    National Instruments
    Applications Engineer

  • Accessing recordset field values using labview Active X

    dear friends,
    i have opened recordset using labview active X Refenum opening dbengine,workspace ,opendatabase,openrecordset
    i need to access the field value from the record
    but labview doesnot show any propery or methods that r related to fields ,except count.
    in short i am looking for a code statemant in labview which is equivalent to VB
    Recordset.Fields("Name").Value or Recordset.Fields(Index).Value
    can anybody help
    thanks in advance
    regards
    shridhar joshi

    try something like this .
    "shridharjosh" wrote in message
    news:[email protected]..
    > dear Ben Schulte
    > i am using MS Access Database and i opened
    > Acitve X class and necessary database connection parameters
    >
    > thing is Fields is a collection in VB and
    > has a two default properties 1-Count 2-Index
    >
    > I am Able to get count property but un succesfull in accessing index
    > this is important inorder to acces the value of a individual field in
    > a recordset
    > i am attaching data vi with this please ahve a look at it
    >
    > thanks in advance
    [Attachment Fields.PDF, see below]
    Attachments:
    Fields.PDF ‏175 KB

  • Accessing the field values in different fields for calculation

    Hi,
    I am creating a report in which I have used breaks for grouping the  customers by their category. I have used summary on the amount field to calculate the sum in the individual category and also for total amount.
    Now, I also want to add an column which could display the percentages of individual contributions.
    So, its like I have to write a query accessing the total percentage, categorized percentage and individual amount.
    My question: How can I access the various fields values in the query of some other field specifically sum and total sum( because it shows the sum([Amount]) for category sum and total sum both)
    -BOBJuser

    Hmmm, I assume you are talking about WebIntelligence here...
    Ok, so let's go: you can access every "object" in the report simply by it's name. Every cell contains either a constant value (e.g. some text) or a formula, the simplest one can be just the value of an "object" from the query.
    There is a formula bar on top which you can activate, where you can easily see the content of a specific cell and also copy/paste the formula from the cell, as well as access all the built-in functions.
    WebI has a built-in calculator which works very similar to a "micro" olap engine, so you can access every sort of aggregate (of a measure) via a correspondig formula, irrelevant in which cell you are using it.
    Nevertheless, there is a "computation context" which depends on the place where you put the formula, e.g. summary row, detail row, etc.
    for more info: see the manual )
    hth, Walter

  • How to access screen field value in a module pool programming?

    Hi Experts,
       I have create a module pool program SAPMYDLG. It contains two screens 100 and 200.
       The first screen contains Employee_ID field. This field is not a dictionary field.
       In the second screen 200, I want to access the value of Employee_ID field from first screen.
       For this I created a global variable v_empid in TOP include.
       Then in the PAI of the screen 100 I have assigned the screen field value to global variable.
       v_empid = Employee_ID.
       But this gives an error saying " Field  Employee_ID not defined".
       What am I doing wrong? How can I access the screen field value?
    Thanks
    Gopal

    Hi,
    Employee_ID field also must u define in the top include when u define that 100 screen and 200 screen will access.
    regards,
    muralii

  • In the script date field value not printing in address window

    Hi Abaper's
    We are working for the upgradation project,my issue is:
    we are upgrading from 4.6 to ecc 6.0,the problem is *one from in 4.6 working fine but after upgradation to 6.o in that from in the address window date field value is not printing.in debugging mode i have checked value is coming properly but in the sppol..the date value is not displying.*can you please suggest on this.is required any changes or need to somting?
    Thanks and regards
    durga.K

    Hi,
    Kindly check if the window size is proper.
    Check if the tab settings are fine.
    Regards,
    Ankur Parab

  • PO service item - custom field value not copied to GR

    Hi All,
    I have a custom field in SC,PO and GR. For a sevice and limit items, the value in custom field in PO is not copied to GR. For goods, it is copied.
    When I debugged, I found that the system tries to match PO item internal number with that of backend item internal number. If this is matched, the custom field values are copied.
    But here it is not matched. What can be the possible reason. Is there any configuration for item internal numbers?
    I found a note 848797 for transfer. But exactly at the corrected code in note, program is failing.
    Have anyone faced this issue before?
    Thanks
    Nandalal

    Yes Disha, the notes are correctly implemented.
    I am confused on whether the internal number generated for the item is copied from some configured internal range, because when I enter two service items, the items shows backend internal numbers like 0000000010 and 0000000020 (increment by 10). But in SRM it is 0000000001 and 0000000002.
    When the code tries to match the respective numbers, it fails and skips the logic to copy custom fields.
    I dont have access to r/3 data.
    Please help.
    Have anyone tried to create a GR with service item and has custom field?
    Thanks
    Nandalal

  • Field value not getting updated in R/3

    Hello Experts!!
    I am facing a problem while updating a field value back in R/3.
    The Syncbo is of type U01 and the field has data type char 40.
    The meRepMeta.XML file has following description
    Field name="DESCR1" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
    <Input type="modify">false</Input>
    1) when i test the function module in R/3. The field value is gets updated.
    2) when i create a record for the sync BO from client , i can see the field value being created on the client.
    3) when i synchronize, i dont get any error or warning and get a successful message.
    S        15.07.2008 12:19:09 All updates for one TOP block were successful (seq. no.=65, TOP cntr.=0000000001)
    15.07.2008 12:19:09 Synchronizer UPLOADER completed successfully (mobile ID=0000002646, SyncBO=ZDBMSERORD)
    I am not able to locate where is the problem
    Please suggest!!
    Regards,
    Priya Ghosh

    Hi,
    please check your maping in the create handler in MEREP_SBUILDER. Perhaps the value is created on the client but not mapped to the field of the function module. Furthermore have a look into MEREP_MON and see if the data gets forwarded in there.
    At last I would dump the information received by the function module into a table without any logic. So you can see what data actually is forwarded into the funct module - if brake point i not possible.
    Hope this helps.
    Regards,
    Oliver

  • Field value not working as "Can grow" when exported in PDF

    Hi, I have a unique problem. We have a report which is using a sub-report. When we run that report in Crystal report and preview then it looks fine. This subreport is designated as "can  grow" so if the field length is bigger than the size then it is coming in the second row. Everything works fine except when we export this report in PDF.
    When we export in PDF then this field is not working as "Can grow" and remaining value of the fields is  truncated. This is happening both in XI and 2008 version of Crystal client.
    Thanks,

    Hi, This is declared as bug by Business Objects Support and Product team will decide if they want to include fix in next release (or fix). This is not possible before Dec 2009 or Early 2010. 
    Below are the general steps on how to apply the suggested workaround:
    1. Remove the on-demand subreport caption, and add an empty string to it instead.
    1.1 In the u201CDesignu201D view of the report, right click on the subreport and select u201CFormat Subreportu2026u201D
    1.2 In u201CFormat Editoru201D window, under the tab u201CSubreportu201D, click on the u201CX-2u201D button of the option u201COn-Demand Subreport Captionu201D
    1.3 In the u201CFormula Workshopu201D window, highlight the text in the formula, and cut it. ( Ctrl-X)
    ( We are just copying the text, as we need to use the samething for the formula or text object we will use to replace this. )
    1.4 Type the following in the formula: u201Cu201D
    1.5 Click on the button u201CSave and closeu201D, to close the u201CFormula Workshopu201D
    1.6 Back to the u201CFormat Editoru201D window, click on the u201COKu201D button to accept the change.
    2. Create a formula or insert a text object in which you add the text or fields you will like to display
    ( In the following steps we will be using a formula )
    2.1 In the u201CField Exploreru201D, right click on u201CFormula Fieldsu201D and select u201CNewu201D
    2.2 In the u201CFormula Nameu201D window, type the name of the formula. ( Example: My subreport caption )
    2.3 In the u201CFormula Workshopu201D, copy the text you cut in step 1.3, or simply add the database fields and text you will like to display for your on-demand subreport caption.
    2.4 Save and close the formula by clicking on the u201CSave and closeu201D button
    3. Insert the formula over the on-demand subreport, and resize the field to be of the desired length.
    4. Format the formula to display like a hyperlink. ( Blue font and underlined text )
    4.1 Right click on the formula inserted in step 3, and select u201CFormat Fieldu2026u201D
    4.2 In the u201CFormat Editoru201D, under the tab u201CFontu201D, set the color to blue
    4.3 Still under the tab u201CFontu201D, check the u201CEffectsu201D option u201CUnderlineu201D
    4.4 Under the tab u201CCommonu201D, check the option u201CCan Growu201D
    4.5 Click on the u201COKu201D button to accept the change
    5. Move the formula to the back in order to ensure you can drill-down on the on-demand subreport
    5.1 Right click on the formula inserted above the on-demand subreport and select u201CMove u2013 To Backu201D
    Now, when exporting the report to PDF format, the formula used to replace the u201Con-demand subreport captionu201D that displays more than one line will all be exported.
    This workaround has following limitations:
    The User can see the service description in two lines because of the u2018Text Objectu2019, the On demand subreport is not growing into the second line in the crystal report since we removed the caption.
    So the user has to carefully click on the first line of the description in the main report to open the subreport. If he clicks on the second line then it wonu2019t open the required subreport and it may create confusion.
    If we manually stretch out the subreport to occupy two lines space then it will leave a gap in between when we have only 1 line service description.
    So plan ahead of time about how lengthy text in su-report would be.

  • Adobe field values not getting displayed in UWL workitem

    Hi,
    We filled a ISR Adobe form and submitted it and generated the corresponding notification number.
    On clickng the 'display and print form', the form is gettin displayed properly.
    But on checking the form at the approvers UWL, the field values are not getting properly filled.
    The form is getting properly displayed at R/3  through IQS22 and also the data values are properly attached to the notification number( checked through ISR_PROCESS_EVENT ).
    Kindly help.
    Thanks and Regards,
    Anto.

    Thanks for publishing your own solution!
    Cheers,
    Noë

  • Custom fields values not saved in AUFK using bapi_alm_order_maintain

    Hi ,
        We have a requirement where we have to update the custom fields in enhancement tab of IW31 using bapi_alm_order_maintain.
    We are able to get the successful creation of work order ,but the custom fields are not updated in enhancement tab aswell in aufk table. We are passing values in below table of bapi.
    EXTENSION_IN
                STRUCTURE           =  CI_AUFK
                VALUEPART1        =  '20091223' .
    Please provide the solution.

    Hi Phani,
    May be these links are helpful:
    BAPI extention to work order aiming AUFK custom field filling
    Update custom fields in MARA (BAPI_MATERIAL_SAVEDATA)
    Also search sdn using the BAPI function module, you may get some idea.
    Regards,
    Swarna Munukoti

  • Field value not updated in Dialog Programming

    Hi experts
              My problem is when i change the field value in dialog programming, the text value is not updated, its showing the same value what exist in database.
       I have done coding as follows, what i need to change in coding, Pls give me the suggestion.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1200.
    PROCESS AFTER INPUT.
    CHAIN .
        FIELD :  zrecpt-zrno.
        MODULE vali_zrno ON CHAIN-INPUT.
      ENDCHAIN.
    module header_data10.
    MODULE STATUS_1200 OUTPUT.
        SET PF-STATUS 'ZRECT'.
        SET TITLEBAR 'ZRECT'.
    ENDMODULE.              
    MODULE vali_zrno INPUT.
    if zrecpt-zrno  is not initial.
        select single * from zrecpt
                        where zrno = zrecpt-zrno.
    endif.
    ENDMODULE.
    MODULE header_data10 INPUT.
    CLEAR : it_zrecpt.
      REFRESH : it_zrecpt.
      MOVE-CORRESPONDING zrecpt TO it_zrecpt.
      APPEND it_zrecpt.
    ENDMODULE.
    Thanks in advance.
    Regards
    Rajaram

    Hello...
    IN PAI,,
    You were not updating into any database..
    you were just appending to an internal table...
    now either move the internal table values to the database ...
    or you can simply move from the values entered...[text boxes ]
    pls chk.....

  • Field value not being written to database

    Hello,
    I'm trying to auto-populate a form field from a value in one of my backing beans by changing the field value property from #{bindings.Modifiedby1.inputValue} to #{pageFlowScope.backing_Login.userName}. When I open the form, the correct value from the backing bean is displayed in the field now, but when I save/commit the record the value doesn't make it to the database so while it is displayed on the screen in the form field, it doesn't get written to the database. Is there something that needs to be done to update the input value in the actual binding or something? I'm developing in JDeveloper 11.1.1.3.
    Thanks!

    Well, I thought it was working. I've found that the ModifiedBy and ModifiedDate fields do get updated in the database now, but it updates those two fields in the first row that was displayed on the table instead of the row that was selected. Here's my backing bean code (I've tried to comment what I'm doing in each step):
    public void editDialogListener(DialogEvent dialogEvent) {
    //when "ok" button in dialog box is selected
    if (dialogEvent.getOutcome().name().equals("ok")) {
    //get userName from Login backing bean and save as loggedInUser
    RequestContext requestContext =
    RequestContext.getCurrentInstance();
    String loggedInUser =
    (String)requestContext.getPageFlowScope().get("userName");
    //get bindings
    BindingContainer bindings = getBindings();
    //get Modifiedby1 attribute from bindings and setInputValue to LoggedInUser
    AttributeBinding attrModifiedBy =
    (AttributeBinding)bindings.getControlBinding("Modifiedby1");
    attrModifiedBy.setInputValue(loggedInUser);
    //get Modifieddate1 attribute from bindings and setInputValue to current date
    AttributeBinding attrModifiedDate =
    (AttributeBinding)bindings.getControlBinding("Modifieddate1");
    attrModifiedDate.setInputValue(new Date());
    //perform Commit
    OperationBinding operationBinding =
    bindings.getOperationBinding("Commit");
    operationBinding.execute();
    Can anyone see what I need to add or do differently to grab the selected row's attributes for updating?

  • Accessing html field value from pl/sql code, in the same package

    hi friends,
    my pl/sql web application is working fine. but now i need a small requirment.
    ie, basicaly i need to access the user entered value of an element in html based form from pl/sql code, which is developed using pl/sql toolkit.
    Here is the scenario:-
    User entered a value in field1, then navigate to field2, and click a button for list of values,
    when he clicks the button, internaly it is opening a cursor, where i want to pass field1's value to my cursor as a parameter. So in my pls/sql code , i want to access the value of field1. If you know, please help.
    see the snippet of code.
    htp.p('
    function f1()
    if (parseInt(learnIdx) ==1 )
    for i in dev_Need('1')/*here i want to pass html form element value as a parameter */
    loop
    htp.p('content += "<option value='''||a.version_name||'''>'||a.version_name
    ||'</option>''"; ');
    end loop;
    thanks in advance.
    Zameer.N.A

    Hi,
    Here's my suggestion
    If you wanna access the dll check out "external procedures", you can search it everywhere in OTN.
    However it's easier to use Heterogenous Services to connect database with other sources.
    Check out http://asktom.oracle.com/pls/ask/f?p=4950:8:13454621522426176943::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:4406709207206,
    Tak Tang answer on May, 25, 2004 rules!

  • Screen-field value not visible

    Hi All ,
    I have added couple of fields to the standard transaction .Used  a badi to achieve that.Now am able to send the values from one of the methods in the same badi to the custom field and a standard table is getting updated (which was created with append structure ).But am not able to see that value in the custom field after saving .
    How come this is possible as the DB is getting updated .
    Is there anything to be done in the module pool program or how ??
    Regards ,
    Hemanth Nugur .

    hi .Am using this badi to add custom fields in trading contract(WB22) .WB2_ADDITIONAL_DATA.
    Everything is working fine except am not able to see the value passed onto the field .I am passing the value from the method CHANGE_BEFORE_UPDATE .
    Thanks

Maybe you are looking for

  • If I replace my old iMac with a new one can I burn DVDs on an external drive using Mountain Lion or Toast?

    My 2006 iMac is getting a bit long in the tooth and I was thinking of replacing it with a new one. However, Mac have not included an optical drive and I back up my photographs on DVD as well as external hard drives. I also supply DVDs of my work to f

  • Problem with Cross Dissolve

    I have a couple of clips I want to add the default Cross Dissolve between. The first clip is 04;04 sec., and the other clip is 04;12 sec. When I add the dissolve between them, it only comes in at a duration 00;01; while, when I add the same dissolve

  • How Can I make Use of XI

    Hi Friends, I am a kind of newbie in to this world of XI, I have a  quick question,Before stepping into the question please look in to my Existing process. I have a J2EE product, which needs the business data from differant versions of R/3 systems (f

  • Duplicate Pictures

    is there a way to delete duplicates in iPhoto?

  • Upgrade from Windows2008R2 SP1 standard to Windows2008R2 Enterprise

    HI Like the title, I want to upgrade server from Windows2008R2 SP1 standard to Windows2008R2(SP1) Enterprise. I have tried to do that with Windows2008R2 SP1 disc. But cannot finish with the error below windwos cannot install required files, make sure