Two Business Objects to fill a Data Grid/table using Anchors?

Hi,
I have a SAP standard tile were a table (grid) is filled by an Business Object. I want to add an additional column and retrieve the value from another Business Object.
My questions
1) Can I use Anchors to automatically set the relationship between two Business Objects A & B, so that I can just Drag & Drop an additional field from Business Object B to the DataGrid of Business Object A in the design screen without writing additional code?
2) Some BO's do come with a predefined relationship to other BO's, but in the case of I have to write a supply function do I have to use a specific "Data Source Type" such as "Business Object", "BusinessQuery" or "Business CollectioN"?
3) I already tried to write a supply function, but I realized that the system does return for some BO's or BS's a object instance, if I call "gFactory.newBusinessQuery". Is there any logic/restriction behind?
I know I can use RowLoaded2 and a unbound column, but I want to know if this approach is also possible?
Thank you for any help,
Regards,
Andreas

Hi Andreas,
The answer to your question is YES. You can very well do it without any changes at the code level.
The scenerio can be implemented using a concept called JointField Mapping in MAS.
Scenerio 1 :
If you want to display the extra field from another BO in a list tile on the click of a search button from the search tile , then
Please do the following :
1. Select the Busines Query that you have associated to the search tile and go to properties from the View Designer.
2. In the properties, Click on the Joint Field Mapping and select the BO where the extra field id present and select the primary key, Segment Field associated, (extra field)BO Property that you want to display in the list tile.
2. Add a new control (new Field) in the List tile - ie, From the Toolbox (Tileset COntrols).
3.Go to properties of the newly added control. Associate the anchor as the same achor as the list tile was pointing to earlier. for eg : Y_BOCAPGEN.
4. Then Go to BCOLFieldName property and give the property name as the newly added BO property name(New field).
After everything is modelled, You will be able to see the extra field in your application!!!!
NOTE : Ofcourse, After the Successful generation.
Scenerio 2 :
If you want to display an Extra Field in a Detail tile,
1. Go to Relationship of the BO from the Detail tile and go to properties.
2. In the properties, You can find the Joint Field Mapping porperty.
3. This property is again modelled as explained in scenerio 1.
Hope, It would have definetly helped and answered your query.
Have a good day!!
Best Regards,
Vignesh Ravikumar.

Similar Messages

  • Can we link two business objects  in workflow?

    Dear All,
    Can we link two business objects  in workflow?My problem is that I have to take a standard BO for triggering my z workflow .But later  in one step  I am using BO which is Z as I am calling a standard Sap transaction in one of the method inside Zobject.
    Please let me know how to go for it .
    Kind Regards,
    Anshu Kumar

    Hi Anshu,
    You can use the standard BO as the BO for your workflow and trigeger the workflow from its event. To pass values from the standard BO to the custom BO used in the activity step, you need to do proper binding between the std and custom BO in the activity step.
    Do proper binding between event -> workflow -> task container.
    For assistance on binding in workflows refer to the followng links:
    http://****************/Tutorials/Workflow/Workflow.htm
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    /people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i
    Hope this helps!
    Regards,
    Saumya

  • Connect two Business Object (BUS2038 and BUS0010) in Workflow!

    Hi experts!
    I have a Workflow based in BUS2038 (Maintenance Notification), I can see attributes like Functional Location (code).
    My problem is, i can´t put Functional Location (Description) that is an attribute in BUS0010 (Functional Location) with an input Functional Location (code).
    BUS2038
    Input: Notification number
    Output: Functional Location (code) (attribute)
    BUS0010
    Input: Functional Location (code)
    Output: Functional Location (description) (attribute)
    I want put Functional Location (description) in a mail step.
    How I can achieve this?
    Thank in advance

    Thank you Rick Bakker, I implemented this BUS0010 in BUS2038 (and delegate) but when I was testing, the link between two business objects is <nothing>. Do you need any program for connect both Business Objects?
    Thank in advance!

  • Error While Inserting Data into table using OAF

    Hi Experts,
    I am learning OAF; i am trying into insert the data into table using OAF. I followed the below procedure.
    My table(OLF_TEST_TBL) Columns:
    EmpID (Number), Ename(VARCHAR2 100), Sal Number, and who columns.
    1. created Application Module (AM).
    package: oracle.apps.mfg.simplepg.server
    name: oaf_test_tbl_am
    2. created simple page
    name:EmployeePG
    package:oracle.apps.mfg.simplepg.webui
    3. Assigned the Application Module to Page
    4. Created Entity Object(EO)
    name:oaf_test_tbl_eo
    package:oracle.apps.mfg.simplepg.schema.server
    schema:apps
    table:OLF_TEST_TBL
    note:
    1. EMPID column is selected as primary key
    2. selected create method, remove method and validation method.
    3.checked generate default view object
    VO:
    name:olf_test_tbl_vo
    note: Entity Object was assigned to VO
    Coming To page:
    page main region:EmployeeMainRN
    1.under main region i created one more region using wizard
    selected AM and VO, region style-default single column
    2. under main region i created one more region
    region style- pagebuttonbar, ID:pagebutoonsRN
    3. under pagebuttonRN, created two submit buttons(ID:SUBMIT, ID:CANCEL).
    In AM java page:
    created a method to insert row and for commit.
    Insert Method:
    public void insertrow(){
    OAViewObject vo=(OAViewObject)getoaf_test_tbl_vo1();
    if(!vo.isPreparedForExecution()){
    vo.executeQuery();
    Row row=vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    Commit Method:
    public void savaDataTooaftesttable(){
    getDBTransaction().commit();
    In EmployeeMainRN, created a controller.
    In this controller process request method, 'insertrow' method was called.
    import oracle.apps.fnd.framework.OAApplicationModule;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    if (!pageContext.isFormSubmission())
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("insertrow");
    To commit the transaction when SUBMIT button pressed, commit method was called in process form request method.
    import oracle.apps.fnd.framework.OAViewObject;
    public void processformRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("SUBMIT") != null)
    am.invokemethod("savaDataTooaftesttable");
    Error After clicking the submit button_
    I ran the page, page was opened successfully. Once i enter data and click submit button, it's giving the following error.
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example). If the browser's navigation buttons were not used, this error could have been caused by coding mistakes in application code. Please check Supporting the Browser Back Button developer guide - View Object Primary Key Comparison section to review the primary causes of this error and correct the coding mistakes.
    Cause:
    The view object oaf_test_tbl_am.oaf_test_tbl_vo1700_oaf_test_tbl_vo1_practice_test_prc1_oracle_apps_mfg_simplepg_server_oaf_test_tbl_am.oaf_test_tbl_vo1 contained no record. The displayed records may have been deleted, or the current record for the view object may not have been properly initialized.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    Experts, Kindly help me why i am getting this error.
    Awating your replies.
    Thanks in advance.

    If you dont want to create message. You can throw exception like below as well
              throw new OAException("Emp Id is "+empId+" and employee name is "+empName, OAException.CONFIRMATION);Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to delete a single data from table using control file

    I want delete a single row data from table using sql loder control file
    Edited by: 977940 on Dec 19, 2012 9:00 PM

    977940 wrote:
    I want delete a single row data from table using sql loder control file
    Edited by: 977940 on Dec 19, 2012 9:00 PMWhy?
    And how do you imagine this happening with sqlloader?
    The entire purpose of sqlloader is to load data (hence, the name sql*loader*) into a table from an external source. If you want to delete rows from a table, you use the sql DELETE statement.
    What is the business problem you are trying to solve?

  • How to trace the data dictionary tables used in the standard transaction

    Dear all,
    Help me to trace the data dictionary tables used in the standard transaction "crm_dno_monitor". I need to find the tables where the data are stored.
    or
    Tell me generally how to find the tables used in the standard transaction.
    Regards,
    Prem

    Hi,
    Open the program of that standard transaction in object navigator or SE80..
    Then click on the dictionary structures tab..
    U can find the database tables used in this transaction..
    \[removed by moderator\]
    Regards,
    Rakesh
    Edited by: Jan Stallkamp on Jul 29, 2008 5:29 PM

  • How to purge data cache table using command line

    Hi:
    Is there a way to purge the data cache table using command line?
    thanks!

    Thanks, Mike.
    I'm thinking about the ldconsole provided with ALDSP.
    The ldconsole has a link for purging the cache. Is there anything I can leverage from there? Is it a JMX component that I can call?

  • Business Objects to pull Cognos data

    Hi All,
    I would like to know whether anyway to pull Cognos data into Business Objects?
    1. Pull data thru Universe from Cognos Cubes?
    2. Pull data using Crystal reports from Cognos Cubes?
    3. Or any otehr method of pulling data from Cognos Cubes?
    If nothing is possible I would have to explore using the RDBMS Tables to build Universe, WebI and then present in Xcelsius. Anybody is aware of getting data from Cognos?
    Thanks in advance.
    Alex.

    You need to create a universe based on the RDBMS source. Look at the COGNOS data flow to create universe. Have you found any other leads?

  • Code for Custom Business Object and Adding/Updating Data

    Hi,
    I would like to update/insert data thru Custom Business Object to sql Server.Pls let me know is it possible in MSA.If yes I would appreciate if you can share the code/Process in this forum.
    Thanks and Regds
    Harish

    Harish
    Depending on what data you update you need to do the following:
    If updating SAP tables or customer tables which are an extension of a SAP object like business partner, material, activity or similar:
    1. Create the extension of the data object via the easy enhancement workbench (EEWB). This will also create mapping functionality from MSA to CRM Server and extend the BDocs.
    2. Go to the BDoc modeler. Find the sBDoc for data exchange (type Write BDoc), that contains your object and check whether the new segment is there.
    3. In the Mobile Application Studio (MAS) you can now create a custom business object related to the standard sBDoc mentioned in 2 which is mapped to the new segment. This way the data exchange happens together with the main object
    4. Drag & drop the fields of the new BO to a new tile, and link that tile to the existing main object in the UI via the appropriate relation.
    If you would create a new business object / BDoc for a set of attributes belonging to a main object and not use an extension of the existing BDoc then the data would get its own flow and when replicating it would not come together with the main data. This can lead to data inconsistencies and in surplus effort administrating this data.
    If you have your own objects not related to a SAP object, you can do it the following way:
    1. Create your own table(s)
    2. Create a Write sBDoc on the table(s)
    3. Create BO's on each BDoc segment / table
    4. (as above)
    Hope this helps,
    Kai

  • How to get the page numbers in the PrintAdvance Data grid without using Vbox/Vgroup header or footer

    hi
    I want to print the page numbers for the data in Advance Data grid, For printing I am using print advance data grid , but unable to print the page numbers with that.
    actually i tried with Vbox/Vgroup, but when tha data is more because of this it is strucking, and more over imageRenderer in the PrintAdvancedataGrid not printing.
    can any one help in this regard?

    Image Caches hold images you've already loaded so the next time you request them, they can be made available without network latency.  This assume for your DG, that all images you need to print have been loaded by, for example, whatever DG the user was looking at before hitting Print.  This is easy when there are only a few icons used to show status, but won't work if each row has a different image unless you've somehow loaded up all of those images beforehand.
    Spark BitmapImage has an Image cache, but some third party ones are discussed here:
    http://thanksmister.com/2009/01/18/superimage-redux/
    -Alex

  • How to maintain  data in tables using maintenace view of the tables in ECC6

    Hi,
    I have  two table  SBUSPART (Business partner) and STRAVELAG (Travel agency).
    SBUSPART  is foreign key table while STRAVELAGE is a reference table.  The relationships is :
            SBUSPART-MANDANT          =     STRAVELAGE-CLIENT
            SBUSPART-BUSPARTNUM    =     STRAVELAGE-AGENCYNUM
    now, I create a maintenance view ZVI_HT_PARTNER in which SBUSPART is primary table and STRAVELAGE is secondary table. I have also created maintenace interfaces by generating maintenance modules in function group zht_fg. Authorization group is SUNI  and maintenance type is one-step, the number maintenace screen is 100.
    Now I want to maintain the data in tables SBUSPART and STRAVELAGE together in the maintenace view. If i want to enter a new partner dirctly I have to enter it in table SBUSPART first, only then could I enter the corresponding data in STRAVELAGE.
    in older version I easyly do this by the way: in maintenace screen of zvi_ht_partner ( in se11) I choose:  system/ services/table maintenace/Enhance.Tab.maintain.
    but in ECC6 when I choose:  system/ services/table maintenace, there is no Enhance.Tab.maintain instead there are two options Extended table maintenace and View cluster maintenace.
    So in this case I don't know how to tackle this problem, Please help me if you have a solution. 
    Thanks,

    Hi,
        I suppose 'Extended table maintenace ' would be same as 'Enhance.Tab.maintain'.
    Regards,
    Himanshu

  • GRC AC 5.3 SP10: Query Data Mart Tables using MS Access ODBC

    Dear all,
    I have created a ODBC-connection from MS Access on my computer to the GRC AC 5.3 SP10 Data Mart Tables according to the Guide "Data Mart Reporting with SAP BusinessObjects Access Control 5.3".
    Now I want to start a query on e.g. DM Table GRC_DM_CC_MGMTTOT to get information on the AC RAR Management Reports.
    1. In Access I  create a new DB
    2. File -> External data -> Link Tables: ALL Oracle Table of the connected Oracle GRC Table are listed.
    3. When I select table GRC_DM_CC_MGMTTOT to be linked to my new DB Access starts to link to a lot of tables like TSTAT_, TT2C_ and TTEC_* in the Oracle DB!  Are these links really required to query table GRC_DM_CC_MGMTTOT?
    This connection attempts make my computer busy for a very long time so I have to end Access using the Task Manager.
    Does anybody has some experience with connecting MS Access to the Data Mart tables? Unfortunately we have no license for Crystal Reports so we need to get this running MS Access.
    Thanks and regards,
    Markus
    Edited by: Markus  Richter on Feb 5, 2010 4:06 PM
    Edited by: Markus  Richter on Feb 5, 2010 4:10 PM

    Markus,
    Please ensure you are using the correct ODBC driver with your Oracle data base.  You can verify that with your DBA.  I have successfully connected SQL Server, MaxDB and Oracle DB's to MS Access.
    In addition, if there is a significant amount of data in the data mart table, it takes MS Access a long time to download that data.  E.g. for the GRC_DM_SOD_ACT table in my internal system, it took about 10 hrs to download to Access.
    Please feel free to ping me if you have any specific questions regarding the Data Mart.
    Thanks!
    Ankur
    SAP GRC RIG

  • Refesh WEb service data control TAble using poll

    Hi, I have to you question about how to refresh table (web service data control table). Poll Object does refresh the entire page (table has a partial trigger set to poll).

    Hi, I have this code, but poll stil refresh whole page instead onl;y table
    public class Tom implements Serializable {
    private RichTable table;
    public Tom() {
    public void setTable(RichTable table) {
    this.table= table;
    public RichTable getTable() {
    return table;
    public void Refresh(PollEvent pollEvent) {
    AdfFacesContext.getCurrentInstance().addPartialTarget(table);
    }

  • How to load data into table Using Script Task

    We have a directory/folder where we have a file. We need to insert the File Created Date , File Name , Extension into the database table of Sql server by using Script Task.
    So could you please suggest , how to frame the connection string , fetch the file details and insert the data into the database table using Script Task of SSIS 2008

    You can achieve it as follows using standard script task
    1. Add a ForEachLoop container to point to your directory to iterate though the files. Add a variable of type string inside loop to get file name of each file it iterates. Choose option Filename and extension. Add a variable to just store extension part
    (FileExtension), set EValuateAsExpression true for it and give expression as below
    SUBSTRING(@[User::FileName],FINDSTRING(@[User::FileName],".",1)+1,LEN(@[User::FileName]))
    2. Add a script task inside loop and pass filename variable as a read only variable to it. Crete a new variable to get creationdate and pass it as ReadWrite. Inside write code as below
    Public Sub Main()
    ' Add your code here
    Dim f As New System.IO.FileInfo(Dts.Variables("FileName").Value.ToString())
    Dts.Variables("FileCreatedDate").Value = f.CreationTime
    Dts.TaskResult = ScriptResults.Success
    End Sub
    3. Add a Exec SQL Task after Script task inside loop and give a query like below
    INSERT INTO TableName (FileName,CreatedDate,Extension)
    VALUES(?,?,?)
    and in parameter tab map the parameter placeholders 0,1 and 2 to @[User::FileName],@[User::FileCreatedDate] & @[User::FileExtension] variables
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SAP Business Objects 4.1 - American Date Format Issue

    This issue is something that keeps arising, if your viewing a crystal report, or building a new Webi report in 4.1 and viewing it, the date format seems to come out as M/D/YYYY HH:MM:SS, this never happened in 4.0.
    I will give an example, today I updated a 4.0 to 4.1 using the update path in a development server, and updated to 4.1 SP03 which is the latest. When I decided to write a Web Intelligence Report or create a Crystal report and publish this, all the date formats came out in American date format, and not the standard English one DD/MM/YYYY HH:MM:SS anymore. However if I go to the Live server which I haven't yet updated and is still on 4.0 SP04 Patch 11 and perform exactly the same its in English format as it always was.
    Can someone please enlighten me to what has changed from 4.0 to 4.1 in terms of configuration regarding the date formats changing.
    My server regional settings are English, and using the default GMT date time, so is my machine. 4.0 works 4.1 doesn't work the same.
    I have tried changing the .prm files in the connectionserver\dataaccess folder as well, this doesn't seem to make a difference and also used LOV's in universe objects and when using these in prompts you get ameican format. I have also changed the preferences in the BI Launch Pad to view English locale and the GMT date time for Greenwich Mean Time. 
    Please can someone advise or suggest where I am going wrong here and how to solve this.
    Many Thanks

    Thanks for your quick response. I have done the check on the universe design tool. I have tried the options - Migration forced and set English (UK). I purged the LOVs and refreshed. No luck as yet. Checked the locale and seems to be fine. When i change the BI launchpad - Web Intelligence preferences to HTML, then the LOV displays correctly - dd/mm/yyyy. The behaviour only occurs when displaying LOV in Applet mode. Maybe will have to look at some Java settings. Thanks
    Added Update- I created a variable =GetPreferredViewingLocale() and tested in WEBI Report with a date object. When I use the BI launchpad Web intelligence Preference to HTML - it display EN_GB. When  I use the BI launchpad Web intelligence Preference to Applet - it display EN_US. It seems to be taking preferred viewing locale as US in applet mode is there a way to fix this please.
    Added Update - It was a bug on Infoview and has been resolved on SP4 . The ADAPT Ref is ADAPT01718291. Just finished testing on UAT, going Live next week with SP4. 

Maybe you are looking for

  • Where to get the AVC-I codec for premier pro cs6?

    I have searched all over the web to find this codec but I can't seem to find it anywhere? Does anyone know where it is? I am using windows 8 64 bit OS.

  • Header and line item headings in new page in Sapscipts

    HI, In Main window, I am displaying the header details. In a box below, I am displaying its item headings and item data details. Now when the no. of line items exceed the first page, they are displaying in the second page with other windows, but the

  • How to get Configuration or Mapping???

    Is it possible to get instance of Configuration or Mapping?? I mean an object who represent the XML file...

  • Batch determination for stock transport order in po for delivery.

    Dear All, When I am creating a delivery in VL10D against a srock transport PO, while determining batches, i am getting an information  message "batch determination is not possible because there is no search procedure". How to configure so that , the

  • How do I remove "sailthru" from Firefox?

    I have started to get "sailthru" suggestions while brousing. It says on their web site that you can stop it for 30 days but it will start up again. How can I perminetly remove it? That is one thing I could not find on their site. Pop up blocker and A