UDF retrieval help

Hey All,
Can anyone tell me how I can properly read a UDF field from the UDF form on the purchase order screen?
Usually i just read the text value from the activeform but of course this does not work for the UDF form as it is not the active form.
A code example on how to do this would be really appreciated.

Well yes... but it's ugly...
When you open a form it gets a unique uid like "F_139"... The sidebar also get a UID, and that UID it always one higher (Sidebar for F_139 would have uid "F_140")... So with some substrings, conversion to integer, integer++ and back to a string uid you should be able to get the uid of the sidebar... problem is that if the sidebare is not active "F_140" will not exist... You can handle that using try catch or more correct check if menuitem "6913" (Userdefined Fields) is checked...
Works... Think so... Ugly... Hell yes .. I would go with the dbdatasouce solution + active-item on the main form if it was me

Similar Messages

  • Problem in UDF please Help?

    Hi all,
    Iam geting date and time stamp from source side and the format is like this
    07/10/09 11:12:48 from this i have to take only date.How to write the UDF for this do we have standard funtions for this in graphical mapping.the out put has to be like this 20071009.
    Regards,
    Phani

    Hi Phani,
    Do same as mention below:
    1. Date Trans Properties -
    > Format of Source Date, now click on question mark with hand symbol (F4 help) you will get new window.
    2. In new window under Date&Time Format: write yyMMdd and just bisede that in another box write or select HHmmSS
    3. Now under Date Separator select from dropdown box “/” symbol
    4. Under Time Separator select from dropdown box “:” symbol
    5. Under Date&Time Separator do not select any thing, I mean leave empty.
    Now press Create Pattern button.
    Do not close first window, now in the first window under
    Target Format---> In the input screen box manually input yyyyMMdd
    And press OK button
    Mapping:
    Target field -
    > DateTrans -
    > source field.
    Regards,
    Sarvesh

  • BBM Group Chat Message Retrieval - Help Make a Mother's Day!

    Hey folks,
    I recently returned from a trip abroad and while away I sent to my family various messages to a little BBM Group my younger sister help set up of what I had done the previous days. For some reason that remains to be seen, the default setting on BBM Groups is keep messages for 3 days. Needless to say, there were a few messages that my mom really liked and wants to save, but she isn't technologically inclined and they have since disappeared from her phone.
    Is there any way to get these messages back? Perhaps a phone restore to a few days ago or something? Or is there someone I can call at BB or my carrier (Rogers) to get them to retrieve it? Surely it's saved on a server somewhere.
    My mom woke up this morning stressed beyond belief that she's lost one message I sent in particular (the one reflecting on the trip as a whole) and she would love to be able to save it.
    Thanks, and to the mothers out there: have a happy mother's day!

    CSV files can be opened using Excel or most any database software or a notepad application...
    How to manually transfer files between a BlackBerry smartphone and a Windows computer
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • CS4 serial number retrieval help!

    I have had a copy of Adobe Creative Suite 4 Design Studio Premium Student version for a few years now, but I haven't had a computer to put it on. I recently got a MacBook Pro with OSX operating system on it and am trying to download CS4. When I go to get the serial number, it says that the coupon code is invalid. I'm not sure if the code has been used or Adobe doesn't accept codes for CS4.
    Does anyone know how I can retrieve my serial number?
    Thanks!

    Contact support directly by web chat. You are simply behind the times. You should have gotten your serial number back then.
    Mylenium

  • Steps required to create Jar in NWDS for import in XI and use in UDF. Help!

    Hi !
    I'm a Java newbie. I've been reading about ejbs, NWDS, etc., but don't know how to set up a project in NWDS for the purpose of creating a jar file with a java class inside with methods to be called insde a UDF in graphical mapping. I understand that the imports inside the java class depend on each case. What type of project do I need to create in NWDS? Where do I put the class methods?
    Thanks,
    Matias.

    Hi Bhavesh !
    Thats exactly what I meant. Ok, and after writing all my methods, I've noticed I can go to Project | Rebuild All, to get my ".class" files generated..
    After that step, I can use the command line or a zip utility to make the .zip or .jar with all my .class files. Am I right ??
    There is no "Build JAR Archive" option for this kind of project..Am I doing something wrong?
    Thanks,
    Regards,
    Matias.

  • FM to retrieve help data of a screen field? How to fill structure PHELP?

    Hi Experts,
    Iam designing dynamic search helps. With connection to this
    i have to get the preliminary data about the screen field. i.e the technical details
    of F1 help of a particular field. Is there any function module which take input as
    screen field name and fetch me its details like domain, database table etc?
    How does the structure PHELP be loaded at run time?
    Thanks,
    Satish.

    hi
    you can try 'DYNP_READ' or 'DYNP_VALUES'
    To read the contents of a screen data- its fields, characters, values and positions.
    Thanks.

  • UDF for sorting date

    Hi Guys,
    I am doing scenario File to Idoc, i have to sort date in acending order, the date format will be in either 22.10.2007 or 22/10/2007 . can any one send UDF for this.
    Regards,
    venu gopal

    Hi Venu
    You can execute this without UDF. Use " Transform" function in the Date functions.
    When you are using the UDF....you keep the strucure as "yyyMMddhhmmss" for that clickon Trnasform function and there you can see ShowAdvancedProperties...there u can find the format of the source which you are expecting and also change the strucutre of you target expected format.
    You please try this and check the mapping it will get execute.
    Use Standard Date Function DATATRANS. It have the property for format and input is the source date field. It will convert the date format to required specified format which you menstion in the DARTATRANS function
    for UDF
    Re: UDF  for this mapping rule
    Re: Problem in UDF please Help?
    Thanks!

  • Need help with user defined function

    Hello SDN,
    I need some help with a user-defined function. My source message contains multiple
    generic records (1000 char string), and my target message is 1 header record,
    then multiple generic records.  See description of source and target messages below:
    Source:
      GenericRecordTable 1..unbounded
        Row (1000 char string)
    Target:
      Field1 (char5)
      Field2 (char5)
      Field3 (char5)
      IT_Data
        GenericRecordTable 1..unbounded
          Row (1000 char string)
    Basically, what I need to do in my user defined funtion is to map the first record
    in my source record to the 3 header fields, then map all of the rest of the records
    (starting from line 2) into the GenericRecordTable.
    Can someone please help me with the code for the user defined function(s) for this
    mapping?
    Thank you.

    hi,
    Activities
    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
    graphic is explained in the accompanying text), which is located on the lower left-hand side of the
    screen. In the menu, choose Simple Function or Advanced Function.
    2. In the window that appears, specify the attributes of the new function:
    Name
    Technical name of the function. The name is displayed in the function chooser and on the data-flow
    object.
    Description
    Description of how the function is used.
    Cache
    Function type (see above)
    Argument Count
    In this table, you specify the number of input values the function can process, and name them. All
    functions are of type String.
    3. In the window that appears, you can create Java source code:
    a. You can import Java packages to your methods from the Imports input field, by specifying them
    separated by a comma or semi-colon:
    You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
    all message mappings require these packages and therefore import them. You should be able to
    access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
    package under Import. In other words, you do not have to import it as an archive into the Integration
    Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
    SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
    In addition to the standard packages, you can also specify Java packages that you have imported as
    archives and that are located in the same, or in an underlying software component version as the
    message mapping.
    b. Create your Java source text in the editor window or copy source text from another editor.
    4. Confirm with Save and Close.
    5. User-defined functions are limited to the message mapping in which you created the function. To
    save the new function, save the message mapping.
    6. To test the function, use the test environment.
    The new function is now visible in the User-Defined function category. When you select this category,
    a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
    function to the data-flow editor, choose the arrow next to the button and select from the list box
    displayed.
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
    http://java.sun.com/j2se/1.5.0/docs/api/
    /people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
    /people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    UDF -
    http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
    Regards

  • How to get Help Values (F4 Values) for HR Infotype 22 and Infotype 337?

    Hi,
    Currently I am retrieving help values (F4 values) for different HR Infotypes using BAPI_HELPVALUES_GET bapi.
    I am able to provide parameters for HR infotype 0002(Personal Data), 0006(Address).
    The problem I am facing is, I don't know what to provide in OBJECT TYPE or in OBJECTNAME for HR infotype 22 (Education) and Infotype 337(Professional classification).
    I know, in which database help values are stored, but don't know what to provide in OBJECTTYPE, OBJECTNAME, METHOD and PARAMETER.
    Thanks for your help.
    Thanks,
    Ketan

    Does anyone have answer of this question?

  • Sample UDFs

    Hi,
    I am new to UDF's. Can anybody tell me the difference between simple UDF & Advanced UDF with some example code?
    Thanks
    Narayana

    Hi Narayana,
    the differnece is the simple UDF take a values with occurance 1of type string as input and process and produces a tring value as output.
    Advanced UDF takes entire queue as input and writes the value to this queue.
    Standard functions - http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    UDF - http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
    /people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio
    http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d046c490-0201-0010-84b6-9df523cbca31
    Thanks,
    Ram

  • Contextual help topic link/recognition

    Is adobe Captivate contextual help topic link/recognition compatible?

    At present we use PeopleSoft system and the eLearning application it is linked to is UPK (both Oracle based).  I have recommended to change UPK to Adobe captivate.  But first need this issue addressed:
    Each page in the PeopleSoft application includes a Help icon that, when clicked, opens a new browser window displaying help topics related to that page.
    Universal Linking enables the hosted PeopleBooks system to search through one or more PeopleSoft product lines and return context sensitive help. This functionality makes it possible to retrieve help from PeopleTools and one or more applications(this is UPK), all using the same link you configure in the web profile of your application.
    So basically I need to know if Captivate is capable of this linkage.  All my files (UPK) are presently sitting on IIS webserver 7 within a web template.
    Hope this helps.
    Thanks
    Allison
    Allison Davis
    Systems Officer (UTrain) & Student Systems Co-ordinator (Acting)
    Student Administrative & Academic Support Ι Students & Communities Division Ι University of Southern Queensland
    Toowoomba Ι Queensland 4350 Ι Australia
    email: [email protected]<mailto:[email protected]

  • Plz help me for checking the Header record exists or not

    Hi
    How we check the whether the Header record exists or not.. if it is not exists i have raise an exception.. i wanna do this using UDF
    Plz help me  its urgent..
    venkat

    Maybe you should read all the responses in your earleir threads and read the rules of engagement also,
    /thread/117188 [original link is broken]
    Regards
    Bhavesh

  • Complete-guide on UDFs

    hi
    am basically an Abaper,i need complete guide from basics of how to write udfs in xi,with screen shots if possible.....
    points will be awarded for helpfull answers
    regards
    chandrakanth.k

    Hi,
    UDF STEPS *
    Activities
    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
    graphic is explained in the accompanying text), which is located on the lower left-hand side of the
    screen. In the menu, choose Simple Function or Advanced Function.
    2. In the window that appears, specify the attributes of the new function:
    Name
    Technical name of the function. The name is displayed in the function chooser and on the data-flow
    object.
    Description
    Description of how the function is used.
    Cache
    Function type (see above)
    Argument Count
    In this table, you specify the number of input values the function can process, and name them. All
    functions are of type String.
    3. In the window that appears, you can create Java source code:
    a. You can import Java packages to your methods from the Imports input field, by specifying them
    separated by a comma or semi-colon:
    You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
    all message mappings require these packages and therefore import them. You should be able to
    access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
    package under Import. In other words, you do not have to import it as an archive into the Integration
    Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
    SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
    In addition to the standard packages, you can also specify Java packages that you have imported as
    archives and that are located in the same, or in an underlying software component version as the
    message mapping.
    b. Create your Java source text in the editor window or copy source text from another editor.
    4. Confirm with Save and Close.
    5. User-defined functions are limited to the message mapping in which you created the function. To
    save the new function, save the message mapping.
    6. To test the function, use the test environment.
    The new function is now visible in the User-Defined function category. When you select this category,
    a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
    function to the data-flow editor, choose the arrow next to the button and select from the list box
    displayed.
    Check this for UDF's
    UDF Links *
    http://java.sun.com/j2se/1.5.0/docs/api/
    /people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
    /people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    UDF -
    http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
    + UDF Help +
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
    regards,
    Kishore

  • No Help content available

    Hello all,
    One of our users is working in Flash 8 Professional (v8.0d478
    on a PowerMacG5, MacOSX 10.4.11) and is trying to do a search via
    the help window (F1). All we get is a [No entries were found]
    message no matter what we type in the search field.
    I click the Update icon at top right of window to retrieve
    help content, get a progress bar for a few seconds then get the
    following error msg:
    "No new help content is available."
    Is it possible for me to manually retrieve help content
    either via update installer file or any other means? Please advise
    and Regards!

    Thanks for sharing your posts.
    Apparently, Adobe decided to change the function of the Help application. In CS6 this is called the Help Manager. See this post for their new design philosophy: http://forums.adobe.com/thread/1000134
    My best guess is that Adobe did the same for Lightroom 4, hence the local help is not available as html, and not yet as pdf: http://forums.adobe.com/thread/1000134
    http://forums.adobe.com/message/4390741#4390741
    I do regret that there is no backwards compatibility for the help function for those who stick with CS5.5. This way, it is utterly confusing and not useful.
    Cheers,
    Dave

  • Advance UDF --- Remove Context

    Hi all
    I want to use RemoveContext function in UDF ...as this will be based on few conditiond.
    Hence i can not use the standard removeContext node function..
    can any one tell me the code for doing the same..
    Sheetal

    you can have a remove context functionality outside the UDF itself.
    Right click the source field and change the context from the parent node to the top(root) node to remove all contexts.
    Note: you can indeed ADD context etc in a UDF - http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm

Maybe you are looking for