Creating fields as LOV (using alternate names) on OTL timecards

Hi,
I would really appreciate if someone can help me understand the process of being able to add fields on OTL timecard as LOV fields using alternate names. These are COST segments which I need to add on OTL timecard. The part which is most confusing to me is modifying the .ldt to get these fields working.
Appreciate if anyone can point me to related documents.
Thanks,
Maddy
--

Hi Maddy
Ramsys has pointed you towards a very useful document, the timecard configuration guide. But, the guide is very complicated and it shows you what to do, but doesn't really explain 'why' you have to do it.
I run training courses on OTL, and this is a complex area to understand. It is possible to display almost anything on the timecard if you put your mind to it! Your example fo the cost centre is quite straightforward. Youi can create a value set to display the cost codes you want. A suitable one might already exist. You then need to have a view object (VO) to use this on the timecard. OTL provides 10 dummy VOs which you can use. The guide explains how to do this. The VO links your value set to the timecard. This step accounts for displaying the data on the timecard.
You also need to have somewhere to store the values selected by the user. To do this you need to define a contect in the OTL_INFORMATION_TYPES DFF to store the data. You will also need to have a mapping component to link the data on the screen to the OTL_INFORMATION_TYPES context. Usually, you can use an existing mapping component.
Good luck!
Regards
Tim

Similar Messages

  • Getting HTTP 400 while creating field in Account using Eloqua REST 2.0 API.

    I tried to create field in Account using /API/REST/2.0/assets/account/field, but got HTTP 400-"Request contains a message that does not conform to the contract."
            "constraint": null,
            "detail": null,
            "field": "permissions",
            "stackTrace": null,
            "value": "fullControl"
    I refered http://secure.eloqua.com/api/docs/Static/Rest/2.0/doc.htm#AccountField for AccountField API.
    As mentioned in API, permissions is of type InstancePermissions and has valid values as read,write and fullControl.
    Here is my sample request for creating account field.
      "name":"employee_office_address",
      "description":"field created for office address",
      "permissions":"fullControl",
      "folderId":null,
      "sourceTemplateId":null,
      "accessedAt":null,
      "scheduledFor":null,
      "depth":"complete",
      "internalName":"employee_office_address",
      "optionListId":null,
      "checkedValue":null,
      "uncheckedValue":null,
      "displayType":"text",
      "dataType":"text",
      "defaultValue":null,
      "isReadOnly":false,
      "isRequired":true,
      "isStandard":true,
      "outputFormatId":null
    Why I am getting this error? Am I doing something wrong here?
    Also, how will I able to know which field are mandatory and which are optional for making AccountField call?
    Could anyone please share information on this ?
    Thanks in advance.

    Hello,
    In order to solve your issue, I recommend you post your issue to exchange server development forum for more appropriate.
    http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=exchangesvrdevelopment
    Cara Chen
    TechNet Community Support

  • Create a between filter using months names ...

    Hi, I need to create a dashboard filter using month names in a between statement for examples:
    From: January - To August
    the problem is when I do this the Obiee server made a filter by alphabetic order, so for the example the result will be nothing (because A is prior to J)...
    How can I solve this
    (My boss is in my neck and I have a family to feed...)
    Thanks in advance...

    Hi,
    mma as given you the solution which would be helpful.
    I can say workaround for this,what ever date parameter you want to convert to january....december
    you can make an alias of that column as said above and write the filter on that date with a sql statement example as follows
    select to_char(sysdate,'FMmonth') from dual
    same way you take your requirement as select to_char(*your_date_column*,'FMmonth') from your_table
    Hope it helps,
    Best Wishes,
    Kranthi.
    Edited by: Kranthi.K on Nov 9, 2009 10:56 PM

  • Problem - Creating a Dynamic LOV using duplicate value in select statement

    I am trying to create a Dynamic LOV by attempting to follow a pattern similar to the following:
    select shop_name d, shop_id r
    from shops
    order by 1
    However, I want to use the shop_name twice as in the following because I do not have any other unique identifier available such as a shop_id to associate with the shop name:
    select shop_name d, shop_name r
    from shops
    order by 1
    But I get an error where I am not allowed to duplicate the shop_name in the select statement. I read somewhere on this forum where it can be done but I can't find exactly how.
    Can someone tell or show me how to accomplish this?
    Thanks in anticipation for your answer.
    Thanks,
    Ric

    Ric,
    I just tried to do this on APEX 3.0, and it worked just fine with this SQL:
    select ename d, ename r from emp order by 1Perhaps you could put an example on apex.oracle.com or specify the error message that you're getting.
    So as long as you have uniquely aliased both columns, this should not present a problem.
    Thanks,
    - Scott -

  • TIMECARD FIELD VALUE IS INCORRECT IN ALTERNATE NAME

    Hi,
    I use Alternate name definition form to create new Alternate name and assigned it via preferences.
    When I login as SS create Timecard the Hours Type poplist is empty.
    When I look at the VO it expect the Time_card column in hxc_alias_definitions to have value of 'Hours Type' but in the record the
    column is empty.
    I checked the default one (Alternate name definition ) which is created by the concurrent program 'Generate Flexfield and Mapping
    Information'
    has Timecard_field value of 'ElementComponent' which is causing it doesn't work also.
    Pleas help.

    I am using HR with OTL
    1. I create element with with primary classification 'Information'.
    2. Create input Values with name Hours
    3. Create element link and link specific payroll value to the element.
    4. Create element set and include the element
    5. Use OTL administrator to generate the flexfield mapping
    6. Enable segment of the generated flex
    7. Create public template (monday to Sunday) and Template group
    8.Created Alternate Name with following data:
    OTL Alternate Name DFF Context,
    Payroll Elements
    And above element attached and enabled.
    9.Created weekly recurring period.
    10.Used the seeded Human Resources application set
    11.Created the Approval Style with application as one level approval
    12.Created a weekly approval period
    13.Used the seeded human resources retrieval rule.
    14.Used the seeded Retrieval Rule group withgroup name Human Resources Retrieval Rule Group
    Time Store Approval Period,
    Self-Service timecard period for worker,
    Time Store Approval Style,
    Self-Service timecard, review and confirmation layout pages for a worker
    Self-Service timecard status that allows user edits
    Time Store Application Set,
    Time Store Retrieval Rule Group,
    Timecard period
    Timecard alternate Name
    Public template group
    Self Service Default Template Assigned by Sys Admin
    Create eligibility criteria for the new preference to all people
    I tried attaching the default enabled alternate name and also the custom one and both don't help.

  • Tutorial:  Creating, saving and re-using Custom Shapes

    I've beeen experimenting with custom shapes for the last couple of days, and thought I'd share some of the tips and techniques I found.
    First of all, what are custom shapes?
    Well, they're vector objects.  That means that they are not built out of millions of individual pixels (like images are), but rather they're a series of mathematical statements that describe how to draw a line from point to point to create the vector shape.  This means that custom shapes are "resolution independent", and that they can be grossly shrunk or enlarged and still retain razor sharp edges, curves and corners.
    What are custom shapes good for?
    Pretty much anything where you want to use a good, sharp object.  In particular, using a custom shape as a clipping mask for an image that's been placed as a Smart Object is an outstanding technique, and really shows off the power that PSE is capable of.
    PSE comes with a lot of ready-to-use custom shapes for its Custom Shape tool, and there are probably hundreds of thousands available on the Web -- just search for "photoshop shapes".  Typically, those shapes will be supplied as Adobe CSH (Custom SHape) files, and simply copying the CSH files into the
    "C:\Program Files (x86)\Adobe\Photoshop Elements 10\Presets\Custom Shapes"
    directory will make them available for use with the Custom Shape tool.
    Sooner or later, though, you'll get the itch to create your own custom shapes.  Out of the box, PSE does not have the capability to let you create custom shapes and add them to the CSH files like the "big" Photoshop does, so we'll need to use a workaround:  store your custom shapes as layers in a PSD file, and when you want to use them simply copy them into your image. 
    N.B.:  To create custom shapes you'll have to use the reasonably priced Elements+ add-in:
    http://elementsplus.net/
    So, the procedure goes like this:
    Create a new image, using the PSE defaults, and save it as "CustomShapes01.psd", keeping it open.
    Open an image containing an object that you want to use as a custom shape.
    Use any of the selection tools to make an accurate selection of the object:
    In the Effects panel, use the Elements+...Paths effect and choose the Create New Path...From Current Selection:
    Use the Elements+...Paths again, choosing "Convert to Shape", giving it a name and colour of your choosing.  This will create a Shape Layer using that name.
    Important:  If your shape has "holes",
    use the Shape Selection tool and click on the shape to select it.  Then hit the "Combine" button in the Options Bar.  This will combine all the individual shapes used to create the shape and its "holes" into one shape, and prevent beaucoup problems later.
    Switch to the Move tool and drag the shape onto the tab of your "CustomShapes01.psd" image, keeping your mouse button pressed.  That image will become activated and you can move your cursor onto the image itself and drop your shape onto it.  Your PSD file will now have your custom shape as a shape layer:
    Save that "CustomShapes01.psd" file.
    You can repeat the process for as many custom shapes as you want, and they will each become a layer in the "CustomShapes01.psd" file.
    To use your custom shape, open the "CustomShapes01.psd" file and your target image and do the drag and drop with the Move tool to copy the custom shape onto your target image.
    I mentioned that using a custom shape as a clipping mask for an image placed as a Smart Object is a very powerful technique.  It's powerful because the custom shape can be altered at any time and still keep its sharpness, and because the Smart Object can also be resized without becoming pixellated.  Of course, that custom shape layer can have any number of layer styles applied to it and those layer styles will "follow" the shape if the shape is moved, resized or rotated.
    Here are three examples of using the custom shapes as clipping masks for Smart Objects:
    In this example, each custom shape is used as a clipping mask for an image Smart Object, as usual:
    Here, one custom shape was used as a clipping mask for an image Smart Object and they were linked. 
    Then the shape and image were duplicated and moved, rotated and resized.  Because of the linking, the Smart Object automatically kept its orientation and size relative to the custom shape throughout:
    If you want to use custom shapes as a "combined" clipping mask, the procedure is a little more complicated because you need to get all your custom shapes on one shape layer. 
    So, after copying your shapes into the target image (as separate shape layers), use the Shape Selection tool to select one of the shapes.  Using Edit...Cut will cut that shape layer to the Clipboard, and you can select one of the other shape layers and use Edit...Paste to paste the custom shape into that shape layer.  Repeat as necessary, and you will get all of your custom shapes on one shape layer.  Then use that single shape layer as your clipping mask:
    The neat thing is that the individual shapes can be selected with the Shape Selection tool and independently moved, resized or rotated as necessary.
    Enjoy!
    Ken

    Thanks, Michel.
    I forgot to mention one point about copying shape layers into one shape layer:  when you initially use the Shape Selection tool to select a shape for cutting, make sure the option for the Shape Selection tool is set to "Add to Selection".
    MichelBParis wrote:
    The problem with Elements+ is that it has so many features you soon forget what it can give you !
    Truer words were never spoken! 
    Ken

  • Problem in using table name dynamically in PL/SQL

    I tried to create a procedure to use table name dynamically and got the following error. Anything wrong with my procedure?
    NFADV>declare
      2   cnt number;
      3   cursor cur is select table_name from user_tables where table_name in ('EMP','DEPT');
      4  begin
      5   for c1 in cur
      6   loop
      7    execute immediate select count(*) into cnt from c1.table_name;
      8      dbms_output.put_line('Count is : '||cnt);
      9   end loop;
    10  end;
    11  /
    declare
    ERROR at line 1:
    ORA-06550: line 7, column 21:
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively-quo
    ORA-06550: line 8, column 5:
    PLS-00103: Encountered the symbol "DBMS_OUTPUT"
    ORA-06550: line 8, column 45:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , * % & - + / at mod remainder rem <an identifier>
    <a double-quoted delimited-identifier> <an exponent (**)> as
    from into || multiset bulkThanks and Regards
    Kaustubh

    Hi,
    The wrong part is in execute immediate, it should be as follows:
    execute immediate ('select count(*) from '|| c1.table_name)
    into cnt
    (not tested)
    Regards
    AK

  • Detailed Steps to create a new LOV in AK Regions

    Hi,
    Can any one give the information on how to create a new LOV using AK Developer responsibility?
    Thanks

    Hi,
    Can any one give the information on how to create a new LOV using AK Developer responsibility?
    Thanks

  • Standards for creating fields & table names

    Hi All,
    I need to know if there are any SAP standards or standards from clients to be followed in creating new fields, tables & description.
    If there are any such data, please share with me.
    Urgent.
    Regards,
    Pramod

    Hi Pramod,
    mostly we're using a common Term for the field name. The field code is the field name in uppercase using MDM_ as prefix. As you have to replace blanks (a field code does not allow blanks) we use an _ instead. Note: if you want to distinguish between SAP created and custom fields, we recommend using a different prefix! Maybe you can start your Custom field codes with ZMDM or a prefix describing your customer? Currently we cannot enforce this in MDM as the MDM_ prefix is not yet protected. But if you follow our recommendation, it'll ease up your life and of course ours, too, as we can differentiate between SAP and customer fields in OSS messages.
    Edit: regarding descriptions
    If your field is somehow linked with a ERP field, you could reuse the description of ERP for example!
    Cheers
    Michael
    Edited by: Michael Theis on Jul 25, 2008 10:57 AM

  • HT5624 Why in my email ( the one on my ipod5 that I use with my apple ID) when I get emails about my use of my apple ID to use a service in the from field it has my fathers name and when I click on it it shows his contact info ????

    Why in my email ( the one on my ipod5 that I use with my apple ID) when I get emails about my use of my apple ID to use a service in the from field it has my fathers name and when I click on it it shows his contact info ???? I also set up my apple ID with a new email account and also I signed up for iCloud but used the same apple I'd email and password but it gave me a I cloud email! I did activate the favorites in my email . Noticed the from field has my fathers name and contact and it is a notification about me using my apple ID to sign in to FaceTime! Something is messed up, not sure how or why???

    i didn't read a lot of your 2nd paragraph, but it seems like the password is the issue, right?
    do a true clean install
    reboot your machine and hold down command+option+r, you should see a spinning globe - if you don't see the globe or anything that reads internet recovery, shut down and try again
    at menu, chose disk utility and once there, find your HD on the left side, select the physical name and erase it as mac journaled
    exit disk utlity
    at menu, choose install OSX
    this time, when it asks for a password just hit continue, it will let you complete without a password
    you should be able to get into your laptop, now figure out what password you'll be able to use with your kb issue

  • Issue while creating connection pool in weblogic using SERVICE NAME

    Found two issues while creating connection pool in weblogic using SERVICE NAME
    1. While running apps from jdeveloper using xxx-jdbc.xml
    weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Io exception: The Network Adapter could not establish the connection
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
         at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:214)
         at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1051)
    2. Configuriing the jndi in Weblogic server
    weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:SERVICENAME
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
    Problem
    database url is generated based on SID
    eg: jdbc:oracle:thin:@localhost:1521:SID
    Solution
    (generate seperate url for SERVICE NAME)
    jdbc:oracle:thin:@localhost:1521/SERVICENAME
    ------------------------

    It is so clear: host not found error for network connection and the other SID servcie name not found means your oracle instance name is not up. check with srvctl status for given servcie name or node, else check CRS_Stat -t if you are using RAC.

  • Set "peoples or groups" field with current user "login name" in sharepoint list form using javascript

    hi friends
    i am trying to set peoples or groups field in sharepoint  list form with current user login name
    here my code
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    $(document).ready(function NewItemView () {
    var currentUser;
        if (SP.ClientContext != null) {
          SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser, 'SP.js');
        else {
          SP.SOD.executeFunc('sp.js', null, getCurrentUser);
        function getCurrentUser() {
          var context = new SP.ClientContext.get_current();
          var web = context.get_web();
          currentUser = web.get_currentUser();
          context.load(currentUser);
          context.executeQueryAsync(onSuccessMethod, onRequestFail);
        function onSuccessMethod(sender, args) {
          var account = currentUser.get_loginName();
          var accountEmail = currentUser.get_email();
          var currentUserAccount = account.substring(account.indexOf("|") + 1);
        SetAndResolvePeoplePicker("requester",account);
    // This function runs if the executeQueryAsync call fails.
        function onRequestFail(sender, args) {
          alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     function SetAndResolvePeoplePicker(fieldName, userAccountName) {
       var controlName = fieldName;
        var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
        var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
        var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
        peoplePickerEditor.val(userAccountName);
        spPeoplePicker.AddUnresolvedUserFromEditor(true);
    </script>
    but it is not working
    please help me

    Hi,
    According to your post, my understanding is that you wanted to set "peoples or groups" field with current user "login name" in SharePoint list form using JavaScript.
    To set "peoples or groups" field with current user "login name”,  you can use the below code:
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    function SetPickerValue(pickerid, key, dispval) {
    var xml = '<Entities Append="False" Error="" Separator=";" MaxHeight="3">';
    xml = xml + PreparePickerEntityXml(key, dispval);
    xml = xml + '</Entities>';
    EntityEditorCallback(xml, pickerid, true);
    function PreparePickerEntityXml(key, dispval) {
    return '<Entity Key="' + key + '" DisplayText="' + dispval + '" IsResolved="True" Description="' + key + '"><MultipleMatches /></Entity>';
    function GetCurrentUserAndInsertIntoUserField() {
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
    Function.createDelegate(this, this.onFailure));
    function onSuccess(sender, args) {
    SetPickerValue('ctl00_m_g_99f3303a_dffa_4436_8bfa_3511d9ffddc0_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField', this._currentUser.get_loginName(),
    this._currentUser.get_title());
    function onFaiure(sender, args) {
    alert(args.get_message() + ' ' + args.get_stackTrace());
    ExecuteOrDelayUntilScriptLoaded(GetCurrentUserAndInsertIntoUserField, "sp.js");
    </script>
    More information:
    http://alexeybbb.blogspot.com/2012/10/sharepoint-set-peoplepicker-via-js.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How do I generate the pdf file using the name of a field.  How can I help

    how do I generate the pdf file using the name of a field.  How can I help

    Hi,
    here's a sample.
    LiveCycle Blog: Formulare in bestimmte Verzeichnisse speichern und nach Inhalt aus Formularfeld benennen //Save forms to…

  • Using Bookmark Names to create Custom Stamps

    Hi all,
      I am a VB programmer that is struggling with a task in JS.  I am trying to do 1 of 2 things:  I would prefer #2.
    1.Create a custom stamp using the filename.
    or
    2.Create a custom stamp using the bookmark name (which in turn will be the filename)
    I have been foooling around for a number of hours trying to get this to work out, here's what I have done so far:
    I have created a stamp, the stamp has two text boxes that I need to fill from one string. The string is in the format of
    "08363-G-5109-DWG-R-00001_A.pdf" with a varying number of characters before the underscore, but always the same after the underscore. In the first text box I need
    08363-G-5109-DWG-R-00001 which I get with
    Code:
    event.value = event.source.source.documentFileName.slice(0,-6); this work great. The second box needs to contain the letter(s) that are between the "_" and the ".pdf" and everything I have tried doesn't produce a result.
    I focused most of my time trying to split the filename up, figuring the same logic would be applied to the bookmarks.
    The things I have tried:
    [CODE]
    var str = event.source.source.documentfilename;
    var strt = str.lastindexof("_");
    var end = str.lastindexof(".");
    event.value = str.substring(strt,end);
    and
    var arrStr = event.source.source.documentfilename.split("_");  ' **Harcoding = "08363-G-5109-DWG-R-00001_A.pdf" works**
    var arrstr2 = arrStr[1].split(".");                                             'But isn't very dynamic
    event.value = arrstr2[0];
    and
    var str = event.source.source.documentfilename;
    var arrStr = str.split("_");
    var arrstr2 = arrStr[1].split(".");
    event.value = arrstr2[0];
    [/CODE]
    Any assistance would be greatly appreciated!
    Bent

    GJ - The bookmark would be selected manually and the stamp would reflect the change.  The sole purpose of this is to combine and stamp hundreds of documents in the most efficient manner.
    So for example:
    I combine 3 docs by selecting them in Windows and right clicking and selecting combine:
    08363-G-5109-DWG-R-00002_A.pdf
    08363-G-5109-DWG-R-00002_B.pdf
    08363-G-5109-DWG-R-00002_C.pdf
    I would have 3 bookmarks automatically when the combination occurs:
    08363-G-5109-DWG-R-00002_A
    08363-G-5109-DWG-R-00002_B
    08363-G-5109-DWG-R-00002_C
    So when I select the bookmark 08363-G-5109-DWG-R-00001_A then click stamps - dynamic stamps , my two text boxes have used this bookmark to get                 Text 1                          Text 2
                                                                           08363-G-5109-DWG-R-00001     A
    Then I manually select the next bookmark and select stamp and it has used the next bookmark name to create a stamp  with two text boxes now              08363-G-5109-DWG-R-00002      B
    If I had to stamp them first them combine, I would have to open one, stamp, save close rinse and repeat 100 times then combine.
    GK - I did have a poke around with bookmarkRoot.children, but the only result I ended up with was the word "Root" in the second box.  I couldn't seem to determine if JS automatically builds the children collection based on the number of bookmarks off the root, or if I had to programmatically build it with an array.

  • Simple way to create field catalogs in ALV Reports using subroutine

         In ALV Reports When creating field catalog, instead of giving field catalog for every field seperatly we can use following simple method to create field catalog.
         This method makes your code very easy to read as well as to understand. I am going to show code only to prepare field catalog to make this method easy to understand. Their also contains code for fetching data from requires table and calling function module for ALV . I am not including it in this program but it should be their in program -
    REPORT ZALV_INTERACTIVE_REPORT.
    TYPE-POOLS SLIS.
    TYPES : BEGIN OF TY_MARA,
         MATNR TYPE MATNR,
         MTART TYPE MTART,
         MBRSH TYPE MBRSH,
         MEINS TYPE MEINS,
    END OF TY_MARA.
    DATA IT_MARA TYPE STANDARD TABLE OF TY_MARA.
    DATA WA_MARA TYPE TY_MARA.
    " Internal table and work area for Field Catalog
    DATA IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA WA_FIELDCAT LIKE LINE OF IT_FIELDCAT.
    START-OF-SELECTION.
    * PERFORM FETCH_DATA .
    " FIELDS IN FIELD CATALOG (PASSED IN SUBROUTINE):-
    "     'FIELDNAME'<SPACE> 'SELTEXT_M' <SPACE>'KEY'<SPACE> 'HOTSPOT'
    PERFORM PREP_CATALOG USING : 'MATNR' 'MATERIAL NO.' 'X' 'X' ,
                                                           'MTART' 'MATERIAL TYPE' ' ' ' ' ,
                                                           'MBRSH' 'IND SECTOR' ' ' ' ' ,
                                                           'MEINS' 'UOM' ' ' ' ' .
    * PERFORM CALL_ALV_FM .
    " Subroutine to create field catalog
    FORM PREP_CATALOG USING VALUE(P_FIELDNM)
                                                                  VALUE(P_SELTEXT)
                                                                  VALUE(P_KEY)
                                                                  VALUE(P_HOTSPOT) .
    WA_FIELDCAT-FIELDNAME = P_FIELDNM .
    WA_FIELDCAT-SELTEXT_M = P_SELTEXT .
    WA_FIELDCAT-KEY = P_KEY .
    WA_FIELDCAT-HOTSPOT = P_HOTSPOT .
    APPEND WA_FIELDCAT TO IT_FIELDCAT .
    ENDFORM .
              Above code will repeat the execution of subroutine PREP_CATALOG for every set of values passed to subroutine because we used
    USING : (chain operator) to pass value to subroutine.
              Subroutine will assign passed values to corresponding field and simply appends those values in ITAB created for field catalog(IT_FIELDCAT). It repeates this process until all the passed values are appended into ITAB.
              This method will reduce complexity of the code as well as time required to write code for every field's field catalog seperatly. It does lots of work in very few lines of codes.

    Scott,
    I don't think there is a way to divide all numbers by a million in one shot, but you could divide the numbers by million by writing code for each amount field as needed: <?FIELD1 div 1000000?> and the use the round function <?xdoxslt:round(2.777,2)?>
    combined function: <?xdoxslt:round((12345605.6 div 1000000),2)?>
    Thanks,
    Bipuser

Maybe you are looking for

  • Static noise on 6233 after FW Upg 4.91

    "I upgraded the firmware on my Nokia 6233 from 4.52(?) to 4.91 last night. Today I notice on calls that I get feedback in the speaker (not the loudspeaker ... at least not that I have noticed yet) ... Its fine when the other person talks, but when I

  • Uploading NTSC and PAL

    I have a 8 year old sony handicam from europe so it shoots in pal. For uploading to my mac, will it also take my old NTSC tapes? I'm pretty sure some of the tapes I've uploaded were shot in american on ntsc. How do I know if a dv tape was shot in pal

  • Finding the most common value in an array of enums

    Hello, I'm looking for an elegant way of finding the most common value in an array of enums My enum being: 0 - Close 1 - Open 2 - Undefined For instance, if my array contains: Close, Close, Open, Close, Close, Open. The most common value would be "Cl

  • Dynamic HTML link in webdb

    I want to create a link from a drawing name in a report to a drawing file. The link is made up of a drawing name and revision which are columns on the report. Is it possible to do this with WebDB? Example: drawing number = 001-1234-25 revision = A HT

  • Mass t,code field name issue

    Hi In t.code massobj bus2105 purchase requisition in field list new entries object type bus2105,table name eban,field name ebakz, save it,then i check mass t.code bus2105 field name ebakz not coming,plz help Regards Sam