Add new project but "BP Project" in Accounting not updated.

Hi,
This is a bit tricky.  If you have a solution for this it would be cool.
I have a UDF called Project Name and when the user adds the Sales Order,
I would like the "BP Project" in Accounting be updated with the new project which I just added with the ProjectService
I've been able to add the value with the ValidValues of the IComboBox for the BP Project item but
seems that there's something not working well.
It pops the Projects dialog like if the item doesn't exist but I just added it with the ProjectService and its really in the table
So what I suspect is that the control BP Project on the form needs to be updated but I don't know how to do it.
Any good and simple idea to update this control ?
I did look with DataBind and everything but I'm unable to figure out how to do it
Edited by: Marc Roussel on May 1, 2008 8:30 PM

Thank you very much.  It is working this way.  Better have this way then no way I'm glad to share the code with you all
Here's the code that starts the process from the ItemEvent
if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED && pVal.BeforeAction)
    if (pVal.FormType == 139 && pVal.ItemUID == "1")
        if (SBO_Application.Forms.ActiveForm.Mode == BoFormMode.fm_ADD_MODE || SBO_Application.Forms.ActiveForm.Mode == BoFormMode.fm_UPDATE_MODE)
            BubbleEvent = ValidateProjectName();
This is the code that validates if the UDF project name is there and if yes, try to create it by calling the method below
private bool ValidateProjectName()
        bool ReturnBubble = true;
        SAPbouiCOM.EditText ProjectName = null;
        try
            ProjectName = (SAPbouiCOM.EditText)SBO_Application.Forms.GetForm("-139", 0).Items.Item("U_project_name").Specific;
        catch
            SBO_Application.SendKeys("^+U");
            ProjectName = (SAPbouiCOM.EditText)SBO_Application.Forms.GetForm("-139", 0).Items.Item("U_project_name").Specific;
        string ProjectCode = ProjectName.Value.ToString().Trim();
        if (ProjectCode == "")
            ReturnBubble = false;
            FortSum.SAP.ShowMessage(SBO_Application, "Le nom du projet ne peux pas être vide...", "The project's name can't be empty...");
        else
            if (!IsProjectExist(ProjectCode))
                CreateProject(ProjectCode, ProjectCode, false);
        System.Runtime.InteropServices.Marshal.ReleaseComObject(ProjectName);
        ProjectName = null;
        return ReturnBubble;
Here's the code that creates the project : (Note - ProjectForm.Visible = false does nothing since the form pops up anyway)
private bool CreateProject(string ProjectCode, string ProjectName)
        bool Done = true;
        try
            SAPbouiCOM.ComboBox Projects = (SAPbouiCOM.ComboBox)SBO_Application.Forms.GetForm("139", 0).Items.Item("157").Specific;
            Projects.Select("Define New", BoSearchKey.psk_ByValue);
            SAPbouiCOM.Form ProjectForm = SBO_Application.Forms.GetForm("711", 1);
            ProjectForm.Visible = false;
            SAPbouiCOM.Matrix ProjectsMatrix = (SAPbouiCOM.Matrix)ProjectForm.Items.Item("3").Specific;
            ((SAPbouiCOM.EditText)ProjectsMatrix.Columns.Item("PrjCode").Cells.Item(ProjectsMatrix.RowCount).Specific).Value = ProjectCode;
            ((SAPbouiCOM.EditText)ProjectsMatrix.Columns.Item("PrjName").Cells.Item(ProjectsMatrix.RowCount).Specific).Value = ProjectName;
            ProjectForm.Items.Item("1").Click(BoCellClickType.ct_Regular);
            ProjectForm.Close();
            Projects.Select(ProjectCode, BoSearchKey.psk_ByValue);
            FortSum.General.ReleaseComObject(new object[] { ProjectForm, ProjectsMatrix });
            ProjectForm = null;
            ProjectsMatrix = null;
        catch (Exception ex)
            FortSum.SAP.ShowMessage(SBO_Application, ex.Message, ex.Message);
            Done = false;
        return Done;

Similar Messages

  • I recently got new mac air and transferred my old version garageband projects now when I open them in 10.0.2 I can add new tracks but then nothing can record, shows its receiving sound from software inst. but no sound. I checked audio preferences and

    i recently got new mac air and transferred my old version garageband projects now when I open them in 10.0.2 I can add new tracks but then nothing can record, shows its receiving sound from software inst. but no sound. I checked audio preferences and they are set as they should be. I tried it in all the other older projects and same issue anyone have any experience like this very frustrating.  Can one download old version still ? or can you run both versions on OS10.9.5 ?

    Ok, either my question was too long or nobody seems to have an answer. Sad, either way
    Here's something I found out in the meantime, maybe this is interesting for somebody or maybe - problem's not totally solved - enough info for any of you to give me further advice.
    When I start Logic Core Audio driver de-activated, I can open old songs. Then I save them in a new folder with all audio files and a new name. And I remove all EXS24 instruments as well as the Space Designer. I quit Logic, re-open with Core Audio activated and I can open the song.
    Problem no.1: EXS24 instruments don't find the appropriate samples, but EXSMananger Pro did help me with this. Same problem with Space Designer, which doesn't find the impulse responses, connected to a certain preset.
    Two questions, every idea would be great!
    - Is there any way to teach Space Designer Presets where to look for impulse respones. I can load IR samples directly and create a new preset, but I can't use my old ones.
    - Is it possible to install Logic from scratch over an existing version? Or how should I de-install everything connected with Logic and then install a fresh version from CD?
    Thank you again,
    Joern

  • I recently got new mac air and transfered my old version garageband projects now when I open them in 10.0.2 I can add new tracks but then nothing can record shows its recieving sound from software inst. but no sound. I checked audio preferences OK

    i recently got new mac air and transferred my old version garageband projects now when I open them in 10.0.2 I can add new tracks but then nothing can record, shows its receiving sound from software inst. but no sound. I checked audio preferences and they are set as they should be. I tried it in all the other older projects and same issue anyone have any experience like this very frustrating.  Can one download old version still ?
    thanks,

    Ok, either my question was too long or nobody seems to have an answer. Sad, either way
    Here's something I found out in the meantime, maybe this is interesting for somebody or maybe - problem's not totally solved - enough info for any of you to give me further advice.
    When I start Logic Core Audio driver de-activated, I can open old songs. Then I save them in a new folder with all audio files and a new name. And I remove all EXS24 instruments as well as the Space Designer. I quit Logic, re-open with Core Audio activated and I can open the song.
    Problem no.1: EXS24 instruments don't find the appropriate samples, but EXSMananger Pro did help me with this. Same problem with Space Designer, which doesn't find the impulse responses, connected to a certain preset.
    Two questions, every idea would be great!
    - Is there any way to teach Space Designer Presets where to look for impulse respones. I can load IR samples directly and create a new preset, but I can't use my old ones.
    - Is it possible to install Logic from scratch over an existing version? Or how should I de-install everything connected with Logic and then install a fresh version from CD?
    Thank you again,
    Joern

  • User cannot add new task in a project

    Hi everyone,
    I've got a issue with Project Server 2013.
    The situation : I create a new project then, I add some resources (which are users of the AD) and I don't add new task in this project because  I want that the user creates all the task.
    But when he's in the "Task" page (PWA/Tasks.aspx) and he want to add a new task (ribbon TASKS -> Add a row -> Add a new Task), the new project is not present in the drop down "Project" , if I want that the project
    appears, I need to add a task with the user as a ressource.
    Is there any way to automatically add the project in this list without add a task for the specific resource ?
    Thanks,
    Patmol

    Hi Patmol6,
    Please note that PWA/My task is NOT INTENDED to create tasks and assign them to resources. The process to create a project plan at project initiation and to assign resources to tasks must be done:
    either in Ms Project Pro connected to your server and using enterprise resources,
    or with PWA: open your project from the project center, then navigate to the schedule page, edit the schedule, create the build team, create tasks and assign resources on tasks.
    "My task" page in PWA is meant to make tasks updates by team members.
    Hope it clarifies the process.
    Guillaume Rouyre - MBA, MCP, MCTS

  • How to add new Attachment category in Projects master creation form

    Hi Dudes,
    I would like to know that how to add new Attachment category in Projects master creation form.
    It defaults as Miscellaneous.
    I created new category by navigated Application developer - attachment - category
    but i dont know how to assign the above created category for Project master creation form
    Can you pls throw some lights into this little dark room?

    See http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458262.htm
    Scrool down to the "Category Assignments Window".
    This is where you assign an attachment category to your form/function.
    See http://erpschools.com/articles/oracle-attachment-functionality-adding-an-attachment-to-a-form for step-by-step screenshots.
    Sandeep Gandhi

  • I delete my iCloud account and got a new one but the previous iCloud account is keep showing up.what do I do??

    I delete my iCloud account and got a new one but the previous iCloud account is keep showing up.what do I do??

    You have to sign out of the old one and then sign back in with the new one. On an iOS device it's Settings>iCloud and click 'Delete account' (this will not delete the account from the server, just disengage the device from it). On a Mac it's System Preferences>iCloud and click 'Sign out'.

  • My iphone4 could not edit contact.i can add new people but can't delate.

    My iphone4 could not edit contact.i can add new people but can't delate.

    I have the same problem.  Contact edit still works on my iPad2 but I can no longer edit contacts on my iPhone 4.  I can only add new contacts.

  • Transfered DVD ( via Handbrake )  to Aperture folder. Was able to transfer still photos to iMovie project but DVD project ( in same folder would not transfer. What is correct procedure?

    Transfered DVD ( via Handbrake ) to Aperture folder.  Was able to transfer photo stills to iMovie project BUT DVD project in same folder would not transfer to iMovie. What is correct procedure?

    I actually already checked Pondini's and didn't find the answer.  Any other suggestions?
    thanks

  • I just migrated everything from an old Mac to a new one, but now Acrobat Professional will not launch. I get an error message: "Adobe Acrobat 8 Professional cannot be launched at this time......"

    I just migrated everything from an old Mac to a new one, but now Acrobat Professional will not launch. I get an error message: "Adobe Acrobat 8 Professional cannot be launched at this time......"

    I used "Migration Assistant" to send everything from my old mac to my new which included my copy of Adobe Acrobat 8 Professional. I tried downloading an update but when it asked me to find the version of acrobat to replace it was grayed out and I was unable to select it. My OS is 10.9.4

  • HT1400 I purchased a new chip but my iPhone 4S will not recognize the new chip so what do I need to do?

    I purchased a new chip but my iPhone 4S will not recognize the new chip so what do I need to do?

    okay from reading posts it seems if I transfer my backed up info from my old comp to the new one and erase my dad's phone's back up i could reset my phone and it would transfer all my old data back onto the phone, be linked to the new computer and i could proceed.  Where do i find the backed up info from my phone?

  • Hi,I have uploaded an app build for pre release  and its still under processing So i uploaded a new build but still the issues is not resolved.Please help...Thanks

    Hi,
    I have uploaded an app build for pre release  and its still under processing So i uploaded a new build but still the issues is not resolved.
    Please help...
    Thanks

    Hi smithin, 
    Thanks for visiting Apple Support Communities. 
    It sounds like you've submitted an iOS application to the App Store, which is being processed, but there's an unresolved issue.
    For additional help with this situation, Apple Developers can use the contact methods on this page:
    https://developer.apple.com/contact/
    All the best,
    Jeremy 

  • My feeds are updating but the iTunes store has not updated

    I put my rss feed up on feedburner and all my feeds have updated but the iTunes store has not updated. I was wondering if there a simple explanation for it. Subscribers to the podcast have gotten the most recent update but the store hasn't reflected the new changes.

    When you add a new episode to your feed and upload it, it appears immediately for subscribers because their iTunes application reads the feed directly and the Store is not involved.
    However because of the huge number of podcasts in the Store (thousands) the Store caches the feed and checks it for updates periodically. For this reason it usually takes 1-2 days for new episodes to appear in the Store: sometimes it can be less, and occasionally the whole process seems to get stuck and it can take several days.
    All this assumes that you haven't made an error of some sort in adding your episode: it's not possible to comment on that unless you would like to publish the URLs of both your feed and the Store page - this latter can be found by control-clicking on the podcast image (or where it should be) - and choosing 'Copy link'.  Please include the http:// in both cases to make the links clickable.

  • My apple account not updating my credit card

    Hi, my apple account not updating my new credit card i did try to updating after i entring my new card info i press done its says please contact to itunes support when i relogin its show me again my old credit card on my account its not updating my new credit card how please help me fix this problem Thanks

    Accepted forms of payment  >  http://support.apple.com/kb/HT5552
    3262 wrote:
    ... its says please contact to itunes support...
    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I've just started using the App Tabs. I think this feature could be handy but why are the sites not updated when I start Firefox. Now I have to manually update the site which is somewhat of a downer. Does any of you know where I'm going wrong?

    I've just started using the App Tabs. I think this feature could be handy but why are the sites not updated when I start Firefox. Now I have to manually update the site which is somewhat of a downer. Does any of you know where I'm going wrong?

    To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
    Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step.

  • I have turned firewall off but my iphone will still not update. it still says 'network time out' i am using a dell laptop

    i have turned firewall off but my iphone will still not update. it still says 'network time out' i am using a dell laptop and i want to update my iphone4 to iOS 5.

    Things in this thread might be helpful too.
    https://discussions.apple.com/thread/3382814?start=0&tstart=0

Maybe you are looking for