Total in Forms

Hi
I currently have a master-detail form where the master is a person's details and the detail block is classes that they have taken. Each class is linked to a term of year (say 'Term 1 - 2007/2008') and a cost of class. The detail block is set to show 6 records at a time. There is a field called 'Term Filter' which can be used to reflect a particular term so that the detail block only shows classes from that term. What I need is a sum of the total column, that will change along with the term filter. It doesn't need to be a database item. So for example if Person A paid £10 in Term 1 and £20 in Term 2, if I didn't have any term filter on, the total would be £30. If I put the term filter to only show the Term 1 classes, the total should change to £10. Basically it should be a total of whatever you can currently see in that block rather than a total of everything in the database for that person.
Could someone please explain the best way to go about doing this?
Thanks
Martin

Dave's suggestion is working fine, except for the
fact that because the Assignment_Details block is set
up to show 5 records at all time, the sum field is
showing 5 times as well where I want it to only show
once.
Any ideas how I get round that?Take a look at the property palette for the total item. There's a property that does this (there's a hint at the bottom of the property palette for each property when you put the cursor in it).

Similar Messages

  • Add the Rental Item in (Total Compensation Form) HR_CMP_TCS

    Hi,
    I would like to use the total compensation form (HR_CMP_TCS) to display the rental element which is stored in the payroll cluster. The wage type of the rental is 1RRA. The existing form displays the salary only now.
    I have already copied a new one to modify it. Any suggestion to add this item to the form.
    Regards,
    Tony

    Hi,
    HOw did you manage to get the salary displayed in the statment, Me and my ABAPer are struggling witht he same, can you please guide us on how did you go about modifying the statement to include the salary details?

  • Running total at form

    Dear All
    i have amount 45000 and when i enter the value 1000 my form show me 44000 but when i
    do another entry of 2000 my form show 43000 instead of 42000 please help me in runing
    total at form level
    item qty rate amount closing Opening
    A001 1 1000 1000 44000 45000
    A002 2 1000 2000 43000 it should be 42000
    Regards
    AAA

    What is your Forms version? Are you manually performing the calculation or are you using a Text Item with Calculation Mode property set to Summary or Formula? If Formula, please show us your code?
    Too many questions...not enough information...
    Craig...

  • Running Total in forms 4.5

    Hi,
    I have a forms 4.5 with a master and detail block.
    The detail block displays 15 record at a time. There is a column in the detail field whose total is to be displayed at the bottom.
    I am using post-query to sum this item and display it at the bottom.
    The solution works fine fine if the detail block has 15 or less records and the running total is displayed correctly.
    But If I query a master records where there are 20 detail records then the total sum at the bottom only show sum of the 15 detail records that are displayed and not 20.
    For that I have to navigate to record 15, key next , 16 and so on then the post-query trigger fires and add the rest of the records and displays the correct total.
    I have tried to change the record buffered/fetched in the detail block query but it does not help.
    Can anyone suggest a solution for this problem in forms 4.5?
    Thanks
    Jakh

    Try Last_record instead of next_record.
    Any other suggestion is that.
    You must have a primary key and foreign key in your master detail form. Then why dont you write a select statement on POST-QUERY:
    You have a master block (master) having columns invoice_id, date, cust_id and have a detailed block (detail) having columns invoice_id (using as foreign key from master table block) and item_id, item_description, quantity, amount
    Write query on POST-QUERY on detail block as
    select sum(amount) into :control_block.total from detail where detail.invoice_id = :master.invoice_id
    or select sum(amount) into :control_block.total from detail where detail.invoice_id = :detail1.invoice_id;
    it should give you the required result. I have used it and its working fine for me.
    Thanks.
    Hassan

  • Calculate Total in Forms Builder using only dates.

    I am using Oracle 10g forms builder. I need to know how the total number of hours worked by students. In the current database, only the date is saved since everyone assumes that the students work for 2 hours each day. So if a date is present in the student's record, that means the student worked for 2 hours for that date.
    However,I don't know how to calculate the total number of hours. I tried using the COUNT() function from SQL and assigning it to a variable but it keeps giving me errors.
    How can I calculate the total number of hours?

    HI,
    SQL> create table hours(h date);
    Table created.
    SQL> insert into hours values(sysdate);
    1 row created.
    SQL> insert into hours values(sysdate);
    1 row created.
    SQL> insert into hours values(sysdate);
    1 row created.
    SQL> commit;
    Commit complete.
    select to_char(h,'DD-MM-YY HH-MI-SS') from hours;
    TO_CHAR(H,'DD-MM-
    19-03-08 11-06-04
    19-03-08 11-06-08
    19-03-08 11-06-10
    SQL> select to_char(h,'HH') from hours;
    TO
    11
    11
    11
    SQL> select count(to_char(h,'HH')) from  hours;
    COUNT(TO_CHAR(H,'HH'))
                         3
    SQL> for Forms related questions
    Forms
    for SQL/PL/SQL related questions
    PL/SQL
    HTH

  • Script total in form

    Hi,
    Iam using standard print program for cheque prinitng, now i want to get total into one variable , how to do it in form.
    Example:
    &'$'REGUD-WRBTR(C)&,,&'$'REGUD-SWABZ(C)&,,&'$'REGUD-SWRBT(C)&.
    I want total of SWABZ AND  SWRBT into one variable pls help me.
    Thanks,
    Donald

    try this...
    :SUMMING &NETPR& INTO V_TOTAL
    also chk this
    Regarding SAP Scripts Total Printing

  • Totalling in forms

    Hi All,
    I have a problem with my total field in my form.
    the detail block has rebate_amount field where I need to enter the rebate amount and it is multi line.
    Once I enter the rebate amount there is a total field in the main block, I t has to be updated with the total amount.
    I was able to sum it up.....but the problem is if I enter 1 00 with a space in between its going to an infinite loop and i have to close the whole application.Is there a better way to do this summing?
    Please find the attached screenshot and code.
    Thanks,
    Satish
    begin
         :XX_AP_RR_HDR.TOTAL := 0;
         first_record;
         loop
         :XX_AP_RR_HDR.TOTAL := nvl(:XX_AP_RR_HDR.TOTAL,0) + :XX_AP_RR_DTLS.REBATE_AMOUNT;     
         if ( :system.last_record = 'TRUE' ) then
         exit;
         else
         next_record;
         end if;          
         end loop;
         next_item;
    end;

    Satish,
    What version of Forms are you using? Forms version 5 introduced calculated fields where Forms will perform many calculations for you such as; AVG, SUM, COUNT, etc. Also, is your TEXT_ITEM datatype CHAR or NUMBER? If it is NUMBER - you shouldn't be allowed to enter a non-numeric value such as "1 00". I suggest you add a format mask on the field to prevent a user from entering an invalid number.
    Also, are you looping through your multiline block each time a value is enter or are you forcing the user to click a button or other event type trigger to update the total? Either way, a more efficient way would be to keep a running total. This would require you to keep track of the previous value of the field - in case the user enters a value smaller than what was there - but this can be easily achieved with a When-New-Item-Instance (WNII) trigger where you set the value of a parameter, global variable or Forms Package variable. For example:
    :parameter.prev_value := :XX_AP_RR_DTLS.REBATE_AMOUNT;Then in your When-Validate-Item (WVI) you simply check the PREV_VALUE against the current value and add or subtract. For example:
    BEGIN
       IF :parameter.prev_value < :XX_AP_RR_DTLS.REBATE_AMOUNT THEN
          :XX_AP_RR_HDR.TOTAL := nvl(:XX_AP_RR_HDR.TOTAL,0) - :XX_AP_RR_DTLS.REBATE_AMOUNT;
      ELSE
          :XX_AP_RR_HDR.TOTAL := nvl(:XX_AP_RR_HDR.TOTAL,0) + :XX_AP_RR_DTLS.REBATE_AMOUNT;
      END IF;
    END;Hope this helps.
    Craig...

  • How to use one form to calculate totals form 4 individual forms

    If i had 4 separate forms with 3 number fields each, how can i use one form to calculate theirs totals?
    Form 1 numbers + Form 2 numbers + Form 3 numbers + Form 4 numbers = Form with combined totals
    can anyone point me in the right direction?
    Thanks

    kwesij wrote:
    Can someone please help me on this,
    I am developing a jsp website and I want to use one form to submit data to 4 tables on mysql database and the tables are related by one foreign key.
    Can someone bail me out of this ....I've hit a hard brick wall!!!!...What's the problem? What does a brick wall look like?
    Connect to the database and execute four SQL INSERT/UPDATE statements as a single unit of work. The fact that you have one form shouldn't be an issue.
    I'll bet you're having trouble because you haven't layered the problem either in code or in your mind.
    I'd recommend that you write a POJO to take in some objects and execute the SQL. Once you have that running successfully you can worry about the form. Decouple the two.
    Computer science is all about decomposing large problems into smaller ones.
    %

  • Sending Data to PDF Forms from ABAP Program.

    Hi Experts,
    I left ABAP Programing for a while around 1+ years Due to some personal problems
    Now I have struck up with new issue. Its ADOBE PDF forms.
    I am Entirely new to this topic & knows about Nothing.
    My requirement is to display a report in PDF form. Its totally Independent form from NACE.
    I have written a Driver program & retrieved all the DATA into a Final internal table.
    Now All that I need is to display the same Internal Table data into PDF form output.
    Can anyone help me how to send this data(47 records in Internal table with 8 fields in Internal table) to PDF.
    Please help me out Experts with any suggestions.
    Thanks & Regards,
    Dileep .C

    Hi,
    if u pass your internal table to smartform we can achieve . because we can convert smartform output into pdf easily.
    Regards,
    karthikeyan k s,
    Edited by: karthikeyanks on Nov 19, 2010 12:58 PM

  • Total and subtotal in alv

    hi,
    i have an ALV REPORT,displaying the fields such as po item(ekpo-menge).the data type is qunt.
    but i am unable to perform total and sub total,it gives me a information message 'total cannot b performed'.
      even i tried with  X_FIELDCAT-DO_SUM = 'X',
    can any one help me, how to total and subtotal.

    HI
    GOOD
    CHECK WITH THIS EXAMPLES
    data: begin of output_tab occurs 0,
           total_field_hidden(1) type c,
           sortfield1(3) type c,
           sortfield1_hidden(3) type c,
           numerator type p,
           denominator type p,
           perc type p decimals 2,
           percentage type p decimals 2, "(7) type c,
         end of output_tab.
    data: abaplist type standard table of abaplist.
    type-pools: slis.
    data: g_repid like sy-repid.
    data: gt_events type slis_t_event.
    parameters: p_grid radiobutton group g1,
               p_list radiobutton group g1.
    initialization.
    *This is necessary so that the ALV_GRID knows where to
    find the form
    g_repid = sy-repid.
    start-of-selection.
    perform fill_output_tab.
    perform output_alv.
    *&      Form  FILL_OUTPUT_TAB
    form fill_output_tab.
    output_tab-total_field_hidden = '1'.
    output_tab-sortfield1 = output_tab-sortfield1_hidden
    = 'AAA'.
    output_tab-numerator  = 1.
    output_tab-denominator = 2.
    output_tab-perc = output_tab-numerator /
    output_tab-denominator
    100.
    output_tab-percentage = output_tab-perc .
    write output_tab-perc to output_tab-percentage.
    append output_tab.
    output_tab-numerator  = 1.
    output_tab-denominator = 3.
    output_tab-perc = output_tab-numerator /
    output_tab-denominator
    100.
    output_tab-percentage = output_tab-perc .
    write output_tab-perc to output_tab-percentage.
    append output_tab.
    output_tab-numerator  = 1.
    output_tab-denominator = 5.
    output_tab-perc = output_tab-numerator /
    output_tab-denominator
    100.
    output_tab-percentage = output_tab-perc .
    write output_tab-perc to output_tab-percentage.
    append output_tab.
    output_tab-numerator  = 1.
    output_tab-denominator = 5.
    output_tab-perc = output_tab-numerator /
    output_tab-denominator
    100.
    output_tab-percentage = output_tab-perc .
    write output_tab-perc to output_tab-percentage.
    append output_tab.
    output_tab-sortfield1 = output_tab-sortfield1_hidden
    = 'BBB'.
    output_tab-numerator  = 1.
    output_tab-denominator = 2.
    output_tab-perc = output_tab-numerator /
    output_tab-denominator
    100.
    output_tab-percentage = output_tab-perc .
    write output_tab-perc to output_tab-percentage.
    append output_tab.
    output_tab-numerator  = 1.
    output_tab-denominator = 2.
    output_tab-perc = output_tab-numerator /
    output_tab-denominator
    100.
    output_tab-percentage = output_tab-perc .
    write output_tab-perc to output_tab-percentage.
    append output_tab.
    output_tab-numerator  = 1.
    output_tab-denominator = 3.
    output_tab-perc = output_tab-numerator /
    output_tab-denominator
    100.
    output_tab-percentage = output_tab-perc .
    write output_tab-perc to output_tab-percentage.
    append output_tab.
    output_tab-numerator  = 1.
    output_tab-denominator = 5.
    output_tab-perc = output_tab-numerator /
    output_tab-denominator
    100.
    output_tab-percentage = output_tab-perc .
    write output_tab-perc to output_tab-percentage.
    append output_tab.
    endform.                    " FILL_OUTPUT_TAB
    *&      Form  output_alv
    output the list in an ALV Grid
    form output_alv.
    data: ls_layo    type slis_layout_alv,
           lt_fcat    type slis_t_fieldcat_alv,
           lt_sort    type slis_t_sortinfo_alv.
    perform f01_set_sort changing lt_sort.
    perform f01_set_layo changing ls_layo.
    perform f01_set_fcat changing lt_fcat.
    perform eventtab_build using gt_events[].
    g_repid = sy-repid.
    clear output_tab.
    case 'X'.
       when p_list.
         call function 'REUSE_ALV_LIST_DISPLAY'
              exporting
                   I_INTERFACE_CHECK = 'X'
                   i_callback_program = g_repid
                   is_layout          = ls_layo
                   it_fieldcat        = lt_fcat
                   it_events          = gt_events[]
                   it_sort            = lt_sort
              tables
                   t_outtab           = output_tab
              exceptions
                   program_error      = 1
                   others             = 2.
       when p_grid.
         call function 'REUSE_ALV_GRID_DISPLAY'
              exporting
                   i_callback_program = g_repid
                   is_layout          = ls_layo
                   it_fieldcat        = lt_fcat
                   it_events          = gt_events[]
                   it_sort            = lt_sort
              tables
                   t_outtab           = output_tab
              exceptions
                   program_error      = 1
                   others             = 2.
    endcase.
    endform.                    " output_alv
    Sets the Events the ALV Grid needs to react to for
    the Overall Output.
         -->RT_EVENTS[]  A table of events and the forms
    that must be
                         performed for each one.
    form eventtab_build using rt_events type slis_t_event.
    *"Registration of events to happen during list display
    data: ls_event type slis_alv_event.
    refresh rt_events.
    call function 'REUSE_ALV_EVENTS_GET'
          exporting
               i_list_type = 0
          importing
               et_events   = rt_events.
    Subtotal
    read table rt_events with key name =
    slis_ev_subtotal_text
                              into ls_event.
    if sy-subrc = 0.
       move 'SUBTOTAL_TEXT' to ls_event-form.
       append ls_event to rt_events.
    endif.
    endform.                    " EVENTTAB_BUILD2
    *&      Form  f01_set_sort
    form f01_set_sort changing p_lt_sort type
    slis_t_sortinfo_alv.
    data: ls_sort type slis_sortinfo_alv.
    clear ls_sort.
    ls_sort-spos = 1.
    ls_sort-fieldname = 'TOTAL_FIELD_HIDDEN'.
    ls_sort-subtot = 'X'.
    append ls_sort to p_lt_sort.
    clear ls_sort.
    ls_sort-spos = 2.
    ls_sort-fieldname = 'SORTFIELD1_HIDDEN'.
    ls_sort-subtot = 'X'.
    append ls_sort to p_lt_sort.
    endform.                    " f01_set_sort
    *&      Form  f01_set_layo
    Sets layout options
    form f01_set_layo changing p_ls_layo type
    slis_layout_alv.
    p_ls_layo-no_totalline = 'X'.
    endform.                    " f01_set_layo
    *&      Form  f01_set_fcat
          Sets the columns and texts for the ALV Grid
         <--P_LT_FCAT  text
    form f01_set_fcat changing ct_fcat type
    slis_t_fieldcat_alv.
    data: ls_fcat type slis_fieldcat_alv.
    ls_fcat-tabname = 'OUTPUT_TAB'.
    ls_fcat-fieldname    = 'TOTAL_FIELD_HIDDEN'.
    ls_fcat-no_out = 'X'.
    ls_fcat-col_pos       = 1.
    append ls_fcat to ct_fcat.
    clear ls_fcat.
    ls_fcat-tabname = 'OUTPUT_TAB'.
    ls_fcat-fieldname    = 'SORTFIELD1_HIDDEN'.
    ls_fcat-no_out = 'X'.
    ls_fcat-col_pos       = 2.
    append ls_fcat to ct_fcat.
    clear ls_fcat.
    ls_fcat-seltext_m = 'SORT'.
    ls_fcat-tabname = 'OUTPUT_TAB'.
    ls_fcat-fieldname    = 'SORTFIELD1'.
    ls_fcat-col_pos       = 3.
    append ls_fcat to ct_fcat.
    clear ls_fcat.
    ls_fcat-seltext_m = 'SALES'.
    ls_fcat-tabname = 'OUTPUT_TAB'.
    ls_fcat-fieldname    = 'NUMERATOR'.
    ls_fcat-col_pos       = 4.
    ls_fcat-datatype = 'CURR'.
    ls_fcat-do_sum = 'X'.
    append ls_fcat to ct_fcat.
    clear ls_fcat.
    ls_fcat-seltext_m = 'COST'.
    ls_fcat-tabname = 'OUTPUT_TAB'.
    ls_fcat-fieldname    = 'DENOMINATOR'.
    ls_fcat-datatype = 'CURR'.
    ls_fcat-col_pos       = 5.
    ls_fcat-do_sum = 'X'.
    append ls_fcat to ct_fcat.
    clear ls_fcat.
    ls_fcat-seltext_m = 'MARGIN'.
    ls_fcat-tabname = 'OUTPUT_TAB'.
    ls_fcat-fieldname    = 'PERCENTAGE'.
    ls_fcat-datatype = 'CHAR'.
    ls_fcat-do_sum = 'X'.
    ls_fcat-col_pos       = 6.
    append ls_fcat to ct_fcat.
    endform.
    *&      Form  subtotal_text
    Manipulate the subtotal line in the ALV to
    recalculate eficiency at
    total level.
    form subtotal_text using ep_subtot_line like
    output_tab
                            es_subtottxt type
    slis_subtot_text.
    if es_subtottxt-criteria = 'TOTAL_FIELD_HIDDEN'.
       es_subtottxt-display_text_for_subtotal = 'Final
    Total'.
    endif.
    ep_subtot_line-percentage = ep_subtot_line-numerator
                / ep_subtot_line-denominator
    100.
    ep_subtot_line-perc = ep_subtot_line-percentage.
    endform.
           total_field_hidden(1) type c,
    >        sortfield1(3) type c,
    >        sortfield1_hidden(3) type c,
    >        numerator type p,
    >        denominator type p,
    >        perc type p decimals 2,
    >        percentage type p decimals 2, "(7) type c, end of output_tab.
    >
    >data: abaplist type standard table of abaplist.
    >
    >type-pools: slis.
    >data: g_repid like sy-repid.
    >data: gt_events type slis_t_event.
    >*----
    >parameters: p_grid radiobutton group g1,
    >            p_list radiobutton group g1.
    >
    >initialization.
    >*This is necessary so that the ALV_GRID knows where to
    >find the form
    >  g_repid = sy-repid.
    >
    >start-of-selection.
    >  perform fill_output_tab.
    >
    >  perform output_alv. &---- *&      Form  FILL_OUTPUT_TAB &---- form fill_output_tab.
    >  output_tab-total_field_hidden = '1'.
    >  output_tab-sortfield1 = output_tab-sortfield1_hidden = 'AAA'.
    >  output_tab-numerator  = 1.
    >  output_tab-denominator = 2.
    >  output_tab-perc = output_tab-numerator / output_tab-denominator
    >                        * 100. output_tab-percentage = output_tab-perc . *  write output_tab-perc to output_tab-percentage. append output_tab.
    >
    >  output_tab-numerator  = 1.
    >  output_tab-denominator = 3.
    >  output_tab-perc = output_tab-numerator / output_tab-denominator
    >                        * 100. output_tab-percentage = output_tab-perc . *  write output_tab-perc to output_tab-percentage. append output_tab.
    >
    >  output_tab-numerator  = 1.
    >  output_tab-denominator = 5.
    >  output_tab-perc = output_tab-numerator / output_tab-denominator
    >                        * 100. output_tab-percentage = output_tab-perc . *  write output_tab-perc to output_tab-percentage. append output_tab.
    >
    >  output_tab-numerator  = 1.
    >  output_tab-denominator = 5.
    >  output_tab-perc = output_tab-numerator / output_tab-denominator
    >                        * 100. output_tab-percentage = output_tab-perc . *  write output_tab-perc to output_tab-percentage. append output_tab.
    >
    >  output_tab-sortfield1 = output_tab-sortfield1_hidden = 'BBB'.
    >  output_tab-numerator  = 1.
    >  output_tab-denominator = 2.
    >  output_tab-perc = output_tab-numerator / output_tab-denominator
    >                        * 100. output_tab-percentage = output_tab-perc . *  write output_tab-perc to output_tab-percentage. append output_tab.
    >
    >  output_tab-numerator  = 1.
    >  output_tab-denominator = 2.
    >  output_tab-perc = output_tab-numerator / output_tab-denominator
    >                        * 100. output_tab-percentage = output_tab-perc . *  write output_tab-perc to output_tab-percentage. append output_tab.
    >
    >  output_tab-numerator  = 1.
    >  output_tab-denominator = 3.
    >  output_tab-perc = output_tab-numerator / output_tab-denominator
    >                        * 100. output_tab-percentage = output_tab-perc . *  write output_tab-perc to output_tab-percentage. append output_tab.
    >
    >  output_tab-numerator  = 1.
    >  output_tab-denominator = 5.
    >  output_tab-perc = output_tab-numerator / output_tab-denominator
    >                        * 100. output_tab-percentage = output_tab-perc . *  write output_tab-perc to output_tab-percentage. append output_tab.
    >
    >endform.                    " FILL_OUTPUT_TAB
    >&----
    >*&      Form  output_alv
    >&----
    >* output the list in an ALV Grid
    >----
    >form output_alv.
    >  data: ls_layo    type slis_layout_alv,
    >        lt_fcat    type slis_t_fieldcat_alv,
    >        lt_sort    type slis_t_sortinfo_alv.
    >
    >  perform f01_set_sort changing lt_sort.
    >  perform f01_set_layo changing ls_layo.
    >  perform f01_set_fcat changing lt_fcat.
    >  perform eventtab_build using gt_events[].
    >  g_repid = sy-repid.
    >  clear output_tab.
    >  case 'X'.
    >    when p_list.
    >      call function 'REUSE_ALV_LIST_DISPLAY'
    >           exporting *                I_INTERFACE_CHECK = 'X'
    >                i_callback_program = g_repid
    >                is_layout          = ls_layo
    >                it_fieldcat        = lt_fcat
    >                it_events          = gt_events[]
    >                it_sort            = lt_sort tables
    >                t_outtab           = output_tab exceptions
    >                program_error      = 1
    >                others             = 2. when p_grid. call function 'REUSE_ALV_GRID_DISPLAY' exporting
    >                i_callback_program = g_repid
    >                is_layout          = ls_layo
    >                it_fieldcat        = lt_fcat
    >                it_events          = gt_events[]
    >                it_sort            = lt_sort tables
    >                t_outtab           = output_tab exceptions
    >                program_error      = 1
    >                others             = 2. endcase.
    >
    >endform.                    " output_alv
    >
    >&----
    >* Sets the Events the ALV Grid needs to react to for
    >the Overall Output.
    >----
    >*      -->RT_EVENTS[]  A table of events and the forms
    >that must be
    >*                      performed for each one.
    >----
    >form eventtab_build using rt_events type slis_t_event.
    >*"Registration of events to happen during list display
    >  data: ls_event type slis_alv_event.
    >*
    >  refresh rt_events.
    >  call function 'REUSE_ALV_EVENTS_GET'
    >       exporting
    >            i_list_type = 0 importing
    >            et_events   = rt_events.
    >
    >* Subtotal
    >  read table rt_events with key name = slis_ev_subtotal_text
    >                           into ls_event. if sy-subrc = 0. move 'SUBTOTAL_TEXT' to ls_event-form. append ls_event to rt_events. endif.
    >
    >endform.                    " EVENTTAB_BUILD2
    >&----
    >*&      Form  f01_set_sort
    >&----
    >form f01_set_sort changing p_lt_sort type
    >slis_t_sortinfo_alv.
    >
    >  data: ls_sort type slis_sortinfo_alv.
    >
    >  clear ls_sort.
    >  ls_sort-spos = 1.
    >  ls_sort-fieldname = 'TOTAL_FIELD_HIDDEN'.
    >  ls_sort-subtot = 'X'.
    >  append ls_sort to p_lt_sort.
    >
    >  clear ls_sort.
    >  ls_sort-spos = 2.
    >  ls_sort-fieldname = 'SORTFIELD1_HIDDEN'.
    >  ls_sort-subtot = 'X'.
    >  append ls_sort to p_lt_sort.
    >
    >endform.                    " f01_set_sort
    >&----
    >*&      Form  f01_set_layo
    >&----
    >* Sets layout options
    >----
    >form f01_set_layo changing p_ls_layo type
    >slis_layout_alv.
    >
    >  p_ls_layo-no_totalline = 'X'.
    >
    >endform.                    " f01_set_layo
    >&----
    >*&      Form  f01_set_fcat
    >&----
    >*       Sets the columns and texts for the ALV Grid
    >----
    >*      <--P_LT_FCAT  text
    >----
    >form f01_set_fcat changing ct_fcat type
    >slis_t_fieldcat_alv.
    >
    >  data: ls_fcat type slis_fieldcat_alv.
    >
    >  ls_fcat-tabname = 'OUTPUT_TAB'.
    >  ls_fcat-fieldname    = 'TOTAL_FIELD_HIDDEN'.
    >  ls_fcat-no_out = 'X'.
    >  ls_fcat-col_pos       = 1.
    >  append ls_fcat to ct_fcat.
    >
    >  clear ls_fcat.
    >  ls_fcat-tabname = 'OUTPUT_TAB'.
    >  ls_fcat-fieldname    = 'SORTFIELD1_HIDDEN'.
    >  ls_fcat-no_out = 'X'.
    >  ls_fcat-col_pos       = 2.
    >  append ls_fcat to ct_fcat.
    >
    >  clear ls_fcat.
    >  ls_fcat-seltext_m = 'SORT'.
    >  ls_fcat-tabname = 'OUTPUT_TAB'.
    >  ls_fcat-fieldname    = 'SORTFIELD1'.
    >  ls_fcat-col_pos       = 3.
    >  append ls_fcat to ct_fcat.
    >
    >  clear ls_fcat.
    >  ls_fcat-seltext_m = 'SALES'.
    >  ls_fcat-tabname = 'OUTPUT_TAB'.
    >  ls_fcat-fieldname    = 'NUMERATOR'.
    >  ls_fcat-col_pos       = 4.
    >  ls_fcat-datatype = 'CURR'.
    >  ls_fcat-do_sum = 'X'.
    >  append ls_fcat to ct_fcat.
    >
    >  clear ls_fcat.
    >  ls_fcat-seltext_m = 'COST'.
    >  ls_fcat-tabname = 'OUTPUT_TAB'.
    >  ls_fcat-fieldname    = 'DENOMINATOR'.
    >  ls_fcat-datatype = 'CURR'.
    >  ls_fcat-col_pos       = 5.
    >  ls_fcat-do_sum = 'X'.
    >  append ls_fcat to ct_fcat.
    >
    >  clear ls_fcat.
    >  ls_fcat-seltext_m = 'MARGIN'.
    >  ls_fcat-tabname = 'OUTPUT_TAB'.
    >  ls_fcat-fieldname    = 'PERCENTAGE'. *  ls_fcat-datatype = 'CHAR'.
    >  ls_fcat-do_sum = 'X'.
    >  ls_fcat-col_pos       = 6.
    >  append ls_fcat to ct_fcat.
    >
    >endform.
    >&----
    >*&      Form  subtotal_text
    >&----
    >* Manipulate the subtotal line in the ALV to
    >recalculate eficiency at
    >* total level.
    >----
    >form subtotal_text using ep_subtot_line like
    >output_tab
    >                         es_subtottxt type slis_subtot_text.
    >
    >  if es_subtottxt-criteria = 'TOTAL_FIELD_HIDDEN'.
    >    es_subtottxt-display_text_for_subtotal = 'Final Total'. endif.
    >
    >  ep_subtot_line-percentage = ep_subtot_line-numerator
    >             / ep_subtot_line-denominator
    >             * 100.
    >
    >  ep_subtot_line-perc = ep_subtot_line-percentage. endform.
    >
    THANKS
    MRUTYUN

  • How to add a working bar cod in a pdf form?

    I am able to create a bar code using adobe acrobat. It is working perfect in acrobat viewer. But when i open the same form with adobe reader, after a filling corresponding fields, the bar code disappears and a grey box appears. Here i attached an image of the pdf form. One is before i filling the form and one is after filling the form.
    What i need to do? Please help me It's urgent.Please help me.

    http://www.adobe.com/sea/products/server/readerextensions/
    I would recommend:
    1. Check the hardware requirements. (WIndows server, probably). The cost of the server is probably insignificant, even if you have to buy a new one.
    2. Estimate total usage (forms, users per form) over a year and the lifetime of the project.
    3. Contact a sales rep and get a preliminary price quote based on your usage,

  • LiveCycle Form used on an iPad/Distribution Issues. PLEASE HELP!

    I am a young designer with a complicated problem. I have virtually no experience building interactive forms and I have a client that wants to do the following:
    -Take a form and fill out some of it on a pc
    -Then send it to an iPad, use the app SignMyiPad to insert photos taken with the iPad into image fields in the partially filled out form-
    -Fill out the rest form on the iPad
    -Then send the fully filled out form back to a pc
    For reference, he has given me a form that a business associate of his is already using to do the above, however, the designer that created the existing form quit and is now on bad terms with the associate. This means I can't ask this person about the process he used that makes this work. My background is in print design, but after watching a few tutorial videos and playing around with some of the features on my own I understand the basics of creating a form in LiveCycle (I think).
    I've made several test forms (just a few fields on a page) to send to my client to make sure I could create what he wanted. Unfortunately, I can't even find out if the forms I created will work the way he wants because my biggest issue so far is actually getting the pdf onto his iPad! When I email the files, sometimes they show up as an attachment icon which he can touch (click) to save and work with but most of the time the pdfs appear in the body of the email like an embedded image and he can do nothing with them. Sometimes if I send a plain text email from Outlook, it makes it to his iPad as an attachment he can work with but that only worked once with a totally blank form. When I filled some of it out and tried again, the info that was typed into the form and was saved on the pc was lost when that same file made it to his inbox.
    Can anyone offer any insight? I truly have no idea what I'm doing and I really don't want to let my client down.

    We have a solution that allows you to do most of what you want, including bulding the form, having people fill it out either in Reader (as an XFA-PDF) or on the iPad (as an HTML form).
    You design the form once, and it will by styled correctly on the appropriate platform.
    For more information, check out these links:
    http://www.avoka.com/blog/2012/02/style/
    http://www.avoka.com/content/avoka/en/products/sff3/smartform-composer/features_and_demos. html
    http://www.avoka.com/content/avoka/en/products/sff3/avoka-smartform-factory.html

  • Photo album total not updating in itunes

    I'm having an issue syncing photos from my MBP to my iDevices.
    I have one album created in iPhoto that i want to update and sync to my iPhone and my iPad. I've recently added a number of pictures to this album, so the total increased form 205 to 228. However, when I connect either iDevice and click on the photo section, the total number of photos in the album still reads as 205. I have tried rebuilding the iPhoto library, and re-installing iTunes, but neither fixed the issue (both programs are up to date).
    Is this a bug or am I missing something here? Is the problem with iTunes or iPhoto?
    Any assistance is appreciated.

    Go to your Pictures Folder and find the iPhoto Library there.
    Right (or Control-) Click on the icon and select 'Show Package Contents'. A Finder window will open with the Library exposed.
    Look there for the iPod Photo Cache. Trash it. Start iPhoto and try sync again.
    Regards
    TD

  • Master-Detail forms no longer work in Access

    Hi
    We have migrated an Access 2000 application into an Oracle 9i database successully. However, the application has a master-detail form that functioned correctly before migration. Since migration the child form does not appear, thus preventing the entering of a new child record.
    Before migration the detail form appeared as a totally blank form. Now the detail form simply doesn't appear. The detail form is based on a select statement which selects data from a stored query. I am suspicious that this is the cause as during tests I have tried manually creating a simple master-detail form and can see this working. I was able to get the test form to fail to produce a blank subform when the subform was based on a select statement however, attempts to change the real form to look at a table rather than a select statement don't solve the problem.
    We have looked on the Oracle forums, but the only error matching our requirements was posted in March 2001 with no real answer (Q: unable to launch subform after migration
    This seems a problem that would not be uncommon so surely we have omitted doing something obvious.
    Any help greatly appreciated.
    Regards
    Tim Broome

    Hello.  I believe I found the answer to the problems yesterday.  After trying everything I could from different forums and getting nowhere, I looked at the Adobe Properties by right clicking on the program.  Once in Properties, there is a compatability tab.  I run Windows 7 Pro 32bit.  Nevertheless, I selected the box that says "Run this program in compatability mode for" and then selected Windows 7.  It seems ridiculous to run the program in compatability mode for the OS I actually have on my system but it has done the trick.  All forms work now and my other PDF issues around the office have been resolved.  The only downside is that some PDF documents are printing slowly, but at least everything works. 
    ps: I first tried running compatabiilty mode for XP but it caused several credentialing issues with my systyem and our network, allowed forms to work, but only if they originated from my system (not the network) and did not allow other PDFs to open. 

  • Create tabular form with blank records

    Hi,
    I want to create a tabular form for INSERTing multiple records! However, I am having difficulty working out how to render the form as 'empty' i.e. no existing table records appear on the Form. I tried to adjust the query the form is based on so the 'automatic' query returns no records, but this caused the fields to 'disappear'. Can anyone recommend the best way to do this (if possible),
    regards,
    Kevin.

    Hi Tyson,
    I used the Advanced Dynamic Action wizard and at the point when I specify the Page Load event, a drop down list of conditions is available ( but does include NOT EXISTS ) so I kept the default 'No condition'. I associated the DA with the Event Source. Without editing the DA the form shown 10 blank rows in addition to 10 rows populated from the table. On subsequently editing the DA to add the NOT EXISTS condition you mentioned, the additional blank rows did not appear.
    I had exactly the same behaviour when associating the DA with the 'Form' Region! Is the bottom line simply that I can't have a totally blank form if the table it is based on is not empty?
    regards,
    Kevin.

Maybe you are looking for