How to modify CRT currency field

Hi all,
i am new to ABAP HR so please help me. i am trying to modify the CRT internal table when run the payroll. the situation is that we have a company code currency in SAR and there is an employee who gets the currency in USD. I have to store the data in CRT in the currency in which the employee is getting paid.
i tried the following the but it is not working:
         LOOP AT crt.
          crt-amt_curr = v_emp_currency.
          MODIFY crt.
        ENDLOOP.
the above code copies the currency USD to CRT, but when it is displayed in the Payroll log, it is in SAR. I hope somebody has understood the problem. please help.
regards,
hamza

I saw your code :
LOOP AT crt.
crt-amt_curr = v_emp_currency.
MODIFY crt.
ENDLOOP.
Just check the value in debugging ,whether it modifying value modify statemnt ?
if it is modifying then somewhere in the program ,the value gets changed again..
Please confirm..
Reward Points if it is helpful
Thanks
Seshu

Similar Messages

  • How to modify a lookup field-type to use checkbox instead of radiobutton?

    How to modify a lookup field-type to use checkbox instead of radiobutton?
    I would like to modify the behavior for the lookup field.
    Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
    Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
    For example:
    To add the user to 10 different groups on MS-AD.
    It is desired to have the ability to check multiple groups to be added instead only one at the time.
    My client would like to use this feature in many other situations.

    Displaying will not be a big deal but with that you have to customize the action class and its working as well.

  • How from an Access Currency field I populate a hidden field

    //out.println("<input type=\"hidden\" name=\"price" + plantNo + "\" value=\"" + rs.getString(5) + "\">");
    The above found to give errors... how from Access Currency field like price=
    rs.getString(5)
    I populate a hidden field ? How do it in MySQL ?
    Servlets upon compilation(or update) needed server restart to rerun (updated) ?

    if I insert
    rs.getString(5) // field5 = currency field MS-Access DB
    it doesn't work, but if insert
    "8.9"
    work in value of hidden field , where error ?
    out.println("<input type=\"hidden\" name=\"price" + plantNo + "\" value=\"" + rs.getString(5) + "\">"); // "8.9"
    Access Currency field is/corresponds double in java ?

  • How to modify state of fields on screen in PCUI through BADI

    Hi,
    Is there any way to modify the state of screen fields(such as greying out the fields) in PCUI, when a SAP backend BADI is being triggered??
    Appreciate if sample codes or programming guides can be given if you have.
    Thanks a lot!!!

    I guess the links below should help in your problem ..
    http://www.saptechies.com/how-to-create-table-maintenance-generator/
    Window size on SM30
    If these do not please tell ..
    Regards,
    Manthan

  • How to write a Currency field in Output?

    Hi,
    How should I write an amount field in the output using the key word "currency"?
    I have a write statement in the program like this:
    write: /24 i_konp-kbetr.
    Thanks.

    The output of the WRITE statement is "123456,78".
    DATA int TYPE i VALUE 12345678.
    WRITE int NO-GROUPING CURRENCY 'EUR'

  • How to modify the currency rate in a document already posted?

    Hi All,
    an user has posted a document filling in the wrong currency rate.
    Now, the document is old and it isn't possible to reverse it.
    What could I do?
    Could I modify the data in tables?
    Which ones?
    Thanks a lot

    Hi,
    Kindly do not make  changes  in any table. It will make make  inconsistency  in your system.
    We  cannot  make  any changes in currency once document  has been posted.  Try to  pass adjustment entry  in the  system to rectify this error.
    Thanks

  • How to convert the currency field.

    Hi All,
    I have one question,
    data : w_icm like konv-kwert.
    but this w_icm value is like this 878.40
    but i want to change it as 878,40 and will get back in to the same variable (w_icm).
    can any one suggest me how to proceed with this issue.
    if you send the code that will be highly helpfull to me.
    Thanks for your help.

    Hi,
         1. Change the user profile (system->user profile->own data-> user dafault tabs and change the decimal notation.
      2. use the domain BF_RWBTR.
    Regards,
    GN
    Edited by: Niyaz Ahamed on Jun 13, 2008 2:30 PM

  • FB70  how to modify  the Reference field

    Dear experts,
    In FB70  Customer Invoice entry, If I want to put several Invoice reference in the Reference field  for tracking of  Agents Commission,  Is any report generation possible for Sales Commission
    Thanks
    Mdas

    Hi
    Sales Agent Comission can be better tracked using a std SAP functionality called rebates. Here in you can accrue Rebates with every billing document. For eg, you need to give a comission to sales agent, if the sales reach USD 100 in a month, that can be set up through the SD Pricing procedure and the corresponding assignment in VKOA.
    Refer the link
    http://help.sap.com/saphelp_46c/helpdata/en/5d/363eb7583f11d2a5b70060087d1f3b/content.htm
    Consult your SD Colleague for further info
    Regards
    Sanil Bhandari

  • How can we sort up currency field in alv grid??

    Hi GUrus,
    Can any one suggest me how to sort the currency field in alv grid...Please help me out of this issue..
    Thanks in advance!!!
    regards,
    Kranthi.

    hii,
    SAP provides a set of ALV (ABAP List Viewer) & function modules, which can be used to enhance the readability and functionality of any report output.
    ALV is a flexible tool used for displaying lists.The tool provides common list functions & can be enhanced by self-defined options.
    so u will get the option for sorting in your alv report.
    Thanks

  • How to declare currency field?

    DATA : V1 TYPE I,
    V2 TYPE I,
    RESULT TYPE P DECIMALS 2.
    how do i declare currency field here?

    In that case,refer to any of the currency fields of any of the database tables and refer to it like this:
    Data : Curr like aufk-waers.
    or from any other database table which contains the currency field.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • How to handle currency fields in BDC

    Hi All,
        Please tell me how to handle currency fields in BDC.... If possible give me some sample code...
    Thanks in advance,
    points will be given,
    praveena.

    Declared it at the Global definitions.
    in global data tab and currency/quant fields.
    Initialize some value there itself.
    Just before the text node create one program lines node,
    and that,In the import and export parameters of it give total_amount.
    refer to the following link:
    http://sap-img.com/abap/figure-to-words-for-india-but-can-be-modified-to-any-requirement.htm
    Currency Fields
    Reward if useful.

  • How to add Currency field with dropdown on screen layout (module pool)

    I need to add a field called <b>Currency( field label )</b> with <b>dropdown (like SKB1-WAERS). </b>
    The <b>field label</b> and <b>input output field </b> should default as being hidden and
    sould be visible only when other field value ( on the same screen ) should match with the value in the database table . 
    Could you please suggest me how to create dropdown
    and give this functionality with coding ?
    Thanks in advance.

    Hi,
    In the field attributes of the SKB1-WAERS..in the group attributes..give a group name G1..Add the same G1 for the field lable also.
    Then in the PBO of the screen..
    ***Check the conditions..when other field value (on the same screen) matches
    ***with the value in the database table.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'G1'.
        SCREEN-INPUT = '0'.
        SCREEN-INVISIBLE = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Thanks,
    Naren

  • How to enter negative value in a currency field

    Hi Experts,
    Please help me how to allow to enter negative value in a field on report selection.
    I created a currency field on a report selection using PARAMETERS.
    I can enter positive value in the field. But, I cannot enter negative value.
    SAP shows an error message 00 126 "Specify positive values only".
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
    However, I cannot do it on screen 1000 created by report program.
    Thanks,
    George

    Hi ,
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
        Prabhu--> Just Create a new Domain( select "WITH SIGN") and date elemet,And Use Data Element in your report.
    regards
    Prabhu

  • HOW to include a reference currency fields in a view ?

    Hello Experts,
    <b>I am having Currency fields error in generic extraction</b>
    I have table where I am trying to extract data to BW via generic extraction. When I tried
    to extract with the TABLE its giving me an error
    <b>Invalid extract structure template RPSCO of DataSource ZBW_REP3_TEST
    You tried to generate an extract structure with the template structure RPSCO. This operation failed, because the template structure quantityfields or currency fields, for example, field WLP00 refer to a differenttable</b>.
    Now I created a view with all the fields same as my table.
    But its still giving me the same error and taking all the fields as a primary keys. I have over 12 currency fields in the table. I am confused how to fix this issue and add a currency field to my view?
    hOW to include a reference currency fields in a view ?
    All inputs are much appreciated.
    Thanks and Regards,
    Harish

    Thank you for your responce,
    Can you please check my view and let me know where I am going wrong     
    View    Table   Field  Dataele  Data
    field                    type                                            0                                                                
    WLP01     RPSCO     WLP01     BP_WPL     CURR     15     Period value in ledger currency
    WLP02     RPSCO     WLP02     BP_WPL     CURR     15     Period value in ledger currency
    WLP03     RPSCO     WLP03     BP_WPL     CURR     15     Period value in ledger currency
    WLP04     RPSCO     WLP04     BP_WPL     CURR     15     Period value in ledger currency
    WLP05     RPSCO     WLP05     BP_WPL     CURR     15     Period value in ledger currency
    WLP06     RPSCO     WLP06     BP_WPL     CURR     15     Period value in ledger currency
    WLP07     RPSCO     WLP07     BP_WPL     CURR     15     Period value in ledger currency
    WLP08     RPSCO     WLP08     BP_WPL     CURR     15     Period value in ledger currency
    WLP09     RPSCO     WLP09     BP_WPL     CURR     15     Period value in ledger currency
    If I add a
    Table TCURC against any field what would be the view field and data element
    Do I need to tick MOD?
    Please suggest.
    Kapadia,
    If I do that its still taking all the fields are a primary keys and bringing 6 lakh records to where I originally have 49 records in a table
    Thanks and Regards,
    Harish

  • How to do the calculations with currency fields in table control?

    Hi everybody,
    Can anyone tell me how to do the calculations (arithmetical) with the currency fields which have been assigned for a table control fields? Actually they should be fetched from the database table and need to do some calculations and after that the same should get updated at the database level.
    Here, i am getting the short dump after doing the calculations and trying to display at the table control field itself.....
    Can anyone help me in this issue........
    Thank you very much.....in advance,
    Somu.

    Hi,
    Thanks to your replies all,
    But, even though the sign check box is checked in the SAP domain WRTV7, in my program it is not showing the negative sign at all...
    I am keep trying for all the options...
    But still it is not working out...
    My requirement is after fetching the data from the database i need to do calculations and save back same to the customized table field, for which the domain i have checked the sign and have done it also...
    I'd be highly thankful to you, if you can help me out...
    Thank you,
    Somu.

Maybe you are looking for