Simple logic for min andmax

RECDV  Max   min  total
     100   700   100   600
     200
     300
     400
     500
     600
     700

sort itab1 by matnr ascending.
sort itab1 by matnr ascending.
read table itab1 index 1.
read table itab2 index 1.
if itab1-matnr LT itab2-matnr.
itab1 matnr is min.
else.
itab2-matnr is min.
endif.
You can do the same thing for Maximum but sort the tables by descending and do the same proceedure
Regards
Kiran

Similar Messages

  • Simple logic for the code

    HI All,
          Please expalin the logic behind the code and how can we put it simpler this logic by reducing the number of lines of the following logic
    FORM fisical_period.
      data : l_start_month like v_start_month,
             l_end_month like v_end_month.
      data: l_current_year like t009b-bdatj,
                l_variant like t009-periv.
          call function 'CCODE_GET_FISCAL_YEAR_VARIANT'
            EXPORTING
              company_code           = p_bukrs
            IMPORTING
              fiscal_year_variant    = l_variant
            EXCEPTIONS
              company_code_not_found = 1
              others                 = 2.
          if sy-subrc <> 0.
            message i368(00) with 'Unable to get Fiscal year'.
          endif.
          l_current_year = sy-datum(4).
          call function 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
            EXPORTING
              i_gjahr        = l_current_year
              i_periv        = l_variant
            IMPORTING
              e_first_day    = p_fiscal-low
              e_last_day     = p_fiscal-high
            EXCEPTIONS
              input_false    = 1
              t009_notfound  = 2
              t009b_notfound = 3
              others         = 4.
          if sy-subrc <> 0.
            message i368(00) with 'Unable to get the first and last day'.
          endif.
          if sy-datum < p_fiscal-low.
            p_fiscal-low = p_fiscal-low - 365.
            p_fiscal-high = p_fiscal-high - 365.
          endif.
          append p_fiscal.
          v_start_month = p_fiscal-low+4(2).
          v_end_month   = p_fiscal-high+4(2).
          if v_start_month >= 01 and v_start_month <= 03.
            move 01 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 02 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 03 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 04 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 05 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 06 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 07 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 08 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 09 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 10 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
            move 11 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
            move 12 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
          elseif v_start_month >= 04 and v_start_month <= 06.
            move 04 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 05 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 06 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 07 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 08 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 09 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 10 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 11 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 12 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 01 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
            move 02 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
            move 03 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
          elseif v_start_month >= 07 and v_start_month <= 09.
            move 07 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 08 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 09 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 10 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 11 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 12 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 01 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 02 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 03 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 04 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
            move 05 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
            move 06 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
          else.
            move 10 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 11 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 12 to fiscal_quarter_1-month.
            append fiscal_quarter_1.
            move 01 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 02 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 03 to fiscal_quarter_2-month.
            append fiscal_quarter_2.
            move 04 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 05 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 06 to fiscal_quarter_3-month.
            append fiscal_quarter_3.
            move 07 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
            move 08 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
            move 09 to fiscal_quarter_4-month.
            append fiscal_quarter_4.
          endif.
          IF NOT p_fiscal IS INITIAL.
            perform get_fiscal_year.
          ENDIF.                                               
          IF NOT p_fiscal IS INITIAL.                          
            v_start_year = p_fiscal-low+2(2).
            v_end_year = p_fiscal-high+2(2).
            v_start_year = r_gfiscal-low+2(2).
            v_end_year = r_gfiscal-high+2(2).
            v_start_month = r_gfiscal-low+4(2).
            v_end_month = r_gfiscal-high+4(2).
            move 'Jan' to i_months-month.
            append i_months.
            move 'Feb' to i_months-month.
            append i_months.
            move 'Mar' to i_months-month.
            append i_months.
            move 'Apr' to i_months-month.
            append i_months.
            move 'May' to i_months-month.
            append i_months.
            move 'Jun' to i_months-month.
            append i_months.
            move 'Jul' to i_months-month.
            append i_months.
            move 'Aug' to i_months-month.
            append i_months.
            move 'Sep' to i_months-month.
            append i_months.
            move 'Oct' to i_months-month.
            append i_months.
            move 'Nov' to i_months-month.
            append i_months.
            move 'Dec' to i_months-month.
            append i_months.
            if v_end_month < v_start_month.
              v_find_month = 13 - v_start_month.
              do v_find_month times.
                read table i_months index v_start_month.
                move v_start_month to fiscal_months-month.
                move i_months-month to fiscal_months-literal.
                move v_start_year to fiscal_months-year.
                append fiscal_months.
                add 1 to: v_number_of_months, v_start_month.
              enddo.
              do v_end_month times.
                read table i_months index sy-index.
                move sy-index to fiscal_months-month.
                move i_months-month to fiscal_months-literal.
                move v_end_year to fiscal_months-year.
                append fiscal_months.
                add 1 to v_number_of_months.
              enddo.
            else.
              v_find_month = v_end_month - v_start_month + 1.
              do v_find_month times.
                read table i_months index v_start_month.
                move v_start_month to fiscal_months-month.
                move i_months-month to fiscal_months-literal.
                move v_start_year to fiscal_months-year.
                append fiscal_months.
                add 1 to: v_number_of_months, v_start_month.
              enddo.
            endif.
          ENDIF.                                               
    ENDFORM.
    form get_fiscal_year.
          data : l_lst_day like sy-datum,
                 l_frst_day like sy-datum,
                 l_fisc_vnt like t009-periv, "fiscal year variant
                 l_fisc_prd like t009b-poper,
                 l_fisc_yr like t009b-bdatj,
                 l_lines like sy-index.
          data : i_periods like table of periods with header line.
          perform get_fiscal_year_variant using p_bukrs
                                       changing l_fisc_vnt.
          perform get_period_on_date using p_fiscal-low
                                           l_fisc_vnt
                                  changing l_fisc_prd
                                           l_fisc_yr.
          call function 'G_PERIODS_OF_YEAR_GET'
            EXPORTING
              variant             = l_fisc_vnt
              year                = l_fisc_yr
            IMPORTING
              last_normal_period  = l_fisc_prd
            TABLES
              i_periods           = i_periods
            EXCEPTIONS
              variant_not_defined = 1
              year_not_defined    = 2
              others              = 3.
          if sy-subrc <> 0.
            message i368(00) with 'Unable to Convert Periods'.
          endif.
          describe table i_periods lines l_lines.
          read table i_periods index 1.
          move i_periods-datab to r_gfiscal-low.
          read table i_periods index l_lines.
          move : i_periods-datbi to r_gfiscal-high,
                 'I' to r_gfiscal-sign,
                 'BT' to r_gfiscal-option.
          append r_gfiscal.
        endform.                    " get_fiscal_year
    form get_fiscal_year_variant using    p_p_ccode like t001-bukrs
                                     changing p_g_fisc_vnt like t009-periv.
          call function 'CCODE_GET_FISCAL_YEAR_VARIANT'
            EXPORTING
              company_code           = p_p_ccode
            IMPORTING
              fiscal_year_variant    = p_g_fisc_vnt
            EXCEPTIONS
              company_code_not_found = 1
              others                 = 2.
          if sy-subrc <> 0.
            message i368(00) with 'Unable to retrieve fiscal year variant'.
          endif.
        endform.                    " get_fiscal_year_variant
    form get_period_on_date using    p_p_dcfp like sy-datum
                                         p_g_fisc_vnt like t009-periv
                             changing    p_g_fisc_prd like t009b-poper
                                         p_g_fisc_yr like t009b-bdatj.
          call function 'DATE_TO_PERIOD_CONVERT'
            exporting
              i_date               = p_p_dcfp
              i_periv              = p_g_fisc_vnt
           importing
             e_buper              =  p_g_fisc_prd
             e_gjahr              =  p_g_fisc_yr
           exceptions
             input_false          = 1
             t009_notfound        = 2
             t009b_notfound       = 3
             others               = 4
          if sy-subrc <> 0.
            message i368(00) with 'Unable to get period on date'.
          endif.
        endform.                    " get_period_on_date
    Thanks

    Hi,
    Try to use FMs :  (type quarter in fm name field and press f4.
    FMs like follows will be dispalyed :
    BKK_GET_QUARTER_DATE
    HR99S00_TIME             Generic time related functions                           
    HR_99S_GET_DATES_QUARTER   Get begin and end date of a qrtr                      
    HR_99S_GET_QUARTER             Get quarter                                                                               
    HRPAYBE_DMFA                   Function pool for DMFA                                   
    HR_BE_DAQ_CONDT_QUARTER        Condition for declaring the Local Unit ID for DMFA       
    HR_BE_DAQ_QUARTER              Get occupation line relevant data for DMFA                                                                               
    HRPAYBE_DMFA_WORKFLOW          Workflow DMFA                                            
    HR_BE_DMFA_GET_QUARTER         Retrieve quarter declared                                                                               
    KRGE                                                                               
    KR_GET_HEADQUARTER_BPLACE                                                                               
    SLIM_DATE_TOOLS                                                                         
    SLIM_GET_QUARTERLY_PERIODS                                                                               
    STS2                           Time stream: Generate for periods                        
    TSTR_PERIODS_QUARTERS          Generate Time Stream for Quarters

  • Logic for correcting strings with different barckets

    can any one tell me the simple logic for correcting strings with different barckets
    suppose say for eg.
    (<{abc}>defgh) should evaluate to TRUE
    (<{abc>} should evaluate to FALSE
    Things to check is
    1. number of opening brace and closing brace
    2. Their position are correct or not
    If the above two conditions are met than it is TRUE else FALSE
    i guess string function with decode and lenght function or case should do but bit difficult to develop this logic in with sql
    Thanks,
    AAK

    Hi,
    Here is non REGEXP_REPLACE version ( Unfotunately dont have 10G to feel the power of REGEXP_REPLACE.
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT DECODE(SUM(CASE
      2                    WHEN Left = '(' AND Right =')' THEN 0+Count_Bracket
      3                    WHEN Left = '<' AND Right ='>' THEN 0+Count_Bracket
      4                    WHEN Left = '{' AND Right ='}' THEN 0+Count_Bracket
      5                    WHEN Left = '[' AND Right =']' THEN 0+Count_Bracket
      6                    ELSE
      7                       1
      8                    END
      9                    )
    10         ,0,'Valid','Invalid')
    11  FROM
    12  (
    13     SELECT SUBSTR(str,(len+1 - level),1) Left, SUBSTR(str,(len + level),1) Right, MOD(LENGTH(str),2)
    14     FROM
    15     (
    16      SELECT
    17         REPLACE(translate('&exp','abcdefgh','        '),' ') str,
    18         LENGTH(REPLACE(translate('&exp','abcdefgh','        '),' '))/2 len
    19      FROM DUAL
    20    )
    21    CONNECT BY LEVEL <= LEN
    22* )
    SQL> /
    Enter value for exp: (<{abc>} )
    old  17:        REPLACE(translate('&exp','abcdefgh','        '),' ') str,
    new  17:        REPLACE(translate('(<{abc>} )','abcdefgh','        '),' ') str,
    Enter value for exp: (<{abc>} )
    old  18:        LENGTH(REPLACE(translate('&exp','abcdefgh','        '),' '))/2 len
    new  18:        LENGTH(REPLACE(translate('(<{abc>} )','abcdefgh','        '),' '))/2 len
    DECODE(
    Invalid
    SQL>
    SQL> /
    Enter value for exp: <{[()]}>
    old  17:        REPLACE(translate('&exp','abcdefgh','        '),' ') str,
    new  17:        REPLACE(translate('<{[()]}>','abcdefgh','        '),' ') str,
    Enter value for exp: <{[()]}>
    old  18:        LENGTH(REPLACE(translate('&exp','abcdefgh','        '),' '))/2 len
    new  18:        LENGTH(REPLACE(translate('<{[()]}>','abcdefgh','        '),' '))/2 len
    DECODE(
    Valid
    SQL>
    SQL> /
    Enter value for exp: ([{<>}])
    old  17:        REPLACE(translate('&exp','abcdefgh','        '),' ') str,
    new  17:        REPLACE(translate('([{<>}])','abcdefgh','        '),' ') str,
    Enter value for exp: ([{<>}])
    old  18:        LENGTH(REPLACE(translate('&exp','abcdefgh','        '),' '))/2 len
    new  18:        LENGTH(REPLACE(translate('([{<>}])','abcdefgh','        '),' '))/2 len
    DECODE(
    Valid
    SQL>
    SQL> /
    Enter value for exp: (<{abc}>defgh)
    old  17:        REPLACE(translate('&exp','abcdefgh','        '),' ') str,
    new  17:        REPLACE(translate('(<{abc}>defgh)','abcdefgh','        '),' ') str,
    Enter value for exp: (<{abc}>defgh)
    old  18:        LENGTH(REPLACE(translate('&exp','abcdefgh','        '),' '))/2 len
    new  18:        LENGTH(REPLACE(translate('(<{abc}>defgh)','abcdefgh','        '),' '))/2 len
    DECODE(
    Valid
    SQL> Note: Only thing needs to care is " translate('<{[()]}>','abcdefgh',' ') " if string has some additional characters please include here.
    Regards

  • Simple logic from below internal tables

    Hi,
    I have one i.table ITAB.
    entries as:
    Year   Month    value
    2008   12         0.00
    I have another i.table ITAB1
    entries as:
    Year       Month   value
    2008       1          12.00
    2008       2          15.00
    2008       3          10.00
    2008       4          11.00  
    2008       11         0.00 
    2008       12         0.00
    Both these i.tables are retrieved from same table.
    Now i required logic such that i should be able check each month 12-1, 11-1 etc.. till the month have some value other than 0.00.
    Note: i should not use
    Loop at ITAB.
    If itab-value eq 0.
    logic should pick up value from previous available month which have value from ITAB1
    endif.
    endloop.
    can anybody provide simple logic for this!
    Thanks,
    Deep.

    Hi,
    do we have to get a non zero value for a record in ITAB, from a previous period record, as here, from ITAB1? And wat we can't use ? please clarify..
    If yes...
    SORT ITAB BY ASCENDING YEAR MONTH.
    SORT ITAB1 BY DESCENDING YEAR MONTH.
    FLAG = 0.
    LOOP AT ITAB.
    FLAG = 0.
    IF ITAB-VALUE EQ 0.
    LOOP AT ITAB1.
    IF ITAB1-YEAR = ITAB-YEAR AND ITAB1-MONTH AND ITAB-MONTH.
    FALG = 1.           " matching record found
    ENDIF.
    IF FLAG EQ 1.           " once record found we need to go further nd find a non-zero value as
                                     " sorted  descending order we will get value from previous possible record.
    IF ITAB1-VALUE NE 0.
    MODIFY ITAB FROM ITAB1.
    FLAG = 0.
    ENDIF.
    ENDLOOP.
    ENDLOOP.
    -pranav

  • Need pl/sql stmnts. for this simple logic

    Hi,
    I need PL/SQL program for this simple logic i am doing mistake somewhere unbale to trace
    out ..
    select * from GSR03_PO_DTL;
    PO_NUM
    L53177000 -- > no changes reqd (only one entry with new format)
    L00041677 --> to be updated to L41677000(only one entry with OLD format)
    L43677000 -- > no change reqd (exists one row with new format and old format like below)
    L00043677 -- > to be deleted this is old format (and new format like above already exists)
    EX:
    L00012345 --- old format
    L12345000 --- new format
    Hope question is clear. I written the following program.
    update is working fine but delete is not working.
    Please help.
    Thanks in Advance
    Devender
    declare
    Cursor c_test is
    (select po_num from GSR03_PO_DTL);
    BEGIN
    FOR r_test in c_Test
    LOOP
    dbms_output.put_line (r_test.po_num);
    IF ('L'||substr(r_test.po_num,5,5)) = ('L'||substr(r_test.po_num,2,5)) then
         dbms_output.put_line ('delete stmnt');
    END IF;     
    EXIT WHEN c_test%NOTFOUND;
    END LOOP;
    FOR r_test in c_Test
    LOOP
    IF r_test.po_num like 'L000%' then
    IF ('L'||substr(r_test.po_num,5,5)) is not NULL then
         update GSR03_PO_DTL set PO_NUM = 'L'||substr(po_num,5,5)||'000'
         where po_num like 'L000%' ;
         dbms_output.put_line ('update stmnt');
    END IF;     
    END IF;
    END LOOP;
    END;
    *********************

    No need for PL/SQL, man.
    SQL> SELECT po_no FROM po1
      2  /
    PO_NO
    L53177000
    L00041677
    L43677000
    L00043677
    SQL> UPDATE po1 y
      2  SET    y.po_no = 'L'||substr(y.po_no,5,5)||'000'
      3  WHERE  y.po_no LIKE 'L000%'
      4  AND    NOT EXISTS ( SELECT null FROM po1 x
      5                      WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
      6  /
    1 row updated.
    SQL> DELETE FROM po1 y
      2  WHERE  y.po_no LIKE 'L000%'
      3  AND    EXISTS ( SELECT null FROM po1 x
      4                  WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
      5  /
    1 row deleted.
    SQL> SELECT po_no FROM po1
      2  /
    PO_NO
    L53177000
    L41677000
    L43677000
    SQL> Cheers, APC

  • Simple FD for generating ALV report using purchase order or sales order

    Can anybody send me a simple FD for generating ALV as well as interactive report for purchase order and sales order

    On the both the Sales Pricing Condition type and the Purchase Pricing condition type there is a field called Ref.condit.type. 
    For example you have a sales pricing condition PR00 with value $10. In your pricing condition in MM for example PB00 you enter PR00 in the Ref.condit.type. The value for PB00 will now be $10.
    Apart from this i do not think there is any standard configuration available in SAP for this. Please refer to SAP Note-95024. You may also consider to write your own logic in the PO Exit to derive the sales order pricing in PO.

  • I need a simple Converter for a selectBooleanCheckbox.

    Hi,
    Can someone tell me how to build a simple converter to go from a selectBooleanCheckbox value to a String and back.
    I save a String ("Y" or "N") in my table but the checkbox returns a boolean. I need a Converter to do the conversion from TRUE to "Y" and FALSE to "N". Should be easy to do but as of now, mine won't even execute properly.
    I get a
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Can't instantiate class: 'ca.sshrc.web.common.converters.BooleanConverterYn'.
    I don't understand how getAsObject and getAsString work I guess.
    Thanks

    Hi,
    Has anyone been able to make the converter for "<h:selectBooleanCheckBox>" work??
    seems like the converter method itself is not getting invoked.
    this is what i am trying to do..
    Code in jsp is
    <h:selectBooleanCheckbox id="testCheckBox" value="#{myBean.testCheckBox}" >
         <f:converter converterId="booleanConverter" />     
    </h:selectBooleanCheckbox>entry in faces-config is
    <converter>          
           <converter-id>booleanConverter</converter-id>                  <converter-class>package.MyBooleanConverter</converter-class>
      </converter>class MyBooleanConverter looks like this at the moment
    public class MyBooleanConverter implements Converter {
         public Object getAsObject(FacesContext context, UIComponent component, String value) {
              myBooleanClass myBoolean = new myBooleanClass(value);
              return myBoolean;
         public String getAsString(FacesContext context, UIComponent component, Object value) {
              return value.toString();
    }     Have kept myBooleanClass as a simple wrapper for the Boolean class.
    Same is working for string and integer but not in this case..
    Am i going wrong somewhere... kindly help

  • The logics for ALL calc key figures (CKF) - Table available?

    Hello experts,
    I am going through a project here to convert a lot of CKF / RKF in BI Queries.
    There are 100's of them and what I want to do is to be able to see all the formula's used in one list as opposed to go through each on in query designer which is , as we all know, a big pain to use.
    Is there a  table in BI (RSZ something?) which will give me a list of all the CKF's in the system and the arthimatic used to calculate them... most of the CKF's im interested are calculated using RKF and is usually simple logic.
    If there is an easy way of seing the formula then this will help me lots.
    thanks for any ideas
    Iksit
    (BI7)

    Hello Sudheer
    2LIS_02_HDR, ITM and SCL do not take data from S011 but directly from transactionnal tables like EBEP, EBKO, EBPO (names quoted from memory).
    So you have to look for the key figures from those tables and not the one in S011.
    Historically, the three datasource were built to replace 2LIS_02_S011 but the calculations to rebuild the keyfigures were delivered in BW in an old BCT that made the conversions. The logic and modeling have changed completely.
    If you really need to transfer S011 to BW without remodelling the data, you may want to use a generic extractor based on S011 (provided you have a delta key available).
    Otherwise, in SBIW, Options for datasource specific to the application, Logistics, purchasing, you have two customizing transactions. you have to define branch and process key to load data into BW. But that will not have any effect to LBWE.
    Hope this helps.
    Regards
    Fabrice

  • Search Help - logic for getting output.

    Hi,
    I am trying to create search help for Vendor number field. And input selection has a fields from various Vendor related tables ( LFA1,ADRC,LFB1,LFBK,LFBW,LFM1,LFZA).
    If user enters any of the input field values (from the above table selected fields)then need to get corresponding vendor number details  from all of the above tables(selected fields from the above tables).
    can any one let me know  how to compose the logic for this?
    1. I created search help and trying to put the logic in EXIT for the search help to get the values.
    Thanks in advance.
    Rajesh.

    rajesh,
    check tis out,
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm
    http://fuller.mit.edu/tech/search_helps.ppt#260,5,Simple
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
    http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm

  • ALV Interactive report! Need Simple Logic

    Hi!
       Can any one tell me the simple logic (steps) to be followed in developing alv interactive report
      NO CODING PLEASE
      Thanks
      Imran

    Hi Imran,
        Here i am trying to explain through the standard ALV FMs...
    1) You will do the same coding as how you will do for normal ALV through FMs.
    2)  Create an event type variable of type - SLIS_T_EVENT
    3) Call function module REUSE_ALV_EVENTS_GET to get all the events like 'USER COMMAND'
    4) Fill the internal table with the form name against USER COMMAND event.
    5) create FORM & ENDFORM for the USER COMMAND event.
    6) With in the form which you created in 5th step, create a variable of type - SLIS_SELFIELD, to capture user click information like on which field name & value user clicked.
    7) When you press on Base list of ALV, SY-UCOMM value will be &IC1, based on that you can validate whether user clicked or not on base list.
    8) Again you will populate the internal tables with required entries for the interactive list and we will call REUSE_ALV fm once again.
    I hope you understand the process, if not please get back to me.
    Regards,
    Donepudi
    Reward if its helpful.

  • Codification logic for Company codes

    Dear Experts
    We are debating on a logic for codification of company codes in our system. We are planning a single instance single client installation for ECC 6.0 and we have companies acrss the globe. We were debating whether to use go for simple all numeric code where the first 2 digits represents a number mapped to a country (for example 20 for india, 21 for china) and the next two digits as running serial number.  We are also debating whether we just go with first 2 characters as alpha numeric representing the ISO code of the country as given by SAP (viz. IN for india, BR for brazil) and have the next 2 characters as running seral number.
    Wanted to check with the experts if going with either logic does not make any difference or is there any specific advantage with any of them
    Thanks
    NSK

    I would suggest to go with Numeric Codification.
    If you choose alphanumeric codification, then user might face difficulwhile entering the data in SAP screen, as he has to navigate more for characters and digits on keyboards.
    Also numeric codes, helps more in report development, program codes where ranges are used etc.
    Regards,
    Gaurav

  • A few simple Logic questions...please help.

    I have a few probably simple Logic questions, that are nonetheless frustrating me, wondering if someone could help me out.
    1. I run Logic 8, all of the sounds that came with logic seem to work except organ sounds. I can't trigger any organ sounds (MIDI) on Logic, they won't play. I have a Yamaha Motif as my midi controller.
    Any idea why?
    2. I've starting running into a situation where I will record a MIDI track, the notes are recorded but they won't playback. The only track effected is the one that was just recorded. All other midi tracks playback.
    I have to cut the track, usually go out of Logic and back in, re record for it to playback properly. Any idea why this may be happening?
    3. How important is it to update to Logic 9. Are there any disadvantages down the road if I don't upgrade. If I purchase the $200 upgrade, do I get a package of discs and material, or it just a web download.
    Any help is appreciated!
    Colin

    seeren wrote:
    Data Stream Studio wrote:
    3) You get a full set of disks and manuals.
    They're including manuals now?
    I think his referring to the booklets ...on how to install etc
    It would be great to see printed manuals though ...I love books especially Logic/Audio related !!
    A

  • Using macbook pro + logic for live - what to consider

    so i just received the macbook pro which I will use live with logic for playing back bounced audio tracks, audio instruments and live inputs + effects.
    I want to avoid (if possible) an additional external drive in order to keep the setup simple.
    I`m thinking of partitioning the internal drive into two parts and use one partition for the audio material.
    Or is it maybe better to keep the whole drive as one partition (80GB)?
    Any further suggestions? e.g. Which os do you think is more stable 4.6. or 4.7?

    Hi. I use my MBP live for Ivory Grand piano sounds and occasional backing tracks with live piano. I suggest you set it all up and suck and see. You will quickly get an idea of what will and won't work. Set up a scenario where it is doing a fair bit more work than you anticipate it doing live, and then you will be confident of it doing what you want it to do.
    Partioning a hard drive just means that the same single hard drive is trying to split it's attention to two places at once, and so will probably give worse performance. It is no real big deal to carry a small firewire drive these days. By the time you have plugged in MIDI interfaces and cable, an extra firewire cable will not make much difference. Samples stream much faster from an external drive. Audio should play back just fine from the internal hard drive.
    I am using 10.4.7 and I don't seem to be having any problems so far, touch wood.

  • Simple logic group to operate prior to custom import script?

    Hi all,
    Thanks for taking the time to read my question. I will gladly mark this thread as helpful or answered if you can help me. I'm a novice at FDM so please bear with.
    I have a custom import script that assigns ICP None to a specific account (overriding any ICP detail). However, now I need the ICP detail for that account in a second statistical account. I setup a simple logic group to create the logic account that I can map to the statistical but then realized that the import script runs prior to the logic group so I lose all ICP detail in the logic account as well.
    Is there a way to run the logic group prior to import script or is there a better way to accomplish what I'm trying to do?
    I'm not sure how critical this is but I'm using FDM v11.1.1.3.01 adapter 11x-G5-C
    Edited by: user4591089 on Aug 17, 2011 2:10 PM
    Edited by: user4591089 on Aug 17, 2011 2:50 PM

    Do the following:
    1) Remove the custom import script.
    2) Create a complex logic account and override the ICP dimension in the Group By Column with the Value [ICP None]. This will then be what is diplayed on the import screen for this logic account.
    3) Map the original source as the statistical account and the logic account as appropriate
    Edited by: SH on Aug 18, 2011 9:48 AM

  • Select - next  logic for copy data

    Hi,
    I have 3 main values from an excel template: a specific data value (i.e. 35), in that same template one is TIME  and the other one is  $$$.
    What I have to do is copy  the $$$ amount starting from the date set in the template (TIME) through X number of months (i.e.35).
    All this is going to be obtained from a template, I cant use prompt.
    Lets say:
    X: 35
    $$. 100
    TIME: 2011.July
    To do:
    Repeat 35 times the amount 100, starting from 2011.July to the next months.
    Therefore, 2011.August, 2011.September,etc,etc---> 2012.Jan....2013-Jan  and so on until the 35 months are reached.
    I am trying to make some logic using the Select command, however I dont quite understand how to perform this. Equally using the logic NEXT i think it will be helpful.
    Any suggestions...? I cant share my logic because im still trying and mine does not work.
    Thanx in advance.
    Velázquez

    Hi Madis,
    Thanx for the response, i reaally appreciate it.
    I created the dim DURACION as user defined. Included for the moment 25 members (numbers) and it wasnt matched to any application.
    Now, the script where i am working is called Test.
    1. I typed in my script the following:
    **SELECT (%MYSET%,ID,Duracion,"[ID]<=MYDURACION")
    2.Entered to BPC Excel - eData - organize package list - select script Test  and added the following:
    'DEBUG(ON)
    PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
    PROMPT(SELECTINPUT,,,"Please select category, entity and time for restatement",%TIME_DIM%)
    PROMPT(Text,%INPUTDURACION%,"Enter No of duracion",,"")
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
    TASK(Execute formulas,FORMULASCRIPT,"FUNCTION MYDURACION=H%INPUTDURACION%")*
    TASK(Execute formulas,LOGICFILE,%APPPATH%..AdminApp%APP%TestAlldoraVentas2.lgx)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    TASK(Execute formulas,CHECKLCK,%CHECKLCK%)
    Now... im having trouble because after validating & saving, it shows the error:
    - Invalid column name 'MYDURACION' in:select ID from mbrDURACION where <=MYDURACION
    Can you please help me...
    So far, I have the following logic for performing a "calc each period"  once  YEAR.MONTH  is introduced by a prompt.
    The xdim members are making reference to a particular situation, the important stuff here is that if I pass a hardcored # of periods to the XDIM - next logic it works, and im trying to apply your suggestion...
    *CALC_EACH_PERIOD
    *XDIM_MEMBERSET lob=servicios_out
    *XDIM_MEMBERSET consumibles=consumibles_dummy
    *XDIM_MEMBERSET vendedor=04
    *XDIM_MEMBERSET cliente=5
    *XDIM_MEMBERSET oi=400000
    *XDIM_MEMBERSET TIEMPO=%tiempo_set%,next
    *WHEN METRICA
    *IS importe
    *REC(metrica="importe",tiempo=next(1))
    *ENDWHEN
    **SELECT (%MYSET%,ID,Duracion,"[ID]<=MYDURACION")
    However, is there still a way to pass a # of periods by excel?... this is, not using a prompt but by reading the number form a specific CV ?
    Thanx again
    Velázquez

Maybe you are looking for

  • Letter of Credit (Urgent )

    Hi All, I needed to know if anyone has worked on letter of credit or have dealt with payment gurantee procedure configuration. Define and Assign forms of payment guarantee has 5 different configs. First one, Define payment guarantee schema - This par

  • Workflow of Service module

    Hi According to my client requirement two things are needed in service module: 1. Free Service (after sales) 2. Paid Service. Please explain the workflow of service. How this can be managed in service module? tHANKS

  • Need to move employees to another organizational unit

    Hi, Can any one explain and write down steps required while moving employees from one organisational unit to other organisational unit. Points will be given Thanks in advance

  • Can Oracle Read Attributes properly? newbie

    Here is part of an xml file, I am new to Oralce and was wondering if the parser can handle Attribute Centric data? Thanks in Advance, Phil <coordinates description="" color="" source=""> <spcs_point FIPSZONE="0" system_standard="" spcsx="0.0" spcsy="

  • Patch and RMAN

    Hi, I would like to Upgrade our Database from 9.2.0.3 to 9.2.0.6. I also use RMAN with Version 9.2.0.3 to do the Backups with. My Question is: Do the Main Database and the RMAN Database always need to be at the same version? Thanks