How to delete QUAN field zeros

Hi experts,
I am facing problem while Deleting zeros of QUAN filed. senerio like this
mov type      Issue     Comsum
541              200.00   0.00
541              300.00   0.00
543               0.00     200.00
543               0.00     300.00   here i am seperating values in loop 541 in one filed and 543 in another filed so i want space where there is no data ex. 0.00. so how i achive this? give me solution.
Thanks,
Ashish.

Hi,
check this sample code.
data: typ_char(100) type c.
data: begin of itab occurs 0,
      mvt(3)  type c,
     quan     type p decimals 2,
     end of itab.
data: begin of jtab occurs 0,
        mvt(3) type c ,
        quan(20) type c,
      end of jtab.
itab-mvt = '541'.
itab-quan = '100.00'.
append itab.
  itab-mvt = '541'.
itab-quan = '200.00'.
append itab.
  itab-mvt = '542'.
itab-quan = '0.00'.
append itab.
  loop at itab.
    jtab-mvt = itab-mvt.
    jtab-quan = itab-quan.
    if itab-quan eq '0'.
      jtab-quan = ''.
    endif.
    append jtab.
  endloop.
loop at jtab.
  write:/ jtab-mvt, jtab-quan.
endloop.

Similar Messages

  • How to delete the trailng zeros in my table

    Hai
    I had a serious problem
    My table name called nrgp_main
    Here nrgpno declared as char(8) i had changed as 10 by mistake and i have update two times
    the number is like this 003800001 i need to cut the first '0' and update it
    Thanks & regards
    Srikkanth

    Duplicate post
    how to delete the trailng zeros in my table

  • How to delete a field in Infotype.

    Hi All,
    Can anyone suggest me how to delete a field in infotype.
    Thanks,
    Chakradhar.

    Hi Chakradhar!
    Check these links for your taste:
    <a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/bb/bdb6c8575911d189240000e8323d3a/frameset.htm">Delete infotype record - OM</a>
    <a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/48/35c7414abf11d18a0f0000e816ae6e/frameset.htm">Delete infotype record - PA</a>
    Best regards,
    Zsolt

  • How to delete photos with Zero KB size that were downloaded onto mac pro osx vers 10.5.8, 2x2.8 quad core intel Xeon ?

    How to delete picture files ( nikon NeF and jpeg )  with Zero  KB  size that were downloaded onto mac pro osx vers 10.5.8, 2x2.8 quad core intel Xeon
    -- have not been able to move them or move them to trash without  crashing  Finder  ?

    Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive & clear caches.)
    Try trashing them in Safe Mode, reply if that doesn't help.

  • How to delete a field's name in the form of 2014.1

    In the 2014 version, you can delete the field's email in html and online everything worked. In version 2014.1 so you can do. Necessary to create a form with the name and telephone. Help!

    I would like to know how to delete the email field in the Muse Web Form. I need to create a form which does not require an email field.

  • How to delete a field in pcui

    hi,
    i am new in pcui.
    can i one tell me how to delete ( label and input field ) a field in pcui.
    thnx in advance

    Hi Amit,
    You can delete or hide the fields u want in  PCUI application refer below steps:
    1) Tcode CRMC_PCUITOOLS in Analysis Tools enter u r application and Ziview and execute (make sure u r changing the zivew, which will not affect standard ivews)
    2) in Window u'll see the all technical details i.e.Structure, field group, Access class, Toolbar Group etc.
    3) Tcode CRMC_BLUEPRINT_C in Application Element u can Customize Toolbar, Tab Page Group, Field Group etc u r Zivew.
    Note : You can get the PCUI cookbook from the service market place which will help you in making changes specific to PCUI applications.
    Hope it'll help u.
    Thanks,
    Dipesh.
    Edited by: DD's on Nov 10, 2008 6:30 AM

  • How to delete a field

    Hi,
    I have a table t1 in the table t1 i have a field f1, how to delete the data of field f1.

    Dropping Columns
    Only with the release of Oracle 8i has it been possible to drop a column from a table. Prior to this it was neccessary to drop the entire table and rebuild it. Now you can mark a column as unused (logical delete) or delete it completely (physical delete).
    Logical Delete
    On large tables the process of physically removing a column can be very time and resource consuming. For this reason you may decide to logically delete it:
    ALTER TABLE table_name SET UNUSED (column_name);
    ALTER TABLE table_name SET UNUSED (column_name1, column_name2);
    Once this is done the columns will no longer be visible to the user. If at a later date you have time to physically delete the columns this can be done by:
    ALTER TABLE table_name DROP UNUSED COLUMNS;
    On large tables you can reduce the amount of undo logs accumulated by using the CHECKPOINT option which forces a checkpoint after the specified number of rows has been processed:
    ALTER TABLE table_name DROP UNUSED COLUMNS CHECKPOINT 250;
    The DBA_UNUSED_COL_TABS view can be used to view the number of unused columns per table.
    Physical Delete
    To physically drop a column you can use one of the following syntaxes, depending on whether you wish to drop a single or multiple columns:
    ALTER TABLE table_name DROP COLUMN column_name;
    ALTER TABLE table_name DROP (column_name1, column_name2);
    Dropping a column from a table will cause all unused columns in that table to be dropped at the same time.

  • How to delete invisible fields from screen painter SE51?

    Dear all,
    How to delete/remove invisible fields from screen painter SE51?
    Thanks.

    HI,
    just go to screen painter-->layout in change mode.
    the invisible fields will be looking faded
    click on that and press the DEL button.
    that will be deleted.
    <b><REMOVED BY MODERATOR></b>
    vivekanand
    Message was edited by:
            Alvaro Tejada Galindo

  • How to delete a field from search help which is delivered

    hi
    I got a requirement to delete a field from search help which is delivered long back
    Regards
    krishna

    Hi
    Whether it exists in DEV system or not?
    Take the name of that Search Help from PRD/Quality(if it is not there in DEV system) and modify/change it by removing that field from the search help in DEV system and create a Transport request and transport the same request to Quality/PRD systems
    Now the New changes (in which the field was removed) will be over written on the old search help in the PRD system, since it is the same Name (search help)
    Regards
    Anji

  • How to delete predefined fields  like Provisioning Date in users- create

    Hi,
    Is there a provision to delete predefined fields like Provisioning Date in users->create form in admin console.
    If so, please tell me all the files i need to change.
    Thanks in advance

    Hi,
    You need to comment on following sections in FormMetaData.xml.
    <!-- User Provisioning Date -->
    <!--
              <AttributeReference editable="true" optional="true">-23</AttributeReference>
    -->
              <!-- User Provisioned Date -->
    <!--
              <AttributeReference editable="false" optional="true">-25</AttributeReference>
    -->
              <!-- User Deprovisioning Date -->
    <!--
              <AttributeReference editable="true" optional="true">-24</AttributeReference>
    -->
              <!-- User Deprovisioned Date -->
    <!--
              <AttributeReference editable="false" optional="true">-26</AttributeReference>
              -->
    Please let me know if you have any questions.
    Regards
    Nitesh

  • How to delete decimal values zeros

    Hi experts,
    i am using mseg-menge field ( lenth13 and decimals 3) in my alv grid report.
    eg: 2.3456.000
    user wants only  2.3456 no decimals.
    how we can aviod decimals 0 s in report.
    thanks in advance.
    mahahe

    I search this ways in the forums:
    Shift
    SHIFT varb1 RIGHT DELETING TRAILING '0'.
    write: gv_variable decimals 0.
    SHIFT VALUE LEFT DELETING LEADING '0'.
    Shift2
    DATA: T(14) VALUE ' abcdefghij',
    STRING LIKE T,
    STR(6) VALUE 'ghijkl'.
    STRING = T.
    WRITE STRING.
    SHIFT STRING LEFT DELETING LEADING SPACE (or use 0 to detete 0).
    WRITE / STRING.
    STRING = T.
    SHIFT STRING RIGHT DELETING TRAILING STR or 0.
    WRITE / STRING.
    Shift3
    data amt(6) type p decimals 3 value '123.450'.
    data amt1(6) type p decimals 2.
    data amt_c(6) type c.
    unpack amt to amt_c.
    shift amt_c right deleting trailing '0'.
    pack amt_c to amt1.
    write amt1.
    use FM
    FTR_CORR_SWIFT_DELETE_ENDZERO
    this FM will remove all the zeros from decimal values like
    value - 234.8000000
    output - 234.8
    IF
    data: var1 type p decimals 3,
          var2 type p decimals 2,
          var3 type p decimals 1.
    move '12345.100' to var1.
    move var1 to var2.
    move var1 to var3.
    if var2 = var1.
      if var3 = var1.
        write var3.
      else.
        write var2.
      endif.
    else.
      write var1.
    endif.
    I hope that this solve your problem.
    Cordial greetings.

  • About FF_5(RFEBKA00), how to delete the leading zero by using user exit

    The program RFEBKA00  can handle input files that don't carrry the leading zeros on the check number field.
    But the Table PAYR stores check number with leading zeros
    While inbound, the program will don't work well.
    How should i enhance the program?
    Thanks a lot
    Daniel

    Hi,
    Create a new program that will read the fields..
    Then put the leading zeroes in the check number field..
    And then modify the file..
    You can use the FM CONVERSION_EXIT_ALPHA_INPUT to put leading zeroes..
    Thanks,
    Naren

  • About FF_5(RFEBKA00), how to delete the leading zero by using user ex

    The program RFEBKA00 can handle input files that don't carrry the leading zeros on the check number field.
    But the Table PAYR stores check number with leading zeros
    While inbound, the program will don't work well.
    How should i enhance the program?
    Thanks a lot
    Daniel

    Hi,
    Please do not open duplicate threads for the same question..
    Please close this thread..
    Thanks,
    Naren

  • How to Make ERFMG field zero initially in MIGO Transaction?

    Dear Friends,
        In MIGO, ERFMG(Qty in Unit of Entry) field to be zero initially once we enter Purchase Order number for the movement type=103 .
         The Reason for this, one of our user has posted a GRN for the whole Open PO Quantity. If the ERFMG field is zero initially, then the user will enter correct Quantity.
         We tried a BADI - "MB_MIGO_BADI" by making ERFMG = 0. But the system is giving Zero even after we enter a value/Number in this field.
         Please Provide a Solution for this issue.
    Thanks & Regards,
    Sathisha

    Hi Mythili,
    Try at these User Exits.
    MBCF0007  Customer function exit: Updating a reservation
    MBCF0010  Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    Thanks & regards,
    Dileep .C

  • How to delete a field from a Dynamically created internal table

    Hi friends,
    I have got a requirement in which, I will be entering the table name and Excel file from seletion-screen.
    based on the Table I have entered in the selection-screen I need to create a dynamic internal table so that I can fill that Execel data into that internal table and later i using BDC i can I can fill the database table using SM30 transaction.
    here. my problem is that, When I am creating internal table dynamically, MANDT filed is also getting created in the internal table.
    please, help in deleteing the filed MANDT from the internal able.
    following is the code which creates the dynamic internal table.
    CREATE DATA dy_table TYPE TABLE OF (p_tabname).
    assign dy_table->* to <dyn_table>.
    please provide, if any sample code is available.
    Regards,
    Xavier.P

    Hi,
    You can use this logic,
    While creating the Dynamic filed catalog try to avoid MANDT field.
    Ex:
    *Dynamic creation of a structure
      CREATE DATA LP_STRUCT TYPE (V_TABLE).
      ASSIGN LP_STRUCT->* TO <FS>.
    *Fields Structure
      OF_SDESCR ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( <FS> ).
    LOOP AT OF_SDESCR->COMPONENTS ASSIGNING <COMPONENTS>.
    *Field MANDT not displayed
        IF SY-TABIX = 1 AND <COMPONENTS>-NAME = 'MANDT'.
          CONTINUE. " Next loop
        ENDIF.
    *Build Fieldcatalog
        LS_LVC_CAT-FIELDNAME = <COMPONENTS>-NAME.
        LS_LVC_CAT-REF_TABLE = V_TABLE.
        APPEND LS_LVC_CAT TO LT_LVC_CAT.
        CLEAR LS_LVC_CAT.
      ENDLOOP.

Maybe you are looking for

  • Selecting random values from an array based on a condition

    Hi All, I have a small glitch here. hope you guys can help me out. I have an evenly spaced integer array as X[ ] = {1,2,3, ....150}. and I need to create a new array which selects 5 random values from X [ ] , but with a condition that these random va

  • Airport suddenly quit working

    cant get airport to work ----  Used to work properly

  • OSB11134:the service is not testable since all its operations require Java

    I was trying to Invoke the OSB Proxy service from weblogic Launch Test Console....but "Launch Test Console" icon is disabled. it shows the message *"the service is not testable since all its operations require Java arguments""* when I move cursor on

  • Lightroom trial download problem ?

    Any thoughts please ? I tried downloading a trial of Lightroom. After 8 hours it started the download and then an error message saying can't be done and system disconnected, I am now getting emails giving suggestions on how to get the best out of the

  • Display issue - Photoshop useless with Dell XPS15

    Hi I ve recent'y bought a Dell XPS15 designed for graphism but Photoshop display is too small(useless). It's fine with illustrator and indesign. Any solution? i ve seen I'm not the only one like that. Thanks a lot for your help.