Can't pick fields for calculation

This is very frustrating.
I am editing the fields of an invoice form and want to use the last field of the line to create a total. I select the field and go into its properties. Under the "Calculate" tab, I select "Value is the 'product' of the following fields" and then click the "Pick" box to select which fields to calculate. I'm then provided with a list of all my fields and I tick my selections and click OK. But once I click OK, I am taken back to the Calculate tab with none of my selections in the fields box. Basically, it does not register my selections.
I have tried this every possible way I can imagine, restarted everything, etc. Still, no matter what I do I cannot get it to register the field selections I make for calculation. I managed to do this successfully for the first line in the form (seemingly at complete random) and haven't been able to reproduce any success for subsequent fields. I check the fields and once I hit OK it completely ignores them.
Any help here would be greatly appreciated.
RP

Consider using one of the other calculation options. For example, to use the simplified field notation option you'd enter something like this:
Text1 * Text2 * Text3 * Text4
This will work if your field names don't have any spaces or punctuation characters in them. It's possible to escape space and punctuation characters with the \ character, but it can get messy
The other option is JavaScript, which would look something like this:
// Set this field to the product of some fields
event.value = getField("Text 1").value * getField("Total1.1").value * getField("Another field name").value;
Note that you can include any field names you want inside the quote characters, so it's more flexible/cleaner than the previous option.

Similar Messages

  • How to Pick fields for calculations in forms?

    I have all the fields in place, with all apparent formatting required for each. Using Properties > Calculate > Pick, Adobe will show me the list of all of my fields, but will not let me populate them in the Pick field individually. I can Select All and Deselect All, but choosing individual fields is totally hit or miss (~95% miss), with no apparent reason. I've been able to select fields that are not formulated as numbers, but cannot select those that are. I was able to select QtyRow9 and UnitPriceRow10 for TotalPriceRow1, but nothing else. I can even change the quantity and unit price in Preview and it calculates correctly. However, there are over 50 more calculations in this form.
    My manager was able to open my file and Pick fields on the Calculate tab. After he saved the file and sent it back to me, I still cannot Pick as I would like to. I have Adobe 10.1.1 Standard, while he has Adobe 9.1.2 Standard (he was able to open my file with no problem). We both used Tools > Forms > Edit, although his buttons are located differently than mine. Any ideas what I might be missing?

    Pravender --> Yes fields are available when testing datasource in RSA3, but replication does not bring anything new (no selection possible on those fields)
    MD --> Ok for the fields not allowed, but here is the need on my side. Maybe somebody knows a workaround to get this selection available ? (or another way to perform it)
    I can see in the 4th tab (name is "update") in infopackage screen (BW), a frame named "time-dependant data", and here i have a possibility to filter according dependance period, but only 3 possibility :
    - fixed time interval
    - routine time interval
    - variable for interval
    but none of the three allows me to do what I want ...

  • Cannot select fields for calculating other fields~

    Help -- I am tryiing to get certain fiels in a form to calculate based on selection of other fields.  The fields to be selected already have values in them.  (The same format I have used for several years, just new set of forms)
    I get through the point of setting up the field properties to calculate and I select Sum of...   Then it simply will not let me select any fields to use for calculations -- unless I select all fields.
    Please -- this is time sensitive and urgent any help responses needed and welcome!

    Sounds like you are having issues with Acrobat and not FormsCentral. You would get a better help if you post your question on the Acrobat's forum
    http://forums.adobe.com/community/acrobat/forms
    Gen

  • Can a pick slip for ingredients, be generated, while processing a batch.

    Dear All,
    I have a question:
    While releasing a Batch, can we issue a Pick Slip for the ingredients to be picked.
    As, how my store keeper will come to know that which are all the ingredients (raw materials) required at Plant (shop floor).
    Please reply at the earliest..
    Thanks & Regards
    Sameer

    Hi
    My answers to your thoughts/queries
    1. Bang on. Go for a separate FG warehouse (however the process at the site) can decide wether production should be directly stored in FG or transferred via a move transaction
    2. Avg. Cost is ok in OPM. However, bear in mind dont have an open batch at the end of a month (or might land up with CLS entries which are quite difficult to explain). This is true if you are using PWAC method of costing. Search for OPM SSTK and search a white paper in Oracle that explains this. I will try to search this and give you something (if I can though honestly I am not sure I will find it)
    3. Not sure of the kind of documents between inventory and plant you are looking at?
    4. Upto 11.5.10 you cant do the same as per my understanding. I havent ever see this. You can tough use a DFF and catpure the same in the header and built a customization report for cross refercing the same. I belive in Release 12 this feature has been introduced. I think I have updated this on another query
    Thanks and Regards
    Girish

  • On forms central -- can you format fields for phone # and zipcode

    is a form is sent out, the data that is returned is non -formated, or if i collect a field called zip code and it has a 0 as the zero is not returned

    I realized something - I would recommend that you change the field type for the Zip Code and Phone number fields, I'd guess you are using a "Number field" and should consider using "Text Field". 
    I have a habit of using "text" fields for zip codes and phone numbers, using a text field the entire string (with leading 0s) is submitted to the response table.
    If you use a Number field the leading "0" is stripped out but if you use a text field the entire number entered by the user will be shown in the response table.
    Thanks,
    Josh

  • 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

  • Attribute can be a field for selection screen

    Hi,
    For 0employee i have made a attribute as organization unit in a report,so org unit is attribute for 0employee and now my requirement is that i want that organization unit to be in selection screen for Bex reporting so that the user can choose the org unit from the selection screen only.

    Hi,
    If you need to include organization unit, which is a attribute of 0employee, in you report, you need to perform the below steps.
    1. In the 0EMPLOYEE characteristic Attribute tab, make organization unit as a Navigational attribute.
    2. In the InfoProviders on which the query is created, you need to select organization unit as a navigational attribute.
    3. If your report is created on a multiprovider, you need to select organization unit as a navigational attribute in Multiprovider also and create assignment for it.
    ex: If your report is based on a multiprovider, which is created on a Cube and cube has a ODS below it, you need to perform above steps at all levels.
    You will now be able to see the organization unit as a characteristic in report, just pull it and create a variable.
    Please let me know if you need any more information.
    Regards,
    Pankaj

  • Cannot select fields for calculation

    It will only allow me to select all the fields or deselect all the fields. When I try  to click on a specific field, it highlights the field in blue but will not checkmark it.

    Found the solution:
    Hi,
    Solution Remove Adobe PDF from the Disabled Items list in the Microsoft Office application. To manage your Disabled Items list in a Microsoft Office application:
    Open the Microsoft Office application (Word, Excel, Publisher). 
    Choose Help > About [the application name]. 
    Click Disabled Items. 
    Select Adobe PDF from the list, and then click Enable. 
    Quit the Microsoft Office application, and then restart it.
    View an Adobe Captivate demo of this procedure
    If the error message continues to appear after you enable Adobe PDF, then check the security level for macros in Word:
    Choose Tools > Macro > Security. 
    In the Security dialog, click the Security tab. 
    Choose Medium or High. 
    Do one of the following: 
    If you chose Medium, then click OK. 
    If you chose High, then continue with steps 5 through 7.
    Click the Trusted Publishers tab. 
    Check Trust all installed add-ins and templates. 
    Click OK.
    PDFMaker and the right-click context menu should function again.
    View an Adobe Captivate demo of this procedure
    http://kb.adobe.com/selfservice/viewContent.do?externalId=329044
    Thanks
    proton

  • How to stop the pages to show me MKD instead EUR and Can I pick valute for all pages??

    I am booking flights or hotels and instead of the price to be in EUR or USD it gives me MKD, and I don't want to! I would like to choose the currency myself or stop the automatic change!
    Thank you in advance,
    ZK

    hello, please contact the support of the sites where this is happening - there is not much that firefox or any other browser can do about it, since it only displays the content that gets transmitted from the sites - they might use your ip address to find out your approximate location and adjust the language/currency settings accordingly...

  • People Picker field and Web service -- multiple round trips to get Display Name value

    Using Sharepoint 2010 and Infopath 2010, I have created a form that validates fields entered within the form by connecting to a .Net web service created  by someone else.  One of the fields that I need to validate is a People Picker field
    for the Project Manager. 
    The connection to the Web Service runs correctly except that the People Picker goes through the validation process 3-4 times.   I know this because I have a MessageBox showing the value for the InnerXML that pops up 3 times.  The
    first time the MessageBox shows no value for the XML, the next time it shows a name, and the 3rd time it shows no value.
    Here is the code I'm using in the Infopath form (without the Messagebox):
    Dim wsConnection As WebServiceConnection = DirectCast(Me.DataConnections("Validate"), WebServiceConnection)
    Dim formNavigatorProjectManager As XPathNavigator = MainDataSource.CreateNavigator()
    Dim wsNavigatorProjectManager As XPathNavigator = Me.DataSources("Validate").CreateNavigator()
    strformNavProjectManager = formNavigatorProjectManager.SelectSingleNode("/pr:properties/p:properties/documentManagement/ns3:ProjectManager/ns3:UserInfo/ns3:DisplayName", NamespaceManager).InnerXml
    wsNavigatorProjectManager.SelectSingleNode("/dfs:myFields/dfs:queryFields/ns7:Validate/ns7:projectManager", NamespaceManager).SetValue(strformNavProjectManager)
    wsConnection.Execute()
    The line in BOLD above used to have just /pr:properties/p:properties/documentManagement/ns3:ProjectManager
    but I thought my problem might be because People Picker fields are made up of 3 elements -- DisplayName, AccountID and Account Type. So I changed the XML.  Sadly, that didn't make any difference.
    I am using the CHANGED event which a colleague of mine thought would have taken care of the multiple round trips.  But it didn't.
    Hopefully someone out there can tell me what I need to do so that this People Picker field only get validated once (The form also has Managed Metadata fields that have very similar problems so I'm hoping that the solution for the People Picker field
    takes care of the MMD fields too.)  Thanks in advance.  Carol.

    Hi Carol,
    It is the behavior for setting People/Group field if you just select the node "/dfs:myFields/dfs:queryFields/ns7:Validate/ns7:projectManager".
    Also you can try to only set the AccountID value of the People/Group field:
    Dim wsConnection As WebServiceConnection = DirectCast(Me.DataConnections("Validate"), WebServiceConnection)
    Dim formNavigatorProjectManager As XPathNavigator = MainDataSource.CreateNavigator()
    Dim wsNavigatorProjectManager As XPathNavigator = Me.DataSources("Validate").CreateNavigator()
    strformNavProjectManagerID = formNavigatorProjectManager.SelectSingleNode("/pr:properties/p:properties/documentManagement/ns3:ProjectManager/ns3:UserInfo/ns3:AccountID", NamespaceManager).InnerXml
    wsNavigatorProjectManager.SelectSingleNode("/dfs:myFields/dfs:queryFields/ns7:Validate/ns7:projectManager/ns7:userinfo/ns7:AccountID", NamespaceManager).SetValue(strformNavProjectManagerID)
    wsConnection.Execute()
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers
    if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Eric Tao
    TechNet Community Support

  • Opening Stock and Closing Stock fields and Calculation

    Hi,
    My report requirement is to display the material, opening stock for the lower date, closing stock for the higher date and the in between all stock operations..how to fetch the opening stock and closing stock for a particular material ???.. what are the tables and fields for calculating them??..
    Thanks,
    Sri

    this is the code i wrote..
    I had selected the data for the date entered and the previous date(l_date) also..
    previous date for the opening stock.
    now i am getting only receipts and issues correctly.. opening stock and the remaining
    balance fields are not coming properly..please help me..
    here rmenge for receipts,imenge for issues.
    REPORT  ZSTOCK no standard page heading line-size 180.
    types: begin of ty_date,
           budat type budat,
           end of ty_date,
           begin of ty_mard,
            matnr type matnr,
            lgort type lgort_d,
            labst type labst,
            UMLME TYPE UMLMD,
            INSME TYPE INSME,
            EINME TYPE EINME,
            SPEME TYPE SPEME,
            RETME TYPE RETME,
           end of ty_mard,
           begin of ty_makt,
            matnr type matnr,
            maktx type maktx,
           end of ty_makt,
           begin of ty_mbew,
           matnr type matnr,
           bwkey type bwkey,
           lbkum type lbkum,
           salk3 type salk3,
           end of ty_mbew,
           begin of ty_mkpfmseg,
            mblnr type mblnr,
            budat type budat,
            bwart type bwart,
            matnr type matnr,
            lgort type lgort_d,
            shkzg type shkzg,
            dmbtr type dmbtr,
            menge type mseg-menge,
           end of ty_mkpfmseg,
           begin of ty_opstock,
           matnr type matnr,
           rdmbtr type dmbtr,
           idmbtr type dmbtr,
           bdmbtr type dmbtr,
           bmenge type menge_d,
           end of ty_opstock,
           begin of ty_output,
            mblnr type mblnr,
            budat type budat,
            matnr type matnr,
            maktx type maktx,
            bwart type bwart,
            lgort type lgort_d,
            shkzg type shkzg,
            rmenge type mseg-menge,
            rdmbtr type dmbtr,
            imenge type mseg-menge,
            idmbtr type dmbtr,
            dmbtr type dmbtr,
            bdmbtr type dmbtr,
            bmenge type menge_d,
           end of ty_output.
    data: t_date type standard table of ty_date initial size 0,
          t_mard type standard table of ty_mard initial size 0,
          t_makt type standard table of ty_makt initial size 0,
          t_mkpfmseg type standard table of ty_mkpfmseg initial size 0,
          t_opstock type standard table of ty_opstock initial size 0,
          t_out type standard table of ty_output initial size 0,
          w_date type ty_date,
          w_mard type ty_mard,
          w_makt type ty_makt,
          w_mkpfmseg type ty_mkpfmseg,
          w_opstock type ty_opstock,
          w_out type ty_output,
          g_matnr type mara-matnr,
          g_lgort type t001l-lgort.
    selection-screen begin of block b1 with frame.
    parameters:p_werks type t001l-werks obligatory memory id pw.
    select-options:s_lgort for g_lgort no-extension no intervals.
    select-options: s_matnr for g_matnr.
    parameters:p_date type mkpf-budat obligatory.
    selection-screen end of block b1.
    at selection-screen.
    perform sub_validate_date.
    start-of-selection.
    data: l_date type sy-datum,
          l_row type i.
    refresh t_date.
    select budat from mkpf into table t_date.
    sort t_date.
    delete adjacent duplicates from t_date.
    clear w_date.
    read table t_date into w_date with key budat = p_date.
    l_row = sy-tabix.
    l_row = l_row - 1.
    clear w_date.
    read table t_date into w_date index l_row.
    l_date = w_date-budat.
    select    k~mblnr
              k~budat
              s~bwart
              s~matnr
              s~lgort
              s~shkzg
              s~dmbtr
              s~menge
              into table t_mkpfmseg
              from mkpf as k inner join mseg as s
              on kmblnr = smblnr and
                 kmjahr = smjahr
              where k~budat between l_date and p_date and
                    s~matnr in s_matnr and
                    s~werks = p_werks and
                    s~lgort in s_lgort.
    if t_mkpfmseg is not initial.
    sort t_mkpfmseg by budat ascending
                       matnr ascending.
    select     matnr
               lgort
               labst
               umlme
               insme
               einme
               speme
               retme
               from mard
               into table t_mard
               for all entries in t_mkpfmseg
               where matnr = t_mkpfmseg-matnr and
                     werks = p_werks and
                     lgort in s_lgort.
    select    matnr
              maktx
              from makt
              into table t_makt
              for all entries in t_mkpfmseg
              where matnr = t_mkpfmseg-matnr.
    endif.
    loop at t_mkpfmseg into w_mkpfmseg where budat = l_date.
       loop at t_mard into w_mard where matnr = w_mkpfmseg-matnr.
          w_opstock-matnr = w_mkpfmseg-matnr.
          if w_mkpfmseg-shkzg = 'S'.             " Receive
               w_opstock-rdmbtr = w_mkpfmseg-dmbtr.
               w_opstock-bmenge = w_mard-labst + w_mard-insme + w_mard-speme
                                    + w_mard-einme +               w_mard-retme
                                    - w_mkpfmseg-menge.
          elseif w_mkpfmseg-shkzg = 'H'.         " Issue
               w_opstock-idmbtr = w_mkpfmseg-dmbtr.
               w_opstock-bmenge = w_out-bmenge + w_mkpfmseg-menge.
          endif.
              w_opstock-bdmbtr = w_out-rdmbtr - w_out-idmbtr.
                   append w_opstock to t_opstock.
                  clear w_opstock.
       endloop.
    endloop.
    loop at t_mkpfmseg into w_mkpfmseg where budat = p_date.
       loop at t_mard into w_mard where matnr = w_mkpfmseg-matnr.
         clear w_makt.
         read table t_makt into w_makt with key matnr = w_mkpfmseg-matnr.
         if sy-subrc = 0.
          w_out-budat = w_mkpfmseg-budat.
          w_out-matnr = w_mard-matnr.
          w_out-maktx = w_makt-maktx.
          w_out-lgort = w_mard-lgort.
          w_out-mblnr = w_mkpfmseg-mblnr.
          w_out-bwart = w_mkpfmseg-bwart.
          w_out-shkzg = w_mkpfmseg-shkzg.
            if w_mkpfmseg-shkzg = 'S'.             " Receive
               w_out-rmenge = w_mkpfmseg-menge.
               w_out-rdmbtr = w_mkpfmseg-dmbtr.
               w_out-imenge = 0.
               w_out-bmenge = w_mard-labst + w_mard-insme + w_mard-speme
                                    + w_mard-einme + w_mard-retme
                                    - w_mkpfmseg-menge.
            elseif w_mkpfmseg-shkzg = 'H'.         " Issue
               w_out-imenge = w_mkpfmseg-menge.
               w_out-idmbtr = w_mkpfmseg-dmbtr.
               w_out-rmenge = 0.
               w_out-bmenge = w_out-bmenge + w_mkpfmseg-menge.
            endif.
               w_out-bdmbtr = w_out-rdmbtr - w_out-idmbtr.
                   append w_out to t_out.
                  clear w_out.
    endif.
       endloop.
    endloop.
    write: / 'Material' , 12 'Description' ,40 'Location', 50 'Opening stock',70 'MvT',
              83 'Receipts' , 102 'Issues', 118 'Amount',135 'Balance Quan', 155 'Balance Amount'.
    loop at t_out into w_out.
       write: / w_out-matnr, 12 w_out-maktx, 40 w_out-lgort.
       clear w_opstock.
       read table t_opstock into w_opstock with key matnr = w_out-matnr.
       if sy-subrc = 0.
         write: 45 w_out-bmenge.
        endif.
       write: 70 w_out-bwart,75 w_out-rmenge,92  w_out-imenge,
             110 w_out-bdmbtr, 130 w_out-bmenge, 150 w_out-bdmbtr.
    endloop.
    *&      Form  SUB_VALIDATE_DATE
    FORM SUB_VALIDATE_DATE.
        select budat
               from mkpf
               into table t_date
               where budat = p_date.
        if t_date is initial.
           message e001(zks) with 'select another date range'.
        endif.
    ENDFORM.                    " SUB_VALIDATE_DATE
    Edited by: Sri on Feb 18, 2009 8:31 AM

  • NEW FIELDS FOR PRICE DETERMINATION in MM

    Hi all experts,
    we have added new field in customizing so that in the purchase order in MM we can use new fields for price determination.
    However we do not finde the exit or program  were we can set a value for these fields.
    for instance, we want to differenciate countries belonging to the EU and not. We create a yes/no field and get its value from table T005 where each country has this info. Everything seems to be ok, but our field is not populated into KOM* tables and therefore we don't go through the condition price...
    Any ideas? Thanks.

    Hi,
    You can try using  Info Record.
    Thanks,
    Venkat

  • Selection field for vendor categorisation

    Hi,
    I have request to find a proper field for letter code and description in vendor master for vendor categorisation. (Like for example Order currency field in Vendor Master) The field must be minimum three caracter long.
    Further this vendor categorisation data will be required to appear in some reports.
    Can anyone tell me the way to implement this vendor categarisation code.

    Hi,
    You can use many fields for vendor categorisation purposes such as mainting SIC code, Industry type etc. The best place to do this is General section/control tab. there are fields under referece data section such as LFA1-KRAUS Credit Info number that can be used or you can append the LFA table with custom fields. Sometimes these fields are suppressed and not visible in Vendor master screen. To enable them you need to navigate to img-financial acc.-acc. receivable&payable--vendor accounts -- master data -- Preparations for Creating Vendor Master Data -- Define Screen Layout per Activity (Vendors) and change from suppressed to optional or mandatory.
    Hope this helps

  • QM-Customer Info record-QV51(Need Table & field for - "Before delivery" -)

    Hi friends,
    In the qm Customer info record(qv51), there are 3 radio buttons under quality inspection field-(Before delivery,After delivery,By customer).. I am checking the table " QVDM" .I am able to locate the fields (1.After delivery,and 2.By customer ) .
    But I couldn't locate the field for " Before delivery" in the table QVDM.  1. Is it in some other table ? 2. If it is so, in which table I can find the field for " Before delivery" ? Help me.
    Regards,
    Mani

    By default system assumes before delivery unless one of the indicators "After delviery" or "By Customer" is set.
    There is no specific indicator for "Before Delivery"
    FF

  • Fields for Selection on selection screen - Data Dictionary

    Hi,
    I have an issue while selecting the required fields for selection on the Standard table.
    VBAK --> Settings > Fields for Selection> Select required fields and save it as a variant.
    It looks good for that day but it again changes to the standard selection fields on the selection screen.
    Is there any way that i can keep the Fields for selection on the selection screen ?
    Any suggestion will be appreciated!
    Regards,
    Kittu

    Hi Kittu,
    The SE16 tool generates Selection Screens automatically for the Table and chosen fields therein the user selects. Unfortunately the tool is User Independent, thus other users can change the fields for selection thus rendering any Variants created useless. This is because of internal numbering identifiers for fields instead of field names making up the variant. SE16 has always being regarded as a development tool hence its limited functionality.
    I however may suggest that you could utilise ABAP Queries instead by way of transaction SQ01/SQ02 or SQVi. These may offer you a better solution.
    Best of luck,
    Derrick Hurley
    ABAP Development Workbench
    SAP
    Edited by: Derrick Hurley on Mar 31, 2011 4:01 PM
    Edited by: Derrick Hurley on Mar 31, 2011 4:01 PM

Maybe you are looking for

  • Printing double sided odd number of pages

    I have Adobe Reader 10.0.2 instalied on my iMac running Mac OS 10.6.7 with a Canon Pixma iP4200 printer. Since installing this version of Reader I have come across a curious problem with printing PDF files double sided with an odd number of pages. Fo

  • A Fluid Gallery from MySQL using PHP and various column widths

    I have decided to try the new Fluid Layout option in Dreamweaver. I pull information from a database (MySQL) and use php to present it. To show a gallery, I would pull the info and use the repeater code, and something like Tom Muck's horizontal repea

  • How can I get the inbox name of exchange?

    I wanna get the letters from exchange server, the code i writed below: Session session1 = Session.getInstance(new Properties(), null); session1.setDebug(true); Store store = session1.getStore("pop3"); store.connect(pop,-1,popuser,poppwd); Folder fold

  • CRC Error during Install

    I'm trying to install WebLogic 7.0 SP 1 on a Red Hat 9 box, and getting CRC errors. Any ideas? I've tried SP1, SP2, WebLogic 8.1 (though I need 7.0 SP 1, was just trying the newer version), both the net installer and package installer, all are giving

  • EJBContainer.createEJBContainer for maven project

    I have a simple javaee 6 app with a ejb I want to write a basic junit test that uses Embedded EJB Container api             System.setProperty("weblogic.home","C:\\share\\weblogic\\wls1212\\wlserver");             Properties prop = new Properties();