Customizing assignment of a field to a column

Hi,
I'd like to customize mappings between a field property and a column of
a table in the datastore; I'd like to use the
PropertiesReverseCustomizer in order to
modifiy the default mapping.
For exampe, suppose these two tables exist in the schema:
FOO(FOO_ID PRIMARY KEY, FIRST_BAR_ID FOREIGN KEY REFERENCES BAR.BAR_ID,
SECOND_BAR_ID FOREIGN KEY REFERENCES BAR.BAR_ID)
BAR(BAR_ID PRIMARY KEY)
By default, the reverse mapping tool generates these two classes:
class Foo {
     Long fooId;
     Bar bar;
     Bar bar1;
<mapping>
<package name="test">
<class name="Foo">
<jdbc-class-map type="base" table="FOO"/>
<jdbc-class-ind type="subclass-join"/>
<field name="fooId">
<jdbc-field-map type="value" column="FOO_ID"/>
</field>
<field name="bar">
<jdbc-field-map type="one-one"
column.BAR_ID="SECOND_BAR_ID"/>
</field>
<field name="bar1">
<jdbc-field-map type="one-one"
column.BAR_ID="FIRST_BAR_ID"/>
</field>
</class>
</package>
</mapping>
class Bar {
     Long barId;
     List bars;
     List bar1s;
<mapping>
<package name="test">
<class name="Bar">
<jdbc-class-map type="base" table="BAR"/>
<jdbc-class-ind type="subclass-join"/>
<field name="barId">
<jdbc-field-map type="value" column="BAR_ID"/>
</field>
<field name="bars">
<jdbc-field-map type="one-many"
ref-column.BAR_ID="FIRST_BAR_ID" table="FOO"/>
</field>
<field name="bars">
<jdbc-field-map type="one-many"
ref-column.BAR_ID="SECOND_BAR_ID" table="FOO"/>
</field>
</class>
</package>
</mapping>
I rename the properties of the Foo class, in this way:
test.Foo.bar.rename=firstBar
test.Foo.bar1.rename=secondBar
The problem is that the customizer still maps the "firtBar" to the
column "BAR.SECOND_BAR_ID" and "secondBar" is mapped to "BAR.FIRST_BAR_ID".
So, I implemented PropertiesReverseCustomizer.customize(FieldMapping
fieldMapping):
public boolean customize(FieldMapping fieldMapping) {
     super.customize(fieldMapping);
     if(fieldMapping.getFullName().equals("test.Foo.firstBar")){
          OneToOneFieldMapping oneToOneFieldMapping =
(OneToOneFieldMapping)fieldMapping;
          ForeignKey foreignKey =
oneToOneFieldMapping.getTable().getForeignKey(FIRST_BAR_RELATION);
          oneToOneFieldMapping.setForeignKey(foreignKey);
     if(fieldMapping.getFullName().equals("test.Foo.secondBar")){
          OneToOneFieldMapping oneToOneFieldMapping =
(OneToOneFieldMapping)fieldMapping;
          ForeignKey foreignKey =
oneToOneFieldMapping.getTable().getForeignKey(SECOND_BAR_RELATION);
          oneToOneFieldMapping.setForeignKey(foreignKey);
     return true;
But the result is very strange. In fact, these are the generated classes:
class Foo {
     Long fooId;
     Long secondBarId;
     Bar bar;
class Bar {
     Long barId;
     List bars;
I really can't undestand why, but I supposed that switching the
ForeignKey object is not the right solution, so I tried this way:
public boolean customize(FieldMapping fieldMapping) {
     super.customize(fieldMapping);
     ForeignKey foreignKey = null;
     if(fieldMapping.getFullName().equals("test.Foo.firstBar")){
          OneToOneFieldMapping oneToOneFieldMapping =
(OneToOneFieldMapping)fieldMapping;
          ForeignKey foreignKey =
oneToOneFieldMapping.getTable().getForeignKey(FIRST_BAR_RELATION);
     if(fieldMapping.getFullName().equals("test.Foo.secondBar")){
          OneToOneFieldMapping oneToOneFieldMapping =
(OneToOneFieldMapping)fieldMapping;
          foreignKey =
oneToOneFieldMapping.getTable().getForeignKey(SECOND_BAR_RELATION);
     if(foreingKey!=null){
          ClassMapping classMapping =
tool.getClassMapping(fieldMapping.getTable());
          ClassMappingInfo classMappingInfo = classMapping.getMappingInfo();
          MappingInfo mappingInfo =
classMappingInfo.getField(fieldMapping.getName());
          FieldMetaData fieldMetaData = fieldMapping.getMetaData();
          Mappings.setForeignKey(mappingInfo,null,foreignKey);
     return true;
But the variable classMappingInfo is NULL!!!
I think that my goal is not so difficult, I just want to assign a given
field to a table column which is decided by me, but I can't understand
how I can do it.c

Claudio-
> I rename the properties of the Foo class, in this way:
>
> test.Foo.bar.rename=firstBar
> test.Foo.bar1.rename=secondBar
>
> The problem is that the customizer still maps the "firtBar" to the
> column "BAR.SECOND_BAR_ID" and "secondBar" is mapped to
"BAR.FIRST_BAR_ID".
What happens if you switch them? I.e.:
test.Foo.bar.rename=secondBar
test.Foo.bar1.rename=firstBar
Claudio Tasso wrote:
Hi,
I'd like to customize mappings between a field property and a column of
a table in the datastore; I'd like to use the
PropertiesReverseCustomizer in order to
modifiy the default mapping.
For exampe, suppose these two tables exist in the schema:
FOO(FOO_ID PRIMARY KEY, FIRST_BAR_ID FOREIGN KEY REFERENCES BAR.BAR_ID,
SECOND_BAR_ID FOREIGN KEY REFERENCES BAR.BAR_ID)
BAR(BAR_ID PRIMARY KEY)
By default, the reverse mapping tool generates these two classes:
class Foo {
Long fooId;
Bar bar;
Bar bar1;
<mapping>
<package name="test">
<class name="Foo">
<jdbc-class-map type="base" table="FOO"/>
<jdbc-class-ind type="subclass-join"/>
<field name="fooId">
<jdbc-field-map type="value" column="FOO_ID"/>
</field>
<field name="bar">
<jdbc-field-map type="one-one"
column.BAR_ID="SECOND_BAR_ID"/>
</field>
<field name="bar1">
<jdbc-field-map type="one-one"
column.BAR_ID="FIRST_BAR_ID"/>
</field>
</class>
</package>
</mapping>
class Bar {
Long barId;
List bars;
List bar1s;
<mapping>
<package name="test">
<class name="Bar">
<jdbc-class-map type="base" table="BAR"/>
<jdbc-class-ind type="subclass-join"/>
<field name="barId">
<jdbc-field-map type="value" column="BAR_ID"/>
</field>
<field name="bars">
<jdbc-field-map type="one-many"
ref-column.BAR_ID="FIRST_BAR_ID" table="FOO"/>
</field>
<field name="bars">
<jdbc-field-map type="one-many"
ref-column.BAR_ID="SECOND_BAR_ID" table="FOO"/>
</field>
</class>
</package>
</mapping>
I rename the properties of the Foo class, in this way:
test.Foo.bar.rename=firstBar
test.Foo.bar1.rename=secondBar
The problem is that the customizer still maps the "firtBar" to the
column "BAR.SECOND_BAR_ID" and "secondBar" is mapped to "BAR.FIRST_BAR_ID".
So, I implemented PropertiesReverseCustomizer.customize(FieldMapping
fieldMapping):
public boolean customize(FieldMapping fieldMapping) {
super.customize(fieldMapping);
if(fieldMapping.getFullName().equals("test.Foo.firstBar")){
OneToOneFieldMapping oneToOneFieldMapping =
(OneToOneFieldMapping)fieldMapping;
ForeignKey foreignKey =
oneToOneFieldMapping.getTable().getForeignKey(FIRST_BAR_RELATION);
oneToOneFieldMapping.setForeignKey(foreignKey);
if(fieldMapping.getFullName().equals("test.Foo.secondBar")){
OneToOneFieldMapping oneToOneFieldMapping =
(OneToOneFieldMapping)fieldMapping;
ForeignKey foreignKey =
oneToOneFieldMapping.getTable().getForeignKey(SECOND_BAR_RELATION);
oneToOneFieldMapping.setForeignKey(foreignKey);
return true;
But the result is very strange. In fact, these are the generated classes:
class Foo {
Long fooId;
Long secondBarId;
Bar bar;
class Bar {
Long barId;
List bars;
I really can't undestand why, but I supposed that switching the
ForeignKey object is not the right solution, so I tried this way:
public boolean customize(FieldMapping fieldMapping) {
super.customize(fieldMapping);
ForeignKey foreignKey = null;
if(fieldMapping.getFullName().equals("test.Foo.firstBar")){
OneToOneFieldMapping oneToOneFieldMapping =
(OneToOneFieldMapping)fieldMapping;
ForeignKey foreignKey =
oneToOneFieldMapping.getTable().getForeignKey(FIRST_BAR_RELATION);
if(fieldMapping.getFullName().equals("test.Foo.secondBar")){
OneToOneFieldMapping oneToOneFieldMapping =
(OneToOneFieldMapping)fieldMapping;
foreignKey =
oneToOneFieldMapping.getTable().getForeignKey(SECOND_BAR_RELATION);
if(foreingKey!=null){
ClassMapping classMapping =
tool.getClassMapping(fieldMapping.getTable());
ClassMappingInfo classMappingInfo = classMapping.getMappingInfo();
MappingInfo mappingInfo =
classMappingInfo.getField(fieldMapping.getName());
FieldMetaData fieldMetaData = fieldMapping.getMetaData();
Mappings.setForeignKey(mappingInfo,null,foreignKey);
return true;
But the variable classMappingInfo is NULL!!!
I think that my goal is not so difficult, I just want to assign a given
field to a table column which is decided by me, but I can't understand
how I can do it.c--
Marc Prud'hommeaux
SolarMetric Inc.

Similar Messages

  • Assigning a 0LANGU field

    Hello all,
    A custom datasource is getting me text fields for allowance type. When I try to schedule it gives me a warning 'Assign a language field to the IOBJ LANGU; long text'.
    Details of this warning:
    This can lead to:
    the extractor delivering all languages from the source system when the load is executed (generic extractors)
    error RSAR 527 or
    runtime error INVALID_TEXT_ENVIRONMENT.
    Procedure:
    Procedure
    Select the language field as a selection field in DataSource ZBXB_ALW_TYPE_TEXT maintenance in source system PHECLNT010 and assign this field to InfoObject 0LANGU in transfer rule maintenance in BW.
    In the BW Scheduler, tab page Updating, switch on error handling for cases where a DataSource does not contain a language field. Choose the option Updating Valid Records: Reporting Possible (request green). Enter a value in the field Cancel According to Number of Errors that is greater than the expected number of incorrect records.
    A prerequisite for using error handling is that data has to be loaded using the PSA. You can set this in transfer rule maintenace in BW.
    I initially ignored this, but now when I am trying to load data, it errors when there is a entry with a same long text for 2 fields.
    Eg:
    Country  Function           Shrt Desc     Lang Key
    AT         All of comp       Abandonment   DE
    DE        All of comp       Abandonment   DE
    The description for this is:
    Diagnosis
        There are duplicates of the data record 1 & with the key 'ABANDONMENT O
        D &' for characteristic ZHRALWTYP &.
    System response
    Procedure
       If this message appears during a data load, maintain the attribute in the PSA maintenance screens. If this message appears in the master data  maintenance screens, leave the transaction and call it again. This allows you to maintain your master data.
    Kindly reply.
    Thanks & Regards,
    KP

    Hi KK,
    In general you will wind up with susch errors, if u forgot to map any o fhte fields inur DS to an object in ur BW.
    Check ur Transfer Rules for that Ds and then assign that 0lang fields to an object in BW.
    One more thing while maintaingn master data if u get dulicate recor errors you can eliminate that error by making these changes in ur infopak
    Goto Processing tab of ir Infopak.
    There select radio button Only PSA
       Next select two Check boxes there.
          one for updating data targets
          Another one for ignoring duplicate records.
    Regards,
    Rajkandula

  • How to make a field under Selection column in DataSource from dimmed to ...

    We try to make an InfoObject shows up in Data Selection of an InfoPackage to restrict the data load based on the range of this InfoObject.  In order to do this, we will have to go to the source system to run RSA6 to edit the datasource to make this field checked under the Selection column.  However when we get to the screen, find this field's Selection column is dimmed.  Is there anyway to make it from dimmed to editable that it can be checked?
    Thanks

    hi Kevin,
    try to check table ROOSFIELD, fill OLTPSOURCE with your datasource name and OBJVERS 'A', what's the value for SELECTION ? you may change the value with 'X'.
    use abap code :
    UPDATE ROOSFIELD SET   SELECTION = 'X'
                   WHERE OLTPSOURCE   = 'datasource name'   AND OBJVERS = 'A'.
    can i know your datasource name (if it's business content) ?
    Properties of a DataSource Field
    If a request for a DataSource is scheduled in the Business Information Warehouse, selection conditions are specified across certain fields. The property that determines whether a selection in BW using a field
    is possible or required is established in the DataSource in the Source System.
    In addition, the visibility of the field in BW can be set.
    A field that is not visible (or that is hidden) cannot be transferred into the transfer structure.
    Definition of the individual values:
    'A': Field is hidden in OLTP and BW, property cannot be changed  the customer.
    'M': The DataSource requires a selection across this field before it is able to extract data (Required field for the generation of a request); property cannot be changed by the customer
    'X': The Data Source can select across this field. The customer can change selections and visibility (the field is currently visible and selectable, compare with 'P', '3')
    '1': Pure selection field for the DataSource. The customer can change the selection, but not the visibility (the field is currently selectable , compare with '2').
    '2': Pure selection field for the DataSource. The customer can change the selection, but not the visibility (field is currently no selectable, compare with '1').
    '3': The DataSource can select across this field. The customer can change selection and visibility (the field is currently not visible not selectable, compare with 'P', 'X')
    '4': The DataSource cannot select across this field. The customer can change visibility (the field is currently not visible, compare with ' ')

  • Saving data for a custom assignment block

    Hi All,
    I have created a custom assignment block where data is coming from custom table successfully. Now when I am modifying data from that block, MODIFY method of my custom implementation class is getting triggered. Till that point, I can get the modified entries. But how can I save those modified data?
    I have inherited my implementation class from CL_BUIL_ABSTR. But EXECUTE_WITH_SAVE method is not getting triggered when I am testing my object from GENIL_BOL_BROWSER.
    I am not sure whether I have to update API tables in MODIFY only. Please advise.
    Thanks,
    Suchandra

    Hi,
    Please run a ST01 trace and verify if the custom report has authority check for P_ORGIN and even if it does, verify if check for 'DUMMY' has been specified for the object field PERSA. In both cases, the restrictiona entered in user's role wouldn't work as expected.
    You can alternately also use reports RSABAPSC or RPR_ABAP_SOURCE_SCAN for verifying the above mentioned points.
    Please revert what you find.
    Thanks
    Sandipan

  • Sharepoint 2013 designer assign to task with created by column failing

    We are getting below exception when we assign a task to created by column in sharepoint 2013 designer workflow.
    It was working till last week.
    RequestorId: c70d0b6d-a1c7-6825-5dec-3bc13f0713bf. Details: System.ArgumentNullException: Value cannot be null. Parameter name: Input at Microsoft.Activities.Expressions.SplitString.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) 
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi,
    According to your post, my understanding is that you got exception when we assign a task to created by column in sharepoint 2013 designer workflow.
    To troubleshoot the issue, I recommend to capture the created by field value in a variable.
    You can add a "Set variable workflow" action and get the value of this field. Then, add a "Log on workflow history" action and log the value of the variable and see if it is capturing the right value. And in the task action, put the variable
    on the user field and do some tests.
    In addition, you need to make sure the variable return field as "string" or "Email Address”.
    Here is a similar thread for you to take a look at:
    http://sharepoint-community.net/forum/topics/sharepoint-2013-workflow-action-send-email-only-works-for-me?xg_source=activity
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Missing comments and notes fields for view columns

    Hello,
    I am missing the comments and notes fields for view columns in the relational model of DM. For the table columns these fields are present, so it would be nice to make this available for views too. The Designer import should be adapted too to import those fields.
    Joop

    Hi Joop,
    My question is about the import of Designer for those fields. This is still not solved, even not in rel 4.0
    In fact even DM 3.3 imports comments, notes and comments in RDBMS from Designer repository.  Though comments and notes are not accessible through UI they are there and you can include them in custom report.
    Comments and notes are accessible through UI in DM 4.0
    Philip

  • Assigning a form field to a variable in XSL in rtf template

    Hi,
    I have this code:
    <?xdoxslt:set_variable($_XDOCTX, 'x', 0)?>
    <?if:_-Basic._Total_Jobs_=''?>0<?end if?>
    <?xdoxslt:set_variable($_XDOCTX, 'x', -Basic_._Total_Jobs_ )?>
    <?xdoxslt:get_variable($_XDOCTX, 'x')?>
    This code is supposed to be initialising a variable and a form field if it's null, and
    then assigning the form field value to the variable. But I am not getting
    any value from the get_variable function.
    Any ideas?
    Thanks,
    - Jenny

    I figured it out. The bind variable substitution works as designed. It was just my head that wasn't working right.

  • Custom F4 for a field in ALV GRID

    I am want to provide a custom f4 fro a field in alv gird
    similiar to the functionality of process on value request
    on a normal screen

    Hi Kaushik
    You can find some information at page 37 of the document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an easy reference for alv grid control.pdf
    *--Serdar

  • How to assign a default value to a column ?

    Hi
    In the Object browser is it possible to modifiy a column in order to assign a defalut value to the column ?
    I have a table FICHE in which I want to assign a default value 0 to a column which type is NUMBER.
    Thank you for your kind answers.
    Christian.

    Hi Christian
    For one reason or the other you can't do that using 'Create Column' or 'Modify Column'. You can only do that by issuing a SQL command : alter table fiche modify column( <column name> default 0)
    HTH
    Roel

  • Error in creating InfoPackage "Assign a language field to IOBJ 0LANGU"

    Hi Guys,
    Im having a problem in B.I using tcode rsa1old .Upon creation of InfoPackage for IX_MAT_TEXT which is material name an error occur.
    "Assign a language field to IOBJ 0LANGU; danger of short dump" . But when I create a IX_MAT_ATTR, no problem encountered.
    How can I solve this? all are activated...
    Please help . Will reward points.
    Thanks in advance
    aVaDuDz

    Hi,
    Please find the steps below:
    1. Open the transfer rule and if it is language dependent then map it with appropriate field by selecting the language field and the field to be mapped and using arrow to map.
    2. If it is not language dependent and you want to add EN as constant as mentione by Shashank above then, click on the "X" sign next to the field and once a pop up comes select the option "Constant" and there you add the value EN. save and re-activate the Info Source. It will work.
    Please close the question.

  • Company code ZG01 is not assigned to a fiELD status variant

    HI,
    I have created company called 'zg01'.
    when i try to create a GL ACCOUNT FOR this company using (FS00) i am getting the following error.
    Company code ZG01 is not assigned to a fiELD status variant.
    FOR YOUR INFORMATION I HAVE CREATED COA  and assign the same to the company ZG01.
    Please suggest....
    also suggest  how to i transport GL Accounts used by other companys of my system to my newly created company code : zg01.
    so that i can save creation of GL ACCOUNT.

    You have to maintain field status variant and assign it to your company code. This is required for GL master data.
    1. Define Field status variant in SPRO>Financial Acctg>Financial Acctg Global Settings>Document>Line Item>Controls>Define Field status variant. You create the field status variant and the field status group.
    2. Assign the Field Status group to your company code SPRO>Financial Acctg>Financial Acctg Global Settings>Document>Line Item>Controls>Assign Company Code to Field Status Variants
    Once you have defined this you will be able to assign field status group to your GL master data.
    The use of Field Status Group is to determine the required/displayed/optional fields during posting transactions.

  • Creation of custom assignment block

    Hi,
    I am trying to create a custom Assignment Block in the BPHeadOverview page of component BP_HEAD.
    I tried implementing it using EEWB ,by referring to the below SDN link.
    http://wiki.sdn.sap.com/wiki/display/CRM/EEWB-AddingTableattribute
    Following this link, I have completed till the part where it is suggested to run the report
    CRM_BUPA_UI_EXTEND_REPOSITORY.
    My problem is,the view which I created is coming in the Runtime Repository under the viewset for  BPHeadOverview page
    , but I am unable to find my view in the Component Structure Browser under the Views section.
    As a result of which I am unable to configure my custom Assignment block.
    Due to which I can't even find my AB with the other ABs coming under the BPHeadOverview page.
    Kindly suggest a solution.
    Thanks,
    Litty.

    Hi littyj,
               Move assignment block  BP_EEW in the overview page of BP_HEAD from available to displayed. Give it a title. Save configuration setting and check in web ui.
    Also please check in table BSPWDV_EHSET_ASG if the enhancement set your are using is default for the client you are working on or not.
    I m quite sure this issue is because of the enhancement set.
    Regards,
    Varun

  • How to create new form fields in several columns (spreadsheet) and have them named consecutively?

    Hopefully someone can help.  I created a new form from an Excel spreadsheet, but the form field recognition didn't "take" well and very little of the spreadsheet translated into form fields.  I need to create new fields (31) for each column (about 10) and I want the fields in each column to have a keyword from the parent column and the fields numbered consecutively.  I'm really hoping I don't have to do this manually!
    Next, is there a way to total the values in a column of fields (the same as the SUM function in Excel?) or does the form user have to dig out a calculator and add everything?
    Can I create an email (submit) button and direct how (ie email) and by what method the form is sent?
    Once the form is completed, is there a way for the user to lock it before sending it - ie a button they could press to make it no longer fillable?  Or can I set the document to be a regular .pdf once it leaves the host machine?
    I think that's it!  Hopefully someone can help soon - this is a work project that could be potentially very time consuming if I have to create each form field manually.  Thank you for any assistance!
    Cheers,
    LostintheNorth

    LostintheNorth wrote:
    Rats!  Thank you for your link - I may take you up on that... however for the purposes of this form I'm more than halfway done, so I might as well keep plugging away.  A workaround I found was to creat 32 of something I only need 31 of, then delete the parent.  Somehow even playing with spacing on the "create multiple fields" option as the fields are being created only gets the vertical alignment close - no matter what I do I still end up manually aligning (vertically) 31 little boxes for each column so they fit visually.  Grrrr.
    Yes, this can be very tricky. If you don't get the exact right offset between each field, the difference will accumulate and after a while it will be completely off.
    You just have to play around with it, until you get it right. Or almost right, and then adjust it manually.
    Another thing I've noticed, is that when you select one field and right click for properties, you get an expanded version, as opposed to select/shift/enter for a bunch of cells only yields an abbreviated properties box - what's up with that?  Is there a way to change this?  For instance, I had set the properties for a column of 31 cells to be number, 1 decimal place.  Halfway through my project, the lady I am doing the favor for tells me she would like 2 decimal places, requiring me to manually change each box for 62 cells!  Apparently cell formatting is not an option in the abreviated properties dialogue!  Is there a fix for that?
    No, there isn't. Some propeties you have to set manually (or get right the first time, before copying and pasting...). There is a way to do it with a script, but it's a bit complex and requires using an undocumented method.
    This next question is a bit more complicated, and may not be possible.  The form I am creating is for payroll purposes, so at the moment it is generic (31 days) and the user fills in the month manually. Is it possible to get the form to recognize a month value (or create a pulldown menu with a selection of months to choose from) and limit the days accordingly?  Or better yet, run a calendar function so that weekends and stat holidays are highlighted on the affected row?  Kind of like what you can do with an Excel spreadsheet, which is what I designed the form in at the start (then printed to .pdf - the form field recognition did NOT work well on my spreadsheet!  hence me doing every cell manually).  Is this even possible, and if so, is it something I could learn to do?
    Yeah, it's possible, but requires quite a bit of scripting knowledge. If you wish, contact me personally (by PM or email at try6767 at gmail dot com) and I could possibly create this for you.
    If you want to do it yourself, you would have to learn a lot about both the Date object in JS and about the various date printing and scanning methods in Acrobat JS.

  • Custom module pool + Amount field decimals display same as standard screen display

    Hi All,
    Requirement: A custom module program screen field has to be designed which displays decimal values of amount fields same as amount fields in standard screen.
    Standard screen behavior: If the standard screen fields are observed, they refer to data elements WRBTR or AZSOL_F05A (transactions FB50/FB03/FB01). However, number of decimal places that are visible on screen are dependent on the currency that is provided.
    Both the data elements have 2 decimal places.
    For currency USD two decimal places are displayed - in TCURX - decimal places are two.
    For currency JPY or CLP - zero decimal places are displayed  - in TCURX - decimal places are zero.
    i.e., even though the screen field refers to data element or domain that has the characteristic to show 2 decimal places, based on currency, decimal places are adjusted.
    I would like to know how this is happening on standard screen fields.
    Solution Required for: How to make the custom screen amounts to display same number of decimal places as standard screen amount fields.
    P.S: Before posting the query here, research has been done in SDN and other places. It has been identified that quantity fields adjustments are discussed. However for amount field even though discussed earlier, did not reach a conclusion.
    I would like to get a solution for this one.
    Thanks in advance.
    Goutham.

    Thank you all for taking time to take a look at this query.
    This issue has been resolved.
    Resolution: If the standard transactions (FI transactions in specific) are observed, whenever there is a field that displays amount value, there will be a corresponding field (may not be beside the amount field, somewhere on the screen or in the same sequence of screens) where the currency key value would be entered.
    For instance, if you look at FB50 - there is field on top for the user to input currency key value (like USD or CLP or INR).
    When any amount field is declared - this currency key field is provided as the reference field in the screen attributes of the amount field.
    In short, in the custom module pool program, provide a field that holds currency key value and use this field as reference field for the amount fields.
    Do repond to this thread if the resolution is not clear.
    Thank you all once again.
    Goutham.

  • REP-1213:  Field F_1 references column EMPNO at a frequency below its group

    Hii guys
    My goal is to display my desired database column where ever i want to on the report layout.For this Purpose
    I ran the following query
    1.SELECT * FROM EMP WHERE EMPNO='7369' in the Data Model.
    2.I then created a field in layout view and gave field source as EMPNO
    3.On Report Run following error was encountered.
    REP-1213: Field F_1 references column EMPNO at a frequency below its group
    Kindly help me in fixing this problem
    Regards
    Fahad Hameed

    dsegard
    Thanks for the tip.I fixed that and now i feel i've some control over my layout.
    How can i apply an image as a water mark throughout my report ??
    Regards
    Fahad Hameed

Maybe you are looking for

  • Video playback in preview monitors appears as a jagged mess

    Video playback in the preview monitors appears as a jagged mess. The audio plays perfectly. I am using Premiere Pro CS4 4.2.1, only DV NTSC. I have checked all my settings, have found nothing that will fix this. What could be causing this problem?

  • Difference between Delivery, Sales order and  Shipment

    Hi I would like to know difference between sales document, delivery document and shipment. When is the delivery created? What data will it have?

  • SQL parser bug?

    Is there a known problem with NOT IN operator? The following statement returns "no rows selected" message SELECT col_a FROM tab_a WHERE col_a NOT IN ( SELECT col_b FROM tab_b); while the following two statements both return the expected result SELECT

  • I cant upload a verification file to my website

    im not quite sure how to upload a verification file that is required unto my website here at http://www.tarantulapets.com

  • Unable to join Mac OS X 10.7.4 to windows server 2008 Standard SP2 Domain

    Hi everyone, I have an issue regarding the above, i have to connect several MBK pro using OS X 10.7.4 to a Windows Server 2008 Standard Service Pack 2. I tried joining it using Static IP configurations, and using Domain names but it returns an error