Output in alv -- sum on the particular field

Dear Freinds,
                 I have developed a report using a ALV grid . The output i having the fields
as
orgunit        orgdesc  count    name    salary      total salary.
1234          test1                    raja       100          1200
                                     2     rama      200         2400
                                                         300         3600  -> i want count 2 in this line
1235          test 2             1    rana       500         6000
                                                         500          6000 -> i want count 1 in this line
Can i give the Count 1  and 2   in the same row where the   Totals --- 500 and 6000
and 300 and 3600  are being displayed int he above row ?
the user says he want to have the count in the down along witht he total's lline
the count is not a now a currency field i tried to sum it is not summing because it is
NUM data type.
As per the above data(sample data) we can see that Orgunit(1234) is having two employees  hence the count was two .  For the Orgunit(1235) we have only one employee the count was only one . Nowe my question is can i give the  counts 2 in the first row and the count 1 in the second rown can give along with the total.........line ...
if so what i can do the change in the field cat.
When iam using in my field cat  for  getting the output as above
CLEAR ls_fieldcat.
  ls_fieldcat-col_pos      = 0.
  ls_fieldcat-fieldname    = 'ORGUNIT'.
  ls_fieldcat-seltext_l    =  text-015.  "'Orgunit'.
  ls_fieldcat-key          = 'X'.
  ls_fieldcat-key_sel      = 'X'.
ls_fieldcat-no_out       = 'X'.
  APPEND ls_fieldcat TO fp_i_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-col_pos      = 1.
  ls_fieldcat-fieldname    = 'ORGTEXT'.
  ls_fieldcat-seltext_l    = text-016.   "'Orgdesc'.
ls_fieldcat-no_out       = 'X'.
  APPEND ls_fieldcat TO fp_i_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-col_pos      = 2.
  ls_fieldcat-fieldname    = 'COUNT'.     ---This is data type Numc
  ls_fieldcat-seltext_l    = 'H.Count'.
  ls_fieldcat-outputlen    = 4.
  ls_fieldcat-do_sum       = 'X'.   -
> it is not getting summed up
ls_fieldcat-datatype    = 'NUMC'.
  APPEND ls_fieldcat TO fp_i_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-col_pos      = 3.
  ls_fieldcat-fieldname    = 'STAFFNAME'.
ls_fieldcat-no_out      = 'X'.
  ls_fieldcat-seltext_l    = 'Name'.
  APPEND ls_fieldcat TO fp_i_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'SALARY'.
  ls_fieldcat-seltext_m   = 'Salary'.
  ls_fieldcat-col_pos     = 4.
  ls_fieldcat-outputlen   = 17.
  ls_fieldcat-do_sum      = 'X'.
  ls_fieldcat-datatype    = 'CURR'.
  APPEND ls_fieldcat TO fp_i_fieldcat.
  CLEAR  ls_fieldcat.
  ls_fieldcat-fieldname    = 'TOTAL'.
  ls_fieldcat-seltext_m    = 'Total Salary'.
  ls_fieldcat-col_pos      = 5.
  ls_fieldcat-outputlen    = 17.
  ls_fieldcat-do_sum       = 'X'.
  ls_fieldcat-datatype     = 'CURR'.
  APPEND ls_fieldcat TO fp_i_fieldcat.

Dear Kiran,
iam seding the alv output which i got can you please correct my code
where i can give .........since my basic question was the Count which iam
getting in the below  is 2 (data type NUM4) how can i do sum on this 2 or subtotal??
i want  the count 2  to come in the total....line  only ..can you please let me know what is the parameter i have to use ........i couldnt find the
Aggregation in my tool bar...
orgunit orgdesc count name salary total salary.
12345    test             raja 100
space   space      2 rama 200 
300  -> i want count 2 in this line
1235 test 2 1 rana 500 
500 6000 -> i want count 1 in this line
Can i give the Count 1 and 2 in the same row where the Totals --- 500 and 6000
and 300 and 3600 are being displayed int he above row ?
the user says he want to have the count in the down along witht he total's lline
the count is not a now a currency field i tried to sum it is not summing because it is
NUM data type.
As per the above data(sample data) we can see that Orgunit(1234) is having two employees hence the count was two . For the Orgunit(1235) we have only one employee the count was only one . Nowe my question is can i give the counts 2 in the first row and the count 1 in the second rown can give along with the total.........line ...
if so what i can do the change in the field cat.
When iam using in my field cat for getting the output as above
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 0.
ls_fieldcat-fieldname = 'ORGUNIT'.
ls_fieldcat-seltext_l = text-015. "'Orgunit'.
ls_fieldcat-key = 'X'.
ls_fieldcat-key_sel = 'X'.
ls_fieldcat-no_out = 'X'.
APPEND ls_fieldcat TO fp_i_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 1.
ls_fieldcat-fieldname = 'ORGTEXT'.
ls_fieldcat-seltext_l = text-016. "'Orgdesc'.
ls_fieldcat-no_out = 'X'.
APPEND ls_fieldcat TO fp_i_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 2.
ls_fieldcat-fieldname = 'COUNT'. ---This is data type Numc
ls_fieldcat-seltext_l = 'H.Count'.
ls_fieldcat-outputlen = 4.
ls_fieldcat-do_sum = 'X'. -
> it is not getting summed up
ls_fieldcat-datatype = 'NUMC'.
APPEND ls_fieldcat TO fp_i_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 3.
ls_fieldcat-fieldname = 'STAFFNAME'.
ls_fieldcat-no_out = 'X'.
ls_fieldcat-seltext_l = 'Name'.
APPEND ls_fieldcat TO fp_i_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'SALARY'.
ls_fieldcat-seltext_m = 'Salary'.
ls_fieldcat-col_pos = 4.
ls_fieldcat-outputlen = 17.
ls_fieldcat-do_sum = 'X'.
ls_fieldcat-datatype = 'CURR'.
APPEND ls_fieldcat TO fp_i_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'TOTAL'.
ls_fieldcat-seltext_m = 'Total Salary'.
ls_fieldcat-col_pos = 5.
ls_fieldcat-outputlen = 17.
ls_fieldcat-do_sum = 'X'.
ls_fieldcat-datatype = 'CURR'.
APPEND ls_fieldcat TO fp_i_fieldcat.

Similar Messages

  • ALV SUM for non numeric fields.

    Hello Gurus,
    I have a requirement where i have a alv output and i have a check field of char 1 length...and it displays X as the output. Now i need to have X at the sum line at the end.is there is any possibility with the fieldcatalogue.

    Hi
    U can not do sum for char type fields,it will only possible for numaric fields.
    This u can do by program,after populating the output data,do the sums for the required fields in program and append that to output table as last record.Display the last row with differant color.
    Regards,
    Raghu/

  • How to separate the Particular field in next line ?

    Hi,
    i have multipule fields in one line but i want to separate the Particular field in next line how to do this ?
    when i am downloading  my output downloaded like this
    but i want to last field should be newline.
    present output:
    901  ab  3455  5667 2123  item1 100
    902  ab  3455  5667 2123  item2 100
    903  ab  3455  5667 2123  item3 100
    in that i am taken item1 100 as string i want to new line from item1
    but i want like this
    experted output:
    901  ab  3455  5667 2123 
    item1 100
    902  ab  3455  5667 2123 
    item2 100
    903  ab  3455  5667 2123 
    item3 100
    plz any code for above example.
    thanks & regards
          sai
    Edited by: k sai ram on Jan 9, 2008 5:26 PM

    Hi Sai,
                make the layout of your root container as matrix layout
    then make item1 as matrix head data.
    inset one transparent ui just after first 100. then make this transparent ui as matrix head data.
    then make 902 as matrix head data
    inset one transparent ui just after second 100. then make this transparent ui as matrix head data.
    repeat the same for next set too.
    You can also do the same with row layout for root element.
    Regards
    Sarath
    Edited by: Sarath Satheesan on Jan 9, 2008 11:17 AM

  • How to assign the Value to the Particular field-Text field

    Hi all,
    My requirement is to call the Web service with input from the ADF page.
    Steps I have done:
    1. I have created a Web service data control based on the WSDL file.
    2. Just drag and drop the Process, It is automatically created the form with the Input fields and then the Process button
    3. When I entered the values and then process button it will pass the values corretly.the web service is invoked correctly with the values entered.
    4. But when I try to assign the value from the some other field that is not working.
    I am assigning the Value to the field by go to the properties of the Particular field value =”CREATE”
    When I do like this that value is showing in the screen. But it will not pass the value to the web service.
    I think the value is only displaying in the screen. Not stored at bindings level. Kindly guide me in this.
    Thanks in Advance
    C.Karukkuvel

    If you want to have the value that is returned displayed in a field that has binding to another item and not the WS result item then the way to do this would be to override the method that is invoked with the button that calls the web service - you then take the result and assign it to the item you want.
    See the way it is done here:
    http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html
    While this sample uses a simple method it would be basically the same for a Web service.

  • Dynamically summing up the numeric fields in ALV output

    Dear all,
    I had report which contains of the stock overview for a particular date based on materials. I am having the fields as
    Plant Storage location Quantity
    HC01 H14f   12       
    Hc01 H1w   13       
    Whenever the layout is selected as
    Plant and Quantity  . i have to get the output as
    HC01 25  
    But if the option is based on storeage location
    H14F  12
    H1W  13
    One thing the layout will be selected in the output of alv only the user will not run the report again.
    Is there any option to this

    Hi Shreehari,
    As per i understand your question u want  sum based on a particular field.
    For that you first select the numeric filed for which you want sum and click on sum tab on screen .
    After that select the field based on which you want subtotal.
    Now beside Total tab there will be sub-total , just click on that and you will get the ouput in your desired form.
    Hope it will help you.
    Regards,
    Ashish T.

  • PM Reports: Need to find the sum of a particular field in the output.

    Hello Experts,
                          I have an issue. I have developed the report to calculate the power per ton. It is PM module.
    Input is : DATE & Measuring Point.
    Output required is : For a particular date , What is the power consumed per ton.
    Its is calculated by the formula Power consumed per day /  Production.
    I have multiple entries for production ( because different material are used )  per date and a single entery for power (because power is taken as total power consumed per day)
    Hence im getting the output as
    For example:
    date                power            production         power/ton
    01.03.2011      5000                    100                  50.00
    01.03.2011      5000                      50                 100.00
    01.03.2011      5000                      25                 200.00
    01.03.2011      5000                      75                  66.66
    The desired result is
    date                power            production         power/ton
    01.03.2011      5000                    250                  20.00
    I need to sum the production field.
    How can I achieve this ?
    Please help.

    Hello
    Rotate the loop and use event so on change just clear the variable based date condition .
    take 2  temp variable for summation
    clearing the total and moving value on permanent variable means modifying the itab.
    loop at .
    *Clear
    on change <datefield>.
    modify itab from wa  transporting <field name> .
    clear <total field>.
    endon.
    *Total
    t_prd  = t_prd + production..
    t_power = t_power + power .
    endloop.

  • Greying out the particular field of active group

    hi guru's
    we have requirement of greying out a particular field of active screen group
    say for eg:
    LOOP AT SCREEN.
        if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
          screen-input = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    AT SELECTION-SCREEN OUTPUT.
      if rb_md EQ 'X'.
        LOOP AT SCREEN.
          if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
            screen-input = 0.
          ELSEIF screen-group1 EQ 'MAS'.
            screen-input = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSEIF rb_td EQ 'X'.
        LOOP AT SCREEN.
          If screen-group1 EQ 'MAS'.
            screen-input = 0.
          Endif.
          MODIFY SCREEN.
        ENDLOOP.
        if rb_pur EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'PUR'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEif rb_sal EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'PUR' OR screen-group1 EQ 'FIN'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'SAL'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEif rb_fin EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'SAL' OR screen-group1 EQ 'PUR'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'FIN'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ENDIF.
      ENDIF.
    in the above code
    say for eg: the active group is 'SAL' in which i want to grey out one field say as parameter p_doc as invisible always
    what i need to do
    with regards
    s.janagar

    hi
    may be this code can help you:
    selection-screen begin of block b1 with frame title text-001.
    parameters : p1  radiobutton group r1 default 'X' user-command ac,
                         p2  radiobutton group r1,
    selection-screen end of block b1 .
    selection-screen begin of block b2 with frame title text-002.
    select-options : p_eg for mara-matnr modif id SAL
    parameters : p_doc  like mara-matnr modif id PUR.
    selection-screen end of block b2.
    at selection-screen output.
      if p1 = 'X'.
        loop at screen.
          if screen-group1    = 'SAL'.
            screen-input     = '0'.
            screen-invisible = '1'.
            modify screen.
          endif.
        endloop.
      elseif p2 = 'X'.
        loop at screen.
          if screen-group1    = 'PUR.
            screen-input     = '0'.
            screen-invisible = '1'.
            modify screen.
          endif.
        endloop.
      endif.

  • Problem with summing up the currency fields

    The below is my code through which I cannot display hthe sum at the end for all the below fields please advice on the soln. Also srched in SDN the answers are bit ambigious/also tried.
    gw_fieldcat-fieldname  = 'WTGXXX'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Material(Transaction currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WOGXXX'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Material(Object currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WKGXXX'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Material(Controlling area currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WTGXXX1'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Labour(Transaction currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WOGXXX1'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Labour(Object currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WKGXXX1'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Labour(Controlling area currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'TOTAL1'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Total(Transaction currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'TOTAL2'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Total(Object currency) '.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'TOTAL3'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Total(Controlling area currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
    thanks in advance.

    Try passing datatype = 'DEC'.

  • Summing up the average field

    Post Author: jehanzeb
    CA Forum: Formula
    Dear all,
    how can we achive the following:
    I have two fields which are created using formula. My question is how can I get the grand total of those two fields. I have tried using the formula
    whileprintingrecords;numbervar myaverage;
    but this doesnt work.
    any ideas how to sum up the formula created fields?
    many thanks
    Regards

    Post Author: tsamara
    CA Forum: Formula
    Hi,
    First, are you able to sum up your fields individually at the grand total level?
    Then, if I understand your issue correctly, first do Sums of both fields and at the 'Grand Total' level and create a new Average formula.
    Good luck,
    Tony

  • Is there any options to know what is the particular field that has been changed or updated in AR invoice?

    Hi...
    Is there any option to know what is the actual field that has been updated / changed in the AR Invoice document.
    ADOC and ADO1 Contains the history of the updated documents .....
    but i need what is the exact field that has been changed....?
    Is there any option.....?

    Hi Gopi,
    Please check below links.
    http://help.sap.com/saphelp_sbo882/helpdata/en/45/06b97f7d720487e10000000a155369/content.htm
    Queries off the Change Log
    Query for Change Log
    In above links, You can Modify Query as per your requirement.
    Hope this help
    Regards::::
    Atul Chakraborty

  • Summing up the report fields

    Post Author: jehanzeb
    CA Forum: Formula
    Afternoon all,
    Just wondering how can you summarise a report field. I have the total number of jobs field which displays the total number of jobs any person has done at any one time. Now in the report I want to add up all the jobs which has been done by all users.
    Example:
    Name - Total Jobs
    James- 10
    Andrew-11
    Total = 21
    The above example shows the total number of jobs both (James and Andrew) performed.
    How can I achieve this?
    *I  have tried the formula field - however, it says "This field cannot be summarised".
    Formula used " DistinctCount ({#Total Jobs}) "
    Please help!
    Many thanks
    Regards
    Jehanzeb

    Post Author: jehanzeb
    CA Forum: Formula
    Not to worry I have resolved the issue.
    I had to create the summary (E) type icon and choose the fields to summarise the report field. Sometimes you miss obvious things!! :-D
    anyhow it has been fixed so closing this thread.
    Regards
    Jehanzeb

  • Subtotal in alv report based on the particular field value

    Hi,
    As per my requirement, i need to do subtotal of quntity field based on the material number field value in alv report.
    Ex:  if material number falls 1 to 10 then i need to be calculate and display subtotal qty amount with text " total of the mat1" and if material number falls 11 to 20 then again i need to be claculate and display subtotal qty amount with text "total of the mat2". similarily i need to display the details.
    <removed_by_moderator>
    Regards
    Nagendra

    Hi,
    Ex: if material number falls 1 to 10 then i need to be calculate and display subtotal qty amount with text " total of the mat1" and if material number falls 11 to 20 then again i need to be claculate and display subtotal qty amount with text "total of the mat2". similarily i need to display the details.
    What you can do is in your output table, you will have to create an auxilary field, lets call it as material group (groupid). Now you can do a subtotal on the material group. However the logic to determine what materials belong to which group should be coded. I guess you might be having some logic for that.
    So lets say that material 1 to 10 as G1 ( group 1 ) and material 11 to 20 as G2 ( group 2 )
    The output of the internal table would be
    Groupid  matnr ...
    1  1
    1  2
    1  3.....and so on
    2  11
    2  12
    2  13....upto 20.
    Now in the fieldcatalog assign an 'X' to the 'dosum' parameter to the field Groupid
    In the sort info do the following :
    gs_sort-fieldname = 'GROUPID'.
    gs_sort-spos = 1.
    gs_sort-up = 'X'.
    gs_sort-subtot = 'X'. ***CRUCIAL STATEMENT****
    append gs_sort to gt_sort.
    Now pass all this data to the alv grid function. And you are done.
    regards,
    Advait

  • How to truncate the decimals in the ALV report for the quantity field

    Hi All,
    I have to display a quantity field and units of measure in the ALV output. If the units of measure eq 'PC' i should not display the decimal places for quantity in the alv output, otherwise i have to display the decimals in the output. How to do this....any help would be highly rewarded. I knew that for this type of cases decimal_o will not work.

    Hi,
    Declare one more Internal table same as output table. In that intead of that quantity field, declare field_name(15) type c.
    data temp type i.
    Loop at itab.
    if field = 'PC'.
    temp = qunantity field.
    field_name =temp.
    else.
    field_name = quantity field.
    endif.
    endif.
    endloop.

  • Regarding updation of the particular field

    hi experts,,
                    in my company earlier we created vendor whose 'Check Flag for Double Invoices or Credit Memos(REPRF)' field in the table LFB1 is vacant means at the time of creation we didnt enable the checkbox FOR chk double inv. in payment data,,now i have to fill this field for <b>created vendor</b>..for this which method sud i go, will i use BAPI ,BDC or update statement.plz help me

    Hi
    To update standard table,its not good to use update statement.
    Go for BAPI,
    You can also use BDC but best thing is find out the BAPI and it will be easy.
    Thanks

  • How to prvide f4 help  for the particular field in table control

    hi all,
    my requirement is iam having one i/p field in screen 100.name of the field is sales order number. i just want to keep f4 help for this field only.when i click F4 on this field it has to show all the sales order numbers from vbak table.
    anybody can send me the code please.
    thanks,
    maheedhar.t

    Hi,
       In POV Modlue u write
       Filed (ur field name ) module get_values.
    In that get_values module u declare an itab according to ur requirement and get the values into internal table using select query .After u get the values in select query u call a function popup_with_table_display in which u pass the itab along with the starting and postion , width and height of the popup window .Hope this will help u
    Regards,
    Shafi

Maybe you are looking for