ALV: Quantity field displays both blank and 0 value.

Hi,
My ALV has a quantity field. The requirement is for the first time displaying the value of this column always blank but once user change it to 0, it should keep 0 value.
I implemented the first requirement by setting the property Display Leading Zeros in Formatting area to "Zeros as Blanks" for the corresponding attribute/node in context. The problem is whenever I key in 0 then enter --> the value of this field is always set back to null.
I have another solution is using type char instead of type quantity. But this is the last choice because I don't want to validate and make the char field works as the numeric field.
Please help.
Thanks,
Khanh
Edited by: khaliachika on Jul 16, 2010 12:36 AM

Hi Anu,
One question from my side.
U have displayed the ALV.In that grid u have quantity field.U have changed the value of that field to 45.
When u press enter the value has been changed to .045.Is this u r problem.
U can do onething anu.
Declare one varaible with the local field.
Pass u r quantity field value into that variable.
While displaying thriugh SET_TABLE_FIRST_DISPLAY in your internal table pass this variable.
It will solve u r problem.I think.
Let me if yu have any problem
IF u want u can refer to the program BCALV_EDIT* in se38.
There also u have needful info
Thanks,

Similar Messages

  • Error message display both key and value

    Hi,
    I've an alt key check & if the validation fails then the error message pops-up and displays :
    Error
    JBO-SUB_TYPE_CODE_ALREADY_EXIST: The sub type code already exists.
    I'm not sure why is it displaying the key (JBO-SUB_TYPE_CODE_ALREADY_EXIST:) part also in the message.
    Can someone tell me how to suppress the key part in the error message and just display the message (The sub type code already exists.).
    Thanks,
    -Gaurav

    Hi,
    If you want to avoid the roundtrip to the database you can also create a uniqueKey validator in the Entity Object
    were the AltKey exists. In the failure handling of the validator set the message that you want to be displayed.
    You can see an example of this here: http://www.gabrielsideras.com/2010/09/28/adf-unique-key-validation/
    Gabriel

  • Editable ALV- Quantity field value is getting changed while double clicking

    Hi all,
         I have created Editable ALV grid using Class concepts. Quantity field is editable in dat. but after changing value and if im double clicking on that field, value is getting changed. eg: 45 is changing to .045. How can i resolve this problem.
    Could u plz help.

    Hi Anu,
    One question from my side.
    U have displayed the ALV.In that grid u have quantity field.U have changed the value of that field to 45.
    When u press enter the value has been changed to .045.Is this u r problem.
    U can do onething anu.
    Declare one varaible with the local field.
    Pass u r quantity field value into that variable.
    While displaying thriugh SET_TABLE_FIRST_DISPLAY in your internal table pass this variable.
    It will solve u r problem.I think.
    Let me if yu have any problem
    IF u want u can refer to the program BCALV_EDIT* in se38.
    There also u have needful info
    Thanks,

  • ALV: how to display only subtotals and total rows in the output

    ALV: how to display only subtotals and total rows in the output
    i am getting output
    i am getting subtotals for respective fields
    but i want to display only subtotals and totals rows in the output
    i have tried the
    totals_only   parameter in slis_layout_alv
    but it is not working.

    hi,
    For TOTAL
    For the amount field / quantity field in the field catalog give DO_SUM = 'X'    for WHOLE total
    For SUBTOTAL
    For subtotal you will have to create an internal table sort..Let's say you want to do subtotal for each customer..
    DATA: lt_sort type SLIS_T_SORTINFO_ALV,
    ls_sort type slis_sortinfo_alv.
    CLEAR ls_sort.
    ls_sort-spos = 1.
    ls_sort-fieldname = 'Give the field name that you do the sum'.
    ls_sort-up = 'X'.
    ls_sort-subtot = 'X'.
    APPEND ls_sort TO lt_sort.
    fieldcatalog-do_dum = 'X'.
    for subtotals
    WA_SORT-FIELDNAME = 'ERSDA'.
    WA_SORT-SPOS = '2'.
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOTAL = 'X'.
    APPEND WA_SORT TO IT_SORT.
    Refer
    http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e056d52611d2b468006094192fe3/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/doesnt-function-event-subtotal_text-in-alv-713787
    regards,
    Prabhu
    reward if it is helpful

  • Hp Photosmart C6180 display is blank and no lights

    Hp photosmart C6180 display is blank and the console lights do not light up.
    windows 7 64bit, 12 gig i7 3400 2-60gb ssd,raid 0 ,3 sata 6 drives ,dvd
    i was having color issues not printing,magenta will not print,new cartridges tried, cleaned through hp software,still no difference.
    Unplugged printer to move to desk, code came up improper shut down,would not respond to any input from panel or pc through software.
    unplugged and let it set for 3 minutes plugged in again restarted screen came up and froze in the  default ready to print screen. console would not respond to any inputs even the power  button.
    Unplugged again using the attempted the hard reset as mentioned on the community boards holding the power button.
    Printer started no display,ran a print job no problem, color picture no problem, no magenta still but it did print from pc. Console has no lights on. power button will not respond.
    Tried the # 6 button hold unplugg and replug routine.nothing same results.
    dismantled the side to unplug the logic board and remove cmos battery and let it set for an hour. reinstalled noting that none of the capacitors looked bulged anywhere on the board.
    Plugged power supply in lights up at connector, plug into printer ,no lights after a few seconds the printer goes into self test and sits there no display ,no lights on. Tried to print diagnostics, printed everything but magenta band of color , software shows no problems.
    aside from taking the printer apart and using boiling hot water to clean the magenta print head circuit, what happened to the display? what can i do now with out spending more thanthan this is worth? i have some technical skills so time is not a problem.
    i do have a new email address as well so please let me know in this forum, i will change default address asap.
    Thanks
    Gary
    This question was solved.
    View Solution.

    Hi Gary,
    Unfortunately, it sounds like the hardware has failed. I can't recommend any other solutions that you haven't already tried. The next step would be to service or replace your printer.
    Service:
    Determine if your product is in warranty or out of warranty. If you need help determining your product’s warranty status, go to HP’s Warranty Check Tool .
    If your product is in warranty , contact HP support.
    If your product is out of warranty , click here to view additional printer support options starting as low as $20.
    Replacement:
    Consider taking advantage of HP's Trade-In program: http://www.hp.com/united-states/tradein/home_flash.html
    Sorry I don't have better news for you!
    I am an HP employee.

  • Right after starting up display goes blank and shuts down?

    Right after starting up display goes blank and shuts down?
    Any ideas I can't get it started. Thought I would ask for help before making a genius appt.

    Thanks that was very helpful info. I was able to boot into the recovery disk partition and run some basic HD tests and it found no issues.  Then I booted into the hardware test and it found no issues. After these tests it still failed to boot into Mavericks. I'm guessing its a software issue and I can not find the original computer disk. I have a time machine backup from 2 months ago and I could use the disk utility on the recovery sector to launch it but I want to wait and see if I can boot from a software DVD first. If I can repair the current OS that is my best option.
    Thanks.

  • Should display both Spanish and English lang. at a time in BEx analyzer

    Hi All,
    I need to display both Spanish and English lang. in Bex analyzer.
    InfoObject is language dependent.
    Ex: For material it should display description in Spanish and English at a time.
    Am only able to display one at a time.
    Please suggest.
    Regards,
    Sandeep.

    Hi Sandeep,
    As Kodandapani mentioned it’s not possible to display both languages same
    time as its mapping to same T table where LANGU is part of key.
    I recommend you to create an attribute or maintain another table for other
    language to display at a time.
    if anybody get any better ideas then pl share.
    Regards,
    Naveen Kencha

  • When will Smartview support display both aliases and members?

    In the Essbase classic add-in, users had the ability to display both aliases and member names. When using Smartview with Essbase, this isn't supported. Are there plans to add this back? Thanks.

    I heard this is the most requested parity feature of the addin, that Oracle may be doing this sometime in 2010 since it is a complicated fix.

  • I have installed windows 7 into mac 10.6 after complete it restart and from than its display is blank and nthing can happen it takes more than 3 hr so now what should i do?

    i have installed windows 7 into mac 10.6 after complete it restart and from than its display is blank and nthing can happen it takes more than 3 hr so now what should i do?

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Problem with ALV amount field display

    hi friend!!
    i have a editable ALv out put and in that i am displaying Amount and quantity field. In O/p if i enter 100 its taking as 100,00 .Please tell me how to correct the same.
    Plz help me

    Try to fill the Ref_fieldname and Ref_tabname in the fieldcatalog.
    also specify decimals = 0 for the column which you are editing.
    fieldcat-ref_fieldname = 'KWMENG'.
    fieldcat-ref_tabname = 'VBAP'.
    fieldcat-decimals_out = 0.
    "if you want decimals then specify the number how many you want

  • Quantity Field Display in Sap Scripts

    Hi,
    I am displaying the quantity field in the sap script layout.But in the quantity field having 3 decimal places.
    Ex: 3.400 is there i want to display 3.4
    3.000 only i want to display 3
    3.740 -
    3.74 like that i want.
    I want to omit the zeros after decimal places.
    Please give me the solution.
    Regards,
    Jenny

    As it is quantity field, it will print even the decimal points...U can try this...move the value to a char variable and use truncating to remove zeros by deleting them and use this value in ur script to print the value.

  • ALV QUANTITY field Geting converted into decimals ?

    Hi All ,
    I have developed an alv report .In that the quantity field is made editable after editing the quantity when i save it .It gets converted into decimals.Suppose if i give 77 its getting reflected as .077 all the field name ,table name ,reference field name, reference table name, quantity field data type has been passed but the problem persists.If there is any one whos has come across this kind of scenario please share your thoughts on this.
    Best Regards,
    Sreeram

    Hi Sreeram,
    I am not gettin this issue. See below code :
    If you are gettiing the same issue with the below code then it has something to do with your user settings.
    Go to Menu Item System -> User Profile -> Own Data -> Defaults ->Decimal Notation.
    Set it to 1,234,567.89 and save. Now try the program again.
    REPORT z_test.
    TYPE-POOLS: slis.
    TYPES : BEGIN OF ty_ekpo,
              ebeln TYPE ebeln,
              ebelp TYPE ebelp,
              ktmng TYPE ktmng,
              menge TYPE bstmg,
            END OF ty_ekpo.
    DATA: it_ekpo TYPE TABLE OF ty_ekpo,
          it_fieldcat TYPE slis_t_fieldcat_alv.
    SELECT ebeln ebelp ktmng menge
      FROM ekpo
      INTO TABLE it_ekpo
      UP TO 20 ROWS.
    PERFORM add_fieldcat USING 'EBELN'.
    PERFORM add_fieldcat USING 'EBELP'.
    PERFORM add_fieldcat USING 'KTMNG'.
    PERFORM add_fieldcat USING 'MENGE'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       i_callback_program                = sy-repid
       it_fieldcat                       = it_fieldcat
      TABLES
        t_outtab                          = it_ekpo
    EXCEPTIONS
       program_error                     = 1
       OTHERS                            = 2
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    FORM add_fieldcat  USING  p_fieldname TYPE slis_fieldcat_alv-fieldname.
      DATA: wa_fieldcat TYPE slis_fieldcat_alv.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = p_fieldname.
      wa_fieldcat-tabname = 'IT_EKPO'.
      wa_fieldcat-ref_fieldname = p_fieldname.
      wa_fieldcat-ref_tabname = 'EKPO'.
      IF p_fieldname EQ 'KTMNG'.
        wa_fieldcat-edit = 'X'.
      ENDIF.
      APPEND wa_fieldcat TO it_fieldcat.
    ENDFORM.                    " ADD_FIELDCAT
    Regards,
    Jovito

  • Display both company AND name in contacts, incoming calls, messages, etc

    Is there no way to have both a person's full name, AND company appear on the display of contacts and incoming calls??
    I have over 2,000 contacts in my address book, many from the same company, and many with the same (or similar) names.
    When someone with a very common name calls or texts, it's impossible for me to remember who they are without listing their company as well. If I have both Sam Michaels and Samantha Mitchells in my address book, sometimes the only way to distinguish between the two is knowing that Sam works for Viacom and Samantha works for Universal.
    I've heard that the only way to do this is to include the company name in the person's main "name" field. This is problematic because A) it would take me a million years to go through and personally edit all of my 2k+ contacts, and B) this is completely counter-intuitive of having the company/office/job title lines available as fields in the address book in the first place. 
    Does anyone know a way around this at all?? Apple really needs to find a way to fix this, as it's super inconvenient for business professionals. This is just another one of my many frustrations with Apple products being not intuitive for workers in the corporate world.

    I'm not aware of a way to do this, however I'm certain that when my phone rings, it shows the person's name and company information that I have written in contacts. I've not taken time to check lately, but that seems to be the case for contacts that have a company name in them. Ones that do not have a company name show the person's name and then the label for the phone number they are using, such as home, work, mobile, etc.
    Otherwise, feedback to Apple goes HERE, and then just click on the appropriate subject.

  • Displaying both Hindi and Arabic numerals in Oracle 10g PDF report

    Hi….
    Oracle experts told us to ask “In how many ways we can do it in oracle?” instead of asking “Can we do it in Oracle?” , I need ONE way to solve the following problem, it toke to much time and I don’t know if it can be solved !
    The problem:
    Can we print in - Oracle 10g reports - a PDF report with BOTH Hindi and Arabic numerals?
    Well, at design time everything is fine, you can use right-to-left, left-to-right and the print preview is showing BOTH Hindi/Arabic numerals fine, but when I tried to produce it as a PDF, unfortunately its not, means its either all Hindi or all Arabic numerals !
    I tried everything possible, environment variables: NLS_LANG, REPORTS_BIDI_ALGORITHM, and REPORTS_ARABIC_NUMERLS, setting Digit substitution to Context in windows regional settings, uifont.ali is modified properly according to metalink note, but nothing solved this issue!
    I noticed something, when I used the DESTYPE=printer and DESNAME=PDF995 (one of the PDF printers) , it worked fine , means the problem could be in the generic PDF generator of the Oracle reports server,
    But even with PDF995 you still need to feed the file name, which is not suitable for multi-user environment that need the report to be displayed via web browser.
    Does anybody face this before?
    Edited by: khaled.w on May 24, 2010 7:29 AM
    Edited by: khaled.w on May 24, 2010 7:35 AM

    Don't tell so much.
    Check the following link
    1. PDF Reports in Unicode / Arabic &amp;amp; English | Oracle Community
    2. OraFAQ Forum: Reports &amp; Discoverer &raquo; Report in Arabic(pdf) (merged)
    3. Arabic Report generated to text file giving Jun... | Oracle Community
    Hope this helps
    Hamid

  • Bex Web Ad-hoc Analysis Template - Displaying both Data and Graph Tabs

    Hello Everyone
    I am asking this as I would not have belived this if I hadn't seen it for myself. I was showing somone a BW report using the standard Bex Ad-hoc analysis on the Web. They managed to display both the data analysis tab and the Graphical display tab on the same page, with the data at the top and the graph underneath. I could see that both of the tabs were highlighted at the top. It was great because as you manipulated the data in the navigation block, the graph changed at the same time.
    I have looked in all my documentation and I have not found anything.
    I have tried to replicate what this user did, but cannot. I have tried all the usual things like Shift control and alt, but it doesn't work.
    Does anyone know how to do this, because the user loves it and I cannot explain to them how they must have done it!
    Points will be awarded for the successful answer!!
    Many thanks to you all
    Gareth

    Thanks Andrew
    I am glad you understand what I mean, as I thought I was seeing things when I saw it!
    I feel I am so close to the answer, but when I do the drop down on the Graphical display tab for "display as" it only gives me the options
    Column Chart
    Line Chart
    Pie Chart
    Bar Chart
    Stacked Bar Chart
    Do I need to do something else, or I am I in the wrong part of the report and I am running BW 3.5.
    Thanks for your reply so far
    Gareth

Maybe you are looking for

  • HP Smart Web Printing (print is to small)

    How can I make the font / text size bigger? When I print a web page it's so small I can't read it. I have a HP Photosmart C8180   all-in-one printer. Help Please  :-(

  • HT201401 there is no sound when I play a video or music also it s not turning off.It s restarting.please help me.

    Hi, before 3 months when I start to  play any video or music to listen, I could not hear any sound. if I want to play video as handsfree mode it s not possible to hear any sound other problem is it s not turning off. When you want to turning off it s

  • Creating to-do's from a mail doesn't work

    hey folks, When I'm trying to create a to-do from a marked text in an mail, only the yellow box appears (I can write sth in it) but I can't change any settings and it won't be saved either. Does anyone has an idea to solve that problem? thanks in adv

  • Out of Memory ODBC - 100

    Dear Experts,          I have created a Query Print Layout to generate a picture report. When i run the report through manager id the report gets generated, on the other hand when i run the Query Print Layout from user/ id it throws the following err

  • Save for Web Export

    I am trying to use the save for web export option to save out a file of type JPEG. I have gotten the code working fine if it saved out with the default file type of .gif, but I cannot get it to work with .jpg. set theExportOptions to {class:save for