UDF in Tool Administration Answered

Arlene

Dear Experts,

I am trying to add a new UDF in Tool Administration after UDF4 using below script in Extension for Client window.


// ******* Event form_loaded ********
// Created 2019/02/07 
global function form_loaded
select "SpecWeight" into userfield1 from "BEAS_WKZ" where "WKZ_ID"=<str_parm.s_parm1,dbstring>
end global


// ******* Event form_updated ********
// Created 2019/02/07 
global function form_updated
update "BEAS_WKZ" set "SpecWeight"=<item.userfield1.value,dbstring>where "WKZ_ID"=<str_parm.s_parm1,dbstring>
end global

global function etab_firstredraw
create=column=name=myfield,id=userfield1,text=Spec Weight,related=udf4
item.myfield.width=2000
item.myfield.height=300

 

 

Unfortunately it's not working. May i know what is the problem here?

 

Thank you.

Comments

2 comments

  • Comment author
    Martin Heigl

    Hello

    create=column=name=myfield,id=userfield1,text=Spec Weight,related=udf4

    1. "related" property is available with beas 9.3 PL 2

    2. column with property text is available in beas 9.3 PL 2

    You must create column field and text field separately and you must define x and y manually too

    create=column=name=myfield,id=...,x=..,y=..,width=..
    create text=name=myfield_t,x=...,y=..,width=..

    Or use BETA Version from beas 9.3 PL 2

    We will insert all Version information in our documentation

    Alternative: 

    Use beas usability package. It's really simple to insert new fields.

     

    regards

    Martin Heigl

     

    0
  • Comment author
    Arlene

    Hi Martin,

     

    Thank you for the information. Actually my current SAP version is already 9.3 PL 5. Same with the beas installed - 9.3 (1.22) PL 01 HF 4.

     I followed this video of yours but it doesnt work for me: https://www.youtube.com/watch?v=yXSt-zq2SDI&t=127s.

    Same goes with this: https://www.youtube.com/watch?v=L7scmGeLYzo&t=6s

    I need this to update the SQL Table as well.

    Appreciate if you can guide me step by step process.

    Thank you so much.

     

     

    0

Please sign in to leave a comment.