How to create a Project with DI API in C# ?

All I have right now is that :
SAPbobsCOM.IProject Project = (SAPbobsCOM.IProject)oCompany.GetBusinessObject(BoObjectTypes.???
See Sales Order BP Project in Accounting

Hi Marc
The Project object is not a Business Object but a service object (and for information only part of the SBO2007 SDK)...
Here is how you use it (VB):
//Add project
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim projectService As SAPbobsCOM.IProjectsService
Dim project As SAPbobsCOM.IProject
oCmpSrv = oCompany.GetCompanyService
projectService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ProjectsService)
project = projectService.GetDataInterface(SAPbobsCOM.ProjectsServiceDataInterfaces.psProject)
project.Code = "1"
project.Name = "Jeremy"
projectService.AddProject(project)
project.Code = "2"
project.Name = "June"
projectService.AddProject(project)
//Get a project
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim projectService As SAPbobsCOM.IProjectsService
Dim project As SAPbobsCOM.IProject
Dim projectParams As SAPbobsCOM.IProjectParams
oCmpSrv = oCompany.GetCompanyService
projectService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ProjectsService)
projectParams = projectService.GetDataInterface(SAPbobsCOM.ProjectsServiceDataInterfaces.psProjectParams)
projectParams.Code = "PRJ11"
project = projectService.GetProject(projectParams)

Similar Messages

  • How to create a project structure with the Business Bluprint transaction S

    Hi
    How to create a project structure and add the required scenarios for your SAP system to your project structure with the Business Bluprint transaction SOLAR01.
    Also how to add your SAP system configuration structures to your project structure with the configuration transaction SOLAR02
    Thanks,

    Dear fr
    Have u already created a project?
    select the same in solar01 and click the structure tab
    On the left side select business scenarios and on the right side select the structure tab
    Press F4 here and check the Busines process repository is selected
    Nw you hav all the standard business process
    For non-standard just type there name and press save button.
    Add the relevant one's
    Once added here in solar01 reflected in solar02 automatically with relevant data for standard business process.
    you hav to add manually for non stand scean you have added.
    Hope it clarifies.
    Pls assign pts.

  • How to create a project templace using a API?

    Hi all,
    I can create a project using API PA_PROJECT_PUB.create_project, but how to create a project templace using a API?
    thanks for your any effort.
    Caril

    Hi Caroline:
    If sub projects are not supported currently, does the EDK API support creating the project folders under a project? Please let me know.
    Thanks.
    Bhanu

  • How to create a GregorianCalendar with timezone information

    Hello All,
    Can any one tell me how to create a GregorianCalendar with time zone information i.e
    I have following information with me
    year
    month
    day
    hour
    minutes
    seconds
    deci-seconds
    direction from UTC "+" / "-" (in ascii notation)
    hours from UTC minutes from UTC
    How can i construct a calender out of it?

    How to construct a calendar:
    Calendar.getInstance()
    Did you consider looking at the API docs with the set() method for calendar and the field constants for the values you can set?
    Although I wonder whether it's simpler to just concatenate the data to a String and parse it to a Date instance using SimpleDateFormat.

  • How to create a project in PS automatically wen it is created in cProjects.

    Hai experts,
        How to create a project in PS automatically wen it is created in cProjects.
        After creating project in cProjects wen i flagged to transfer it is not transferring to PS...
    How to achieve this...
    Thanx in advance...

    hi
    Try with following settings if you have not done:
    1) In define project type, for for accounting integration , select scenario as: Accounting integration in my SAPERP and type of transfer as : Always Automatic when saving
    2) For Define object link for object type , define proxy class for WBS element and Project definition(PS)
    Also define RFC for Single object Controlling on WBS element in Object types for object links.
    3) For Accounting integration in Make general settings, for your project type select frame09 for your object type single object controlling on Internal order
    4) Define CO scenario CPR2 with Strategy sequence as SAP040 in period end closing, costing sheet as standard and Costing variant as PC02(Internal Order)
    5) In CO scanrio maintenance view, for your project type select contolling method as Internal Order( Project Definition, Automatic)
    With these settings I am able to create a PS project from cProject when I save a cProject.
    Regards,
    Niraj

  • How to share a project with a non-Adobe user and present it to prospect customers?

    I Have to share my project with a person who will present it to prospect customers. I cannot ask this person to open an Adobe account. Is there a way for him to access my DPS folio and show it? Or can I export it in a way that allows to appreciate the interaction features built inside?
    Thanks!

    OK, got it. Thank you!
    2015-01-17 14:46 GMT+01:00 Bob Levine <[email protected]>:
        How to share a project with a non-Adobe user and present it to
    prospect customers?  created by Bob Levine
    <https://forums.adobe.com/people/BobLevine> in Digital Publishing Suite
    - View the full discussion
    <https://forums.adobe.com/message/7105349#7105349>

  • Creating a project with wireless toolkit

    Hi everybody,
    I'm trying to create a project with WTK 2.1 and I can't. I follow the tutorial steps but after building successfully the sources I run them and appears me the following lines:
    Unable to create MIDlet BotonMid
    java.lang.ClassNotFoundException: BotonMid
    at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
    at com.sun.midp.midlet.Selector.run(+22)
    Execution completed.
    Selecting new project in the wireless toolkit I type the following:
    Project name botonoriginal
    Midlet class name BotonMid
    BotonMid is the name of a java file and is the name I have in the line
    public class BotonMid extends MIDlet implements CommandListener
    Why can't I create the project?
    Thanks.

    Thanks for the responses. But both solutions proposed doesn't work and I don't know why. First of all I try to compile the BotonMid.java file using javac and it appears me 29 errors. I'm confused because when I build the project is successful.
    Maybe there is a J2ME compiler (j2mec for example) but I don't find in the web. I also try to type a public constructor but appears me the same error.
    And my question is: how can I compile the java file without errors? I don't understand why appears me 29 errors if the file building is sucssesful.
    Thanks.

  • Is there a way to create a project with custom audio settings that are NOT only "Stereo" or "Surround"?

    Is there a way to create a project with custom audio settings that are NOT only "Stereo" or "Surround"?
    Thanks!
    -Adrian

    the old apps are on my computer but they have had upgrades since they were put on the ipod originally.  you think you would get a warning about this when you restored. I was not worried about losing the progress of the apps but i would have been worried about the app it self!!!!!

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • How to create excise invoice with reference thorugh credit memo

    Hi All,
    Please provide any solution for the following qurey:
    How to create excise invoice with reference thorugh credit memo

    Hi murali,
    i am unable to understand your requirement i think there is no like this scenario requirement for any client
    if any requirement is there kindly explain detail
    cheers

  • How to create a complaint with pre-decessor document Inovice?

    Hello experts,
    I need create a complaint with reference to a pre-decessor document type Invoice (apart from other types such as sales order and service order). Can someone enlighten me
    1) how to create an invoice in IC Web Client and backend?
    2) how to create a complaint with reference to this created invoice in IC Web client and backend?
    Thanks a lot!!!

    Hi Easwar
    Thanks  a lot for answering the question.
    Yes I do have CRM Billing documents. But the problem is
    a) either the billing document doesn't have Transfer to Accounting status Transferred or
    b) a transferred billing document, but all items have error "Unable to offset billing item 90003458 0000000060" etc.
    Do you know
    1) how I can make a billing document have "Transferred" status? Pressing "Transfer to Accounting" button in the billing document overview page will only set the status to "Being transferred". And it's always being tranfered.
    2) What does the error "Unable to offset billing item ... "mean? How to get rid of them?
    Thanks a lot!

  • How to create a table with events in smartforms?

    How to create a table with events view in smartforms?
    It doesn't like general table with header, main area and footer.
    for example:
    in smartforms: LE_SHP_DELNOTE
    table name is TABLEITEM(Delivery items table)

    Vel wrote:
    I am creating XML file using DBMS_XMLGEN package. This XML file will contain data from two different database tables. So I am creating temporary table in the PL/SQL procedure to have the data from these different tables in a single temporary table.
    Please find the below Dynamic SQL statements that i'm using for create the temp table and inserting the data into it.
    Before insert the V_NAME filed, i will be appending a VARCHAR field to the original data.
    EXECUTE IMMEDIATE 'CREATE TABLE TEMP_TABLE (UNIQUE_KEY NUMBER , FILE_NAME VARCHAR2(1000), LAST_DATE DATE)';
    EXECUTE IMMEDIATE 'INSERT INTO TEMP_TABLE values (SEQUENCE.nextval,:1,:2)' USING V_NAME,vLastDate;What exactly i need is to eliminate the INSERT portion of it,Since i have to insert more 90,000 rows into it. Is there way to have the temp table created with data in it along with the sequence value as well.
    I'm using Oracle 10.2.0.4 version.
    Edited by: 903948 on Dec 22, 2011 10:58 PMWhat you need to do to eliminate the INSERT statement is to -- as already suggested by others - eliminate the temporary table. You don't need it. It is just necessary overhead. Please explain why you (apparently) believe that the suggestion of a view will not meet your requirements.

  • How to create shipment document with out inbound delivery document

    Dear Friends
    How to create shipment document with out outbound/inbound delivery document.
    In my client scenario, there is no inbound delivery for normal purchases.
    Just there are raising the PO to vendor, then they are doing MIGO for goods receipt.
    Can we do shipment creation with reference to PO?
    If it is possible, how it will be?
    Please let it solve
    With regards
    Lakshmikanth

    Dear Sameer,
    Please go to transaction VT01N here you enter Transportation planning point and shipment type then press enter.
    Now system will take you to the shipment document creation screen here you click on Select deliveries or press F6 now system will take you to the select outbound deliveries screen in this screen you enter selection data then execute, now deliveries will get assigned to that shipment.
    After assigning the deliveries enter the remaining data then complete the shipment finally save the shipment document.
    For more information please go through this SAP help link
    Note:- Shipment process need to be carry out for the deliveries before PGI.
    http://help.sap.com/saphelp_47x200/helpdata/en/f5/04898047bd11d2bf750000e8a7386f/frameset.htm
    I hope this will help you,
    Regards,
    Murali.

  • How to create a Project in Development system?

    Hi,
    I am starting my development on client system.
    Whenever i try to create infoarea or cube or catalog or whatever it is asking for request.
    before  creating request, Project must be created plz tell me how to create a project?
    whats the relation between project and package?
    And one more question...if i want to avoid asking requests then what settings must be done so that after all development is over i can transport to quality system at time.
    PLZ provide me the solution for above mentioned queries.
    Thanks in Advance,
    Vijaya.

    Thanks Tony.
    Please tell me in details or send me a document regarding this...what shoud be done in SE06.
    Here there are 2 options:
    1)Standard installation
    2)Database copy or database migration.
    and there s a option system change option.
    I am not getting the idea of this what can be done by clicking on system change option and perform post installation actions?
    plz help me out.
    Thanks,
    Vijaya

  • How to create a table with varied number of columns?

    I am trying to create a balance table. The colunms should include years between the start year and end year the user will input at run time. The rows will be the customers with outstanding balance in those years.
    If the user input years 2000 and 2002, the table should have columns 2000, 2001, 2002. But if the user input 2000 and 2001, the table will only have columns 2000 and 2001.
    Can I do it? How? Thanka a lot.

    Why did you create a new thread for this?
    How to create a table with varied number of columns?

Maybe you are looking for