SAPScript Suppress/Control Amount field size

Hi Guys,
I have been working on a SAPScript form and I have an issue. Can I restrict the size of the amount field so that it appears with a certain number of digits before the decimal point? If so, how? The size of the amount field is causing part of the amount to be written to the next line, which I do not want to happen.
I also need a character field not to compress spaces. It seems this is what is happening if this field contains a smaller number of characters than the defined number e.g. &EKPO-TXZ01(17)& having max 17 characters. This causes the other numbers and so on in front to drag back wards. I do not want this to happen as well. Also, it seems it is also creating spaces (about 3) after each line and I have not defined any new lines in the form itself.
Please assist.
Thanks and Regards,
Darlington

Hi Guys,
Thanks for the quick response. The first issue I think can be resolved through the use of the solutions you suggested. For the second issue, I need to understand how the tabs would work as you suggested. For instance,  &EKPO-EBELP&  &EKPO-EMATN(10)& &EKPO-TXZ01(15)& &EKPO-TXZ01(17)& &RM06P-PRMG1& &T006A-MSEHT& ,,&EKPO-NETPR&&RM06P-PRPEI& &EKPO-NETWR& are all in one line and the element in question is &EKPO-TXZ01(15)&. The text 'test' is less than 15 characters and it seems it compresses the spaces such that the other elements (&RM06P-PRMG1&, &T006A-MSEHT&, etc.) are dragged leftwards towards it., but for characters exactly 15 characters long, the others do not move.
How would I apply the tabulators in this case?
Thanks

Similar Messages

  • How make display only the amount field in table control(infotype 0008)

    Dear Freinds,
    have to make display only the amount field (Q0008-bet01) on table control in infotype 0008 , could you tell me how to make it display only.
    i have tried the below coding it is not working in PBO & PAI of the user exit
    ZXPADU01 and ZXPADU02. For the table control is there any othe method??
           loop at screen.
               screen-name  = 'WA_P0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    i have tried like this as well
           loop at screen.
               screen-name  = 'Q0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    in the both the above methods it is not working. Could any one plese suggest me how to make display only the amount field in infotype 0008.
    regards
    syamla

    Dear Freinds,
    have to make display only the amount field (Q0008-bet01) on table control in infotype 0008 , could you tell me how to make it display only.
    i have tried the below coding it is not working in PBO & PAI of the user exit
    ZXPADU01 and ZXPADU02. For the table control is there any othe method??
           loop at screen.
               screen-name  = 'WA_P0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    i have tried like this as well
           loop at screen.
               screen-name  = 'Q0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    in the both the above methods it is not working. Could any one plese suggest me how to make display only the amount field in infotype 0008.
    regards
    syamla

  • Suppress leading spaces while displaying an amount field in a Smart form

    Hi all,
    In a smart form, I am using fields like KONV-kbetr and VBAP-netwr each of them currency type and 2 decimal places. I want to suppress the decimal places and also the leading spaces while displaying these fields in a smartform cause when this field is inserted in a sentence, a lot of gap is there between the field and the words of the sentence. I dont want to change the field length cause it can be that huge in some cases.
    Please help.
    Thanks ,

    Hi, if you would place it in a sentence, it would be an option to concatenate the text and values into one string and then condense it.
    concatenate <text> <value> into lv_sentence.
    condense lv_sentence.
    but another way is to use codes for displaying values in smartforms:
    This is from a smartforms PDF i have..
    Output Options for Field Contents
    Use the Formatting options to adapt the value of a field before printing it. You can enter the
    relevant parameters directly behind the field name. Make sure to write the short forms of the
    different options in uppercase letters. Some of the options can be combined.
    General Information
    The formatting options are not suited for all data types of fields (for example, for character fields
    you need no exponential representation). You must distinguish between numeric fields and
    character fields.
    Numeric Fields
      If specified, the system first evaluates the length (<length>).
      If no length is specified, the system displays the value in its overall length.
      The trailing blank indicates a positive sign. To suppress it, use formatting option S.
      Any offset <offset> specified is ignored.
    Sequence of evaluation: (<length>), sign to the left(<),Japanese date (L), suppress blanks (C),
    right-justified display (R), insert fillers (F).
    Character Fields
    By default, the system displays the value of a field in its overall length, but truncates trailing
    blanks.
    Sequence of evaluation: suppress blanks (C), <offset> and (<length>), right-justified display (R),
    insert fillers (F).
    Overview
    Formatting Options for Fields
    Syntax Description
    &field+<offset>& Skips <offset> places of the field value (character fields only). If the
    offset is greater than the length of the value, nothing is displayed.
    &field(<length>)& Sets the output length to <length>.
    &field(*)& If the field is defined by a Data Dictionary type, Smart Forms set the
    output length to the value specified there.
    &field(S)& Suppresses the sign
    &field(<)& Displays the sign to the left of the number
    &field(.<nat.number>)& Limits output of decimal places to <nat.number>
    &field(E<nat.number>)& Displays the field value with the fixed exponent <nat.number>. The
    mantissa is adapted to this exponent by shifting the decimal
    character and inserting zeros.
    SAP Smart Forms (BC-SRV-SCR) SAP AG
    Output Options for Field Contents
    72 April 2001
    &field(T)& Suppresses thousand indicators when displaying fields of types
    DEC, CURR, INT, and QUAN.
    &field(Z)& Suppresses leading zeros of numbers
    &field(I)& Suppresses display of initial values
    &field(K)& Deactivates a conversion routine specified in the Data Dictionary.
    &field(R)& Right-justified display. Use this option only when specifying an
    output length as well.
    &field(F<filler>)& Replaces left-justified blanks in the value by the fill character <filler>.
    &field(L)& Converts and a date field to a local date and displays it. The date is
    then formatted using edit mask JPDAT.
    Since this representation uses Japanese characters, use it in the
    Japanese version of the SAP System only.
    &field(C)& The system takes the field value as a sequence of words separated
    by blanks. Option C shifts these words to the left and leaves only
    one blank inbetween as separator. Any leading blanks are
    suppressed. This effect corresponds to that of the ABAP statement
    CONDENSE.

  • Control over Source/Comments field size on Allergens Sensitivities and Additives

    Is there a way for use to expand out the field size of the Source/Comments field in each of these sections??
    thanks,
    David

    Hi David,
    You can expand out the field size or the text size by below steps:
    1, go to \Web\gsm\BaseForms\UserControls\ctlComplianceContainedGrid.ascx, open the file
    2, go to line 102 :  <wcc:DatatableColumn ID="SourceText" Key="SourceText" TranslationID="lblSourceOccuring" Formatter="helper.getTextFormatter()" Editor="Oracle.PlmProcess.Ui.Datatable.CellRepresentation.getTextareaCellEditor(125)"  Parser="string" width="<%# IIF (IsInEditMode(), 478, 502)%>" runat="server"  />
    3, change theCellRepresentation.getTextareaCellEditor or the width of the field, save the file, refresh your open page or create a new page, then this field will change to the newly configured size
    Notes: the maxinum text supported is 4000 character
    hope this helps.
    Thanks,
    Jessie

  • 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

  • Payment check amount field

    Hi;
    I've already made a Z for payment check and works fine, but we have notice something when preview the checks in the spool, some checks in the amount (in numbers) field "*****999,999.99" sometimes it´s moves like this:
    1) example                                    "......******999,999.99"
    2) example                              ".............******99,999.99"
    3) example                                   "....******999.99"
    and so....
    in DEV we made a lot of test printing in paper the payment check an worked fine, but the problem is in QAS.
    How can i get that the amount doesn´t move in the sapscript...?
    Thanks on advance,
    David Fúnez
    Tegucigalpa, Honduras
    Edited by: David Funez on Feb 23, 2012 9:27 PM
    Edited by: David Funez on Feb 23, 2012 9:27 PM

    Hi David,
        create a SIGN aligned tab for that amount field. The tab is nothing but the position in the form from where the printing of that particular field should start.
    This should solve your problem.
    Please revert if you still face any problems.
    Regards,
    Praveenkumar T.

  • How to deactivate withholding tax base amount field

    Dear Experts,
    My in client is using the extended withholding tax with setting Define Formulas for calculating withholding tax, my client feel that the tax base amount field is open and user may accidentally input the wrong amount there thus can anyone tell me how to deactivate this tax base amount field?
    thank you

    Dear,
    Go into Withholding tax type under SPRO>Financial Accounting Global Settings>Withholding Tax>Extended Withholding Tax>Calculation>Withholding Tax Type.
    While maintaining the Withholding Tax type you have selected "W/tax base manual" under the control data. Just don't select that option then your requirement will be met.
    There are other options also like Manual W/tax amt. which you might want to go for.
    Regards,
    Chintan Joshi.

  • How to change field size using SQL against an oracle Database

    I am an admitted novice user, looking to become more proficient.
    I have a field in a table that I need to expand the field size. The table is called Inquiries. The data type is text. The current Field Size is 10. I want to increase it, to either the max, or somethign long enough to fit TECHNOLOGY LEADERSHIP PROGRAM.
    What is the SQL command to change the field size, and what is the max for a Text Field Size

    And/Or, an even better question might be,
    Do I need to use SQL*PLUS to do this, or are there better tools. I.e, I like how in Access, you can open up a database in Design view and just change the amount for the field size. Is there a similar "easy" method to do something like that with an Oracle database.
    My current version of the server/database is:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    I was thinking I had to do SQL commands to perform the action, but there may be another way that I am not thinking about with all of the tools at my disposal. When I installed Oracle on my desktop, I installed most of the management tools and networking services, if that helps

  • Award amount field in Infotype 183 as display (Grey/Non-input) only field

    Hello friends,
    I want award amount field in infotype 183 (Award) as display (Grey/Non input) only field. I tried to do it throught txn user screen change but it is not working.
    Pls suggest how to do it.
    Thanks in advance
    anand

    Try  using IT Screen Control table T588M  with Module Pool MP018300  and check  the radio Button for the field  Amount as Output only .
    If there is no entry for MP018300 in T588M , Create one .Hope this works for you.
    Subhash

  • How to supress sign after the amount field

    Hi All,
    How to suppress the sign after the amount field is it using only no-sign or any other ways are there for doing that?
    Regards
    Mahesh

    Hi,
      Please use the Variable type BSEG-DMBTR, which does not support any sign. <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 20, 2008 2:07 PM

  • Want total control over the size of a button

    What do I do if I want to control the size of a button completely and not let something else do it for me automatically? What layoutmanagers allow me to completely control the size and which do not?

    For total control over the button size, call container.setLayoutManager(null). This, however, disables all automatic layout; not only will you have control over the size of your button, you'll have control over its position and the size and position of all other components in that container. You'll also have the responsibility to set them.
    While this is desirable in some circumstances, you normally want to use a LayoutManager. These managers allow your code to be modified with greater ease and handle a lot of the work for you.
    You can always call jbutton.setPreferredSize(new Dimension(x,y));[b] to attempt to communicate to the LayoutManager the size that you would like the button to be. [b]jbutton.setMinimumSize and jbutton.setMaximumSize are also useful. (These calls assume the existence of a field jbutton which contains an instance of the class JButton.)
    These, however, only work if the LayoutManager honors your requests; it is quite possible for a LayoutManager to ignore your sizing requests on the objects it is laying out. Most of the managers that Sun provides respect the requests their users make, but many third-party LayoutManagers aren't capable of doing so for one reason or another.
    Yet another solution is to write your own LayoutManager. The interface is relatively simple. I personally have been working on a project in which a workspace allows users to move components around. Because of this, the component has to stay where the user put it, although its size should be adjusted according to its needs. I had to write my own LayoutManager for this because none of those that Sun provided properly suited my needs.
    Which way would you like to tackle this?

  • Credit Control area field not appearing in FBCJ

    Hi
    I got some amount in cash (advance from customer). Since i got cash, my requirement is that my credit should be increased with that amount.
    It works perfectly fine when i get advance in bank. Its because there is field for entering sales credit area in F-29 (advance from customer). But there is no credit control area field in FBCJ (cash journal).
    I checked layout also (where i can make fields visible / invisible at the time of posting FBCJ entry). But that field is not there.
    Please help

    Hi Deepak:
                      We had a similar requirement while we were going through organization restructuring. We made KKBER (Credit control area) parallel to product division in SD and were planning to book all collections with respect to KKBER but FBCJ was the main hindrance in doing so. We raised an OSS note and their reply was as
    Dear Customer:
    My understanding is that you want to enter "Credit Control Area" during
    FBCJ. I am sorry it is not support by standard program. We received
    several same cases from other customer and develper replied as below:
    There are two ways through which this is possible. But both are in
    combination with a modification.
    1. If rules are definite and no manual input is necessary customer can
    use a substitution at point 2.
    But note that fields BSEG-KKBER is not free to substitute in
    standard.
    This could be changed - but it is a modification.
    Therefore please take a look at note 842318 under 2. b).
    2. The other way is to enhance the table 'TCJ_POSITIONS' and the Dynpros cash journal. This could be done like described in note 214104. In
    this note the field assignment was added to the screens of cash
    journal. This is only an example for what to do. Split screens are
    not considered in this note. Are enhancements of the split screens
    necessary? All enhancements have to be done in manual and are
    modifications.
    Ultimately instead of going for modifcation in standard screen of FBCJ we resorted to block cash collections in FBCJ and routed them all through F-28 or F-29. Please aslo have a look at 1068200 . Hope this piece of information will help you.
    Regards

  • 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

  • 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

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

Maybe you are looking for

  • Songs transferred to Ipod will not play in Itunes and don't show in Ipod

    I have had a nano for a good 6+ months and have yet to be able to fill it up with music. Under 200 songs it is a crap shoot whether or not the songs will show up after I eject it. If I load 200+ songs to the Ipod one of two things happen. 1. After ej

  • TtyS4 and ttyS5 how do I activate using 'setserial' or some other way

    Is there a 'setserial' expert in the house? I've got a daughter board/card that has a bunch of I/O on it.  All devices work except the two serial ports.  I have 4 serial ports on the main board plus these two on the daughter board for a total of 6 se

  • Iphoto and color profiles

    I know this is a tricky topic, but I'm trying to nail it down. The colors of the prints from iPhoto on my Canon Pixma iP4000 inkjet do not match what I see on my ibook G4 LCD monitor on my ibook. I do most of my editing within iPhoto (although some i

  • LocalDirector 417 and JSESSIONID url argument

    I am installing a LD417 in front of a cluster of WebLogic servers. The LD417 will passively inspect the JSESSIONID cookie in order to keep the connections from a particular client going to the same WebLogic server (WLS). If that WLS goes down, it wil

  • Writing score without recording in garageband

    i'm trying to write my own score on GB, but i can't get notes on the manuscript. I would like to write the music, then hear it played back, not play the music then see it written, if that makes sense. I;ve tried command click and clicking on the edit