Using Custom function in Validation

I have a custome function that returns a varchar of TRUE or FALSE.
I have tested the function and even hardcoded with TRUE.
However when I use it in the Validation and even thought all lines return True they get pushed into the Fail table.
I have the rule Enabled and action on Fail is set to "Send To Fail"
I have printed out the data being returned and all Pass so why are they being sent to the Fail.
I call the function like this.
So I assume that if the vlaue returned is True it should go to the true table.
P2CMM01_LKP_STORAGE_LOC("Material Type(MTART)", "+STORAGE_LOCATION","+MATERIAL_NUMBER") = 'True'

what is the value returned by the function True or False or TRUE or FALSE ?
you will have to do a case-sensitive comparision
TRUE = True  will fail

Similar Messages

  • Inconsistent Errors when processing  IDocs using custom Function Module

    I am encountering a most perplexing error. Here is the situation.
    We have a custom function module to update data in the EH&S system. We are having a bizarre error occurring. This is the basic processing of the function module:
    1. IDoc data is read and loaded into an internal table.
    2. Data is run through a series of checks to determine if the data is valid for entry into the system.
    3. After validation we use function module  C1F2_SUBSTANCES_READ_WITH_REF to read  characteristic data for the  substance. This data is used to validate whether current data exists to allow for loading of the IDoc data. (This is the step where the IDoc is receiving an error even if the data is valid. This only occurs if we are processing a large amount of Idocs and one IDoc contains valid data and another invalid data for the same substance. It occurs even if the Idocs are not processed in sequence.  If individually processed or reprocessed after initial failure they pass. This is what is so confusing!) If it exists, a flag is set and  the data is loaded using function module BAPI_BUS1077_CHANGE to modify the data.
    4. If the flag is set to allow further processing, the function module C1F2_SUBSTANCES_READ_WITH_REF is used again to select different characteristic data for the substance. A similar validation process occurs and if it passes, data is loaded using BAPI_BUS1077_CHANGE to update and BAPI_BUS1077_CREATE to create new data.
    Here is the situation:
    When processing one valid record for one substance, the record loads successfully.  When processing multiple valid records (all are valid) for one substance, they all load successfully.  The problem occurs when attempting to load valid and invalid records for the same substance.  Some times the program successfully loads the valid data (as expected).  Other times, it will not load any records.  It is not consistent!
    The order of IDoc processing does not have an impact on the success of the load.  Whether the valid or invalid record processes first does not have an impact on the success of the valid substance load.
    Does anyone have ANY Idea of what is going on? I am clearing all fields in the function module before processing occurs. I cannot find what is causing the error to occur.
    HELP!
    Jim Hardy

    I have some further information. It seems that if data for a substance is sent in two separate Idocs, one with valid and one with invalid data, As long as the two IDocs are processed consecutively, they process correctly. If they are separated by IDocs containing other substance information, they fail.
    thanks
    Jim

  • Using custom functions in a query

    Hi, I have a query in a PLSQL procedure where some of the fields are data retreived from custom functions,
    i. e.
    select a, b, funcThatNeedsA(a), funcThatNeedsB(b)
    from xxxx
    where ...
    but I also could use those functions by making a loop to a cursor
    i. e.
    cursor c_data is select a, b from xxxx where ...
    for r_data in c_data loop
    l_a = funcThatNeedsA(r_data.a);
    l_b = funcThatNeedsB(r_data.b);
    end loop;
    So, my question is: what is more efficient, to use the functions directly in the query or in a loop of a cursor?

    the overhead of calling your functions will not change based on using them in a loop vs a cursor. the concern is the performance of ANY loop vs not using a loop at all. so what else are you doing in the loop? does it really need to be in a loop? for example, this
    insert into a select * from b
    is faster than
    for rec in (select * from b) loop insert into a values(rec); end loop;

  • SIT on SSHR using custom function

    Dear Group,
    I am implementing SSHR for a customer, the customer needs to have some special request that need to be entered from SSHR then follow an approval path.
    So I have created a SIT and copy the original process using workflow and create a custom function in SSHR with different parameter for process and pCalledfrom.
    My problem is that the with I try to display my segment only it’s not getting displayed
    For example:
    SIT: XX_Ticket_Request
    Segments:
    No_Ticket_Request
    Ticket_Type
    In the personalization:
    In the segment field I wrote:
    XX_Ticket_Request|SEGMENT1| SEGMENT2| SEGMENT3|
    Nothing is displayed only start date and new date if I try to insert a new line the required segment are displayed.
    How I can display the required fields only. before insert mode.

    You need to use the name of the flex segments, not the columns, e.g.,:
    XX_Ticket_Request|No_Ticket_Request|Ticket_Type|
    Let us know if that works!

  • How to use custom function.

    i write a custom funciton contain a sql sentence like this:
    SELECT sum(QTY) INTO SUM_OUTPUTQTY FROM V_DW_SALE_INVOICE
    WHERE V_DW_SALE_INVOICE.INVOICEDATE LIKE 'aaa%' AND
    P2=MENUFACTURER_ID AND P3=METERIELNAME AND P4 =SPEC AND
    P5=ORG_ID;
    the table V_DW_SALE_INVOICE is in the source database.
    when i deploy the function,it response table or view is not exist.
    how to deploy the function?
    thx

    How did you create your custom function? The step-by-step instructions are in the User Guide here http://download.oracle.com/docs/html/B12146_01/maptransf.htm#i1149862 Note you can also import existing PL/SQL packages as described there.
    Minor comment: INTO [variable] is a PL/SQL element, not SQL.
    Nikolai Rochnik

  • Update the custom table by using Custom Function module.

    Hi Experts,
            My requirement is ,
    1) To create the Custom Z table with fields
               vbak-vbeln
               likp-vbeln
               vbuk-vbeln
      After creating this Z table.
    2) I have to create one custom function module.
        Based on this function module i have to update that Z table.
    3) Before these steps i have to write down an ALV report based on the tables vbak and vbeln, in that table i have to print vbak-vbeln. and also in report i generated check box and one custom button in application toolbar. after the report will displayed , when ever i click the button in application tollbar , this function module will executed and the table will be updated.
        But I developed the ALV report with custom button and check box successfully.
      My doubt is how to write the function module and based on that function module how to update the table.
          Please suggest me on this requirement.
        Thanks in Advance.
    Thanks and Regards
    Srihari.

    HI ,
         Can any one help me out on my above requiremnet..
    Thanks and Regards
    Srihari.

  • How to use custom functions from Dlls

    I would like to know if there a way to import functions from
    a custom DLL?
    Thanks

    Hi Wardell,
    Did you get any break through on this I was exploring on same.
    Egarly awaiting reply....
    Regards,
    Ankeet Pujara

  • How to use custom function for formatting the Line Chart Axes?

    Hi...
    I'm using a Line chart who's y axis value range from 0 to 50000. This is a number which it gets from it's dataProvider. I want to format this and show it as
    $50,000
    $40,000
    $30,000
    $20,000
    $10,000
    $0
    instead of
    50000
    40000
    30000
    20000
    10000
    0
    Here's my linechart code:
    <mx:LineChart id="revTimeLineChart"
                width="100%" height="100%"
                showDataTips="true" >
                <mx:horizontalAxis>
                   <mx:CategoryAxis id="lcCatAxis" categoryField="name"/>
                </mx:horizontalAxis>
                <mx:series>
                   <mx:LineSeries id="ls" yField="revenue" displayName="Revenue" showDataEffect="{slideIn}"/>      (yField is what I want to format....)
                </mx:series>
    </mx:LineChart>
    Can you please let me know how can this be achieved?
    Cheers!
    Deepak

    Hi,
    You could do something like this,
    http://www.codersrevolution.com/index.cfm/2008/10/14/Flex-Charting-Format-your-X-and-Y-Axi s
    hope it helps!
    Regards ,
    Bhavika

  • Custom Function in SAP MDM Data Manager Validation

    Hi SDN,
    Can we write our own custom function for Validation of the records.
    Actually my requirment is
      For a particular Account Group The value of the G/L Account must be in particular range and it must have a specific Length.
    For Example:
    IF( Chart of Account = CCA AND Account Group = ACG, G/L Account No >=100 AND G/L Account No <= 1000 AND LEN(G/L Account No) = 6, False)
    Pls provide some valuable suggestion .

    Hi Rajni thanx for ur prompt reply
    The actual problem is that :
    we have approx near about 100 Account Group, so it would become very complex to replicate same condition 100 times
    AND
    these account group may keep on increasing so even maintenance point of view it would be hard to maintain.
    can u tell me some other way to do it, i mean is there any other feature by which we can perform validation in MDM.
    Regards
    Kuldeep

  • Essbase API Custom Function 11.1.2.1

    I recently decided to start playing around with the Essbase Java API to see if I could write a custom function that overwrites a subvar. I found the createSubstitutionVariable command is already in the API. I wrote a MaxL script that registers a new function by calling the API command.
    /* Create a log file for the script log and error information */
    spool on to $4;
    /* Login to the server */
    login $1 $2 on $3;
    CREATE or Replace FUNCTION '@SETGLOBALSUBVAR'
    AS 'com.essbase.api.datasource.IEssBaseObject.createSubstitutionVariable(String,String)'
    SPEC '@SETGLOBALSUBVAR(String SubVar, String SubVarValue)'
    COMMENT 'Sets the specificed subvar to the specified value';
    This creates the function (viewable in EAS). However, when I run a calc script that calls the function, I get an error that it belongs in a calc block. When I place it in a calc block, I get an error message that an operator is expected after my custom function.
    ex:
    Fix ("Actual", "Final")
    AC_12345=@SETGLOBALSUBVAR('test', 'hi');
    EndFix
    I also found Robb Salzmann's CDF http://codingwithhyperion.blogspot.com/2011/08/create-and-update-substitution.html and tried using that, but received the same error message. I was wondering if someone could point me in the right direction to creating and using custom functions to update the subvar.
    Thanks,
    Daniel

    Sorry about that.
    I have the MaxL log below that shows the function being created successfully. There is nothing in the essbase log file itself regarding the creation of the function.
    OK/INFO - 1051034 - Logging in user [admin@Native Directory].
    OK/INFO - 1241001 - Logged in to Essbase.
    MAXL> CREATE or Replace FUNCTION '@SETSUBVAR'
    2> AS 'com.hyperion.essbase.cdf.setSubVar(String,String,String,String)'
    3> SPEC '@SETSUBVAR(String app, String db, String subvar, String subVarValue)'
    4> COMMENT 'Sets the specificed subvar to the specified value';
    OK/INFO - 1056102 - Function @SETSUBVAR replaced.
    MAXL> logout;
    User admin is logged out
    The calc that I am running is:
    Fix ("ACTUAL","FORECAST")
    PJ_99999= @SETSUBVAR ('','', 'TestLocalVariable', 'TEST');
    ENDFIX
    The error message that displays in the log file is :Error: 1200324 Error compiling formula for [PJ_99999] (line 3): operator expected after [@SETSUBVAR]
    The code that I am trying to register is from your site http://codingwithhyperion.blogspot.com/2011/08/create-and-update-substitution.html Instead of activating SetMonthSubvar or SetYearSubvar, I am only trying to register the SetSubVar command in your jar file
    Thanks for your help! I appreciate all your responses.
    Daniel

  • Run time error due to custom function module in a program

    Hi,
    I  have created one program using custom function module ZIN_COMEV_CUSTDETAILNOTIF_OUT .The program is showing runtime error
    "Incorrect parameter with CALL FUNCTION."
    I have tested the FM using same set of parameter as in program it is working.It is throwing error while executing in program help.
    Regards
    Datta

    Hello Nagraj or harish
    I think you may be right.There is date  field in my function module ,when I am testing function module I am giving it as
    Y_DATE = 01.01.2011,but in program the field is DATS type and I have to give 20110101.If this is the problem how I can solve it.
    CALL FUNCTION 'ZIN_COMEV_CUSTDETAILNOTIF_OUT'
      EXPORTING
        Y_SENDER              = gv_g_sender
        Y_RECEIVER            = gv_g_reciever
        Y_PARTNER             = GV_V_PARTNER
        Y_BASIC_PROCESS       = GC_BASIC_PROCESS
      Y_SWITCHNUM           =
      Y_SEN_LOAD            =
        Y_INTUI               = GV_V_INTUI
      Y_TRANSACTIONID       =
        Y_DATE                = GV_V_DATE

  • Use CustomFunctionController to add Repository Custom Function to a reportclientdocument

    <p class="ssiBODYCOPY">I would love to know how to add a Repository Custom Function to a reportclientdocument - If this is possible?<br />I need to know how to instantiate an object of type Custom Function from the enterprise repository or get a list of available custom functions. <br />The following code takes a "custom function object" from an existing report (which is a repository custom function) and I THINK adds it to the reportclientdocument - in fact the count of items in the customfunctioncontroller is 1 after I add the custom function but when I save the reportclientdocument they dissapear - I am not sure if I should be using ADD or INSERT method. I also was able use other controllers such as the DataDefController which works sucessfully. Please can someone help me figure out how to do this (btw where in CI_INFOOBJECTS is a custom function stored?)<br /><br />Thanks Nicole<br /><br />Dim rptClientDoc As ReportClientDocument<br />&#39;open the report<br />rptClientDoc = OpenReport("report1", ceInfoStore)<br /><br />Dim myCustomfunctions2 As CrystalDecisions.ReportAppServer.DataDefModel.CustomFunctions<br />Dim myCustomcontroller2 As CrystalDecisions.ReportAppServer.Controllers.CustomFunctionController<br />myCustomcontroller2 = rptClientDoc.CustomFunctionController()<br /><br />myCustomfunctions2 = myCustomcontroller2.GetCustomFunctions()<br />Dim cf As CustomFunction<br />cf = getfunction(ceInfoStore, ceSession) &#39; Gets valid custom function object in ANOTHER report<br />myCustomfunctions2.Add(cf)<br /><br /><br />Dim datacont As CrystalDecisions.ReportAppServer.Controllers.DataDefController<br />datacont = rptClientDoc.DataDefController<br />datacont.RecordFilterController.SetFormulaText("currentdate > month(testing)")<br /><br />SaveNewReport(ceInfoStore, rptClientDoc, "report1", "report2")</p>

    Hello Nicole
    please also use our diamond sample site to search for samples which might solve your problem.
    Your need would be in CE managed samples which we publish for JAVA and NET.
    Please use this link:
    https://boc.sdn.sap.com/
    Falk

  • How to use standard function keys as custom keys

    how to use standard function keys as custom keys.
    i have encountered that problem while developing a screen, there i'm supposed to use standard function key F2 ( which actually meant for choose) for clearing the screen fields where the cursor is present and f1 for saving data that entered in screen fields, etc...
    kindly help me out.

    Hi ,
    Solution to use SAP reserve function keys F1 .. F4 (mostly this requirement comes up for RF screens) can be acheived by assigning your new Function code using the Menu path Utilities --> F key Consistency in the Menu Painter (SE41) . Once you assign your cutom function code to the standard Fn keys the only remaining step is to make sure that you set a curson on any of the field on sceen by using the Key Word "SET CURSOR" .
    If you dont use the key word SET CURSOR in the PBO of the screen then you might not see any response for F4.
    Thanks

  • Use standard Function kyes as custom in PF ststus

    Hi all,
    I want to use standard Function kyes(such as F1 & F3) as custom in PF ststus so that I will perform my code by these function keys. Is it possible.
    Thanks
    Sanket sethi

    Yes it is possible.

  • Spry validation custom functions

    I see that there is a way to specify a custom function to a
    spry validation widget like so:
    var customFunction = new
    Spry.Widget.ValidationTextField("customPasswordFunction", "custom",
    {validation: passwordStrength, validateOn:["blur", "change"]});
    Is there a way to pass additional parameters to the function?
    I see that it passes (value,options) by default. I want to pass
    additional parameters to my custom function. Is this
    possible?

    I see that there is a way to specify a custom function to a
    spry validation widget like so:
    var customFunction = new
    Spry.Widget.ValidationTextField("customPasswordFunction", "custom",
    {validation: passwordStrength, validateOn:["blur", "change"]});
    Is there a way to pass additional parameters to the function?
    I see that it passes (value,options) by default. I want to pass
    additional parameters to my custom function. Is this
    possible?

Maybe you are looking for

  • RRI from BI to ECC on SAP Portal

    We have a custom report in ECC and we would like to call that report from a BI report (Jump) while passing some values.  How do I approach on this. 1) Do I need Sap WebGUI. 2) If not what are the steps I need to take on the ECC side? 3) On the BI how

  • Cannot upgrade from 10.6.8 to Mavericks

    I am running a MacBook Pro 5,3 with 750gb HD and 8gbRAM. I had previously upgraded to Mavericks so I know it works on this machine. I was having hard drive problems with my old 320 and had it upgraded to the new WD 750, and had my ram upgraded while

  • Custom report using Queries

    Any idea why would the records get duplicated when I create a query of  AR invoices in a month. If there are multiple lines in an invoice the invoice total is repeated instead of the value of each line that is coded to different GL account. Any help

  • No Headers in Addresses CSV Export File

    I wanted to upload my Z22 contacts from Palm Desktop to Google Contacts.  I exported them as a .csv file.  Google put all the information in the Notes field.  There was no header row in the .csv file. Is there some way to generate a header row?  Thun

  • Cisco ISE guest portal redirect not working after successful authentiation and URL redirect.

    Hi to all, I am having difficulties with an ISE deployment which I am scratching my head over and can't fathom out why this isn't working. I have an ISE 3315 doing a captive webportal for my guest users who are on an SSID.  The users are successfully