Link Button to User Table

Hi. I have tried to search for this but cant get anything. I know how to add a link button to a matrix column when the link is to an SBO Business Object. what i need to do is to add add a link button to a user table.

Hi,
   Sorry for delayed reply. I will be active in weekends.
STEP 1: Catch The Event
STEP 2: Load The New Form using code and Keep the form invisible
STEP 3: Assign The Key Value To The form through your coding
STEP 4: Navigate to Key value through code/write logic to get retrive details for given Key value of scree
STEP 5: Make the form visible.
HTH.
With Regards
B.Ravi Shankar

Similar Messages

  • Link button to User Defined Object in Grid

    Hi,
    I'm using SAP B1 8.81 with B1DE.
    I have added a grid which is populated from a DataTable to a form.
    One of the columns in the grid contains the DocEntry of a User Defined Object.
    How can I display a link button on the grid ?
    Regards,
    Ben

    Hello Ben,
    You need to set the column object type.
    Dim oGrid As SAPbouiCOM.Grid = oForm.Items.Item("MyGrid").Specific
    oGrid.Columns.Item("DocEntry").Type = BoGridColumnType.gct_EditText
    Dim oEditCol As SAPbouiCOM.EditTextColumn = oGrid.Columns.Item("DocEntry")
    oEditCol.LinkedObjectType = "2" 'The SDK documentation says you should use the value 0, but in previous versions it didn't work, so I recommend you user a value other than -1 or 0
    You then need to catch the et_MATRIX_LINK_PRESSED event and other your user form...
    From the SDK Help File regarding the BoLinkedObjectType enum
    lf_None -1 No target object
    lf_UserDefinedObject 0 User-defined object
    lf_GLAccounts 1 G/L account object
    lf_BusinessPartner 2 Business Partner object
    lf_Items 4 Item object
    lf_SalesEmployee 53 Sales employee object
    Regards,
    Vítor Vieira

  • Error while linking udf to user table.

    Hi All,
    If i am gong to joined my UDF to user table by using option then alphanumeric size of that udf changes to 8 from 15. In such condition when i m going to update ths udf thn it is giving error as "Alphanumeric column size cannot be decreased".
    Reply ASAP

    Hi swapy
    put the udf size as 8 before the computer does the work.then try to attach the udf.

  • Add Link button in UDF(User Defined Field)

    How Can be add link Button when create new user Defined Field ?

    Hi,
    You can bring the link button in user designed forms using SDK, but you cannot create the Link button in SAP standard forms. It's hard to bring the link button in SAP standard forms.
    Raja.S

  • Set Link Button to UDF

    hi guys,
    I want to set a link button to user define table field.
    I read the available topic in forum. But I am not able to get it. Please anyone help me regrading this problem.
    If possible give explanation through code.
    Thanks in advance.

    I´m sorry to tell that you can only show system objects and UDO objects using the link buttons. What I don´t know is if your for is for a UDO, SBO is able to know that it should open that form or it opens the standard one.
    In case it doesn´t show the form you need, what you could do is use the linked button for a user defined object, set the linked object property to BoLinkedObject.lf_None and then handle the On_Click event and show your user form.
    Regards,
    Ibai Peñ

  • Command link / button action is not taking place if i use it in iterator.

    Hi,
    I am new to ADF, i am facing 1 issue while implementing ADF mobile browser application.
    Issue: command link / button action is not taking place if i use it in iterator. its just refreshing the page it self and displaying as no records.
    Scenario is i am populating the search results in results page from search page using iterator, i want to get the complete details in different page (results page -> details page) .
    I have tried in different ways.like
    case1:
    <tr:panelGroupLayout id="pgl2" layout="vertical" styleClass="af_m_panelBase">
    <tr:panelHeader text="#{classviewBundle.SEARCH_RESULTS}" id="ph1"/>
    <tr:iterator id="i1" value="#{bindings.SubjectVO1.collectionModel}" var="subject"
    varStatus="subIndx" rows="100">
    <tr:panelBox text="#{subject.Subject} #{subject.CatalogNbr} - #{subject.CourseTitleLong}"
    styleClass="af_m_listingPrimaryDetails" id="pb1">
    <f:facet name="toolbar"/>
    <tr:table var="ssrClass" rowBandingInterval="1" id="t1" value="#{subject.children}"
    varStatus="clsIndx" rowSelection="none"
    binding="#{SessionBean.subjectTable}" verticalGridVisible="true"
    emptyText="No Records" width="100%">
    <tr:column id="c9" sortable="false" styleClass="width:100%">
    <*tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"*
    id="commandLink2" styleClass="af_m_listingLink"
    *action="#{pageFlowScope.BackingBean.searchaction}"></tr:commandLink>*
    //remaining code
    in this case commandlink action is not able to invoke serachaction() method
    case 2:
    <tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"
    id="commandLink2" styleClass="af_m_listingLink"
    action="classdetails}"></tr:commandLink>
    in this case its not able to navigate to classdetails page.
    I gave correct navigation cases and rules in taskflow,but its working fine when the command link is out of iterator only.
    i tried with actionlistener too.. but no use.. please help me out of this problem .
    *Update to issue:*
    The actual issue is when i use command link/button in an table/iterator whose parent tag is another iterator then the action is not taking place.
    the structer of my code is
    < iterator1>
    #command link action1
    < iterator2>
    #command link action2
    </ iterator2>
    < /iterator1>
    #command link action1 is working but "#command link action2" is not...
    Thanks
    Shyam
    Edited by: shyam on Dec 26, 2011 5:40 PM

    Hi,
    To solve my problem I used a af:foreach instead.
    <af:forEach items="#{viewScope.DataBySubjectServiceBean.toArray}" var="text">
    <af:commandLink text="#{text.IndTextEn}" action="indicator-selected" id="cl1">
    <af:setActionListener from="#{text.IndCode}" to="#{pageFlowScope.IndicatorCodeParam}" />
    </af:commandLink>
    </af:forEach>
    By the way you need to convert the iterator to an Array using a ManagedBean.
    public Object[] toArray() {
    CollectionModel cm = (CollectionModel) getEL("#{bindings.TView1.collectionModel}");
    indicators = new Object[cm.getRowCount()];
    for(int i=0;i<cm.getRowCount();i++){
    indicators[i] = cm.getRowData(i);
    return indicators;
    public static Object getEL(String expr) {
    FacesContext fc = FacesContext.getCurrentInstance();
    return fc.getApplication().evaluateExpressionGet(fc,expr,Object.class);
    Hope that helps-
    Edited by: JuJuZ on Jan 3, 2012 12:23 AM
    Add getEL Method

  • DTW, UDF and User Tables

    I always see posts about DTW, so I tried looking to see if i could find what I need, but I couldn't...
    The thing is, I've created a UDF called IsExclusive to Item Master Data, and I've set Valid Values for it (Yes and No)
    Now, I'm trying to import the items via DTW, and I needed it to use one of the valid values i've set before.
    In other words, I need it to work like the Ship Type field. While importing I choose a number in my spreadsheet and DTW automatically reads that number in the correct table and shows me the shipping type.
    The IsExclusive field is one example, I'm also going to need to link DTW to an UDF that's linked to an user table.
    Is any of it possible?
    Thanks in advance,
    Dan Souza

    Danilo,
    If I understand this correctly, you UDF in the Item Mater ( U_IsExclusive ) has been definied with Valid Values for Field.  I presume they look like
    Code - Name
    Y - Yes
    N - No
    I think you would know that in your DTW template, you simply have to enter 'Y' or 'N' in the U_IsExclusive column.  SAP will automatically link this to Yes or No and display in the same in OITM.  I am not sure how better you want to handle this.
    What is your thought on the UDT. Can you show an example of how your values are defined in your UDT.
    Suda

  • How to use user defined object with linked button

    Hi experts
    Can I use user defined table data with linked button. If yes then how. plz give me sample examples.
    Regards
    Gorge

    If you have an UDO in your form, or any other, the FormDataLoad eventhandler should be used.
    Take care, it is not inside the eventhandler.
    for VB:
    Select SBO_APPLICATION in the classes, and select FormDataLoad event
    Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
    in C#
    Add a new eventhandler as
    // declaration
    SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(ref SBO_Application_FormDataEvent);
    // eventhandler:
    public void SBO_Application_FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)

  • Linking user table with system table

    Hello, I'm trying to link a user table with IC table in order to asign many sales person to a customer.
    I've created a new button in the IC form. When clicked a new form is opened to asign sales person to the IC. Now I need to retrieve the records assigned to this IC. How can I do that???
    Regards.
    Angel.

    Hi Angel,
    I would put a matrix in the new form where you could see/asign/delete the sales person.
    Have a look at this post where you can find a great code from Sebastian Danober to fill a matrix from a recordset.
    Another option could be to modify the existing IC form and add a new folder with a matrix where you can manage the sales person.
    Check this other post with code for adding folder to an existing form.
    Regards,
    Ibai Peñ

  • Best way to link user form with user table

    Hi all.
    What is the best way to link an user form with a user table (with all of the functions, add, update...)? I have created a simple form, and the question is next:
    depending the type object of the user table (document, master...) i have facilities to imlement the basic operations in the form?  if i create an UDO i have the functions but i want to use the form that i created with a screen painter.
    Thanks.

    Hi again i want add a new comment please.
    If i want do all functions (add,update...) of my form in my user table, and i want my user table is a <b>type document</b>? how can add new lines in my user table with objet <b>type document</b>? because when i make the instance i nedd to say what type of document is (item,order...) and when i do an add(), not add() in my user table. In what moment or how can assign that the add,update functions... affect in my table?
    Thanks again.

  • Linking UDF to User Defined Table

    Dear Experts,
      I have a UDF on the batch tables that I would like to link to a User defined table. After creating the link, the UDF drop down cannot open up to display anything. The drop down box is there on the UDF but cannot open or drop to display anything from the user defined table.
    Has anyone came across this problem before ?
    Regards,
    Edited by: MARTIN KAMAU on Jan 4, 2011 10:12 AM

    Hi Martin,
    When you click on the UDF for the drop-down, do you see an option for "Define New"?
    What version of SAP are you using?
    Regards
    Sudatt

  • Link between User Name in user table and Personla number in HR

    Hi
    Could any one let me know the link between the User Name field in User table and Personal number in HR table. Pls let me know the table name which shows the relation between these two fields.
    Regards,
    Ram

    HI Ram
      The table which contains this data is PA0105. The value of field USRTY should be '0001'. For example if u want to get the UNAME related to an employee.
    SELECT usrid
      FROM pa0105
    WHERE pernr EQ p_pernr
          AND usrty EQ '0001'.
    Please award points if u found this helpful

  • How to add link button in Query generator

    Hi,
    I am trying to add link button in Query reports. While the query is for system table it automatically gives columns with link button  but how to do this for user Tables.

    Hi,
    Even by standard, this is not possible only when you using UDO.
    You can create your form with Matrix, and use FlushToDataSource Method to load large amount of data inside. Now you can program the linked button click (et_MATRIX_LINK_PRESSED) by columns.
    Regards,
    J.

  • Adding keys to user tables

    In the process of trying to add a key to a user table, I am being told that there are other users attached to the database.  The only user attached to the database is me and I have no other connections running that I know of.  The process continues if I click on the ignore button but then fails with the message "other users are currently connected to the database".  Any suggestions?

    Hi Greg,
    Which database platform are you using?
    If it's SQL then I recommend you check the Current Activity node in SQL Enterprise Manager (or the Activity Monitor in SQL Server Management Studio if you are using SQL 2005). If there are any processes linked to the database then they will show up in this screen, regardless of their source (e.g. SBO, ODBC etc). If you are sure that the process can be safely removed then you can right-click it and choose Kill Process. Repeat until there are no unwanted processes on the database.
    An alternative is just to stop and restart the SQL Server service but obviously you'd need to make sure that no users were connected to it via any applications.
    Hope this helps,
    Owen

  • Linked Button error in a subReport with Crystal Reports

    Hi expert,
    I have a designed a subreport with Crystal Report, and I have add the Sap Linked button (OLE Object), to allow the user to click on the linked button and open the relativa Sap Document (Invoice, Delivery, etc etc).
    In the hypetetx linked property, I have write the link
    'http://$b1$/link=OINV&key=1'
    In this way all is ok, but In my query I have the name of the table and the DocEntry, so I try this way:
    'http://$b1$/link='&{Comando.Table}&'&key='&{Comando.DocEntry}
    If I try to open the document, I retrieve the error: You are not permitted to perform this action. Authorisation Path: Help.
    I don't understand if the problem is the authorization (i am manager, superuser) or if I had write in a wrong mode the hypertext link. (maybe the Apex?)
    Anybody can help me?
    Regards
    Marco

    Hi Marco,
    if {Comando.DocEntry} field is string type try this code:
    'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText(ToNumber({Comando.DocEntry}),0,'','')
    else if DocEntry field is number type try this code:
    'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText({Comando.DocEntry},0,'','')
    Regards,
    Domenico
    Edited by: Domenico Lovino on Feb 23, 2012 10:04 AM

Maybe you are looking for