Where is my UDF?
Hi brothers, anyone can help me?
How can i get the correct UniqueUID of an UDF from a system or a user form?
I have seen something like this:
oUDF = SBO_Application.Forms.GetForm(
-m_SboForm.Type, m_SboForm.TypeCount);
... but this code is not safe. The Main form and the UDO can have a different index.
I can't beleave, we are at 2005 SP1 and there isn't a safe way?????? I hope im in wrong!!!
Thank's all
Flavio,
I am not positive that this is what you are asking but if you are calling this from the ItemEvent you can do something like the following
Private Sub applic_ItemEvent(ByVal FormID_Sap As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles applic.ItemEvent
Dim strFormID As String
strFormID = pVal.FormUID
End Sub
Similar Messages
-
hello
i have created a report on xl reporter using an udf. however, i would like to create a parameter on the udf and i am not able to do this. is it possible to create a parameter on a udf on an xl report?
thanksI never tried, but my guess is that you can create a parameter for the UDFs in the selection Window. The UDF has names to and you can match them there with a parameter that you define in the menu. You just have to know where is your UDF and see what is its description.
-
Marketing Document Header Level UDF - Table Holding the Categories
Hi All,
I need the name of the table where categories of udf at header level of marketing document is stored.
I cheked the table CPRF but it does not show the category code in which the udf will be displayed in the form,
please help,
Thanx in advance,,,,Hi
If you need category codes and descriptions, they are stored in the CUDC.
Thanks,
Gordon -
Stored Procedure to Block Changing of a particular UDF Field by a particular USER ID
Hi,
I have a case where a particular UDF Field in Sales Order must not be changed by a particular USER ID.
My SP is,
IF @object_type='17' AND ( @transaction_type='U')
BEGIN
if(Select T0.XXX from ORDR T0
where T0.UserSign='1' and T0.DocEntry=@list_of_cols_val_tab_del)>0
begin
SET @error = 1
SET @error_message= 'You Cannot Change this Field'
GOTO EXITLINE
end
end
It throws me with the Error : -
[Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting the nvarchar value 'ABC' to data type int. (CINF)
The UDF Field is Alphanumeric in type.
Can any one please suggest me what could be the error.
ThanksHi Gopi Krishnan,
Please check below SP Transaction Notification.
if @object_type = '17' and @transaction_type in ('U')
begin
If Exists (SELECT T0.[DocEntry] FROM ORDR T0
INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry]
INNER JOIN OUSR T2 ON T0.[UserSign] = T2.[USERID]
WHERE T0.[UserSign] = '1' AND T0.DocEntry = @list_of_cols_val_tab_del)
Begin
SET @error = 1002
SET @error_message = N'You are not Authorized to Update Sales Order'
End
End
Hope this help
Regards::::
Atul Chakraborty -
Using UDFs from gloabl library
Hi Experts,
I have used in my mapping some UDFs which I have referred from the local namespace (like local UDF Library) , now I want to use the same UDF from a Global Namespace . And suppose this UDF is used more than once in my target message fields in different context, so in that case shall I need to change all of this mapping where the local.UDF is used to Global.UDF manually? is there any short way to change this quickly?
for e.g---
Source field- Name
Target Filed- Detail name
UDF- check
Name--> Local.check--
> Detail name
now this needs to be changed as Global.check for the target filed.
P.S I am concern with changing the UDF location, in both of the location (Local and Global ) same UDFs are written.
Thanks
Sugata BYou have to change it manually at each of the places it were used...
As an alternative, you can export the mapping file to .mte & change it the references appropraitely & re-import the mapping file...
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1882863550DB10579689604655727888End?blog=/pub/wlg/3129
If it is only at 5-6 places, i will do it manually. But for more than 7 i will export inot .mte & then import it..
Regards,
Siva Maranani -
Hi,
I need to enhanse search help and add F4 functionality to display list of company codes when cursor is in PBUKR field. I put F4IF_INT_TABLE_VALUE_REQUEST
into the user exit but nothing works.
I get error that PROCESS is not defined. If I remove that line there is no error but nothing works.
Can someone tell me what is wrong in the code below.
Thank you.
FUNCTION z_hr_shlp_wbs_element.
""Local interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCR_TAB_T
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" VALUE(SHLP) TYPE SHLP_DESCR_T
*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
TABLES: prps.
DATA: it_prps LIKE prps OCCURS 0 WITH HEADER LINE.
DATA: status_tab LIKE jstat OCCURS 0 WITH HEADER LINE.
DATA: l_posid LIKE prps-posid.
DATA: l_subrc LIKE sy-subrc.
DATA: l_pbukr LIKE prps-pbukr, " Added by vr
value TYPE DDSHIFACE-VALUE.
EXIT immediately, if you do not want to handle this step
IF callcontrol-step <> 'SELONE' AND
callcontrol-step <> 'SELECT' AND
" AND SO ON
callcontrol-step <> 'DISP'.
EXIT.
ENDIF.
------------------------------------------------------ added by vr
PROCESS ON VALUE-REQUEST.
FIELD PRPS-PBUKR MODULE PBUKR.
DATA: BEGIN OF VALUE_TAB OCCURS 0,
LPBUKR LIKE PRPS-PBUKR,
LPOSID LIKE PRPS-POSID,
END OF VALUE_TAB.
DATA: BEGIN OF RETURN_TAB OCCURS 0.
INCLUDE STRUCTURE DDSHRETVAL.
DATA END OF RETURN_TAB.
SELECT PBUKR POSID FROM PRPS UP TO 20 ROWS
INTO TABLE VALUE_TAB WHERE SLWID = 'QLT UDF'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'PBUKR'
WINDOW_TITLE = 'Statusselektion'
VALUE_ORG = 'S' "hierdurch kann die Struktur genommen werden
TABLES
VALUE_TAB = VALUE_TAB
RETURN_TAB = RETURN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
end of additions
STEP SELONE (Select one of the elementary searchhelps)
This step is only called for collective searchhelps. It may be used
to reduce the amount of elementary searchhelps given in SHLP_TAB.
The compound searchhelp is given in SHLP.
If you do not change CALLCONTROL-STEP, the next step is the
dialog, to select one of the elementary searchhelps.
If you want to skip this dialog, you have to return the selected
elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
either to 'PRESEL' or to 'SELECT'.
IF callcontrol-step = 'SELONE'.
PERFORM SELONE .........
EXIT.
ENDIF.
STEP PRESEL (Enter selection conditions)
This step allows you, to influence the selection conditions either
before they are displayed or in order to skip the dialog completely.
If you want to skip the dialog, you should change CALLCONTROL-STEP
to 'SELECT'.
Normaly only SHLP-SELOPT should be changed in this step.
IF callcontrol-step = 'PRESEL'.
PERFORM PRESEL ..........
EXIT.
ENDIF.
STEP SELECT (Select values)
This step may be used to overtake the data selection completely.
To skip the standard seletion, you should return 'DISP' as following
step in CALLCONTROL-STEP.
Normally RECORD_TAB should be filled after this step.
Standard function module F4UT_RESULTS_MAP may be very helpfull in this
step.
IF callcontrol-step = 'SELECT'.
Maximum records are set to 0 because the counter for Max records keeps
running, even if you filter out certain records. This is a similar
problem as described in OSS Note 148525.
Feb 3, 2004 LS: devk907353
(maxrecords = 0 defaults to maxrecords 500)
As of release 4.7, it appears that maxrecords is
being considered on the read of the view, rather
than prior to presenting the selection list.
When only 500 records are passed into this exit,
the subsequent evaluation yields very few records
in the selection list. By setting maxrecords to
8000, the entire contents of the view are passed
to this user exit, and therefor the search help
yields a reasonable selection list to the user
(as was the case in release 4.6b).
callcontrol-maxrecords = 0. " devk907353
callcontrol-maxrecords = 8000. " devk907353
PERFORM STEP_SELECT TABLES RECORD_TAB SHLP_TAB
CHANGING SHLP CALLCONTROL RC.
IF RC = 0.
CALLCONTROL-STEP = 'DISP'.
ELSE.
CALLCONTROL-STEP = 'EXIT'.
ENDIF.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.
Added by vr, Nov. 2007 ---------------------------
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
PARAMETER = 'PBUKR' " Reference to search help parameter
IMPORTING
VALUE = value
TABLES
SHLP_TAB = shlp_tab
RECORD_TAB = record_tab
CHANGING
SHLP = shlp
CALLCONTROL = callcontrol.
l_pbukr = value.
End of additions by vr ---------------------------
STEP DISP (Display values)
This step is called, before the selected data is displayed.
You can e.g. modify or reduce the data in RECORD_TAB
according to the users authority.
If you want to get the standard display dialog afterwards, you
should not change CALLCONTROL-STEP.
If you want to overtake the dialog on you own, you must return
the following values in CALLCONTROL-STEP:
- "RETURN" if one line was selected. The selected line must be
the only record left in RECORD_TAB. The corresponding fields of
this line are entered into the screen.
- "EXIT" if the values request should be aborted
- "PRESEL" if you want to return to the selection dialog
Standard function modules F4UT_PARAMETER_VALUE_GET and
F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
IF callcontrol-step = 'DISP'.
DEVK909420 Begin
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'.
Changed by vr, Nov. 2007
IF l_pbukr <> ''.
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'
AND fkstl <> ''
AND pbukr = l_pbukr.
ELSE.
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'
AND fkstl <> ''.
ENDIF.
End of changes
DEVK909420 End
SORT it_prps BY posid.
LOOP AT record_tab.
l_posid = record_tab+96(24).
READ TABLE it_prps WITH KEY posid = l_posid.
IF sy-subrc = 0.
CALL FUNCTION 'STATUS_READ'
EXPORTING
objnr = it_prps-objnr
only_active = 'X'
TABLES
status = status_tab.
DEVK909329 Begin
read table status_tab with key inact = ''
stat = 'E0001'.
if sy-subrc is initial.
read table status_tab with key inact = '' "DEVK909345
stat = 'I0002'. "DEVK909345
endif.
DEVK909329 End
ENDIF.
IF sy-subrc NE 0.
DELETE record_tab.
ELSE.
IF record_tab+114(1) EQ '.' AND
record_tab+115(1) EQ '9'.
DELETE record_tab.
ELSE.
DEVK909420 Begin
IF record_tab+102(1) EQ '9'.
DELETE record_tab.
ELSEIF record_tab+104(1) EQ '9'.
DELETE record_tab.
ENDIF.
DEVK909420 End
ENDIF.
ENDIF.
ENDLOOP.
EXIT.
ENDIF.
ENDFUNCTION.Hi Vitaly,
Process on Value Request and search help exit is entirely two idea to display the f4 values.please remove the PROCESS ON VALUE REQUEST from the function module.write the required select statements after CHECK callcontrol-step EQ 'SELECT' . and pass the value to the function module
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = l_record
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF ( sy-subrc = 0 AND l_record IS INITIAL ).
MESSAGE 'No values found' TYPE 'S'.
ENDIF.
callcontrol-step = 'DISP'.
Find the documentaion for this function module for further help
message edited by
shibu -
Blocking of Adding or Updation of Business partner
Hi Folks,
I am having problem with the transaction notification where i am having a udf in the business partner master data where in that udf i want to maintain only unique records for that i have used transaction notification but i am getting error message for every unique record updation or adding of the record
iF @transaction_type IN (N'A', N'U') AND
(@Object_type = N'2')
begin
select t0.sortkey
from ocrd t0
where t0.cardcode = @list_of_cols_val_tab_del
and t0.sortkey in (select t1.sortkey from ocrd t1 where t1.U_Envsrtky <> '' and t1.CardCode <> @list_of_cols_val_tab_del )
end
Begin
SET @error = 14
SET @error_message = N'Same Sort key is not allowed'
End
Here sort key is my udf.Please help me regarding this
Thanks & Regards
Charan.BHi,
Plz check dis :
IF @transaction_type IN (N'A', N'U') AND
(@Object_type = N'2)
BEGIN
If EXISTS (SELECT T0.[U_Envsrtky ]
FROM OCRD T0
WHERE T0.[cardcdoe] = @list_of_cols_val_tab_del and T0.[U_Envsrtky ] = T0.[U_Envsrtky ])
Begin
SET @error = 14
SET @error_message = N'Same Sort key is not allowed'
End
END -
Add carriage return in XML file
Hi,
I found a topic that correspond to my requirement :
[Add carriage return in XML file|https://wiki.sdn.sap.com/wiki/display/XI/HowtoappendCarriageReturnintheendofeachtagofxml+file]
But i don't know where created this udf, which input parameter pass?
Thank you for your help.Hi Frantzy,
The link does not give enough explanation. What I am assuming is if you have xml string in one field then if you need to add new line after each tag then you can follow that.
If you want a udf where you want to insert a new line use this udf:
Create a Value UDF with one input argument 'a' and name the udf as addnewline. Then add this code:
Imports: java.*;
String lines;
lines = "";
lines = lines.concat(a + '\n' );
return lines;
Then where ever you want a new line just add this udf in your mapping. If you want a new line for 10 fields then you can put in all the 10 fields.
Example:
Source field --> logic --> udf (addnewline) --> target.
So after logic if you have the value as 123 then in the target you will see 123 followed by a carriage return.
Regards,
---Satish -
How to find a user definded function in XI mappings
Hi,
I am sure that I wrote a special function some time ago and I have used this function in a mapping. But I cant remember in which mapping. I remember the name of the function.
Is there a possibility to see all my user defined functions. Or can I search for a function somewhere ?
Thanks for your help !!!Hi mario,
<i>Press button text-view
or use strg + right mouse to download and search hte text</i>
Can you please elaborate this , even i to want know. this solution which was given above , is it only for the one mapping or from all mappings.
Actuall , till now , i know, we must have to open all mappings , where exactly that UDF was used, we have to see.
One other solution is i know the mapping runtime data will be stored in the following tables. So i did not tried , how much these tables are usefull..try
SMPPREL3-Meta Data for Mapping runtime
SMPPMAP3- Meta Data for Mapping runtime
SMPPSPLIT- Meta Data for Mapping runtime
I will try to get another solution.
Regards
Chilla -
Fomatted Search Error on AR Invoice
I'm having trouble with the following Formatted search:
SELECT T0.[SLPCODE], T0.[SLPNAME] FROM OSLP T0 WHERE $[$20.0.0] = -1 ORDER BY T0.[SLPNAME]
Any time I use the reference $[20.0.0] tot he Sales Person field instead of $[OINV.Slscode.0] it errors out. the formatted search is assigned to a UDF that allows the user to add a second sales person to the screen but I only want to let them do so if the Sales person assinged to the Invoice is "-No Sales Employee-", for which the Slscode is -1. In order to use the same formatted search on the Quote/Order/Invoice i need to referece the Sales person field by it's index.
Also, in my udf I would like to Store the code but display the name. Is there a way to do that?
Thanks,
Don ShieldsDon Shields
Where is the UDF defined? is it on the marketing documents header ...
Storing the Code and displaying the name would not be possible unless the table is a User Table. The Sales Person (OSLP) table is a system table
You do not need to reference the $\[$20.x.x, you can simply have it as
SELECT T0.SlpName, T0.SlpCode FROM [dbo].[OSLP] T0
ORDER BY T0.SlpName -
Self-Register User Template Error : MinLimitException: size minimum limit
I am using OIM 11.1.1.5. When I click "Self-Register User" request template link, I get the following errors. Note that this link was working on other OIM environment where no custom UDFs are present.
Thanks!
Kabi
The Error in IM pop up screen says "size < minimum limit ; ADF_FACES-60097: for more information, please see the server's error log or an entry beginning with ADF_FACES-60096:Server Exception during PPR,#1"
The oim_server1-diagnostic.log says
ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5[[
oracle.iam.platform.utils.MinLimitException: size < minimum limit
at oracle.iam.platform.canonic.model.Values.setMinLimit(Values.java:187)
at oracle.iam.requesttemplate.agentry.operations.OpenActor.renderAttributeRestrictionsTab(OpenActor.java:822)
at oracle.iam.requesttemplate.agentry.operations.OpenActor.prepare(OpenActor.java:195)
---------------------------------------Did u import any object for self registration? if so import it again...i have seen this error before in my env.
If the self registration fails, then it is a Oracle Bug and they are working on getting a patch for it...
~VSN -
Where i should put external java library so UDF can import directly ?
Hi All,
I have some scenario using UDF and this code required a lot of external jar file. Please
advise me where i should put this JAR file so i can import directly from UDF without need to import using Import Archive ?
Thank you and best Regards
FernandHi,
is there any other alternative rather than put in into import archive ? like i copy all ther Jar file into certain
directory in XI server and restart ther server so automatically, i can import insite my UDF wihout import archive ?
Thank you and Best Regards
Fernand -
Is it possible to add a UDF in Manufacturer and where I can add it ?
Hi,
I need to add an UDF in manufacturer, but i can't find the right place in UDF management tool window. Does anyone know this?
Thanks!
Lan
Edited by: ZHANGLAN on Aug 16, 2010 10:37 PMHello
You can add it by SDK (DI Object UserDefinedTables). You can add most of the tables to user defined fields, but take care, sometimes the GUI is not constructring it. (Example: table ITM1 - prices: you can add a UDF but you cannot see on the screen).
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
oUserFieldsMD.TableName = "OMRC"
oUserFieldsMD.Name = "AlbUDF"
oUserFieldsMD.Description = "Albert UDF"
lRetCode = oUserFieldsMD.Add
Regards
János -
Where Is UDF Reader Download?
Hi:
I have a Mavica CD-1000. When I was in OS 9, I didn't have any problems with inserting the disc and being able to have it show up on my desktop. Now on Panther and OS 9.2.2. It won't open. I can't get the Camera to Computer to work either trying to use iPhoto. I called Sony and they said to download UDF Reader from Apple. Well, it's not here. I have been all over the web trying to find a download for this to stop the madness. I did find UDF Media Reader that crashes everytime I tried to load it. Can anyone help me out? This camera is too expensive to just throw in the towel and start over.
Thanks
G4 AGP Sawtooth Mac OS X (10.3.9)Verify the model of your ipod here http://support.apple.com/kb/HT1353 and then go here http://www.apple.com/ios/whats-new/ scroll to the bottom and verify your device is supported.
-
Udf Data is not being displayed in the report
Hi all,
i have designed one report in which i am displaying some udf fields along with other system fields.
i have not used any selection criteria.
when i run report it doesn't display udf data of some random rows in the report even if data is peresent in that udf field.
If i open sales order and press 'Shift-F2' and update the document and now if i run report then i get that udf value in the report.
why this happening. data is there in the udf field only its not displayed in the report with out updating the that udf.
pls suggest some solution.
regsrds,
Chetan.Hi Ashish,
I ran the "ZPS/!ZPS" in RSRT where ZPS is the infoset name. In Dev, it displayed the values. In QA, it displayed the below messages:
ECharacteristic 0TCAKYFNM does not exist. Check authorizations
WThere are calculated elements. These results are bracketed [ ]
and below that, it displayed the values for Number of records. But, it has not displayed the values for the other figures.
Does this has any impact in QA.
Thanks & Regards,
AVN Rao.
Maybe you are looking for
-
Is there a way to find the administrater password using terminal
i dont know, how do you find it out. I dont have the cd, and I really need to know soon ibook G4 Mac OS X (10.4.1) ibook G4 Mac OS X (10.4.1)
-
I have a PHP page that include();s a file that contains the page's <html> tag and <head> and <frameset> sections ending with a <noframe> tag. When I open this page in DW, I find the DW has been quite confused by the file - it opens the source file of
-
Tomcat3.3, JSP, getOutputStream() has already been called
In Tomcat 3.3a, I get an IllegalStateException.... getOutputStream() has already been called... error when running a JSP page that renders an image. <img src="image.jsp?image=name.gif"> I want to use JSP to keep everything JSP...and it works fine in
-
Printout from applet varies depending on server
We have always run our web app on Tomcat on Windows, but we're trying to move it to Linux. One small but important component of our site is a simple signed applet that allows users to print out 4x6 packing labels on a thermal printer. If the Zebra (o
-
I know there are four isolation levels :- TRANSACTION_READ_UNCOMMITTED TRANSACTION_READ_COMMITTED TRANSACTION_REPEATABLE_READ TRANSACTION_SERIALIZABLE but in EJB where we declare these isolation levels. Are they declared in any xml file or define som