Skip to Content
avatar image
Former Member

UI lineked Button to Equipmentcard Serialnumber

Hello all,

I set a LinkedButton

oLinkBtn.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_InstallBase;

now I want to add a Linkt Button to Equipmentcards using the Manufacture serial number...

is there a way of easy doing?

Best regards

Oliver

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Jul 06, 2015 at 03:42 PM

    Hi Eric,

    The point is, that we have an external Program that delivers data. There are Information included, but the problem is, that I don't know if they are correct or not. So in this case I import everything into a UDT as UDO. And from this Point... all data that matches will be automatically proceeded. But in that case, information won't match the User get an interface to view and correct each values. One of the values is the Equipmentcard. there I do have some information... first. Object ID from foreign System (UDF) if it match... everything is fine, or I set this ID manually to the Equipmentcard. To look behind... I do have a couple things.. first is the CLF... but on any reason... sometimes the Serialnumber from SAP system is different from the foreign System (the external is the correct one because of reading from the System itself). ex. you get a delivery and the serial number get 15 digits... is the user able to write this to b1 at 100% for each item???? at any time at each day ...???not at all.... Or the System owned SN is different from the paper SN... some supplier do not have a field for big serials... and cut the first 5 digits... just an example...

    I though there was a way of "linking" it through the Linked Button without having the ID itself...

    If I do have the EquipmentID already then everything is fine and the user don't need the Serial number any the Field could be ignored. But if not... a "Click" to the serial number if it is correct (in this case the Linked button should be shown) the User will open the Equipment have a proof if it is the correct one, add the foreign ID to the UDF, update.. and if he is back to my UDO the correct EquipmentID get filled in... everything is fine...

    If there is no way of setting a linked Button I could Setup a non visible Edit field an search the Equipment at the time of Loaddata Event... and link this to the non visible Field EditText...

    The point is that here is a mismatch of external an internal Data... and it will only happen if these are different...

    But anyway, for each mismatch the process will only be needed once... never twice...

    for a equipment card.

    It is not a big deal to do this at Dataload event...

    Best Regards

    Oliver

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Oliver,

      Regarding length of fields, S/N are 36 characters wide and if not enought, you still can create a UDF on the Equipment Card (EC) to hold the real value.

      I don't know anything from your requirements besides what you're writting here, but I would perhaps have done differently:

      • To keep centralized the data regarding the EC and not to rely on links between tables,
      • To not made the UDT a UDO, except if you have specific requirements for this,
      • Use the UDT only to store data during imports.

      And in all cases, to not rely on users' entries 😉

      LinkedButton will be of no use in your case: meaning that if the related EditText contains any value (not necessarily valid) it'll be displayed with no check and if the user clicks on it, an error will be triggered (and uses a CFL instead: with partial data, if the user triggers it, search window will be narrowed to the fragment).

      My understanding is that the best (or least wrong) architecture relies mainly on the amount of data to import and the percentage which are incorrect.

      Regards,

      Eric

  • avatar image
    Former Member
    Jul 06, 2015 at 11:06 AM

    Hi Oliver,

    LinkTo property has to be updated to the field (EditText, Combo) which holds the value and depending if empty or not, B1 will display or not the link and the link will be functional or not.

    Regards,

    Eric

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 06, 2015 at 01:46 PM

    Hi Eric,

    ok sorry... I have not explained it correct.

    If the ID is clear, yes in this case the property LinkTo will match to the ID and the arrow will appear.

    But in this form I do not have the ID at this time. I do only have the serial number.

    If there is no way of linking it through the serial number that I have to get the ID in background?

    Best regards

    Oliver

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Oliver,

      No... But in such a case, I would first see how SAP is doing it (i.e. owner in all documents). And you'll discover that you can have two edit, exactly same sizes same positions and to link the LinkButton to the right item.

      Regards,

      Eric

  • avatar image
    Former Member
    Jul 06, 2015 at 02:10 PM

    Hi Eric,

    it is a UDO Form... there is no Object at this time... or the Field is "0", because of handling an Import session. Max be there is a serial number that is not pointed to the right EqipmentID or the Equipment ID is "0" like unknown. If the Serialnumber match to the right Equipmentcard the linked button will shown. (At the Moment because I linked this already to the field, but this not what i would like to do...)

    At the moment I colored the Field red or green... so the User should knows what to do...

    But I thought there were a way to set this little arrow linked by using the serial number...

    But if not, I have to add a button, that search the Equipmentcard by serialnuber and open the system window ...

    Best regards

    Oliver

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Oliver,

      Not sure to understand... EditText has a property suppress-zero and so the LinkedButton will be hidden. Else, makes it just a string and convert while saving.

      Besides this, a button to search to display a list... A CFL is nt what you need?

      May you post a screen-copy?

      Regards,

      Eric

  • avatar image
    Former Member
    Jul 07, 2015 at 07:55 AM

    Hi Eric,

    yes for B1 it is correct, but there are software vendors that won't have that much characters... but that is not the Point... the users on every side of the process makes mistakes... and the System that delivers the SN is correct. You are right and this is the problem so "Usersentry" an each side. For this i Use a UDF to handle that with an reference importer through DTW. Most of the imports will be ok.

    The reason why i use an UDO is that I have to import a lot of stuff to different Tables and as well informations that sap will not provide... And I nee this for different forms and it is used at many places in my add-on and will be shown on some Systemforms as well. There are to many fields I need and it is not nice to add all these fields to Systemtables and some of them are not possible to add to system Table because of having something like representing Documents... it is like "ServiceOrder" from a customer... with detailed informations. Counters. Errormessages, usage, Inventory informations, configurations... Partinformation... and a lot of more stuff...

    And yes at this time I use a CLF in this field. and a button on the Form to "Check" or Preeflight the containing values. The values that won't macht are colored red and the mandatory fields are green if they match.

    And in a list all the rows that matches marked with a enabled checkbox. All rows that are not matching the check box is disabled, and the user have to edit or to close this sentence.

    It was only an idea if there were a usage of LinkedObectType with parameters for a Linkedbutton...

    But it is ok if not. It is a well not a big deal if the user should open the Equipmentcard itself. Anyway this is the normal way.. open the equipment card fill the Objekt ID to the UDF and click "Check" then the values are filled automatically and everything is fine. It was just an Idea that the user has no need to open the equipment card from menu...and just seeing that the SN is a valid number and it is already in the system. So I have to to this by myself ...

    Best Regards

    Oliver 

    Add comment
    10|10000 characters needed characters exceeded