Document_Installments Object Issue

Hi all!! I have a trouble with the InstallmentID property of the Document_Installments Object . I want to update the invoice installment's duedate by DI API , but when i check the IntallmentID property's value of my Document_Installments  object, returns this error:
"Property 'InstallmentID' of 'DocumentInstallment' is invalid "
This is my code:
Dim odoc As SAPbobsCOM.Documents
Dim instmntID As SAPbobsCOM.Document_Installments
odoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
dim x ,y as integer
    For x = 0 To ogrid.Rows.Count - 1
                    odoc.GetByKey(ogrid.DataTable.GetValue("ID Doc.", ogrid.GetDataTableRowIndex(x)))
                    instmntID = odoc.Installments
                    For y = 0 To instmntID.Count
                        instmntID.SetCurrentLine(y)
' ****Here returns the error*****
                        If odoc.Installments.InstallmentId = ogrid.DataTable.GetValue("Num Rata", ogrid.GetDataTableRowIndex(x)) Then
                            If odoc.Installments.DueDate <> ogrid.DataTable.GetValue("Data scad.", ogrid.GetDataTableRowIndex(x)) Then
                                odoc.Installments.DueDate = ogrid.DataTable.GetValue("Data scad.", ogrid.GetDataTableRowIndex(x))
                                If odoc.Update() = 0 Then
                               End If
                            End If
                          End If
                         Exit For
                        End If
                    Next
                Next
Any suggestion? Please help me! I don't know where i can find anything useful!!!
Thanks
Best Regards
Giancarlo

Thank you, i have tryed it before posting it but nothing appens... i have  writed the wrong code this is my code:
Dim odoc As SAPbobsCOM.Documents
Dim instmntID As SAPbobsCOM.Document_Installments
odoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
dim x ,y as integer
For x = 0 To ogrid.Rows.Count - 1
odoc.GetByKey(ogrid.DataTable.GetValue("ID Doc.", ogrid.GetDataTableRowIndex(x)))
instmntID = odoc.Installments
For y = 0 To instmntID.Count
instmntID.SetCurrentLine(y)
' ****Here returns the error*****
If instmntID.InstallmentId = ogrid.DataTable.GetValue("Num Rata", ogrid.GetDataTableRowIndex(x)) Then
If instmntID.DueDate ogrid.DataTable.GetValue("Data scad.", ogrid.GetDataTableRowIndex(x)) Then
instmntID.DueDate = ogrid.DataTable.GetValue("Data scad.", ogrid.GetDataTableRowIndex(x))
If odoc.Update() = 0 Then
End If
End If
End If
Exit For
End If
Next
Next
Sorry

Similar Messages

  • Object issue

    HI Guys,
    Am getting data from a result set and storing into an object (the class name is Taskfr),
    while(results.next())
                              name= results.getString("u_name");
                              System.out.println("The name of the user is "+name);
                              Object[][] data2 = {
                                        {name, "08:00 Am",new Boolean(true), new Boolean(true), new Boolean(false)}
                              System.out.println("PRINT "+data2);
                         }I want to use the data2 in another class Panel2,
    public class Panel2 extends JPanel {in this call i gave like this
    Object[][] data3 = Taskfr.data2;
    But its shows Taskfr.data2 cannot resolved
    Any one can help me ?

A: Object issue

Declared data2 like this
public static Object[][] data2;Then in the wile loop
while(results.next())
                          name= results.getString("u_name");
                          System.out.println("The name of the user is "+name);
                           data2 = {
                                {name, "08:00 Am",new Boolean(true), new Boolean(true), new Boolean(false)}
                           System.out.println("PRINT "+data2);
                     }Here am getting the error
"Array constants can only be used in initializers"

Declared data2 like this
public static Object[][] data2;Then in the wile loop
while(results.next())
                          name= results.getString("u_name");
                          System.out.println("The name of the user is "+name);
                           data2 = {
                                {name, "08:00 Am",new Boolean(true), new Boolean(true), new Boolean(false)}
                           System.out.println("PRINT "+data2);
                     }Here am getting the error
"Array constants can only be used in initializers"

  • Animating an object issue, please help!

    Hey all!
    I am very new to Motion and everything I have learned I have learned online so please be patient! lol
    Anyway, I am animating an object for a stop motion project.  The issue I am having is coming when I need the object to remain stationary for a few frames and then all of a sudden jump to a new position.
    Instead of jumping to where I place it, it seems to animate it frome the first frame where it was remaing still and sliding to the position I need it to jump to over the duration of the frames where it remains still.  How can I prevent this?
    Thanks in advance!

    The animation you are seeing between the frames is the interpolation, Motion calculating the changes between keyframes.  To do what you want, you need to change the method of interpolation between keyframes.
    What it sounds like you want is "Constant" interpolation.
    Take a look at this section of the Motion manual (you may want to review the whole secion on keyframing in the manual: http://help.apple.com/motion/mac/5.0/en/motion/usermanual/#chapter=12%26section= 12
    In the keyframe editor, select the keyframe that you want to hold. Right-click over the keyframe and go to the Interpolation options in the contextual menu.  Select "Constant".  This will hold the value until the next keyframe.

  • Fetching Dynamic Object issue

    Hi all,
    Instead of define an variable as external (due to size limitation), I decided to use session.getInstanceData to obtain the value in an instance variable. While things works well on my environment, it does not work out in the QA environment. The following is how I do it:
    DynamicObject instanceData =
    session.getInstanceData(instanceInfo.getId());
    Map dataMap = instanceData.asMap();               
    //Get screening result
    String resultStr = "";
    boolean hasResult =
    dataMap.containsKey("screeningResults");
    if (hasResult){
    Object resultValue =
    dataMap.get("screeningResults");
         resultStr = resultValue.toString();
    I have also log the content of screen result inside the activity:
    logMessage("leaving ... "+this.activity.name +" with screening results="+ this.screeningResults);
    At my environment, I can see the content pass from the engine back to PAPI. However, on QA environment, I see the content show on the engine log (due to the logMessage) but PAPI gets empty string back.
    At first I thought it is due to the "Max Instnace Size limitation", so I upped the limit to 2000kb, but it still doesn't solve the issue. So anyone got any idea what did I do wrong or forgot to handle? Thanks!
    Matthew

    Can I create dynamic object?Depends what you mean by "dynamic object." That term is not part of standard Java parlance, AFAIK.

  • Date Object Issue in WebI

    Hello All,
    Currently I am facing an issue with Date Object in WebI. The data type of this specific object in Oracle (11g) is TimeStamp. If I use this object as one of the query filters in my report, I get "ORA-01843: not a valid month" error. I tried writing the custom sql with converting the format of the object to MM/dd/yyyy using TO_DATE function and it works well. Just wondering if there is any other solution that can be implemented at object level. The only solution I can think of is to use TO_DATE function and convert the object at the Universe level. Appreciate if there are any suggestions to handle this.
    Thanks,
    Sowrabha

    Hi Sowrabha,
    Are you hardcoding the date or passing it as a prompt?
    After passing the date value dont run it but check the SQL. What format do you get? Is it yyyy-mm-dd?
    Also try to pass the date in the prompt or filter as dd/MM/yyyy and check if it is working fine.
    It could be the case that the day which you are passing is becoming month in SQL. You might not face the issue with dates like 01/01/YYYY , 02/02/YYYY, ..... , 12/12/YYYY as 1,2,.....12 passed as month wont give any issue.
    The date format inside SQL is dependant on the database and can be checked in PRM file.
    Please check it and let me know.
    Regards,
    Yuvraj

  • Delete customized enhancement objects issue

    Hello everyone!
    I'm quite new to SAP, and I was trying to make an enhancement to display additional field in the Product Header area. I did some steps, but at some point wanted to start again and delete enhancement. When I've tried to do that with the button "Delete component enhancement" warning message appeared that enhancement is not empty. Then I went to tc sm34 cluster BSPWDVC_CMP_EXT and deleted controller substitutes and enhancement definition there. After that I wanted to delete obsolete objects from the Z package and that's the point where the issue comes in. When I select, for example, BSP Application or classes created by wizard, and try to delete them, GUI just hangs. No errors, no warnings. If I try to create enhancement again without deleting obsolete objects, it asks me if I want to overwrite the BSP application, that was created with my first attempt. If I choose yes, it hangs in the same manner.
    Is there a way to solve this? Please advise.
    Thanks in advance,
    Alex.

    I've actually followed note 1122248, but at the step: "Then go to the BSP components in the ABAP workbench (SE80) that are used to store the enhancements. Search for the obsolete objects and delete them" GUI just hangs.
    In addition, even if I try to create new package, or class, or even save a program in a local object GUI hangs. Is it some global problem?
    Regards.

  • DTW user-defined object issues

    Dear all,
    I've tried to import a user-defined object with a template through DTW.
    However, I got an error message "To generate this document, first define the numbering series in the Administration moduleApplication-defined or object-defined error.
    Any ideas?
    Pls help.
    Thanks

    Hi,
    It is a limitation of the UDO that it is not possible to enter new values via DI or DTW. 
    There is a way to automatically fill your object's user tables. Please see the Note [804685|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=804685] for more details regarding the issue description and the workaround available.                               
    hope it helps,
    Regards,
    Ladislav
    SAP Business One Forum Team

  • XI 3.0 Import SCW and importing IR Objects issues

    Hi,
    I am working on SAP XI 3.0.
    I imported IR objects in the repository through .tpz file and all the objects were imported successfully. I was able to view all the objects. Then I manually created the SCW in the SLD.
    I had delete the IR objects and did re import successfully but the objects are not displayed in the list.
    Also when I try to import the SCW it is imported successfully but not displayed in IR.
    Appreciate your support
    Thanks

    Hi,
    I have informed the my basis team on the import issue.
    But I have two queries.
    1.When I import the SWCV version from its going directly to the Changed List -> Closed. And every option is disabled in the context menu when I right click on the SWCV.
    2. How to import the SAP Basis v 7.0 content into Integration repository. When I imported SAP BASIS 7.0  from SLD it went to the Changelist - closed.
    Thanks
    Zak

  • System object issue

    Hi All,
    I am facing a strange issue.Recently we have configured SSO between our portal and SRM system it is working fine but when i am creating system object using SAP Logon ticket all the three WAS,ITS and Connector are failing but i am getting data from SRM system and i have also tested it in Support>SAP Application>Transaction i can login into the SRM system without prompting for user and password and  when i specify user mapping with UIPW all the three WAS iTS and Connector are working fine.
    Please provide your inputs....
    Thanks,
    Rahul.

    Hi simran,
    Thanks for the reply find the below error details
    WAS:
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether a SAP system is defined in the system object
    4. Validate the following parameters: WAS protocol; WAS host name
    5. Checks if the host name of the server can be resolved.
    6. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
    7. Checks HTTP/S connectivity to the defined back-end application
      Results
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (abc:8000)
    5. The host name abc was resolved successfully.
    6. The Web AS ping service http://abc:8000/sap/bc/ping was not pinged successfully. If the ping service is not activated on the Web AS, you can try to call the ping service manually.
    7. An HTTP/S connection to http://abc:8000/sap/bc/webdynpro/ was not obtained successfully; this might be due to a closed port on the Firewall.
    ITS Connection
      Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether the system object has a valid system alias
    4. Check whether a SAP system is defined in the system object
    5. Validate the following parameters: ITS protocol; ITS host name
    6. Checks if the host name of the server can be resolved.
    7. Checks HTTP/S connectivity to the defined back-end application
      Results
    1. The system ID is valid
    2. The system was retrieved.
    3. Retrieval of the default alias was successful
    4. The system object represents an SAP system
    5. The following parameters are valid: ITS Protocol (http) ITS Host Name (abc:8000)
    6. The host name yashcpgone.sapyash.com was resolved successfully.
    7. An HTTP/S connection to http://abc:8000/sap/bc/gui/sap/its/webgui was not obtained successfully; this might be due to a closed port on the Firewall.
        Test Connection with Connector
      Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
      Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly

  • Archive MM_ACCTIT object issue

    Hi,
    we are planning to do archiving in ERP systems. initially i  have gone through the documentation and done for one  archiving object MM_ACCTIT using SARA transaction in the following ways.
    1. created archive files with WRITE  button
    2. deleted archive files with DELETE button
    3. Then finally i can not able to read the archive with READ button. Here READ button is not displayed in SARA transaction.
    please help me on the above issue and give me some  references. Is there any thing i missed out in the configuration.
    regards
    Ramesh
    SAP Basis administrator

    Hello Ramesh,
    SAP does not supply a "read" program for all archive objects.  MM_ACCTIT is one of those where the Read button is not displayed.  If you need to view this information, you need to use an archive information structure (transaction SARI).
    Best Regards,
    Karin Tillotson

  • Business Object Issue

    Hi All,
    How to implement both add and update page actions through one business object??

    Do you want to process the add and update in one call to the BO or you want different actions. Add and update essentially allow you to manipulate data on the BO except one for new instance of a BO (Add) and the other for manipulating an existing BO.
    You can only pass one action per BO call unless you wrap that BO in a service script which checks for the BO before you issue the Add or update action.
    The script would basically check for existance (using a Read action on a copy of the BO) and then issue the appropriate action after that. Add if it does not exist and Update if it does exist.

  • Number range object issueing the  numbers randomly

    Hi All,
      We have created a number range object and used in a program,but it is issuing the values randomly if it  is issues 8 yest ,today is issuing 7 .
    do any any idea on this issue?
    Regards
    Channa

    Hi,
    Please check the number range configuration.
    [Number Range Example:|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=50004015]
    Shiva

  • Dashboards with Webi Live office Objects issues

    Hi All,
    I have created a dashboard (Dashboards 4.1 SP4) connecting to webi crosstab tables which in turn sources data from Bex queries (version of SAP BW 7.1 SP5) . Initially I published the crosstab data as BI web Services and consumed these as query as web service within the Dashboards. But datasets have variable columns and changes on data refresh everyday. Therefore, I decided to use Live office connections to automate the dashboard.
    As number of posts suggested, firstly, I created Live office connections for the webi queries to pull the data into excel model spreadsheet. I have created 26 live office connections in total and everything works fine until this step. Re-opening the excel document refreshes the live office connections. When I import the same excel spreadsheet into the dashboard, the import operation is running forever and then Dashboards stops responding. I would have to close the Dashboard using task manager.
    To test, I tried creating the live office objects within the dashboard spreadsheet and it creates the connections fine. I do not create the live office connections through Data -->Connections--> Live office connections. I go ahead and publish the dashboard onto the portal and it gets published successfully. If I re-open the dashboard, the connections I created would have disappeared.
    Also,when I create the live office connections on the dashboards Data -->Connections tab and try to publish the dashboard, it publishes forever. The generating swf window was running until I came the next morning which means that it does not publish to the BO portal. I am not sure what else I could try to get this working.
    I have created OLAP connections to the Bex cubes and created webi reports using these connections. I am not sure if OLAP connections would be a problem. To test it, I created relational Universe using UDT tool and created a webi report on top of it to test and tried importing the excel with live office connection to dashboards, but it gets stuck forever.
    Could anyone advise me on any of the missing steps or something else to try to get this working?
    Thanks.
    Regards,
    Rohini.

    Hi Preetesh,
    The excel takes less than a minute to refresh all the datasets when refreshed from outside dashboards. I also do not think this is a performance issue.
    Today I tried importing the excel with live office connections on a different desktop with Dashboards 4.1 SP5 and it got imported instantly. The machine I was trying had Dashboards 4.0 SP6 base version and was updated with 4.1 SP4. I suspected the install might be corrupted and re-installed Dashboards 4.1 SP4 after uninstalling all the versions. The excel got imported instantly and I could see all the Live office connections and got refreshed on document open as well. I saved it to the BO platform without setting up Live Office connections through Data Manager and it got published successfully.
    I closed the Dashboard and re-opened it later and setup the Live Office connections and tried publishing on the BO Portal, its running forever with Generating Swf window. Not sure what is going wrong. In the task manager, I do see two excel processes running which I think is one of dashboard and one of Live office.
    Thanks,
    Rohini.

  • Adobe Acrobat Pro Extended | Print Option | Enable Flash Object Issue

    Hi,
    We are facing some problems with Adobe Acrobat Pro Extended Print Option.
    We had a requirement to embed interactive Flash graphs in the PDF file, user will interact with these graphs and whatever graph he plotted, the data for it will be saved in PDF text field, so that on the next launch we can fetch the data to the flash from PDF text fields, so that user can see what changes he did last time. This works great, we are able to successfully comminicate from PDF to flash and then from Flash to PDF.
    Please note that, PDF can have multiple graphs on different pages.
    The issue we are facing is when we interact with the graphs and then try to print the PDF, in that case only the currently active graph or flash file (The page on which user is currently on) will be seen enabled in the print, the graphs on the other pages, which are not currently visible are seen in disabled state hence the data on it does not get printed.
    We have also used the "RMA.activated = true;" command, still no success. Please refer to the screen shots below to understand the issue in more detail..
    Flash Embed Options:
    In the Print Option, it looks disabled:
    The required/desired output is as follows:
    We want all Graphs to get printed in enabled state and with the data user had entered. Please do let me know, if there is any workaround to achive this functionality.
    Thanks,
    Ajit Danve
    Sr Developer
    Aptara, Pune.

    Which version. I think it is a minimum of AA9.2 that is needed for X64. Anyway, you should probably either open Acrobat and do the update (help menu) or download all of the updates from Adobe>downloads>updates and install them in order. The current version is AA9.3.4.

  • IndDesign CS2 Anchored objects issue

    I am working on a 400 pg yearbook-like doc. I've got pictures with captions(grouped with paragraph and object styles)that need to stay with the text where I insert them. As I work though the pages inserting objects, they appear to adjust prior page layouts. The pages are set up with two columns of text and the text is set up to flow through all the pages of the document. Some of the grouped anchored objects span the entire width of the text box/column. There are also grouped anchored objects that only take up half the column width that don't seem to have the same affect on other pages as the ones that take up the entire column width. The grouped objects that do take up the whole column all go into their text listings at the same spot-at the end of a listing. Does anyone know what I am doing wrong or why these objects would affect prior pages and how I can stop them from doing that?

    Not sure what you mean by affect. If it's just a couple of lines turning differently on the previous page I would put it down to the Adobe Paragraph composer. Try changing the affected paragraph to Single Line Composer in the Justification dialog and see if that stops it?

  • Maybe you are looking for

    • How can I convert from 8.2.1 to 7.1.1?

       I would like to convert the following files from 8.2.1 to 7.1.1.  Is this possible without just having someone else do it inside 8.2?  If not, then can someone please convert them for me?  They are listed in order of most needed.  Thanks for the hel

    • HT201210 i hav e put a password in my iphone and carnt remember it how can i get back into my phone

      how can i get into my phone after putting password on it and forgetting it

    • Photo "save as"

      I have a samsung galaxy S4. This has been an ongoing problem from the moment i installed firefox months ago. Every time I try to download a photo from the internet using firefox, the picture is unsuable once it's on my phone. I have tried multiple me

    • SQL load with Oracle Wire Protocol

      Has anyone used this method? I'm not quite sure how to connect with it. The documentation seems to be a little lacking. Any advice would be greatly appreciated. I'd love not to load the Oracle client on all of our servers from now on.Thanks!

    • Error al instalar la herramienta LVS

      Buenos dias.. Por favor me podrian ayudar con lo siguiente: se instalo la herramienta LVS en un equipo servidor y luego se  ingreso a los equipos clientes, la mayoria al ingresar a SAP B1 pedia la instalacion del Addon SAP B1 LVS, pero en dos equipo