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.

Similar Messages

  • Save a variant in a custom module-pool.

    Hi all,
    i hope there is someone that can help me.
    My problem is: i've to save a variant in a module-pool custom SAPMZ...ecc.
    Is there a function module or a routine or some specific ABAP istruction to save a variant?
    I ask this because in my custom module-pool i've insert input field in main dynpro.
    Thanks a lot,
    regards,
    Alex.

    Please use below code it works for me:
    What I did was copy the function group SVAR.  When it asked what function module to copy just select
    'RS_VARIANT_SAVE_FROM_SELSCREEN' and renamed it to 'ZS_VARIANT_SAVE_FROM_SELSCR'.
    DATA: lv_screen LIKE sy-dynnr.
      CLEAR: t_rkey, t_screen.
      REFRESH: t_rkey,  t_screen.
      t_rkey-report = sy-repid.
      APPEND t_rkey.
      t_screen-program   = sy-repid.
      t_screen-dynnr     = '0101'.
      t_screen-type      = 4.
      APPEND t_screen.
      lv_screen = '0101'.
      EXPORT lv_screen TO MEMORY ID 'MZ_COMISSION_REPORT_F02_SCREEN'.
      CALL FUNCTION 'ZS_VARIANT_SAVE_FROM_SELSCR'
        EXPORTING
          curr_report          = sy-repid
          vari_report          = sy-repid
        IMPORTING
          variant              = w_variant
        TABLES
           p_screens           = t_screen
         p_sscr               = t_selctab
         p_vari               = t_vari
        EXCEPTIONS
          illegal_variant_name = 1
          not_authorized       = 2
          no_report            = 3
          report_not_existent  = 4
          report_not_supplied  = 5
          OTHERS               = 6.
      t_rkey-variant = w_variant.
      MODIFY t_rkey INDEX 1.
      CALL FUNCTION 'RS_RWSET_SAVE_VARIANT'
        EXPORTING
          rkey    = t_rkey
        TABLES
          selctab = t_selctab.
    Then in program LZSVARF07 function save_as_variant find where it's transfering the screen.
      READ TABLE variscreens WITH KEY dynnr = sy-dynnr.
      IF sy-subrc NE 0.
        IMPORT lv_screen FROM MEMORY ID 'MZ_COMISSION_REPORT_F02_SCREEN'.
        IF lv_screen IS INITIAL.
          variscreens-dynnr = sy-dynnr.
        ENDIF.
      ENDIF.
      PERFORM fill_varidyn TABLES p_dynsfields
                           USING  $rkey space. "Kein import von DYNSFIELDS
    Good luck!
    Edited by: Alex Nguyen on May 2, 2009 1:36 AM
    Edited by: Alex Nguyen on May 5, 2009 5:26 PM

  • Triggering Workflow from Custom Module pool

    Hi,
    I am trying to trigger my workflow from my custom module pool using the function module "SAP_WAPI_START_WORKFLOW". I am passing the following parameters for the above function module
    TASK, LANGUAGE, DO_COMMIT, USER and INPUT_CONTAINER
    but, it is returning the following message
    "You are not one of the possible agents of task 'WS90100020'"
    Please suggest a solution for this problem?
    Regards
    Sujith P. Soman

    Hi,
    A better way would be to trigger your WF using an event and calling SAP_WAPI_CREATE_EVENT. But if you want to start it directly then if you are calling this FM in dialog you need to be a possible agent. The easiest is if you jsut make it a general task so anyone can start it.
    In PFTC, open your WF goto Additional Data -> Agent assignment -> Maintain. Click on 'Attribnutes' and select 'General Task'.
    Also run SWU_OBUF afterwards to synch all buffers before testing your FM again.
    Cheers,
    Mike

  • Custom Module Pool...

    Hello SDN ABAP Community,
    I researched this question on the web and in SDN before posting this because I would like an up-to-date understanding of best way to do this.
    I have a need to write a custom module pool.  It has been a while since I have been to class.  I need to get figured out how my naming conventions will work for all the pieces of the module pool (SE51, SE41, pieces of the SE38 module pool).
    I seem to remember the teacher saying that the way that SAP allows for customer created module pools was to set the 5th character of the name to 'Z'.  eg- sap would use SAPMPetc.  customer would use SAPMZetc.
    From my searching of web I found following naming standards...
    Module pool                             - SAPDY* SAPDZ*
    Module pool for dialog               - DY* DZ*
    INCLUDES                              - SAPMY* SAPMZ*
    Module pool for screens            - MY* MZ*
    INCLUDES                              - MP9*
    Module pool for info types         - MP9*
    INCLUDES                              - SAPFY* SAPFZ*
    Module pool for subroutines      - FY* FZ*
    INCLUDES                              - SAPUY* SAPUZ*
    Module pool for update program - UY* UZ*
    INCLUDES
    From searching SDN I found following link for ABAP objects, but I am needing for module pool.
    http://help.sap.com/saphelp_nw04/helpdata/en/92/c2b084bc1d11d2958700a0c94260a5/frameset.htm 
    So my question... is there any SAP resource that I can look at to see SAP naming conventions for customer created module pool with SE41, SE51 and SE38?
    Thank you,
    Dean Atteberry.

    Hi Dean, here you can take a look at SAP´s official customer name ranges for all objects, including Module Pool: http://help.sap.com/saphelp_nw04/helpdata/EN/2a/6b0b1f547a11d189600000e829fbbd/frameset.htm
    Best regards,
    Federico Alvarez

  • No Interval effect in Module Pool Program field

    Dear All,
    If I want to introduce No Interval effect of the Report Selection screen ,in Module Pool program field,what will be the approach.
    Thx in Adv.

    Define the selection-screen as a subscreen and call it in the initial screen of ur transaction.
    Check this link
    http://help.sap.com/saphelp_47x200/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm
    Also check this demo program
    <b>demo_sel_screen_as_subscreen.</b>

  • Regarding Module Pool Text Field

    Hi,
         Can any body tell , is there any possiblity to change the font style and size of the Module pool text field.( Because I want a Heading in the screen)
    Regards
    Prashanth

    Hi,
    Goto the Layout Editor of your Screen.
    Double click on the text field .. Double clk the text fild, and from the Botton right u can see an arrow icon -> click on that > will open a Popup > in that <b> set Area Title to TRUE </b>.
    Rgds,
    Jothi.
    Do Award pts for helpful answers.

  • Module Pool Text field should be display Bold

    Hi Freinds,
    I have created Module Pool.
    1. My requirement is Text Field display Bold & I want to Change of Text Size.
    2. After executing Menu bar option are Disable mode, I want in Enable mode.
    Thx in Advance.

    1) By default in PBO you can see 'MODULE status_0001 OUTPUT'
    2) if you double click on that it will take you to enable the PF-STATUS (please check the below code).
    3) If you double click on PF_0001 then menu painter will be opened to create status.
    4) For more information[ click here.|http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801ce8454211d189710000e8322d00/frameset.htm]
    *&      Module  STATUS_0001  OUTPUT
    *       text
    MODULE status_0001 OUTPUT.
      SET PF-STATUS 'PF_0001'.
      SET TITLEBAR  'TB_0001'.
    ENDMODULE.                 " STATUS_0001  OUTPUT
    regards,
    ~Satya

  • Module Pool:editable field not changing

    Hi All,
    I created one module pool program with three fields MATNR,EBELN,KTMNG(qty). KTMNG is user key in accordingly to create delivery order.
    Now the problem is when user key in KTMNG field value let say 10.000.when press enter Again its taking the database value(20.000 for example).
    how to keep the user key value 10.000.
    here is my coding:
    PROCESS BEFORE OUTPUT.
    LOOP AT ITAB INTO WA WITH CONTROL tabcontrol.
    MODULE STATUS_0100.
       ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
       LOOP AT ITAB.
         ENDLOOP.
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'DIS'.
          REFRESH:ITAB.
          SELECT EBELN MATNR KTMNG INTO CORRESPONDING FIELDS OF TABLE ITAB FROM EKPO
                                                    WHERE EBELN EQ EKPO-EBELN.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ZTESTING'.
      SET TITLEBAR 'ZTEST'.
      MOVE:WA-EBELN TO EKKO-EBELN,
           WA-KTMNG TO EKPO-KTMNG,
           WA-MATNR TO EKPO-MATNR.
      VCONTROL-LINES = SY-DBCNT.
    ENDMODULE.   
    Please help me.
    Thank You,
    Anu.

    PROCESS BEFORE OUTPUT.
    LOOP AT ITAB INTO WA WITH CONTROL tabcontrol.
      MODULE STATUS_0100.
        ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_0100.
        LOOP AT ITAB.
    "  add this
          CHAIN.
            FIELD EKKO-EBELN.
            FIELD EKPO-KTMNG.
            FIELD EKPO-MATNR.
            Modify tablecontrol.
         ENDCHAIN.
      ENDLOOP.
    MODULE USER_COMMAND_0100 INPUT.
       CASE SY-UCOMM.
         WHEN 'DIS'.
    "  Comment this start and Pushi to PBO and check if  ITAB  is initial then do below Qyery
           REFRESH:ITAB.
           SELECT EBELN MATNR KTMNG INTO CORRESPONDING FIELDS OF TABLE ITAB FROM EKPO
                                                     WHERE EBELN EQ EKPO-EBELN.
    " Comment this end
         WHEN 'EXIT'.
           LEAVE PROGRAM.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    MODULE STATUS_0100 OUTPUT.
       SET PF-STATUS 'ZTESTING'.
       SET TITLEBAR 'ZTEST'.
       MOVE:WA-EBELN TO EKKO-EBELN,
            WA-KTMNG TO EKPO-KTMNG,
            WA-MATNR TO EKPO-MATNR.
       VCONTROL-LINES = SY-DBCNT.
    ENDMODULE.   
      MODULE TABLECONTROL OUTPUT.        "New addition in PAI for Modify
      MOVE:EKKO-EBELN TO WA-EBELN,
            EKPO-KTMNG TO WA-KTMNG  ,
            EKPO-MATNR TO WA-MATNR .
      MODIFY ITAB FROM wa    INDEX tabcontrol-current_line
    ENDMODULE

  • Custome module pool creation

    Hi All,
    I have a requirement to create a module pool for maintaining data for some custom tables I created in SAP.
    I'd like to ask what the quickest way to create a module pool for the above is. I have been able to create maintenance screens using the extended table maintenance tool but there is a requirement for a more user friendly holistic approach.
    Any helpful suggestions will be greatly appreciated.
    Regards,
    Andy.
    Moderator message - This is not the place to learn module pool programing. Please try to ask a specific question.
    Edited by: Rob Burbank on Apr 16, 2009 9:14 AM

    Do like below
    if ok_code  = 'MODI' .  " for your modify button
    call transaction ' you transaction name '.
    now
    if  sy-ucomm = 'SAVE' or 'EXIT' or 'BACK' or 'CANC' .
    call screen 'your basic screen no.'.
    endif.
    endif.
    reward if helpful

  • In vf01 tcode how to increase amount field decimals?

    Hi experts,
       while maintain the price for  the item in PR00  conditions   In VF01 THE AMOUNT FIELD IS TAKING ONLY 2 DECIMALS.
                 MY REQUIREMENT IS TO ENTER MORE THAN 2 DECIMALS (3).
               HOW TO INCREASE THE AMOUNT FIELD DECLMALS.
           PLS GIVE ME THE PROCEDURE.PLS HELP ME.

    Hi
    The decimals depend on the currency you're using to post the bill, I suppose you're using a currency support two decimals only
    If you want to use more than 2 decimals you need to define a new currency having all decimals you need.
    For example I've sometime defined an internal currency EUR3, just like EUR but with 3 decimals instead of 2
    Anyway this new currency is like a foreign currency so it needs to maintain the exchange rate
    Max

  • In module pool program -  i want to control size of screen.

    Hi,
    In module pool program , I am handling 2 screen . while calling the 2 nd screen , i want to display the window size as i required.
    Plz help me.
    Regards,
    Rani.

    Hi,
    Specify the positions as
    CALL SCREEN dynnr
                [STARTING AT col1 lin1
                [ENDING   AT col2 lin2]].
    By default, the screens of all dynpros of the called dynpro sequence are displayed in the current window. Use addition STARTING AT to open a modal dialog window.
    Addition
    ... STARTING AT col1 lin1 [ENDING AT col2 lin2]
    Effect
    Use addition STARTING AT to open a new popup level and to display all screens of the called dynpro sequence in a modal dialog window. The upper left corner of the dialog window is determined by the values col1 and lin1 for column and line. The values refer to the window with popup level 0. The lower right corner is set automatically or you can use col2 and lin2 to specify it after ENDING AT. For col1, lin1, col2 and lin2, data objects of type i are expected. The values of col1, lin1 should be smaller than those of col2, lin2, because otherwise the behavior is undefined. The maximum popup level is 9.
    Pls reward points if solved your issue.
    Regards,
    Renjith Michael.

  • To develope an alv report or module pool and field link.. and effor require

    HI,
    I want to display the fields with sort functionality with fields
    kunnr  kna1 table
    name1 kna1
    and email id from table ADR6 field SMTP_ADDR
    my question ison mapping
    from kna1 we can get field kunnr and name1
    and adrnr
    to put in adr6 to fetch email id
    can anyoe suggest on select statements link as table kna1 has one unique kunnr
    but it can have multiple name1 and adrnr
    so how to pick the kunnr ,name 1 and adrnr from table kna1 and map to
    adr6 table
    as witinn the table kna1 there can be multiple name1 related to one single kunnr
    so wil it be like
    select kunnr from kna1..into it_kunnr
    then select nam1 from table kna2 for all entrirs in It_kunnr
    or firse selet kunnr name1 from kna1 into table it_kunnr
    pls suggest an appropiat select statament
    and i suppose this can be achevied by alv report no need for moudle pool
    regards
    Arora

    opened  a new thread with changes subject

  • Module pool- mandatory field

    hi all,
    i have got 3 radio buttons
    when i click first button it should ask me that,  enter the value in text field i.e it should be mandatory.....
    this is my code.......
    IF ADD = 'X'.
       RES = VAR1 + VAR2.
       ELSEIF SUB = 'X'.
       if var1 > var2.
         RES = VAR1 - VAR2.
       else.
         message E001(zabc) with 'error'.
       endif.
       ELSEIF MUL = 'X'.
       RES = VAR1 * VAR2.
    ENDIF.
    for ur information i manage the beloe code........
    loop at screen.
         if ADD = 'X'.
         IF SCREEN-NAME = 'VAR1 '.
          screen-REQUIRED = '1'.
         ENDIF.
         endif.
    ENDLOOP.
    but exactly where to write this code........
    regards,
    Pawan

    Hi,
    in AT SELECTION_SCREEN event write your code:
    if add = 'X'.
    if var1 is initial and var2 is initial.
       message .....
    endif.
    endif.
    Regards,
    Subramanian

  • At mid-continent library and SABR websites, Proquest pages downoad but they are displaying-only a blank screen displays?

    The Pro-Quest and Sporting News pages load into viewing area but do no display...all that is visible is gray, blank page. This issue does not happen when using Safari or IE11.

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How do I get commands to display on a "full screen" display of a downloaded PDF file?

    In recent months, more and more downloaded PDF files are displayed on my Mac Pro without the command line at the top of the page.  This makes using & managing the documents difficult, and sometimes impossible.  I can gain access to a limited number of commands by clicking on the doc, but noto nearly the range of commands available when the command line is visible.  I still have many older PDF files that display in the usual manner.  Is this a change associated with Lion or the latest Adobe update?  Or, si there a command I do not know about that will restore the command line?

    Adobe Reader for iOS doesn't have command lines.

Maybe you are looking for

  • Error in running exe

    Hi All I am getting some errors when trying to run a labview exe. I have to export the data into excel from labview.Withot making exe and running the vi it was working..But after making the exe i am getting error. I dont know whether its because of t

  • 9.3.4 update error

    i have window 7 64 bit. adobe 9.3.4. it keeps say update is ready and when i tell it to install i get these errors. error reading from file c:\users\alan\appdata\local\temp\ixp322.tmp\quicktime.msi.  verify that the file exists and that you can acces

  • Multiple conditions in a filter of Bursting control file

    Hi All, I am trying to use multiple conditions in a filter of Bursting control file and it throws me an error. Can you please correct me on this. <xapi:template type="rtf" location="xdo://AR.XXRAXINVOPCO.en.00?getSource=true" filter=".//G_INVOICE[BIL

  • Table: Only show XML with a certain value?

    I am building a table from an xml file and it is working great if I ask it to show every node. But I only want the row to be added if it matches a particular value in the xml. For example my xml has values for name, rating and enrollment. So somethin

  • Sending data directly from BW To Oracle DW via Open hub Third party tools

    HI All We need to send data from SAP BW 7.0 to Oracle 11g DW. The requirement is to pass data through open hubs. So we wanted to explore the option of directly passing the data from BW to Oracle using third party tools. So i tried to gather informati