UDF for generating GUID?

Hi Experts,
    Is there any UDF available for generating GUID.
Regards,
RajeshKumar.UD

Hi Rajesh,
do chk this links
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fff7c490-0201-0010-b98c-cb350b29605b
Simple Steps to Get  Descriptive Alerts from BPM in XI
Triggering XI Alerts from a User Defined Function
Thanx
Sampath

Similar Messages

  • [SOLVED] Generating GUID from BPEL for outbound transactions

    Hello all,
    I am trying to generate a GUID for outbound transactions from BPEL. As documented in Generating GUID with ora:generateGUID() , the GUID generated by ora:generateGUID is a different format than is expected by the B2B server (37 vs 32 digits).
    Is there any solution or workaround for this?
    Kind regards,
    John

    User,
    Thanks for the help. Just to clarify for everyone...
    There are 2 GUID generators that you can access, one in the BPEL side that generates funny 37-digit GUID's, and one in the XSLT (as user pointed out) that generates a proper 32-digit GUID. (S)he is correct as well about the formatting using concat to format the GUID properly for B2B.
    In addition, in case there are those of you out there who are not using XSLT, I found a reasonable Java-based GUID generator at http://javaexchange.com/aboutRandomGUID.html A simple modification to the "toString()" method to put the braces around the GUID makes it useful in this case also.
    Regards,
    John

  • Generating GUID with ora:generateGUID()

    Hi,
    generateGUID generates GUID like this:
    af46278784e183e2:296f76:109e34c77ea:-7ff1
    However, the standard format for GUID according to RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt) is like this:
    E7BF873B-37D1-4209-9332-E843BA71BD23
    Oracle's GUID have 37 digits whereas standard GUID have 32 hex digits (16 bytes).
    Does anybody know how Oracle BPEL GUID are generated, what is the algorithm? How is it related to standard GUID?
    I would also like to know if the network address or an random number is used. This is important because if the network address is used there could be some collisions if there are several BPEL engines in the same host.
    I have created a simple process with a FlowN activity to generate multiple GUID and is generating consecutive GUID; that's OK; and it means GUID generator is serializing requests. Could it be a bottleneck? Does it write to database or is it just a synchronized static Java class?
    Thanks.

    quick comment,
    we use java.rmi.dgc.VMID internally ..
    /clemens

  • Using orcl:generate-guid() in Clustered ESB XPath

    Hi All
    We have a clustered environment. We have a requirement where we need to generate Unique ID in ESB.
    If we use orcl:generate-guid(), will that be ok in a clustered environment??
    In other words, does orcl:generate-guid() generates unique id accross JVMs??
    Thanks

    Hi,
    Try something like this:
    <xsl:variable name="md5_checksum_query">SELECT apiws_aq_student_reg.generate_md5_checksum(<xsl:value-of select="/inp1:InputParameters/inp1:PV_TRANSACTION_ID"/>, 'APPLICATION', 'secrec word') FROM DUAL<xsl:variable>
    <xsl:variable name="md5_checksum" select="orcl:query-database($md5_checksum_query, false(), false(), 'JNDI_Location')"/>
    Also I'm dont use orcl:query-database function personnally due to parsing issues (for example, inp1:PV_TRANSACTION_ID - is always different and you are perform lot of queries like that).
    My colleague write a simple java-class that we are using to bypass this issue.
    We are use custom XPath function to perform queries against DB (actually we are perform soft-parse instead of hard).
    Best Regards,
    Mikhail.

  • Additional Status for generating Organization Forecasting in Projects

    Hi,
    I wanted some information on:
    1. How to create and map additional status for generating Organization Forecasting in Projects.
    2. If there are any mandatory Profile Options for Prject Accounting.
    Thanks & Regards,
    Sujatha K

    Please see the Oracle Projects Implementation guide, Page no : 184 for defining the statuses for Organization forecasting.
    Thanks,
    Sathish
    www.projectsaccounting.com

  • APiI for generating Quote report as Pdf  in oracle iStore

    hi,
    Any one help me on which API is used for generating quote report in oracle istore...

    Are u sure about  the report version.
    Please do upgrade  while  even in oracle  they almost stopped for new version -Developer suite

  • Create UDF for table not in the List of tables

    Hi all,
    I know that my question maybe easy or been asked before, but I couldn't find the answer.
    To create a UDF in SAP B1 version 9.0 you should go Tools -> Customization Tools -> User-Defined Fields - Management...
    which is ok and working perfect. but my question is:
    If I want to create UDF for a table not in the list of tables there what should I do? I need to create 2 UDFs for table OMRC [Manufacturers], and can't find it in master data tables.
    anyone had this issue before?
    EDIT  : Is it good to add the field by using sql server? I know it's possible, but will it be visible in SAP
    thank you
    Message was edited by: Samira Haroun

    Hi Samira,
    There is noit a simple link for this, I advise you to study the documentation for TB1300 SBO Development Certification.
    Ypu should also have knowledge of .net, and C# or VB, because you have to make a small program/addon to add the fields
    Kind regards
    Ad Kerremans

  • UDF For Retrieving the Tax Code based on PO

    Hi all,
    Mine is a file to Idoc scenario.
    I wrote a FM to retrieve the Tax Code based on PO .
    Created the udf which directly gets the Taxcode from the r/3 with out importing in to the imported objects,is this correct i never tried this before.
    Find the UDF for the Same.
    final String    CHANNEL_NAME = "GeneratedReceiverChannel_RFC",
         VALNOTFOUND = "VALUE_NOT_FOUND",
         SAPRFCNS = "urn:sap-com:document:sap:rfc:functions",
         TAG_FM = "Z_P_INT012_RFC_LOOKUP",
         TAG_TAX_CODE = "T_TAX_CODE",
         TAG_TAX_CODE_P = "TAX_CODE";
    AbstractTrace trace = container.getTrace();
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = null;
              factory.setNamespaceAware(false);
              factory.setValidating(false);
              try {
                   builder = factory.newDocumentBuilder();
              } catch (Exception e) {
                   trace.addWarning("Error creating DocumentBuilder - " + e.getMessage());
              Document docReq = null;
              try {
                   // Building up RFC Request Document
                   docReq = builder.newDocument();
                   Node root = docReq.appendChild(docReq.createElementNS(SAPRFCNS, TAG_FM));
                   Node nodeTbOpt = root.appendChild(docReq.createElement(TAG_TAX_CODE));
                   for (int i = 0; i < pernr.length; i++) {
                        Node nodeTbOptItem = nodeTbOpt.appendChild(docReq.createElement("item"));
                        nodeTbOptItem.appendChild(docReq.createElement(TAG_TAX_CODE_P)).appendChild(docReq.createTextNode(TAX_CODE<i>));
              } catch (Exception e) {
                   trace.addWarning("Error while building RFC Request  - " + e);
              trace.addInfo("RFC Request XML: " + docReq.toString());
                                                    //trace.addWarning("RFC Request XML: " + docReq.toString());
              // Lookup
              Payload load = null;
              try {
                   Channel channel = LookupService.getChannel(receiver[0], CHANNEL_NAME);
                   RfcAccessor accessor = LookupService.getRfcAccessor(channel);
                   InputStream is = new ByteArrayInputStream(docReq.toString().getBytes());
                   XmlPayload payload = LookupService.getXmlPayload(is);
                   load = accessor.call(payload);
              } catch (LookupException e) {
                   trace.addWarning("Error during lookup - " + e);
              // Parsing RFC Response Document
              Document docRsp = null;
              try {
                   docRsp = builder.parse(load.getContent());
              } catch (Exception e) {
                   trace.addWarning("Error when parsing RFC Response - " + e.getMessage());
              trace.addInfo("RFC Response XML: " + docRsp.toString());
                                                    //trace.addWarning("RFC Response XML: " + docRsp.toString());
              try {
                   NodeList res = docRsp.getElementsByTagName("item");
                   for(int i=0;i<res.getLength();i++){
                        NodeList itemNodes = res.item(i).getChildNodes();
                        Map itemMap = new HashMap();
                        for(int j=0;j<itemNodes.getLength();j++){
                             itemMap.put(itemNodes.item(j).getNodeName(), itemNodes.item(j).getFirstChild().getNodeValue());
                        rows.add(itemMap);
                                                            catch (Exception e) {
                   trace.addWarning("Result value not found in DOM - " + e);
                   result.addValue("true");
    Error:
    16:24:08 Start of test
    Source code has syntax error:  /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors  Source code has syntax error:  /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors
    16:24:11 End of test.

    Hi Potharaju,
    Why don't you try this, that really works:
    If you are using PI 7.1:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/frameset.htm
    If you are using XI 3.0, PI 7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    Try with these.
    Regards,
    Juan

  • Simple FD for generating ALV report using purchase order or sales order

    Can anybody send me a simple FD for generating ALV as well as interactive report for purchase order and sales order

    On the both the Sales Pricing Condition type and the Purchase Pricing condition type there is a field called Ref.condit.type. 
    For example you have a sales pricing condition PR00 with value $10. In your pricing condition in MM for example PB00 you enter PR00 in the Ref.condit.type. The value for PB00 will now be $10.
    Apart from this i do not think there is any standard configuration available in SAP for this. Please refer to SAP Note-95024. You may also consider to write your own logic in the PO Exit to derive the sales order pricing in PO.

  • Purchase Order Row UDF for Received Qty

    Hi experts,
    Can someone please recommend a way to create a row UDF for purchase orders to show the qty received? We cannot use a simple calculation like Qty-Open Qty because if the row is closed manually, the open qty becomes zero. Another problem is how to prompt the PO to update this value if additional GR PO's or AP Invoices are created. Thanks.

    I should explain the circumstances more clearly. There is no problem with the standard GR PO or AP invoice receiving method. What I want is a reference field on the original PO showing the total qty received to date. For example: total of 1,000 pcs ordered -> 900 pcs received against several GR PO's -> want to see that 900 has been received back on the PO. Then let's say we want to close the PO line 100 pcs short.
    I can think of 2 ways to go about this:
    Method 1: Change the ordered qty from 1,000 to 900 -> row is closed, but lose the reference of the original order qty being 1,000.
    Method 2: Close row manually and maintain the original order qty as reference, but lose b/o qty and it is difficult to tell how many pcs where received/closed short.
    Is there another way to keep all the reference information?

  • Script for generate randomize administrator password which make log file to recorded new administrator password with associated computer name on it

    Hi
    I Need VDS script in order to change domain client local administrator password in my domain ,and put this script in startup script via group policy, but for security purpose  I want to randomize local administrator password and log new password
    set for each computer on a text file, I want to over write the old password of eachcomputer in log file with new one in order to have the update log file ,my support team some times need administrator password for troubleshooting.
    I need a script for generate randomize administrator password  which make log file to recorded new administrator password with associated computer name on it and each time new administrator password set it over write the old record on
    the log file and update the content of log file automatically.
    Regards

    Hi
    I need a script for generate randomize administrator password  which record new password on a  log file with associated computer name  and each time new administrator password set for a computer it  over write the old record
    on the log file and update the content of log file automatically.
    Regards

  • UDF for leading zero's in message mapping

    Dear team,
    I need UDF for leading zero's in my message mapping.
    Source and Target both structures contains matnr field.But we have to maintain total 18 chars at target matnr , because RFC in R/3 needed.So I want to add leading zero's when mapping. Can anybody provide the UDF code.
    Matnr[source]--->split by value(eachvalue) ->UDF->Matnr[Target]
    Ex::if source matnr conatains value "9846538" ; I need matnr value at target side like "000000000009846538"[total 18 chars].
    -Drumi

    Hi Ambrish,
    Good day...
    I have enterd what you said and I got below error... and I gave "input" in place of var1, 18 in place of filedlenght in below program...
    =================================
    int len = Integer.parseInt(18);
    int inputLength = input.length();
    try {
    Integer.parseInt(input);
    // If it is an integer, add 0 (len - inputLength) times
    for (int i=0; i< len-inputLength;i++)
        input = "0" + input;
    return input;
    } catch (NumberFormatException numForEx) {
    // return as it is, if alphanumeric
    return input;
    ====================================
    ERROR:
    Source text of object Message Mapping: Lubrisur_SHPMNT_SHPMNT05_TO_WMMBXY_WMMBID02_TransferPosting | urn:bp:xi:dwn:lu:common:Logistics:100 has syntax errors:
    Function LeadingZeros, Line 1:
    cannot find symbol symbol  : method parseInt(int) location: class java.lang.Integer int len = Integer.parseInt(18);                  ^ 1 error
    =======================
    Please suggest

  • Inbound IDOC error (Name MARA is not in the namespace for generated BW Metaobjects)

    Hi everybody,
    we are currently having some issues with importing idocs into our ERP DEV System and i cannot figure out what the problem could be.
    I am trying to import an IDOC Type ARTMAS (5) but i keep getting the following error "Name MARA is not in the namespace for generated BW Metaobjects"
    The system is a ERP only system with no BI content activated at all.
    I don´t find any more errors nor any dumps or SLG1 entries related to this issue.
    Did someone already experienced that kind of problem, or do some of you maybe have an idea where to have a deeper look.
    thanks & best regards
    Peter
    EDIT:
    Running on ERP 6.0 EHP 7 SPS 4

    Hi Ganesh,
    I guess there is something wrong with the data in the ODS.
    Check this post:
    Re: error 18 in the update!
    Bye
    Dinesh

  • UDF for JDBC lookup in PI 71

    I am facing some issue while importing the SQL meta-data from db2 in PI 7.1 , guess the db2 version is old and not compatible with 7.1 or could be problem with drivers, I want to go head with writing UDF for the jdbc lookup, can you please let me know  the code and how it can be written or blogs, thanks

    >>> can you please let me know the code and how it can be written or blogs, thanks
    You can try this link if you dont want to use graphical jdbc lookup... Follow this link , it has code to use ...
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Also refer these links
    For 7.0 -  http://scn.sap.com/people/william.li/blog/2007/03/30/using-jdbc-connection-pool-in-xi-message-mapping
    For 7.1 http://scn.sap.com/people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups

  • Long time for generating spool request for smartforms

    Hi,
    I'm have designed a  smartforms for printing a Receipt form. It takes about 1 minute for generating spool request after pressing the PRINT button in PRODUCTION Server only.
    The Code i used is below
    CALL FUNCTION lv_fname
      EXPORTING
          p_belnr                    = p_belnr
          p_bukrs                    = p_bukrs
          p_gjahr                    = p_gjahr
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      Please help me out to sort this issue.
    Thanks,
    Ramesh
    Edited by: Rameshkumar Raamasamy on Mar 4, 2012 6:21 AM

    Hi Rameshkumar,
    you may look at the code sections of your smartform: If you have a lot more data in production than you have in development, it is especially important to use a fully specified primary key for any SELECTs.
    You may also ask your basis people to check if any performance warnings have been recorded with database system. This happens quite frequently that growing database tables cause problems when table spaces are not properly assigned or table sizes are not maintained adequately.
    Regards
    Clemens

Maybe you are looking for

  • Can't Edit in Adobe Soundbooth

    Hi everyone, I have run into a problem... When I select "edit in adobe soundbooth", then change my audio, quit soundbooth (saving work), then the modified audio is now in my audio track, and also as a separate file in the project panel.  Super. BUT,

  • Default directory for file-upload in web.xml

    Hi, Does any one know how to specify a relative path for the temporary directory in the web.xml file. In the web.xml file under the jato_MultipartFormFilter filter I tried to change the name of the directory so that it reflects a relative path but it

  • How does IDP handle multi-value attributes in directory?

    I have a directory referenced by the IDP where the mail attribute is multi-value. Assertions being received by the SP are indicating that the mail attribute is null or empty. How does the Oracle IDP handle multi-value attributes from a directory? Is

  • Exit for pa40

    In PA40, when I execute hiring action, I am getting a pop up with Personnel data details like Title, First Name, Last Name, Date of Birth, i want to validate last name and first name like no special character should come.

  • Computer freezes all the time!

    I have had my computer for about 6 months and lately I have been getting majore problems. The comp freezes when i try to play games (freezes at startup), install games (with video intro), work in Office XP Word (copy and paste pictures), start up Nor