Validation Amount fields WRBTR

Hi All,
Validate the format of the fields in the BI for "Amounts" WRBTR (integer ciphers, comma, decimal ciphers)
if u people have any code or idea for this validation
I look forward to your reply
Thanks & Regards
SEK

Hi Ramesh ,
I tryed this but not working
Plz give me any other solution for validation WRBTR
Thanks & Regards
SEK

Similar Messages

  • Field WRBTR in FB03 and Table BSEG

    Hi,
       I am trying to retrieve the amount (field WRBTR)from the table BSEG for the line item  . In this table the
    amount is shown 2.00
    When I go to FB03, i see the amount as 2.00-
    Can anyone let me know how should i declare the amount field in my program?
    Thanks

    Hi
    the amount is always stored with absulte value, the sign is defined by SHKZG (Debit/Credit Indicator).
    SHKZG = S => SIGN = +
    SHKZG = H => SIGN = -
    So
    IF BSEG-SHKZG = 'H'.
      BSEG-WRBTR = BSEG-WRBTR * -1.
    ENDIF.
    Max
    Message was edited by: max bianchi

  • DIsplaying WRBTR (AMOUNT FIELD)WITHOUT  DECIMAL PLACES

    Dear all,
    I am facing a problem in displaying amount field  in alv report. I have two currency keys (US dollar and Japan yen). if it is japan yen I should not have to show decimal places and if it is US dollar I should show decimal places.
    How can I do it in a alv report if I have only one output amount field?
    thanks
    Ranjan.

    Hi chittaramjan,
    1. use this kind of funda (just copy paste in new program)
    Important things
    a) one extra field in internal table
      declared in the same exact fashion
    waers LIKE tcurc-waers,
    b) Populate this field
    c) REST THE System will take care
       (based upon country settings)
    2.
    REPORT abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA  : BEGIN OF itab OCCURS 0,
            f1  LIKE P0008-BET01,
            waers LIKE tcurc-waers,
            END OF itab.
    START-OF-SELECTION.
      itab-f1 = '-4.15'.
      itab-waers = 'KRW'.
      APPEND itab.
      itab-f1 = '4.68'.
      itab-waers = 'GBP'.
      APPEND itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name     = sy-repid
          i_internal_tabname = 'ITAB'
          i_inclname         = sy-repid
        CHANGING
          ct_fieldcat        = alvfc.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = sy-repid
          it_fieldcat             = alvfc
        TABLES
          t_outtab                = itab
        EXCEPTIONS
          OTHERS                  = 2.
    regards,
    amit m

  • Length of amount field in New GL at the document entry

    Hi,
    1) At present I am working on ECC 6, EhP 4 with New GL Activated & Old GL "Not deactivated" (i.e deactivate update of Classic General Ledger GLT0 not done).
    2) The total table (FAGLFLEXT) & Line item table (FAGLFLEXA) field in new GL has amount field length as 23 digit.
    3) When I am trying to enter any FI Document in SAP, using transaction code F-02 or FB60 etc, the length of amount field is coming as 13 digit. I am not able to enter higher value
    Question:-
    a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
    b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
    Thanking you in advance
    Santosh Agarwal

    a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
    No, it is not.
    b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
    No, there isn't.  The field length that is appearing during document entry is really dictated by the data type of fields such as DMBTR, WRBTR in table BSEG; which is CURR (13,2).  Although the GL view (FAGLFLEX* tables) have longer length, the limitation in entry view (BSEG, etc.) stays as 13,2.

  • 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.

  • Amount field in BDC giving error

    Hi,
    I am doing BDC for FB01, The field WRBTR (Amount) is not taking.
    it is giving error Input field is longer than screen field.
    i took as char.
    data : amount1(13)  type c.
        AMOUNT1 = WA_HEADER-WRBTR.
        CONDENSE AMOUNT1.
        PERFORM bdc_field       USING 'BSEG-WRBTR'
                                      wa_header-wrbtr.      " wa_header-wrbtr
    but it is giving error: Input field is not in this format __,__,__~
    Pls give me the soluctions.
    Regards,
    Sri

    Hi,
    Use the below code
    PERFORM bdc_field USING 'BSEG-WRBTR'
    AMOUNT1. " Amount1   Char Field
    instead of
    PERFORM bdc_field USING 'BSEG-WRBTR'
    wa_header-wrbtr. " wa_header-wrbtr
    Regards
    Dillip

  • Amount field to be non editable at line item level in MIRO

    Hi,
    Plz let me know the steps, how to make the "Amount" field at line item level to be non editable in Invoive verification (MIRO).
    Regards,

    Create a screen variant for MIRO and make DRSEG-WRBTR filed output only.
    Program: SAPLMR1M
    Screen no : 6000

  • Determining decimal places in Amount field

    Dear All,
    I want to upload a file on app. Server. It has an Amount field.
    Requirement is to upload Amount field with right number of decimal places.
    How can I do this?
    Is there any Function Module or any other way for this?
    Please let me know.
    Thanks in advance.
    Kind Regards,
    Prasad

    Thanks a lot for quick replies.
    Actually, the field is WRBTR, for which decimal places depends upon currency key. For some it desplayed with 2 & for other with 3 decimals in actual transacion FB03. But, stored in database table BSEG with only 2 decimals always.
    This is the problem.
    I want to upload the same data as is diaplyed in the transaction.
    So, could u please help me for this?
    Best Regards,
    Prasad.

  • Amount field of VK11 isnt fetching from flatfile when im performing it'sBDC

    Dear Guru,
    Here i have encountered a typical issue.
    Im Performing BDC for VK11 (Create Condition Record) with "Key Combination" --->> "Location, Material Code (Base Price for Longs)".
    While I am running this BDC ( source code attached below) in All screen mode every datas which are of type "CHAR" like--->>
    Condition type(kschl) ,
    Plant(werks) ,
    Material No(matnr),
    Valid From date(datab),
    Valid To date(datbi),
    Rate Unit(konwa) are coming properly from flatfile except
    Rate (condition amount - KBETR)  which is are of data type "CURR".
    So guru I want to know what code i should add into my below bdc prog to fetch data properly into  RATE - Condition amount field which is of type " CURR".
    Pls Help.
    Source Code:
    REPORT z_bdc_vk11_famd
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    *& DATA-DECLARATION
    TYPES: BEGIN OF t_cust,
                kschl LIKE rv13a-kschl,
                werks LIKE komg-werks,
                matnr LIKE komg-matnr,
                kbetr LIKE konp-kbetr,
    ***            konwa LIKE konp-konwa,
                datab LIKE rv13a-datab,
                datbi LIKE rv13a-datbi,
           END OF t_cust.
    TYPES: BEGIN OF t_sucrec,
             cnum TYPE komg-werks,
             cnam TYPE komg-matnr,
    END OF t_sucrec.
    TYPES: BEGIN OF t_errrec,
           lineno TYPE string,      "Line Number
          message TYPE string,      "Error Message
    END OF t_errrec.
    DATA:  v_file TYPE string,      "Variable for storing flat file
          it_cust TYPE STANDARD TABLE OF t_cust, "Internal table of Customer
          wa_cust LIKE LINE OF it_cust,  "Workarea of Internal table it_cust
        it_sucrec TYPE STANDARD TABLE OF t_sucrec,
                                          "Internal table of Success records
        wa_sucrec LIKE LINE OF it_sucrec,
                                       "Workarea of Internal table it_sucrec
        it_errrec TYPE STANDARD TABLE OF t_errrec,
                                       "Internal table of Error records
        wa_errrec LIKE LINE OF it_errrec,
                                       "Workarea of Internal table it_errrec
        it_bdctab LIKE bdcdata OCCURS 0 WITH HEADER LINE,
                                        "Internal table structure of BDCDATA
    it_messagetab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE,
                                        "Tracing Error Messages
           v_date LIKE sy-datum,  "Controlling of session date
          v_index LIKE sy-tabix,  "Index Number
         v_totrec TYPE i,         "Total Records
         v_errrec TYPE i,         "Error Records
         v_sucrec TYPE i,         "Success Records
        v_sesschk TYPE c.         "Session maintenance
    *& SELECTION-SCREEN
    SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001 NO
    INTERVALS.
    PARAMETERS: p_file    TYPE rlgrap-filename.
    "rlgrap-filename is a predefined structure
    SELECTION-SCREEN: END OF BLOCK blk1.
    SELECTION-SCREEN: BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002 NO
    INTERVALS.
    PARAMETERS: p_mode    LIKE ctu_params-dismode DEFAULT 'N',
                p_update  LIKE ctu_params-updmode DEFAULT 'A'.
    SELECTION-SCREEN END OF BLOCK blk2.
    *& INITIALIZATION
    INITIALIZATION.
      v_date = sy-datum - 1.
    *& AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ' '
        IMPORTING
          file_name     = p_file.
    *& START-OF-SELECTION
    START-OF-SELECTION.
      v_file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = it_cust
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc = 0.
    ****MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    ****         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *& END-OF-SELECTION
    END-OF-SELECTION.
      LOOP AT it_cust INTO wa_cust.
        v_index = sy-tabix.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV13A-KSCHL'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ANTA'.
        PERFORM bdc_field       USING 'RV13A-KSCHL'
                                      wa_cust-kschl.
        PERFORM bdc_dynpro      USING 'SAPLV14A' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV130-SELKZ(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=WEIT'.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '1595'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV13A-DATBI(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'KOMG-WERKS'
                                      wa_cust-werks.
        PERFORM bdc_field       USING 'KOMG-MATNR(01)'
                                      wa_cust-matnr.
        PERFORM bdc_field       USING 'KONP-KBETR(01)'
                                      wa_cust-kbetr.
        PERFORM bdc_field       USING 'KONP-KONWA(01)'
                                      'INR'.
        PERFORM bdc_field       USING 'RV13A-DATAB(01)'
                                      wa_cust-datab.
        PERFORM bdc_field       USING 'RV13A-DATBI(01)'
                                      wa_cust-datbi.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '1595'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'KOMG-MATNR(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SICH'.
        CALL TRANSACTION 'VK11' USING it_bdctab
                                 MODE p_mode
                               UPDATE p_update
                        MESSAGES INTO it_messagetab.
        IF sy-subrc = 0.
    *& reading success records to corresponding internal table
          READ TABLE it_messagetab WITH KEY msgtyp = 'S'.
          IF sy-subrc = 0.
    *        wa_sucrec-cnum = it_messagetab-msgv1.
            wa_sucrec-cnum = wa_cust-werks.
            wa_sucrec-cnam = wa_cust-matnr.
            APPEND wa_sucrec TO it_sucrec.
            CLEAR wa_sucrec.
          ENDIF.
        ELSE.
    *& reading error records to corresponding internal table
          READ TABLE it_messagetab WITH KEY msgtyp = 'E'.
          IF sy-subrc = 0.
            CALL FUNCTION 'FORMAT_MESSAGE'
              EXPORTING
                id  = sy-msgid
                no  = it_messagetab-msgnr
                v1  = it_messagetab-msgv1
                v2  = it_messagetab-msgv2
                v3  = it_messagetab-msgv3
                v4  = it_messagetab-msgv4
              IMPORTING
                msg = wa_errrec-message.
            wa_errrec-lineno = v_index.
            APPEND wa_errrec TO it_errrec.
            CLEAR wa_errrec.
          ENDIF.
        ENDIF.
        CLEAR : it_bdctab, it_messagetab.
        REFRESH: it_bdctab, it_messagetab.
      ENDLOOP.
      DESCRIBE TABLE it_cust LINES v_totrec.
      DESCRIBE TABLE it_errrec LINES v_errrec.
      DESCRIBE TABLE it_sucrec LINES v_sucrec.
      PERFORM disp_data.
      SKIP 2.
      IF v_sucrec > 0.
        PERFORM disp_success_data.
      ENDIF.
      SKIP 2.
      IF v_errrec > 0.
        PERFORM disp_error_data.
      ENDIF.
    *& Form bdc_dynpro
    *#  text
    *#  -->P_0104 text
    *#  -->P_0105 text
    FORM bdc_dynpro USING program dynpro.
      CLEAR it_bdctab.
      it_bdctab-program  = program.
      it_bdctab-dynpro   = dynpro.
      it_bdctab-dynbegin = 'X'.
      APPEND it_bdctab.
    ENDFORM. " bdc_dynpro
    *& Form bdc_field
    FORM bdc_field USING fnam fval.
      CLEAR it_bdctab.
      it_bdctab-fnam = fnam.
      it_bdctab-fval = fval.
      APPEND it_bdctab.
    ENDFORM. " bdc_field
    *& Form disp_data
    FORM disp_data .
      ULINE (45).
      WRITE : / sy-vline,
      4 'FAMD Price Master UPDATE SUMMARY'(004) COLOR 1,
      45 sy-vline.
      ULINE /(45).
      WRITE : / sy-vline,
      'Total Records Processed'(007),
      28 '=',
      30 v_totrec,
      45 sy-vline,
      / sy-vline,
      'Error Records'(005),
      28 '=',
      30 v_errrec,
      45 sy-vline,
      / sy-vline,
      'Successful Records'(006),
      28 '=',
      30 v_sucrec,
      45 sy-vline.
      ULINE /(45).
    ENDFORM. " disp_data
    *& Form disp_success_data
    FORM disp_success_data .
      ULINE (45).
      WRITE : / sy-vline,
      14 'Successful Records'(012) COLOR 1,
      45 sy-vline.
      ULINE /(45).
      WRITE : / sy-vline ,
      'Plant Number'(010) COLOR 2,
      17 sy-vline,
      25 'Material Number'(011) COLOR 2,
      45 sy-vline.
      ULINE /(45).
      LOOP AT it_sucrec INTO wa_sucrec.
        WRITE: / sy-vline ,
        wa_sucrec-cnum,
        17 sy-vline,
        19 wa_sucrec-cnam,
        45 sy-vline.
      ENDLOOP.
      ULINE /(45).
    ENDFORM. " disp_success_data
    *& Form disp_error_data
    FORM disp_error_data .
      ULINE (90).
      WRITE : / sy-vline,
      35 'Error Records'(013) COLOR 1,
      90 sy-vline.
      ULINE /(90).
      WRITE : / sy-vline,
      'Record Number'(008) COLOR 2,
      sy-vline,
      37 'Reason for error'(009) COLOR 2,
      90 sy-vline.
      ULINE /(90).
      LOOP AT it_errrec INTO wa_errrec.
        WRITE : / sy-vline,
        wa_errrec-lineno,
        17 sy-vline,
        wa_errrec-message,
        90 sy-vline.
      ENDLOOP.
      ULINE /(90).
    ENDFORM. " disp_error_data
    Flat file Sequence:
    Condition Type     Plant     Matrial No     Rate      Validity start date     Validity end date

    I worked out n i hav found the solution

  • Amount Field format problem

    Hi,
    I am uploading G/L entry using STD program RFBIBL00.
    In input excel file I am getting amount as 1000.1
    When i upload excel to Internal table field (Type C) it is 1000.1
    I am passing this value as it is to BBSEG-WRBTR.
    Program creates BDC Session. But when I execute BDC session in foreground/backgorund, the amount field show 1000,1
    and gives error "Input should be in the form __.___.___.__~,__"
    My current decimal notation at user level is 1,234,567.89
    I tried passing amount to BBSEG-WRBTR in all possible formats but no use.
    If i pass amount without decimal. i.e 1000, it works fine.
    BBSEG-WRBTR is char16 field.
    Any idea, what could be the problem?
    This is very urgent.
    Thanks &  regards,
    Umesh

    I am pasting code.
    Whatever commented, all tried.
    FORM convert_amount  USING    p_dcpfm   TYPE xudcpfm
                                  p_in_amt  TYPE c
                                  p_waers   TYPE waers
                         CHANGING p_out_amt TYPE wrbtr_bi.
    Input amount will be in 99999.99 format
      DATA: lv_amount TYPE wrbtr.
      lv_amount = p_in_amt.
      p_out_amt = lv_amount.
    CLEAR p_in_amt.
    WRITE: lv_amount CURRENCY p_waers TO p_out_amt.
    CONDENSE p_out_amt.
    WRITE p_out_amt TO p_out_amt LEFT-JUSTIFIED.
    CASE p_dcpfm.
       WHEN ''.    "1.234.567,89
         TRANSLATE p_out_amt USING '.#'.
         TRANSLATE p_out_amt USING ',.'.
         TRANSLATE p_out_amt USING '# '.
       WHEN 'X'.   "1,234,567.89
         TRANSLATE p_out_amt USING ', '.
         CONDENSE p_out_amt NO-GAPS.
       WHEN 'Y'.   "1 234 567,89
         TRANSLATE p_out_amt USING ',.'.
         CONDENSE p_out_amt NO-GAPS.
    ENDCASE.
    ENDFORM.                    " convert_amount

  • Converting Normal field into amount field

    Hello Gurus,
    I need urgent help.
    I want to conver the Normal field into Amount filed.
    DATA : AMOUNT(13),
    DATA : WRBTR LIKE BSEG-WRBTR.
    So I want TO Convert Normal field into amount field.
    This is urgent. please help me.
    Thanks in advance.
    Best Regards,
    zubera

    Hi,
    Use FM HRCM_STRING_TO_AMOUNT_CONVERT
    pass the char(amount) and decimal separator, thousand separator.
    you get the char converted to amount/currency
    Regards,
    Satish

  • User defined function to check the NULL and 0.00 value in a Amount field

    Hi Experts,
    I have one scenario in which i have amount field in Data type.
    I have to create one UDF which will do the following thing.
    1. If the amount field is Null it should throw an exception in mapping.
    2.If the amount field is 0.00 it should throw an exception in mapping.
    3. For all other cases it should pass the amount value to the target.
    Can anyone provide me the code For this UDF.
    Thanks in advance.

    Hi,
      You can add this logic to the UDF. Here var1 is the input string.
    java.math.BigDecimal b=new java.math.BigDecimal(var1);
              if(b.compareTo(new java.math.BigDecimal("0.00"))<=0)
                   //write your logic for values less equal to zero
    One small request, if you think your question has been answered, properly and correctly, could you please kindly if possible close down this thread. It helps people who look for solutions to similar problem.
    regards
    Anupam

  • Error in Report: Next to amount field i could see 'ERROR' word in report

    Guys,
    Problem in Report: Next to amount field i could see 'ERROR' word in report
    Eg: Invoice Amount  : "1200ERROR"  it should be like "$1200".
    Pls help where do i need to check.
    Thanks

    Ajeet wrote :
    Hi,
    It can heppens if all the records getting aggregated in the report are of different currencies and not belonging to one currency.
    Do a currency conversion for the key figures and make them all with same currency.
    See if the records in the cube for the selection which you have given in the report gives you records with different currency and if it is true then as above said.
    Thanks
    AJeet
    Are you sure ???
    The mixed unit values will be displayed as * (by default unless its changed).
    ERR comes if unit is not maintained.

  • How to maintain the amount field format after GUI_DOWNLOAD

    Hi everyone.
    I have this problem on my object.
    The format of field ERFMG in table AUFM is 3.921,569.
    After I SELECT it INTO an internal table it becomes like this 3921.569
    I would display this internal table in ALV and its ok. Its format is 3.921,569 The format is also not changed when I download it into an excel file using LIST -> EXPORT -> LOCAL FILE -> SPREADSHEET.
    However my program should automatically download to local if the user tick a checkbox in the selection-screen. It will use function module GUI_DOWNLOAD. When this is used, the format of ERFMG changes to 3921.569 again, since it is using my declared internal table.
    How will I use GUI_DOWNLOAD without changing the format of amount fields like ERFMG? What are my other options to do this?
    The Decimal Notation in my User Profile is already set to 1.234.567,89
    Thank you in advance.

    Hi Cris,
    To get the output in the user format for the decimals, try the following code.
    data: wg_dec(7) type p decimals 2.
    data: wg_dcp type usr01-dcpfm.
    data: wg_dec_str(10) type c.
    wg_dec = '111135.67'.
    select single dcpfm from usr01
            into wg_dcp
           where bname = sy-uname.
    move wg_dec to wg_dec_str.
    if wg_dcp ne 'X'.
      replace all occurrences of '.' in wg_dec_str with ',' .
    endif .
    write:/ wg_dec, wg_dec_str.
    I dont feel there is any other option where you can change the decimals format as per the user profile.
    While giving the output of decimal values in a list, the system automatically displays it in the profile set by the user.
    This code will help you to set the decimal value as '.' or ',' as per the user profile.
    Note: It wont add the unit separator for hundreds and thousands. Again you have to do that manually.
    Hope this proves of some help to you.
    Regards,
    Pulkit

  • How to roll up Amount field upto Input Criteria Posting period

    Hi All,
              I have a requirement to create a FI Budget report where the User will give the Posting Period as the input criteria, and based on the entered Posting period, 2 amount fields, "Original Budget" & "Current Month" need to get derived by looking at another amount field called “actual”, by rolling up the Amounts up to the entered Posting period.
    For example, the user gives input as Posting period = 06, which is December because Fiscal year starts from July here. And my Cube has an amount field "Actual" which displays amount for each posting period. Therefore when posting period = 06, then the "Actual" amount value for months July (PP = 01) through December (PP = 06) should be rolled up i.e added and displayed in the "Original Budget field". The “Current month” should only display the amount for the input criteria month.
    How can I do that, any suggestions please?
    Thanks!!

    Hi Sam,
             Is there any way i could do it without the SAP Exit? If yes, how? If no, can u specify in the document you sent, which code i could use as reference for my requirement?
    Thanks

Maybe you are looking for

  • Format XML data when writing to a file

    Hi, I am trying to write runtime data (XML) to a file. I am doign the following to write to the file: public void saveFile() throws Exception { try { TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer =

  • WD Table:  Repositioning Paging Buttons in Table Footer

    Is it possible to reposition the paging buttons  to appear in the right hand side of the WD table footer?  Is it possible to reposition the paging to appear in the header of the Web Dynpro Table?

  • DV9543CL wont boot or let me do anything just black screen

    PLEASE HELP ME i was flashing my bios like hp told me to and while i was flashing my bios i got the blue screen of death  and now my computer will DO NOTHING not even boot all the lights come on and stay on bu the hard drive light will not flash or d

  • Can't move objects with selection tools?

    As of last night, I am able to select objects in my documents but I am unable to move them using the selection tools.  I'm having to just scoot things around with the arrow keys.  I've already tried restoring my preferences and that hasn't helped. I'

  • Stuck by Upg BW 7.01 to 7.3 Step Configuration-Check Instances Detected

    Hello, i have a problem during the Step Check Instances Detected Phase  (Configuration) the following error is shown: An error has occurred during the execution of the CHECK_INSTANCES_DETECTED phase. There is a mismatch between the dialog instances d