Control-break statements:value not being displayed.

Hi all,
Iam using the control break statement at end of ..., sum.
value is not being displayed,instead it is showing *********.
even in the debugging mode the value is not being displayed.
iam passing the values into a temp IT,but still the values are not being dispalyed.
here is the following snippet of code.
what could be the mistake?
Please give me the suitable answer.
Thanks in advance.
LOOP AT FT_ITAB INTO FT_WA.
    FTY_WA-EBELN = FT_WA-EBELN.
    FTY_WA-EBELP = FT_WA-EBELP.
    FTY_WA-NAME1 = FT_WA-NAME1.
    FTY_WA-ZTERM = FT_WA-ZTERM.
    FTY_WA-INCO1 = FT_WA-INCO1.
    FTY_WA-WAERS = FT_WA-WAERS.
    FTY_WA-SUBMI = FT_WA-SUBMI.
AT END OF EBELN.
    SUM.
    FTY_WA-BRTWR = FT_WA-BRTWR.
    FTY_WA-KTMNG = FT_WA-KTMNG.
    FTY_WA-NETPR = FT_WA-NETPR.
   APPEND FTY_WA TO FTY_ITAB.
   CLEAR FTY_WA.
ENDAT.

Abhi,
i tried as you said values are being diplayed,but they are not gettin totaled,i want the sum of values at the end of line item,I need to pass these valuse to alv.
here is the complete code.Please tell me how should I proceed.
TABLES:EKKO,EKPO,LFA1.
TYPE-POOLS:SLIS.
DATA:HEADER TYPE SLIS_T_FIELDCAT_ALV,
     WA TYPE SLIS_FIELDCAT_ALV,
     LAYOUT TYPE SLIS_LAYOUT_ALV.
TYPES:BEGIN OF PH_TY,
        PH_EBELN LIKE EKKO-EBELN,
        PH_AEDAT LIKE EKKO-AEDAT,
        PH_LIFNR LIKE EKKO-LIFNR,
        PH_ZTERM LIKE EKKO-ZTERM,
        PH_EKORG LIKE EKKO-EKORG,
        PH_WAERS LIKE EKKO-WAERS,
        PH_SUBMI LIKE EKKO-SUBMI,
        PH_INCO1 LIKE EKKO-INCO1,
        PO_EBELN LIKE EKPO-EBELN,
        PO_EBELP LIKE EKPO-EBELP,
        PO_BRTWR LIKE EKPO-BRTWR,
        PO_KTMNG LIKE EKPO-KTMNG,
        PO_NETPR LIKE EKPO-NETPR,
      END OF PH_TY.
TYPES:BEGIN OF PO_TY,
        PO_EBELN LIKE EKPO-EBELN,
        PO_EBELP LIKE EKPO-EBELP,
        PO_BRTWR LIKE EKPO-BRTWR,
        PO_KTMNG LIKE EKPO-KTMNG,
        PO_NETPR LIKE EKPO-NETPR,
      END OF PO_TY.
TYPES:BEGIN OF VO_TY,
         VO_LIFNR LIKE LFA1-LIFNR,
         VO_NAME1 LIKE LFA1-LIFNR,
      END OF VO_TY.
TYPES:BEGIN OF FI_TY,
         EBELN LIKE EKKO-EBELN,
       AEDAT LIKE EKKO-AEDAT,
       LIFNR LIKE EKKO-LIFNR,
         ZTERM LIKE EKKO-ZTERM,
       EKORG LIKE EKKO-EKORG,
         WAERS LIKE EKKO-WAERS,
         SUBMI LIKE EKKO-SUBMI,
         INCO1 LIKE EKKO-INCO1,
       EBELN_I LIKE EKPO-EBELN,
         EBELP   LIKE EKPO-EBELP,
         NAME1 LIKE LFA1-LIFNR,
         BRTWR LIKE EKPO-EBELN,
         KTMNG LIKE EKPO-EBELN,
         NETPR LIKE EKPO-EBELN,
       LIFNR1 LIKE LFA1-LIFNR,
      END OF FI_TY.
TYPES:BEGIN OF FT_TY,
         EBELN LIKE EKKO-EBELN,
         ZTERM LIKE EKKO-ZTERM,
         WAERS LIKE EKKO-WAERS,
         SUBMI LIKE EKKO-SUBMI,
         INCO1 LIKE EKKO-INCO1,
         EBELP LIKE EKPO-EBELP,
         NAME1 LIKE LFA1-LIFNR,
         BRTWR LIKE EKPO-EBELN,
         KTMNG LIKE EKPO-EBELN,
         NETPR LIKE EKPO-EBELN,
      END OF FT_TY.
DATA: PH_ITAB TYPE STANDARD TABLE OF PH_TY,
      PO_ITAB TYPE STANDARD TABLE OF PO_TY,
      VO_ITAB TYPE STANDARD TABLE OF VO_TY,
      FI_ITAB TYPE STANDARD TABLE OF FI_TY,
      FT_ITAB TYPE STANDARD TABLE OF FT_TY,
      FTY_ITAB TYPE STANDARD TABLE OF FT_TY,
      FTY1_ITAB TYPE STANDARD TABLE OF FT_TY.
DATA:PH_WA LIKE LINE OF PH_ITAB,
     PO_WA LIKE LINE OF PO_ITAB,
     VO_WA LIKE LINE OF VO_ITAB,
     FI_WA LIKE LINE OF FI_ITAB,
     FT_WA LIKE LINE OF FT_ITAB,
     FT_WA1 LIKE LINE OF FT_ITAB,
     FTY_WA LIKE LINE OF FT_ITAB,
     FTY1_WA LIKE LINE OF FT_ITAB.
SELECT A~EBELN
       A~AEDAT
       A~LIFNR
       A~ZTERM
       A~EKORG
       A~WAERS
       A~SUBMI
       A~INCO1
       B~EBELN
       B~EBELP
       B~BRTWR
       B~KTMNG
       B~NETPR
       INTO TABLE PH_ITAB FROM EKKO AS A
       INNER JOIN EKPO AS B
       ON AEBELN = BEBELN
       UP TO 25 ROWS.
CHECK PH_ITAB[] IS NOT INITIAL.
SELECT LIFNR
       NAME1
       FROM LFA1 INTO TABLE VO_ITAB
       FOR ALL ENTRIES IN PH_ITAB
       WHERE LIFNR = PH_ITAB-PH_LIFNR.
CHECK VO_ITAB[] IS NOT INITIAL.
SORT PH_ITAB BY PH_EBELN.
SORT VO_ITAB BY VO_LIFNR.
LOOP AT PH_ITAB INTO PH_WA.
  FI_WA-SUBMI = PH_WA-PH_SUBMI.
  FI_WA-EBELN = PH_WA-PH_EBELN.
  FI_WA-ZTERM = PH_WA-PH_ZTERM.
  FI_WA-INCO1 = PH_WA-PH_INCO1.
  FI_WA-WAERS = PH_WA-PH_WAERS.
  FI_WA-EBELP  = PH_WA-PO_EBELP.
  FI_WA-BRTWR  = PH_WA-PO_BRTWR.
  FI_WA-KTMNG  = PH_WA-PO_KTMNG.
  FI_WA-NETPR  = PH_WA-PO_NETPR.
  READ TABLE VO_ITAB INTO VO_WA WITH KEY VO_LIFNR = PH_WA-PH_LIFNR BINARY SEARCH.
  FI_WA-NAME1 = VO_WA-VO_NAME1.
  APPEND FI_WA TO FI_ITAB.
  CLEAR FI_WA.
ENDLOOP.
LOOP AT FI_ITAB INTO FI_WA.
    FT_WA-EBELN = FI_WA-EBELN.
    FT_WA-EBELP = FI_WA-EBELP.
    FT_WA-NAME1 = FI_WA-NAME1.
    FT_WA-ZTERM = FI_WA-ZTERM.
    FT_WA-INCO1 = FI_WA-INCO1.
    FT_WA-WAERS = FI_WA-WAERS.
    FT_WA-SUBMI = FI_WA-SUBMI.
    FT_WA-BRTWR = FI_WA-BRTWR.
    FT_WA-KTMNG = FI_WA-KTMNG.
    FT_WA-NETPR = FI_WA-NETPR.
APPEND FT_WA TO FT_ITAB.
CLEAR FT_WA.
ENDLOOP.
LOOP AT FT_ITAB INTO FT_WA.
AT END OF EBELN.
SUM.
    FTY_WA-EBELN = FT_WA-EBELN.
    FTY_WA-EBELP = FT_WA-EBELP.
    FTY_WA-NAME1 = FT_WA-NAME1.
    FTY_WA-ZTERM = FT_WA-ZTERM.
    FTY_WA-INCO1 = FT_WA-INCO1.
    FTY_WA-WAERS = FT_WA-WAERS.
    FTY_WA-SUBMI = FT_WA-SUBMI.
    FTY_WA-BRTWR = FT_WA-BRTWR + FTY_WA-BRTWR.
    FTY_WA-KTMNG = FT_WA-KTMNG + FTY_WA-KTMNG.
    FTY_WA-NETPR = FT_WA-NETPR + FTY_WA-KTMNG.
ENDAT.
   APPEND FTY_WA TO FTY_ITAB.
   CLEAR FTY_WA.
ENDLOOP.
WA-SELTEXT_L = 'ebeln'.
WA-COL_POS = '1'.
WA-FIELDNAME = 'EBELN'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '15'.
APPEND WA TO HEADER.
CLEAR WA.
WA-SELTEXT_L = 'SUBMI'.
WA-COL_POS = '2'.
WA-FIELDNAME = 'SUBMI'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '15'.
APPEND WA TO HEADER.
CLEAR WA.
WA-SELTEXT_L = 'NAME1'.
WA-COL_POS = '3'.
WA-FIELDNAME = 'NAME1'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '15'.
APPEND WA TO HEADER.
CLEAR WA.
WA-SELTEXT_L = 'ZTERM'.
WA-COL_POS = '4'.
WA-FIELDNAME = 'ZTERM'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '15'.
APPEND WA TO HEADER.
CLEAR WA.
WA-SELTEXT_L = 'INCO1'.
WA-COL_POS = '5'.
WA-FIELDNAME = 'INCO1'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '15'.
APPEND WA TO HEADER.
CLEAR WA.
WA-SELTEXT_L = 'WAERS'.
WA-COL_POS = '6'.
WA-FIELDNAME = 'WAERS'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '15'.
APPEND WA TO HEADER.
CLEAR WA.
WA-SELTEXT_L = 'brtwr'.
WA-COL_POS = '7'.
WA-FIELDNAME = 'BRTWR'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '20'.
APPEND WA TO HEADER.
CLEAR WA.
WA-SELTEXT_L = 'netpr'.
WA-COL_POS = '8'.
WA-FIELDNAME = 'NETPR'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '20'.
APPEND WA TO HEADER.
CLEAR WA.
WA-SELTEXT_L = 'ktmng'.
WA-COL_POS = '9'.
WA-FIELDNAME = 'KTMNG'.
WA-TABNAME = 'FTY_ITAB'.
WA-OUTPUTLEN = '20'.
APPEND WA TO HEADER.
CLEAR WA.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    IT_FIELDCAT        = header[]
  TABLES
    T_OUTTAB           = FTY_ITAB[].
IF SY-SUBRC = 0.
ENDIF.

Similar Messages

  • Dropdown value list selected value not being displayed

    HCM process and form  - Using HR Admin control library in Adobe form to create a new drop down list  as per OSS Note Note 973170 - New library for "SAP Interactive Forms by Adobe" - HR Admin Drop Down box list.
    User is able to choose values from dropdown list. But, when form is sent for approval, approving user is not seeing selected value.
    Thanks,
    Karu

    Hi karu,
    Follow the below steps,
    1. Place the dropdown list box in the form
    2.bind the attributes to the dropdown.
    3.In Object tab Property  Click List Item, One Pop up Window is displayed,
       In the popup window,
                           i.  Bind the dropdown list attributes to the  items.
                           ii. $ symbol assigned to the Item text
                           iii.$ symbol assigned to the item value.
    by
    Parthasarathi

  • Plan values not being displayed in the report ..

    Hi All,
    I have a query on query.. .
    which displays actual and plan values , but the report is not showing the plan values
    tell me how to do this
    Sruthi

    Sruthi,
    Basically how do you store the data in the transaction cube's ?
    How does the data differs b/w Plan and actual for the same KF ?
    It stores depending on the Version...
    Restrict the KF to a perticular version ...
    Then you can get the desired...
    Check the LISTCUBE  with different versions..
    Cheer's
    HVR.

  • How to catch the value in sum(control break statement).

    hi,
    can any one tell me how to catch the value in sum in control break satament.
    ex.
    at end of brtwr.
    sum.
    endat.
    I need to print the value in sum only.
    I tried to declare a varaible of type i and assigned sum to this variable.
    it is giving syntax error that sum is not identified.
    How should i do this.
    regards.

    Hi Siva,
    In control break statement when we use SUM. it added all the amount fields and stores its in the work area of that field.
    look below code.
    DATA : BEGIN OF itab OCCURS 0,
               name(10),
               num TYPE i,
           END OF itab.
    DATA : num TYPE i .
    itab-name = 'salman'.
    itab-num  = 100.
    APPEND itab.
    itab-name = 'salman'.
    itab-num  = 200.
    APPEND itab.
    itab-name = 'akshay'.
    itab-num  = 500.
    APPEND itab.
    LOOP AT itab.
      AT END OF name.
        SUM.
        WRITE : / itab-num.
      ENDAT.
    ENDLOOP.
    here the SUM value is stored in Workarea,
    the output will be 300 & 500.
    regards
    Kumar M

  • Coulmn values is not being displayed in obiee 11g

    Hi All,
    Below is the sample xml generated from data structure.
    +<!--Generated by Oracle BI Publisher 11.1.1.6.0-->+
    +<DATA_DS>+
    +<G_1>+
    +<LOCATION_NAME>ABCD</LOCATION_NAME>+
    +<PRODUCT_ID>1012331403</PRODUCT_ID>+
    +<PRODUCT_SUBID>101233140302</PRODUCT_SUBID>+
    +<PRODUCT_NAME>ABCD1</PRODUCT_NAME>+
    +<REVENUE>3924973.97</REVENUE>+
    +</G_1>+
    +<G_1>+
    +<LOCATION_NAME>ABCD</LOCATION_NAME>+
    +<PRODUCT_ID>1012331401</PRODUCT_ID>+
    +<PRODUCT_SUBID>101233140104</PRODUCT_SUBID>+
    +<PRODUCT_NAME>ABCD2</PRODUCT_NAME>+
    +<REVENUE>688244.58</REVENUE>+
    +</G_1>+
    +<G_1><LOCATION_NAME>EFGH</LOCATION_NAME>+
    +<PRODUCT_ID>1011165401</PRODUCT_ID>+
    +<PRODUCT_SUBID>101116540101</PRODUCT_SUBID>+
    +<PRODUCT_NAME>EFGH1</PRODUCT_NAME>+
    +<REVENUE>3763099.99</REVENUE>+
    +</G_1>+
    +</DATA_DS>+
    We were unable to see the REVENUE column values in the report. We were able to see the values while creating layout, but unable to see the values in report. Report is not having any filters or parameters. This is build on two tables. Revenue in one table and details in another table.
    Thanks.

    Hi,
    Just noticed that, able to see column values in HTML, pdf views but unable to see in interactive view.
    While creating the layout checked in Interactive view, at that time able to get column values, but in the report column values are not being displayed in interactive view.
    But in HTML, list option , Repeating Section is not working, so have to see in interactive view only.
    I can say, in Interactive vew Aggregate functions are not working properly. We need tro use Repeating Section and List option in report. so we need interactive view only.
    Any ideas..
    Thanks.

  • Data access disrupters  (DAD's)are not being displayed on control panel

    Hi,
    Data access disrupters are not being displayed on Application server control panel (sid.host.domine > HTTP Server > mod_plsql Services >DAD's ) But users are able to access their applications.
    Not able to see database access details through Application server control panel. Can you please tell me where could be the problem exists..
    Thanks,
    DJ

    I am assuming you mean Discriptors (instead of Disrupters) and I am not sure which release of Application Server you are running. But assuming it is 9i (say 9.0.3 on Windows), if you select the OC4J instance or container the applicatlion was deployed to. You will see a link to Data Sources displayed below Application Defaults.
    The files equivalent will be found in your <ORACLE_APPSHOME>\j2ee\<INSTANCE_NAME>\config\data-sources.xml

  • Control break-statement: SUM

    Hi All,
    I am woking with Control break-statmens, SUM.
    LOOP AT IT_SELECT.
    AT NEW PSPNR.
    SUM.
    WRITE:/ IT_SELECT-WERKS,
            IT_SELECT-PSPHI,
            IT_SELECT-PSPNR,
            IT_SELECT-VERNA,
            IT_SELECT-KZWI2,
            IT_SELECT-DMBTR.
    ENDAT.
    ENDLOOP.
    WERKS from EKPO type Char & VERNA from PRPS type Char are displaying as ***************.
    How can I get the actual values instead of ********** for the above Char type fields?
    Thanks in advance,
    Kal Chand

    Hi,
    Go throught his link. This is same for all control break statements.
    Re: output not getting properly
    Hope this helps you
    Raj

  • Dynamic image is not being displayed in Adobe Reader 8.1

    Hi,
    In interactive form, we have followed below required steps to show a dynamic image.
    For the left image, drag and drop an Image Field element from the standard Library tab to the Body Pages pane. Select this image field and edit the following properties:
    • Click on the Layout tab and choose None for the Caption position.
    • Click on the Object, then the Binding tab and choose None for Default Binding.
    • Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
    • Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Language: FormCalc Run At: Client
    Image is displayed properly in Adobe reader 7.1 but it's not being displayed in Adobe reader 8.1.
    I was going through some forums and understand that Adobe 8.1 blocks href URL. If this is indeed true, what's the alternative way to show a dynamic image?
    Regards
    Chandra
    Edited by: Chandrashekhar Singh on Apr 24, 2008 7:28 AM

    Soory, I thought its static image....
    Regards,
    Vaibhav Tiwari.
    Edited by: Vaibhav Tiwari on Apr 24, 2008 11:45 AM

  • Problem in Search Help[F4] - Values Not being Dsplayed

    Hi,
    Search help values are not being displayed.
    F4 help pop up is being displayed with the text on top: ' xxxx number of entries found".
    But no values are visible in that popup where it normaly displayes all values for selection. This is happening with all search helps.
    Example: I tried for Tcode: ME21, for field Vendor.
    =><i>No patch has been applied on Server recently.</i>
    Any clue on that..??
    Any help is appriciated.
    Regards,
    Vijay Raheja

    Hello Vijay,
    This is simple as well.
    Go to help then settings and then F4 help. Under system defaults tab strip you will find Display tab strip. Here go to change mode and choose dialog. The other choice will be for control only ( 2 radio buttons only this time around). However to do so make sure you have the authorization object S_ADMI_FCD with value TCTR.
    Ask yoru authorization adminstrator to make these changes. He would be having these authorizations. Normally all  users dont have this authorization as this is part of security audit considerations.
    Please award points if issue got solved.
    Regards.
    Ruchit.

  • Doubt in control break statement

    Hi All,
    Is there any way to trigger control break statements at new & at end of for non primary key fields.
    i want to trigger both control break statements for my requirement , not at change of, because i want to trigger at end of also. Please let me know if any possibility. Thanks
    regards
    vishal

    hi vishal,
    Variants:
    1. AT NEW f.
    2. AT END OF f.
    3. AT FIRST.
    4. AT LAST.
    Effect
    In a LOOP which processes an internal table, you can use special control structures for control break processing. All these structures begin with AT and end with ENDAT. The sequence of statements which lies between them is then executed if a control break occurs.
    You can use these key words for control break processing with internal tables only if a loop is actively processing an internal table and reference is to the innermost currently active loop.
    The control level structure with internal tables is static. It corresponds exactly to the sequence of columns in the internal table (from left to right). In this context, the criteria according to which you sort the internal table are unimportant.
    At the start of a new control level (i.e. immediately after AT), the following occurs in the output area of the current LOOP statement:
    All character type fields (on the right) are filled with "*" after the current control level key.
    All other fields (on the right) are set to their initial values after the current control level key.
    Between AT and ENDAT, you can use SUM to insert the appropriate control totals in the numeric fields (see also ABAP Number Types) of the LOOP output area (on the right) after the current control level key. Summing is supported both at the beginning of a control level (AT FIRST, AT NEW f) and also the end of a control level (AT END OF f, AT LAST).
    At the end of the control level processing (i.e. after ENDAT), the old contents of the LOOP output area are restored.
    Notes
    When calculating totals, you must ensure that the totals are inserted into the same sub-fields of the LOOP output area as those where the single values otherwise occur. If there is an overflow, processing terminates with a runtime error.
    If an internal table is processed only in a restricted form (using the additions FROM, TO and/or WHERE with the LOOP statement), you should not use the control structures for control level processing because the interaction of a restricted LOOP with the AT statement is currenly not properly defined.
    With LOOPs on extracts, there are also special control break control structures you can use.
    Note
    Non-Catchable Exceptions:
    SUM_OVERFLOW: Overflow when calculating totals with SUM.
    Variant 1
    AT NEW f.
    Variant 2
    AT END OF f.
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas.See Compatible Work Area with Control Level Processing and Field Symbols Not Allowed as Control Level Criterion.
    Effect
    f is a sub-field of an internal table processed with LOOP. The sequence of statements which follow it is executed if the sub-field f or a sub-field in the current LOOP line defined (on the left) before fhas a different value than in the preceding (AT NEW) or subsequent (AT END OF) table line.
    Example
    TYPES: BEGIN OF COMPANIES_TYPE,
            NAME(30),
            PRODUCT(20),
            SALES TYPE I,
          END   OF COMPANIES_TYPE.
    DATA: COMPANIES TYPE STANDARD TABLE OF COMPANIES_TYPE WITH
                         NON-UNIQUE DEFAULT KEY INITIAL SIZE 20,
          WA_COMPANIES TYPE COMPANIES_TYPE.
    LOOP AT COMPANIES INTO WA_COMPANIES.
      AT NEW NAME.
        NEW-PAGE.
        WRITE / WA_COMPANIES-NAME.
      ENDAT.
      WRITE: / WA_COMPANIES-PRODUCT, WA_COMPANIES-SALES.
      AT END OF NAME.
        SUM.
        WRITE: / WA_COMPANIES-NAME, WA_COMPANIES-SALES.
      ENDAT.
    ENDLOOP.
    The AT statements refer to the field COMPANIES-NAME.
    Notes
    If a control break criterion is not known until runtime, you can use AT NEW (name) or AT END OF (name) to specify it dynamically as the contents of the field name. If name is blank at runtime, the control break criterion is ignored and the sequence of statements is not executed. If name contains an invalid component name, a runtime error occurs.
    By defining an offset and/or length, you can further restrict control break criteria - regardless of whether they are specified statically or dynamically.
    A field symbol pointing to the LOOP output area can also be used as a dynamic control break criterion. If the field symbol does not point to the LOOP output area, a runtime error occurs.
    If you use AT within a LOOP with an explicitly-specified output area, the area must be compatible with the line type of the internal table so that it can be initialized properly (as described above) at the start of a new control level.
    You can restrict control break criteria further, regardless of whether they were defined statically or dynamically, by specifying offset and/or length.
    Variant 3
    AT FIRST.
    Variant 4
    AT LAST.
    Effect
    Executes the appropriate sequence of statements once during the first (AT FIRST) or last (AT LAST) loop pass.
    Example
    TYPES: BEGIN OF COMPANIES_TYPE,
            NAME(30),
            PRODUCT(20),
            SALES TYPE I,
          END   OF COMPANIES_TYPE.
    DATA: COMPANIES TYPE STANDARD TABLE OF COMPANIES_TYPE WITH
                         NON-UNIQUE DEFAULT KEY INITIAL SIZE 20,
          WA_COMPANIES TYPE COMPANIES_TYPE.
    LOOP AT COMPANIES INTO WA_COMPANIES.
    AT FIRST.
    SUM.
    WRITE: 'Sum of all SALES:',
    55 WA_COMPANIES-SALES.
    ENDAT.
    WRITE: / WA_COMPANIES-NAME, WA_COMPANIES-PRODUCT,
    55 WA_COMPANIES-SALES.
    ENDLOOP.

  • Control break statements

    Hi friends,
           pls explain , what is the use of control break statements( at first, at last, at new, at end of, on change of ) ? and practical difference applying at new and on change.
    Pls send me material or links related to control break statements.
    Thanks in advance.
    SR K

    Hello SR K,
    Just go through the following documentation.
    AT - Control breaks with extracts
                  Variants:
                  1. AT NEW f.
                  2. AT END OF f.
                  3. AT FIRST.
                  4. AT LAST.
                  5. AT fg.
    Effect        In a LOOP which processes a dataset created with EXTRACT, you
                  can use special control structures for control break
                  processing. All these structures begin with AT and end with
                  ENDAT. The sequence of statements which lies between is
                  executed whenever a control break occurs.
                  You can use these key words for control break processing with
                  extract datasets only if the active LOOP statement is
                  processing an extract dataset.
                  The control level structure with extract datasets is dynamic.
                  It corresponds exactly to the sort key of the extract dataset,
                  i.e. to the order of fields in the field group HEADER by which
                  the extract dataset was sorted.
                  At the end of a control group (AT END OF, AT LAST), there are
                  two types of control level information between AT and ENDAT:
                  -  If the sort key of the extract dataset contains a
                     non-numeric field h (particularly in the field group
                     HEADER), the field CNT(h) contains the number of control
                     breaks in the (subordinate) control level h.
                  -  For extracted number fields g (see also ABAP Number Types),
                     the fields SUM(g) contain the relevant control totals.
    Notes         1. The fields CNT(h) and SUM(g) can only be addressed after
                     they have been sorted. Otherwise, a runtime error may
                     occur.
                  2. The fields CNT(h) and SUM(g) are filled with the relevant
                     values for a control level at the end of each control group
                     (AT END OF, AT LAST), not at the beginning (AT FIRST, AT
                     NEW).
                  3. When calculating totals with SUM(g), the system
                     automatically chooses the maximum field sizes so that an
                     overflow occurs only if the absolute value area limits are
                     exceeded.
                  4. You can also use special control break control structures
                     with LOOPs on internal tables.
    Variant 1     AT NEW f.
    Variant 2     AT END OF f.
    Effect        f is a field from the field group HEADER. The enclosed
                  sequence of statements is executed if
                  -  the field f occurs in the sort key of the extract dataset
                     (and thus also in the field group HEADER) and
                  -  the field f or a superior sort criterion has a different
                     value in the current LOOP line than in the preceding (AT
                     NEW) or subsequent (AT END OF) record of the extract
                     dataset.
                  If f is not an assigned field symbol, the control break
                  criterion is ignored, and the subsequent sequence of
                  statements is not executed. If a field symbol is assigned, but
                  does not point to the HEADER field group, the system triggers
                  a runtime error.
    Example
                  DATA: NAME(30),
                        SALES TYPE I.
                  FIELD-GROUPS: HEADER, INFOS.
                  INSERT: NAME  INTO HEADER,
                          SALES INTO INFOS.
                  LOOP.
                    AT NEW NAME.
                      NEW-PAGE.
                    ENDAT.
                    AT END OF NAME.
                      WRITE: / NAME, SUM(SALES).
                    ENDAT.
                  ENDLOOP.
    Notes         1. If the extract dataset is not sorted before processing with
                     LOOP, no control level structure is defined and the
                     statements following AT NEW or AT END OF are not executed.
                  2. Fields which stand at hex zero are ignored by the control
                     break check with AT NEW or AT END OF. This corresponds to
                     the behavior of the SORT statement, which always places
                     unoccupied fields (i.e. fields which stand at hex zero)
                     before all occupied fields when sorting extract datasets,
                     regardless of whether the sort sequence is in ascending or
                     descending order.
    Variant 3     AT FIRST.
    Variant 4     AT LAST.
    Effect        Executes the relevant series of statements just once - either
                  on the first loop pass (with AT FIRST) or on the last loop
                   pass (with AT LAST).
    Variant 5     AT fg.
                   Addition:
                   ... WITH fg1
    Effect        This statement makes single record processing dependent on the
                   type of extracted record.
                   The sequence of statements following AT fg are executed
                   whenever the current LOOP record is created with EXTRACT fg
                   (in other words: when the current record is a fg record).
    Addition      ... WITH fg1
    Effect        Executes the sequence of statements belonging to AT fg WITH
                   fg1 only if the record of the field group fg in the dataset is
                   immediately followed by a record of the field group fg1.
    Reward If Helpful
    Regards
    Sasidhar Reddy Matli.

  • Control chart limit calculation not being done

    Hi
    I have maintained MIC, sampling procedure and Insp plan for a char and have made two lots with them. Though charts are being displayed correctly, control limit calculation is not being possible. Msg is "Control limits for track 1 could not be calculated".
    What customization should be made for this?
    And in QGC1/2/3, only one insp lot is there, what went wrong?

    Dear Gajesh,
    I tried with status 3. When i remove lot created start date, it shows me the fist lot with which we statred SPC in SAP. But If i put any specified start date, it returns no value. Does that mean with status 3 it will show the very 1st lot with which SPC usage started? Then what are the cases for status 1 and 5?
    My sampling procedure setting is:
    sampling type: Fixed sample
    Valuation mode: SPC inspection
    W/O inspection point
    Sample size: 1
    Chart type:115 Shewhart chart for X bar/USA
    Inspection plan setting is:
    SPC criterion : 020 task list char/materia
    Base qty : 1KG
    Thanks!

  • All day calendar events not being displayed in the notification centre for iphone 5 post ios 7 upgrade. Please help. Is it a bug?

    All day calendar events not being displayed in the notification centre for iphone 5 post ios 7 upgrade. Please help. Is it a bug?
    With iOS 6, the all day events showed up in the notification centre but it lacks in the upgrade iOS 7.

    Same problem here. Some people pointed out that all-day events do show up in their notification center, but that seems only to be the case for birthdays (and only as text like the weather). I've tried it myself on my iPhone and iPad and it did work for birthdays but not for any other all-day events. I already sent this to Apple as a product feedback as well, as should everyone of you. The more people mention it, the faster Apple's going to fix this issue. In its current state, notification center is not a very helpful feature in my opinion. There's absolutely no point in not showing all-day events in the 'today' calendar overview.
    Here's a link to the product feedback page: http://www.apple.com/feedback/
    I posted my message in the iPhone section since I couldn't find a page specifically dedicated to iOS 7.
    I really love the look &amp; feel of iOS 7 but it's kinda sad to see notification center not tapping its full potential.
    Cheers!

  • At new control break statement

    hi all,
    I have a requirement where I have to display records for non duplicate matnr.
    I have used this control break statement and got
    stars for all other fields except matn in the outputr.
    code:    at new matnr.
                              write: /10 sy-vline , wa_mara-matnr COLOR 5,
                                      30 sy-vline , wa_mara-ersda COLOR 5 ,
                                      50 sy-vline , wa_mara-ernam COLOR 5 ,
                                      70 sy-vline , wa_mara-laeda COLOR 5 ,
                                      90 sy-vline , wa_mara-mtart COLOR 5 ,
                                      110 sy-vline , wa_mara-matkl COLOR 5 ,
                                      130 sy-vline , wa_mara-meins COLOR 5 ,
                                      150 sy-vline.
                            ENDAT.
    plese do send me solution for this.
    with regards,
    ASHA.

    FAQ. This has been discussed many times in the forum. Please search.

  • ISE CSR not being displayed

    I have an ISE Primary Monitor node that the Server Certificate has expired.  I generated a new CSR and it reported that it was created and could be viewed under the Certificate Signing Requests tab but it never showed up.  Tried to re-generate but it now states that it already exists.  Rebooted the device to see if that would fix the issue but the CSR is still not showing.  For a test I created another CSR using the ip address of the device as the CN; and again it reported that it could be viewed but is not being displayed under the CSR tab.  These are the log items when I created the initial CSR and what it shows when I tried to create another using the same CN. The version of ISE is 1.1.3.124.  I was able to create CSR and update Certificates on the Administration/Policy nodes.
    237 INFO  2014-09-22 11:43:07,237  [http-443-29][] cpm.admin.infra.action.LocalCertAddAction- Certificate Signing Request DC-ISE-2_int_fhfa_gov#PID$_NAC3315-SVR_______$_VID$_V01$_SN$_KQ586M0____ was created successfully. 2014-09-22 11:43:16,
    174 ERROR 2014-09-22 11:44:33,174  [http-443-29][] cpm.admin.infra.action.LocalCertAddAction- Unable to import certificate : com.cisco.cpm.infrastructure.certmgmt.api.CertMgmtException: Resource Name 'NAC Group:NAC:CertificateRequests:DC-ISE-2_int_fhfa_gov#PID$_NAC3315-SVR_______$_VID$_V01$_SN$_KQ586M0____' already exists. 2014-09-22 11:44:36,
    Thanks

    Tried generating another CSR from a different app but no success.
    Opened a TAC case and was told that this is a bug CSCuh91639,  Worked with TAC engineer to have them go into the DB with root access on this node and the primary node to delete the CSR.  Also had de-register the ISE from the deployment and then reset the ISE to default setting to have it create a new self signed cert to allow re-registering the device into the deployment.  After this I was able to create a CSR and generate a cert from our CA.  
    Will look into updating to 1.2 since this bug is fixed in that version.

Maybe you are looking for