Problem in displaying quantity in screen field.

Hi all,
Am facing a problem in displaying the quantity in a screen.
In my program,am displaying the material no , unrestricted stock , blocked stock and the related pending prs for that material  say
mat no - 6021  Un.Res.Stock - 100  blocked stock 10 .
if 2 PRs are pending for tat material, i hav to display in this for mat
Mat.no   Un.res.Stock    Blockd stock      pend.pr
6021        100                 10                    100012
                                                             100013.
But here am getting
Mat.no   Un.res.Stock    Blockd stock      pend.pr
6021        100                 10                    100012
                0.00                0.00                 100013.
am using table control for the screen.
i dont want 0.00 to get displayed below the Un.res qty.
since it is a quantity field it is getting displayed with 0.00
Can it be solved?
Thanks
Priya

Hi,
one thing can be done that before passing the data to the table control take work varibale of char type and pass the PRS values to that variable using MOVE Keyword  and then to the table control .
ie. data :
     w_prs(10) type c.
move wa_prs to w_prs. 
" pass w_prs to the table control
Hope u got the idea...
thanks
ravi

Similar Messages

  • How to display the selection screen fields for selected checkboxes

    Hi all,
             I have 7 checkboxes, for each check box we have some seletion screen fields.if i select first check box,i want to display first slection screen fields only.
    and if we select more than one check box how to display the selection screen fields for selected check boxes,please help me this
    Thanks
    sriman.

    hi,
    Try this code
    report z_13317_sdn2.
    tables : mara, marc, dd03l.
    parameters : p_chk1 as checkbox user-command ABC,
                 p_chk2 as checkbox user-command PQR,
                 p_chk3 as checkbox user-command XYZ.
    select-options : s_matnr for mara-matnr modif id A,
                     s_ersda for mara-ersda modif id A,
                     s_werks for marc-werks modif id B,
                     s_lvorm for marc-lvorm modif id B,
                     s_tab for dd03l-tabname modif id C.
    data: v_chk1,
          v_chk2,
          v_chk3.
    at selection-screen output.
      loop at screen.
        if screen-group1 = 'A' or
           screen-group1 = 'B' or
           screen-group1 = 'C'.
            screen-input = 0.
           modify screen.
        endif.
      endloop.
      loop at screen.
        if v_chk1 = 'X'.
          if screen-group1 = 'A'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk2 = 'X'.
          if screen-group1 = 'B'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk3 = 'X'.
          if screen-group1 = 'C'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
      endloop.
    at selection-screen.
      if sy-ucomm = 'ABC'.
        if v_chk1 = ' '.
          v_chk1 = 'X'.
        else.
          v_chk1 = ' '.
        endif.
      endif.
      if sy-ucomm = 'PQR'.
        if v_chk2 = ' '.
          v_chk2 = 'X'.
        else.
          v_chk2 = ' '.
        endif.
      endif.
      if sy-ucomm = 'XYZ'.
        if v_chk3 = ' '.
          v_chk3 = 'X'.
        else.
          v_chk3 = ' '.
        endif.
      endif.
    Regards,
    Sailaja.

  • Popup value to be fetched and displayed in other screen fields

    Dear All,
    I have a selection screen where there are three fields viz. MATNR MEINS MATKL. I want the popup values that will be fetched from MATNR (i.e. MEINS and MATKL) should be displayed in the corresponding field when MATNR is selected.
    Can you please suggest how can I do this?
    Thanks and regards,
    Atanu

    Hi,
    Use FM DYNP_VALUES_READ to read the value of matnr and then get the corresponding values fron data base to populate other fields.
    CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                   = sy-cprog
          dynumb                   = c_1000
          perform_conversion_exits = 'X'
        TABLES
          dynpfields               = it_fieldvalues
        EXCEPTIONS
          invalid_abapworkarea     = 1
          invalid_dynprofield      = 2
          invalid_dynproname       = 3
          invalid_dynpronummer     = 4
          invalid_request          = 5
          no_fielddescription      = 6
          invalid_parameter        = 7
          undefind_error           = 8
          double_conversion        = 9
          stepl_not_found          = 10
          OTHERS                   = 11.
    Regards,
    Pankaj

  • Problem with G/L account screen field in PR for Services?

    Hi all,
    While creating PR, I am facing an issue with the screen field G/L account for services i.e item category 'D' .
    Once service number is entered in the screen, a pop-up window is triggering to enter the G/L account.
    once the G/L account is entered and click continue, unable to change this G/L account again because the
    field is greyed out(in Account asisgnment Tab)?
    Is it the standard SAP behaviour? Are there any settings to change the field in to input enabled?
    Please help.
    Thanks,
    Aravind

    Hi Aravind,
    To edit the G/L Account in the Service PO, first select the "Service" tab at Item detail screen, select your Service line in the Item detail, and then press " Account Assignment" icon which is available below the Item details screen ( In Service" tab). There you can edit the G/l account field.
    Umakanth R

  • Problem in displaying message in screen

    Hi All,
    I am trying to put a comma between each variable that is getting displayed in screen.
    I am displaying a sucess message in my screen as follows.
        DATA:    lv_message  type symsgv.
           concatenate var_one ',' var_two ',' var_three  ',' var_four  ','  var_five  ',' var_six  ','
                var_seven ',' var_eight  ','
                var_nine  ',' var_ten into lv_message.
            CALL METHOD lo_message_manager->report_t100_message
              EXPORTING
                msgid = 'zmessage'
                msgno = '1'                                         " This is a message. We are displaying it on screen.
                msgty =  'S'
                view  = 'view1'
                p1    = lv_message.
    Now what happens is, some of the variables may be blank in database table. for example assume var_three, var_four and var_six are blank.
    So the final message in screen is getting displayed as follows:
    This is a message. We are displaying it on screen. 1,2,5,7,8,9,10,,,,
    How to avoid the commas which are coming at the end.
    Please provide your suggestion.
    Thanks in advance.

    Hi,
    Instead of the pattern given you can also get something like this 1,,2,3,,5,,,
    So you have to take care of extra commas in between as well,
    You can write extra logic if-else statements to first check if the variable is initial or not, if not then only concatenate.
    Regards
    Manas Dua

  • How to display the selection screen fields on reprt output

    Hi,
         I would like to know, which function module is use to diplay the selction scrren fields on the report output.
    For  e.g: 
                  on selction scren I have two select options.
         1. Company Code : 0000  to  9999
         2. Fiscal Year       : 2005  to  2008
    I need to display these fields on the Report ouput, so that I can know that what selection criteria I have entered on selction screen.
    Thanks & Regards
    Chetan Chauhan.

    Hi Chetan,
    Lets say u have selection criterion as
    *SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : pa_werks LIKE vlcvehicle-werks DEFAULT 'XXX' OBLIGATORY,
                 pa_date  LIKE sy-datum DEFAULT sy-datum.
    SELECT-OPTIONS : so_vbeln FOR vbrk-vbeln.
    SELECTION-SCREEN END OF BLOCK b1.
    Put a selection on that criterion according to selection screen,
    Fill in a internal table.
    Write itab-field1, field2.
    Also use ABAPDOCU a tcode where u can find many demo programmes for all topic.
    Reward points if useful.
    cheers
    Mohinder Singh
    Cheers
    Mohinder Singh Chauhan

  • Problem with displaying a splash screen twice

    I have a splash screen that displays while I am reading data from the recordstore, I use the same sceen when I am writing data back to the record store when the application exits.
    The problem I am having is that the screen never appears the second time, I have tried to set it to null and then instantiate it again but it still does not appear. Can someone please give me some adivse as to why this might be happening. I am pretty sure it is some kind of race condition with the threads but I just cant seem to solve it. I am placing snipits of code below.
    public class NetTools extends MIDlet implements CommandListener
    public void startApp()
    isPaused = false;
    display = Display.getDisplay(this);
    splash = new Splash();
    splash.start();
    settings = new Settings(this);
    settings.start();
    display.setCurrent(splash);
    splash.StartTimer();
    splash.setMsg("Loading Settings...");
    settings.Load();
    splash.setMsg("Loading Main App...");
    splash.Dismiss();
    showMainScreen();
    splash = null;
    public void destroyApp(boolean unconditional)
    display = Display.getDisplay(this);
    splash = new Splash();
    splash.start();
    display.setCurrent(splash);
    splash.setMsg("Saving Settings...");
    //splash.Join();
    //splash.StartTimer();
    settings.Save();
    //splash.Dismiss();
    settings = null;
    splash = null;
    public class Settings implements Runnable
    public void Load()
    try
    thread.yield();
    public void Save()
    try
    thread.yield();
    public class Splash extends Canvas implements Runnable
    public void StartTimer()
    start_time = System.currentTimeMillis();
    repaint();
    serviceRepaints();
    public void Dismiss()
    while ((start_time+WAIT_TIME)>System.currentTimeMillis())
    repaint();
    I cannot seem to figure out how to make the thread for the splash overtake the UI thread in the destroyApp(), does anybody have any ideas.
    Sunny

    A grey box with the splash screen size is displayed.would indicate you have your "application which takes sometime to load" in the
    EDT, which will prevent painting until loading finishes
    use a separate thread to load the data
    http://java.sun.com/docs/books/tutorial/essential/threads/
    http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
    http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html

  • Problem in displaying variable input screen

    Hi,
    I am trying to execute the query. I created Characteristic with User entry variable on some characteristics. But at the time of execution it is not displaying variable input boxes for inserting the input. It is giving blanck white in colour. It is strucking this process. Even I am opening other queries also it is giving the same problem. So please give me appropriate solution for this.

    Dear Purushottam,
    Check the variable again...in the Details tab
    Check the VARIABLE IS READY for INPUT check box.
    Regards,
    Ram.

  • Had problems with display said cracked screen not covered by warranty anyone else with this problam

    My daughter has MacBook Pro 15 with Retina display.   Bought in January 2014.   Said she must have dropped it.   She has barely used it.   She suffers from migraines and is in bed almost 24 hours a day.   They said it could have ben shut wrong.   of course AppleCare doesn't take care of it.   Anyone else know who we can contact.

    Apple care warranty does not cover accidental damage under warranty.  They can still repair it for you.
    You can check your homeowners insurance if you think it is worth it.
    Genius reservation http://www.apple.com/retail/geniusbar/
    on-line https://getsupport.apple.com/GetproductgroupList.action
    https://www.techrestore.com/mac/
    http://www.dttservice.com
    http://www.myservice.com/macbookpro.html
    http://www.ifixit.com/Device/MacBook_Pro
    http://www.PowerbookMedic.com

  • Want to see the previous file name in the selection screen field

    Hi,
    I am working with flat file upload. Now my problem is in the selection screen field when i press space bar or backspace i want to see the previous file path which i have taken before. How to do this functionality.
    Thanks in advance,
    Vijay.

    Hi,
    Hope the following code will help u.
    PARAMETER: in_file type ibipparms-path MEMORY ID FID.
    at selection-screen on value-request for in_file.
      call function 'KD_GET_FILENAME_ON_F4'
        exporting
          mask      = ',CSV,*.csv,'
        changing
          file_name = in_file.
    But here when u give a path and execute and come back or executing it again the previous path will automatically come to the in_file field.
    Just check this code.
    Thanks.

  • Selection screen field problem

    Hello experts..
    i have a selection screen , in that i have a field   s_bwart for mseg-bwart.
    some times the user will input the data in the field and sometimes he wont. we have fixed movement types combination like
    11-21 , 13-24 , 13-56 , 101-543 , 101-544 etc.
    if the user did not input any thing in the selection screen , i am populating s_bwart in at-selection screen event with all the mvt types. after executing the report when user presses the back button to come to the selection screen, there the s_bwart field is containing all the mvt types in single values ie in the select options screen. So the user dont want that, if he comes back nothing should be there in the selection screen field s_bwart if he has not inputted anything. if he inputs only 11 mvt type then when he comes back after executing the report he should see only 11 in the select screen field ie s_bwart. Please send the replies on how to solve the problem.

    hi,
    in ur program try to display values for users in START-OF-SELECTION event as it triggers after the selection screen displayed for users. if user doesn't give any input then display default values in this event. and also create a variable
    for ex:
    data: ws_flag type c,
             p_value type i.
    after u display default values for users in selection screen assign the flag as ' X '
    ws_flag = 'X'.
    before leaving ur program based on flag try to do like this.
    if ws_flag = ' X '.
        clear s_data. // s_data is the select options for u.
    else.
         s_data = p_value. // the value which user gave in selection screen as i/p.
    endif.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Fields not greyed out in display mode in screen exit

    Hi all,
    i am working on an screen exit for CJ02 transaction. the values in the customer subscreen are getting updated in database and even it is reflecting in fields when viewed again. the problem is that in display mode (CJ03) the fields are still editable. though there is no save button, but the fields should be greyed out.
    i have tried to modify screen using LOOP AT SCREEN in the function exit provided in PBO.....but it is not picking the subscreen.
    please provide any solution as soon as possible.
    thanks in advance

    In the PBO in your screen exit:
    IF sy-tcode EQ 'CJ03'.
    LOOP AT SCREEN .
    if screen-name 'your field'
    screen-input = 0.
    screen-output = 1.
    MODIFY SCREEN.
    ENDIF.
    endif.
    what enhancement are you using?
    bye

  • Problem with numeric screen field....

    hi,
       I've gotta situation that,
    In sales order we gotto determine WBS element(ps_psp_pnr) based on some conditions, if none of the condition is satisfied then the 'project definition'(prps-pspid) has to be concatenated with '.99' and displayed as WBS element.
    Now the actual problem is, WBS element is of numeric character type whereas the projectdefinition(pspid)+.99 is of charcter type. So it throws me a dump. Even then, the screen field of WBS element doesnt shows any non numeric character and shows error message.
    So how do i overcome this situation? Can anyone help me? Its quiet urgent.
    Prompt answeres will be rewarded with points.
    with regards,
    praveen.

    Hi Praveen,
    If you take SE16 and PRPS, you can see how SAP store it internally and show externally. In the first screen where it shows the line items, the WBS element value is the one stored internally and if you double click and see the WBS value in the next screen it is the one showed in the transaction screen.
    For the conversion routine, even if the parameters are type less, you have to pass the variable with type.
    For example
    data: w_POSNR type PS_POSNR,
          w_wbs(8).
    w_wbs = '123.55'.
    CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT'
      EXPORTING
        input          = w_wbs
    IMPORTING
       OUTPUT          = w_posnr
    EXCEPTIONS
       NOT_FOUND       = 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.

  • Problem with the quantity field

    hi every one
    i am facing a problem with the quantity field (vbap-kwmeng)
    as per my requirement i need to display this quantity field along with some other item fields from VBAP in an alv grid.
    among all the fields displayed in the alv grid only this quantity field is editable(end user can change this quantity)
    once end user changes this quantity and press save button i need to capture this new quantity in my internaltable.
    problem is input of length of quantity is 15 and the output length is 19
    so when i am pressing save
    say my quantity is 50 when i am pressing save '0.050' is coming because of the length difference
    how can i capture the original changed value.
    vamsi

    what about define two fields in  you inner table ,one as char and the other as vbap-kwmeng, you can show the char one in the ALV gird , when user input value and press SAVE ,you can move the value to vbap-kwmeng.
    you can test it,mybe some one has one better idea.

  • Problem in customized sub screen field

    Hi all,
       Iam facing a problem in dialogue programming.in my customized subscreen, i have three fields. In these three, first two are char and third one is currency. if i enter data on the screen, the third field is not getting the value in debug for screen field. If i try to save the data , table not getting the third value.what is the problem..thanks in advance....
    Avinash

    hi,
    For currency field did u mention the Check table, for currency and quantity always need one reference table
    for curency you can use TCURC as a check table.
    Cheers,
    Sasi

Maybe you are looking for

  • WHY OH WHY NO HTML SUPPORT MAIL 5.1????

    Guys First of all well done on Lion. It is a geat looking OS and I personally LOVE IT. I must however askk wht for the sake of not having to run MS on my mac is there still no support for HTML mails in mail for mac 5.1? The ONLy reason I am running o

  • Ipod mini was doused

    Hi, My ipod mini was in my athletic bag today, and my nalgene spilled all over both my ipod and cell phone, the phone is fine but my ipods screen is turning various shades of the greyish color backgroud and nothing will come up. however, at the top w

  • NETCH Planning

    Hi All, I am facing very weird Planning issue. Any Sales Order made in 2010 are considered as separate requirement and result in separate PR for PO. This is creating problem as PR rounds up to the minimum quantity to be ordered which results in much

  • Which nvidia driver version are you using?

    Because graphic card becomes more important in Premiere Pro (CS 4.2),  I wonder which nvidia driver is working really stable for you. In some forums people tell of nonstable versions after 19x.xx. Which version do you recommend actually? BTW, I'm usi

  • MacBook can't see wifi network

    Hi there, Please help! I'm setting up a wireless network and my macbook can't see the wireless network. The bizarre thing is that my friend's macbook sees it and connects with no problem. My macbook sees other wireless networks, but not mine! What's