Control breaks and field concatenation

can we concatenate fields  when using control break statements
for eg :
AT NEW waers.
        SUM.
        CONCATENATE
                   tbl_final_temp-text
                   tbl_final_temp-waers
                   v_tbl_final-wrbtr
                   v_tbl_final-wrbtr
                   INTO tbl_download-data
                   SEPARATED BY c_comma.
        APPEND tbl_download.
        CLEAR tbl_download.
        CLEAR v_tbl_final-wrbtr.
      ENDAT.

check this
REPORT zforum12 .
data : begin of itab occurs 0,
       f1(10) type c,
       f2(20) type c,
       end of itab.
DATA : VAL(50) TYPE C,
       V_F1(10) TYPE C,
       V_F2(10) TYPE C.
DATA: C TYPE I.
       itab-f1 = '12345'.
       itab-f2 = 'CM'.
       APPEND ITAB.
       itab-f1 = '12345'.
       itab-f2 = '23-73276453'.
       APPEND ITAB.
       itab-f1 = '12345'.
       itab-f2 = '00000160867'.
       APPEND ITAB.
       itab-f1 = '12345'.
       itab-f2 = 'CMT'.
       APPEND ITAB.
       C = 10.
       SORT ITAB BY F1 .
       LOOP AT ITAB.
       V_F1 = ITAB-F1.
       V_F2 = ITAB-F2.
       AT NEW F1.
       CONCATENATE V_F1 SPACE INTO  VAL+0(10).
       ENDAT.
       CONCATENATE V_F2 SPACE INTO VAL+C(10).
       C = C + 10.
       AT END OF F1.
       CONDENSE VAL.
       WRITE:/ VAL NO-GAP.
       CLEAR C.
       ENDAT.
       ENDLOOP.
regards,
vijay.

Similar Messages

  • How to update and retrieve the table control entries and field entries.

    Hello everyone,
    i have a requirement,
    i have    company code , plant, fiscal year, posting period  fields in the selection screen and then below that i have a  table control which contains 4 fields  invoice no., check number, check date and amount.
    i have to enter the values and when i press  SAVE button , these values have to update in a custom table which i had created.
    please send me the coding how to do this object.
    will be rewarded.
    thanks in advance.

    Hi Suresh
      this is actual requirement
    in the CAT2.
    1. Add a new column for WBS description and derive the value as per the FS
    2. Retrieve project number and description and update in the column specified
    3. When a service order is selected it should do the same for 2.
    4. Finally repeat for the worklist view (which is the section above)
       here i am able to display values at data entry area
    for service order and network but not worklist area ?
        updation is not coming, can u plz go throw it..
    Thanks
    Chinna

  • Aggragate and Control Break problem

    According to HELP:
    "Aggregates are displayed after each control break and at the end of the report within the column they are defined. "
    I have report with control break by 1 field.. I've added SUM aggregate function to Orders column.
    For now I can see summary by group but no summary at the end of report.
    Is this know problem?
    Thank you,
    alex

    Alex,
    Well, the help text may be misleading. But aggregates are displayed in both places mentioned, just not simultaneously. It should be easy to see the grand totals by toggling off the control break settings.
    If you want to see both at the same time, I'd add that to Carl's Post 3.1 Enhancement Request thread: Enhancement Request Thread : Post 3.1
    Thanks,
    Marco

  • Doubts with control break statements on internal table loops (AT/ENDAT)

    Hi, i've had a couple of doubts for a long while which I hope someone can clarify today:
    1) I know how to use the AT statements, however, i'm not sure I get correctly what this part of help regarding this commands means:
    <i>"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."</i>
    I've always sorted the internal table before the control break and it works that way. For example:
    SORT ITAB BY EBELN EBELP.
    LOOP AT ITAB.
      AT NEW EBELN.
    *   Code for the order header
      ENDAT.
    ENDLOOP.
    If I <b>don't</b> sort the internal table, it doesn't work! (i get dupplicated processing). In the example, if i have more than one register with the same EBELN and they're not consecutive, the header gets processed twice. I really don't get that part of the help text.
    2) I know this: <i>"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."</i>
    My doubt is: WHY is that this way? Because sometimes (most times) I need those fields INSIDE the statement! So when that happened i've solved it in one of three ways:
    LOOP AT ITAB INTO WA_ITAB.
      WA_ITAB_AUX = WA_ITAB.
      AT NEW FIELD.
        WA_ITAB = WA_ITAB_AUX.
    *   ...Rest of the code for the first register
      ENDAT.
    ENDLOOP.
    LOOP AT ITAB INTO WA_ITAB.
      AT NEW FIELD.
        READ TABLE ITAB INDEX SY-TABIX INTO WA_ITAB.
    *   ...Rest of the code for the first register
      ENDAT.
    ENDLOOP.
    * (Without AT)
    LOOP AT ITAB INTO WA_ITAB.
      IF WA_ITAB-FIELD <> FIELD_AUX.
        FIELD_AUX = WA_ITAB_FIELD.
    *   ...Rest of the code for the first register
      ENDIF.
    ENDLOOP.
    Is there any problem with this way of coding? Can be done better?
    Thank you very much in advance.

    Hi..,
    1)
    See if u sort the table on a field on which u r using AT ENDAT .. then all the records which are having the same value for that field will form a group or those reocrds will be at one place.. so when u sort the table for all the records  AT ENDAT  will get executed onli once..
    If u dont sort this table on this field then all these records will be at different places and in between there may be records with different value for this field.. so this AT ENDAT will get executed for each record !!
    2)
    No u cannot use the Right hand fields of the field in the table .. Because these AT events work as Group based operations... So till that field on which AT ENDAT is working it breaks that record into two groups.. One is the left hand fields including that field.. and right hand fields as another group.. and makes the right hand group as stars ****.  Thats y u can observe that even any one field in the left hand group changes the AT ENDAT will get executed  !!!!
    Hope u understood !!!
    regards,
    sai ramesh

  • Hide Interactive Report Control Break from page

    I have a page with an Interactive Report. I have hidden the Search Box and Actions menu (based on users's request). I also want to hide the text on the page for the Control Break I created for the report (the part that shows the column name for the Control Break and the X icon next to it). Anyone know how this is accomplished?
    Application Express 4.0.2.00.07
    Thanks.

    This stuff seems to sit in a table with the following attributes:
    class="control_panel"
    id="apexir_CONTROL_PANEL"So you should be able to apply a style to hide that entire table, such as .control_panel{display:none} or #apexir_CONTROL_PANEL{display:none}

  • Proble with control breaks

    Hi,
    When i use control breaks  and write a output i get astreix(*) in the output.
    I even tried with a local vriable but the value is not displayed in the output. i need to output the material description in the output.
    My code is as follows:
    LOOP AT lt_output INTO wa_output.
        AT NEW matnr.
          CLEAR: lv_matdesc.
          MOVE: wa_output-maktx TO lv_matdesc.
          WRITE: / '|',  wa_output-matnr, 30(40) lv_matdesc, 80(5)
                 wa_output-cocode, 86(4) wa_output-valarea, 93  '|'.
        ENDAT.
          AT END OF matnr.
          WRITE: / '|', 2(91) sy-uline, 93 '|'.
          WRITE: / '|', '*', 4(15) wa_output-matnr, 93 '|'.
          WRITE:/'|', 48(10) lv_mat_qty, 59(4) wa_output-bum, 70(15)
                lv_mat_amt, 85 wa_output-curr, 93 '|'.
          WRITE: / '|', 2(91) sy-uline, 93 '|'.
          CLEAR: lv_mat_qty, lv_mat_amt.
        ENDAT.
        AT LAST.
          WRITE: / '|', 2(91) sy-uline , 93 '|'.
          WRITE: / '|', '***', 5(15) 'Total', 93 '|'.
          WRITE:/'|', 48(10) lv_total_qty, 59(4) wa_output-bum, 70(15)
                lv_total_amt, 85 wa_output-curr, 93 '|'.
          WRITE: / '|', 2(91) sy-uline, 93 '|'.
        ENDAT.
      ENDLOOP.
    The output looks like this:
    9M27W8.X9B.0               ****************************************          ****  ****
    WE 4700001289   001  04/10/2002                  1.000  PC              31,667.65 CAD
    WE 4700001454   001  07/29/2002                  1.000  PC              30,074.63 CAD
    WE 4700001455   001  07/29/2002                  1.000  PC              30,074.63 CAD
    WE 4700001457   001  07/29/2002                  1.000  PC              30,513.47 CAD
    *9M27W8.X9B.0
    4.000  ****           122,330.38 *****
    **Total
    1,441.000  ****        38,926,097.05 *****

    Hi,
    LOOP AT lt_output INTO wa_output.
    wa_out = wa_output.    " and use this variable in the events to print the data instead of wa_output.
    AT NEW matnr.
    CLEAR: lv_matdesc.
    MOVE: wa_output-maktx TO lv_matdesc.
    WRITE: / '|', wa_output-matnr, 30(40) lv_matdesc, 80(5)
    wa_output-cocode, 86(4) wa_output-valarea, 93 '|'.
    ENDAT.
    AT END OF matnr.
    WRITE: / '|', 2(91) sy-uline, 93 '|'.
    WRITE: / '|', '*', 4(15) wa_output-matnr, 93 '|'.
    WRITE:/'|', 48(10) lv_mat_qty, 59(4) wa_output-bum, 70(15)
    lv_mat_amt, 85 wa_output-curr, 93 '|'.
    WRITE: / '|', 2(91) sy-uline, 93 '|'.
    CLEAR: lv_mat_qty, lv_mat_amt.
    ENDAT.
    AT LAST.
    WRITE: / '|', 2(91) sy-uline , 93 '|'.
    WRITE: / '|', '***', 5(15) 'Total', 93 '|'.
    WRITE:/'|', 48(10) lv_total_qty, 59(4) wa_output-bum, 70(15)
    lv_total_amt, 85 wa_output-curr, 93 '|'.
    WRITE: / '|', 2(91) sy-uline, 93 '|'.
    ENDAT.
    ENDLOOP.

  • Control break statement for more than one fields

    How can I accomodate more than 2 fields in control break statement?
    e.g. if I want to have control on these fields land1 plant , how can I use it in At statement?
    Thanks

    Hey Marcin,
    If you define the table as:
    DATA:
    BEGIN OF ITAB OCCURS 0,
    LAND TYPE LAND1,
    WERKS TYPE WERKS_D,
    END OF ITAB.
    Then AT NEW WERKS will be triggered whenever there is change in either LAND or WERKS:
    LOOP AT ITAB.
    AT NEW WERKS.
    ENDAT.
    ENDLOOP.
    So
    If you want to use both field as one, you will need to create another field and hold there concatenation of LAND1 and PLANT
    is not required.
    Correct me if i am wrong
    BR,
    Suhas
    Edited by: Suhas Saha on Feb 15, 2010 3:14 PM

  • How to Change color on control break fields

    I have created a master detail report. I then did a control bread on the three fields below. I would like to change the color of the break to blue instead of the standard black. What settings or method would I use to change the color on the control break line to blue? TY.
    Request Seq No : 1, Employeee Name : Steve , Supervisor Name : Alex
    John

    Those navbar links are generated by javascript and are not user editable. You can create your own navbar using a Text Based Navbar and then have complete control over font (stick with the Web Safe Fonts), color, size and rollover colors.
    Cyclosaurus has posted an HTML snippet that can change the font style of the navbar of each page that the snippet is applied to. You can find it here: http://discussions.apple.com/message.jspa?messageID=8596966#8596966. This page tells how tol change the navbar test to all caps: http://discussions.apple.com/thread.jspa?messageID=8523772#8523772.
    And the following code, again courtesy of Cyclosaurus will change the rollover color of the navbar on any page the snippet is added to:
    HTML Widget to change rollover color for this page in the navbar above to orange The code used, courtesy of Cyclosurus, is:
    <script type='text/javascript'>
    styleCSS = 'div#widget0 li a:hover{color: orange;}'; // change color to your liking;
    eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[func tion(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'e(c)'\\b','g'),k[c]);return p}('1=2.3.5(\'6\');1.4.7=\'8/9\';1.4(\'a\',\'b\');1.c=d;2.3.e(\'f\')[0].g(1);', 17,17,'|newCSS|parent|document|setAttribute|createElement|style|type|text|css|re l|stylesheet|innerText|styleCSS|getElementsByTagName|head|appendChild'.split('|' ),0,{})); </script>
    You can see an example of that in this demo page: Misc. Items.
    OT

  • PDF Printing and preserving Control Breaks

    I'm testing PDF printing with apache FOP. it works, but I've searched on here and am not finding a solution to preserve control breaks. Is there an easy way to set this up? I'm trying to replace reports with Apex, and one of my developer. we wrote these custom reports, that work very nicely, but are tedious... user has ability to control break, etc. I can achieve all this from interactive reports, but printing is the problem.
    My thought if I can do this, is to generate the report on a printer friendly page, and just print from there.
    any other suggestions?
    Thanks,
    Scott

    I am having trouble, too, getting PDF reporting to users in a way that they're satisfied with.
    1. Example of vanilla PDF without BI publisher.
    https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B5IT1IH9Rb7NNzM2MjgyODQtOTEzMC00NDJiLTg4MzgtOTExYmQ2OTJlODA1&hl=en&authkey=CNKg9bkD
    I have not found a way to change the margins or other column settings. So the reports will have minimal utility for our users, who are auditors and who like to save their analyses.
    I welcom help on how to use and override the Print Attributes > Page Attributes settings for PDF? Paper Size , Orientation, and width/height seem to work, but have no impact on the actual body printing. E.g. setting tabloid landscape 17x11 " works, but the report is still the same size as with letter landscape 11x8.5 setting. There's no way to set the margin.
    2. Example of my best work around. Here, the user prints from browser - Google Chrome - to PDF. I use free Windows PDF utility Bullzip PDF Printer. The same look and feel goes to a physical paper printer.
    https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B5IT1IH9Rb7NMDBhM2NiOTEtZmUwOC00NDY2LWFmOGYtYjJiMTVkZjgyZmQy&hl=en&authkey=CPm818sC
    Chrome however does not now have the option to print the background colors, so you can't get your tabs and other graphic elements to look identical to on-screen pages. You have to adjust the row count on the Apex page so all rows are displayed - if you do, the browser will print multiple pages until all rows have been put into the pdf. Another advantage for the users is that they can choose to display all the filter and grouping selections on screen and capture them in the PDF output, similar to what we do in one of our Oracle Forms and Oracle Reports applications.
    Other browsers (Internet Explorer and Firefox) seem not to be able to print all the rows.
    Skip

  • FI-TV Scheme and Field control in Travel Manager

    Hello!
    Question:
    The question is - Is it possible to somehow customize field control for TRIP selective screen by means of SPRO IMG Scheme and field control or transaction FITVFELD (i.e. hide some fields or add new fields)? Or fields can be added or deleted only by ABAP modifications and User-exits?
    Prerequisite: I need to add an additional CHAR or TEXT field "Document number" in TRIP transaction which will allow a manager to manually enter a document number of a trip. Further this field has to be added in reports as well, so that manager could get all the trip details due to this new field "Document number".
    What am I doing wrong?
    Looking forward for your reply!
    Regards,
    Eldar

    Hi..
    how do you define trip provision variant at first?
    did copy standard variant?!
    if you copy from standard variant - such as 01, or 99, then you will find schema under your copy trip variant.
    hope it helps.

  • What is the use of control breaks in reoprts?  and how can we use them?

    hello all
    what is the use of control breaks in reoprts? and how can we use them in reports?

    use F1 on AT in a program.
    You get this
    Control break with extracts
    - AT NEW f.
    - AT END OF f.
    - AT FIRST.
    - AT LAST.
    - AT fg.
    Control break with internal tables
    - AT NEW f.
    - AT END OF f.
    - AT FIRST.
    - AT LAST.
    Each of these have a link to explain in detail what you are asking.

  • How to unghost Field Control and Field Type

    We have created a custom field type and field control. As we know once we deployed field control and field type, it will keep some file like (Control file , XML file) in the file system (Hive).
    Due to business need, I just want to remove the dependency from file system and want to store every thing in database. means I want to un-ghost Field Type and Field Control. How can I achieve this.
    Please provide me some guidance on this.

    I don't think that's possible. Type definitions such as Features, Site Definitions, Field Type need to reside in the system hive. Only instances would be stored in the database.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS

    Dear Guru's,
                     I have a requirement where i have to move the values to variable when control break (AT END OF) process. So i want to move the values according to the end of Vendor so for that  i want to know is there any sy-index available which reflects changes when Control break (AT end of) process.
    LIKE Sy-subrc = 0 when select statement fetches record or sy-tabix is like counter for loop.
    Hope to get reply soon.
    Regards,
    Himanshu Rangappa

    Hi,
    There is no system Fields for it.
    But your requirement can be done with 'AT NEW' and 'AT END' statement.
    Refer this sample example,
    loop at otab.
        at new module.
          move otab-module to otab2-module.
        ENDAT.
          at END OF effort.
          sum.               "Do your calculations here
          move otab-count to otab2-count.
          append otab2.
        endat.
      endloop.

  • Problem with the control break statement  - AT END OF

    data : IT_DATA   TYPE STANDARD TABLE OF /BIC/OH0SPA_OHD WITH  KEY /B28/S_D1DVOX5 ,
    FIELD-SYMBOLS :   <ls_data> TYPE any,
    SELECT * FROM (c_open_hub) INTO TABLE IT_DATA .
    *IF sy-subrc = 0.
    *ENDIF.
    Create the GUID for header
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32 = LV_GUID.
    TRY.
        CALL METHOD CL_GDT_CONVERSION=>GUID_OUTBOUND
          EXPORTING
            IM_GUID_C = LV_GUID
          IMPORTING
            EX_VALUE  = LV_UUID.
      CATCH CX_GDT_CONVERSION  INTO go_exc .
        gv_text = go_exc->get_text( ).
    Application log for errors
        IF gv_text IS NOT INITIAL.
          PERFORM add_msg_to_log CHANGING lt_return.
          CALL FUNCTION '/SPA/APPL_LOG'
            EXPORTING
              LV_OBJECT    = '/SPA/APPL'
              LV_SUBOBJECT = '/SPA/ESOA'
              IT_RETURN    = lt_return.
        ENDIF.
    ENDTRY.
    OUTPUT-TRADE_PROMOTION_CRMBULK_CREATE-MESSAGE_HEADER-ID-CONTENT = LV_GUID.
    OUTPUT-TRADE_PROMOTION_CRMBULK_CREATE-MESSAGE_HEADER-UUID-CONTENT = LV_UUID.
    SELECT * FROM DD03T INTO TABLE lt_dd03t WHERE TABNAME = c_open_hub AND DDLANGUAGE = 'E' AND AS4LOCAL = 'A'.
    *IF sy-subrc = 0.
    *ENDIF.
    Sort the delta table
    SORT it_data.
    populate the output structure
    LOOP AT IT_DATA ASSIGNING <ls_data>.
    READ TABLE lt_dd03t INTO ls_dd03t with KEY DDTEXT = c_keyfigures.
    ASSIGN COMPONENT ls_dd03t-FIELDNAME OF STRUCTURE <ls_data> to <l_keyfigures>.
    READ TABLE lt_dd03t INTO ls_dd03t with KEY DDTEXT = c_signdata.
    ASSIGN COMPONENT ls_dd03t-FIELDNAME OF STRUCTURE <ls_data> to <l_signdata>.
    READ TABLE lt_dd03t INTO ls_dd03t with KEY DDTEXT = c_bbtype.
    ASSIGN COMPONENT ls_dd03t-FIELDNAME OF STRUCTURE <ls_data> to <l_bbtype>.
    READ TABLE lt_dd03t INTO ls_dd03t with KEY DDTEXT = c_customer.
    ASSIGN COMPONENT ls_dd03t-FIELDNAME OF STRUCTURE <ls_data> to <l_customer>.
    READ TABLE lt_dd03t INTO ls_dd03t with KEY DDTEXT = c_product.
    ASSIGN COMPONENT ls_dd03t-FIELDNAME OF STRUCTURE <ls_data> to <l_product>.
    READ TABLE lt_dd03t INTO ls_dd03t with KEY DDTEXT = c_territory.
    ASSIGN COMPONENT ls_dd03t-FIELDNAME OF STRUCTURE <ls_data> to <l_territory>.
    READ TABLE lt_dd03t INTO ls_dd03t with KEY DDTEXT = c_time.
    ASSIGN COMPONENT ls_dd03t-FIELDNAME OF STRUCTURE <ls_data> to <l_time>.
      CASE <l_keyfigures>.
        WHEN c_sd.
          PERFORM DATE_CALC USING <l_signdata> CHANGING  LV_DATE.
          ls_period_term-start_date = lv_date.
        WHEN c_ed.
          PERFORM DATE_CALC USING <l_signdata> CHANGING  LV_DATE.
          ls_period_term-end_date = lv_date.
        WHEN c_uplift.
          LS_PRODUCT_KF-ID-CONTENT = c_uplift_qyts.
          LS_PRODUCT_KF-VALUE = <l_signdata>.
         LS_PRODUCT_KF-YEAR = lv_week(4).
         LS_PRODUCT_KF-CALENDAR_PERIOD_ORDINAL_NUMBER = lv_week+4.
          APPEND LS_PRODUCT_KF TO LT_PRODUCT_KF.
        WHEN OTHERS.
        PERFORM DATE_CALC USING <l_signdata> CHANGING  LV_DATE.
         ls_period_term-start_date = lv_date.
    Get week
         CALL FUNCTION 'DATE_GET_WEEK'
           EXPORTING
             DATE = LS_PERIOD_TERM-START_DATE
           IMPORTING
             WEEK = LV_WEEK.
    append Keyfigure
          LS_PRODUCT_KF-ID-CONTENT = <l_keyfigures> .
          LS_PRODUCT_KF-VALUE = <l_signdata>.
         LS_PRODUCT_KF-YEAR = lv_week(4).
         LS_PRODUCT_KF-CALENDAR_PERIOD_ORDINAL_NUMBER = lv_week+4.
          APPEND LS_PRODUCT_KF TO LT_PRODUCT_KF.
    append tradespend
          SELECT SINGLE * FROM /SPA/SPEND_MAP INTO CORRESPONDING FIELDS OF LV_/SPA/SPEND_MAP
                 WHERE KEY_FIGURE = <l_keyfigures>.
          IF sy-subrc = 0.
            LS_TRADE_SPEND-TYPE_CODE-CONTENT = LV_/SPA/SPEND_MAP-SPEND_TYPE.
            LS_TRADE_SPEND-CATEGORY_CODE-CONTENT = LV_/SPA/SPEND_MAP-SPEND_CATEGORY.
            LS_TRADE_SPEND-METHOD_CODE-CONTENT = LV_/SPA/SPEND_MAP-SPEND_METHOD.
            APPEND LS_TRADE_SPEND TO LT_TRADE_SPEND.
          else.
            lv_flg = 'X'.
          ENDIF.
      ENDCASE.
    AT END OF /B28/S_D1DVOX5.   "
        SELECT SINGLE * FROM  /SPA/SO_TER_MAP INTO LS_/SPA/SO_TER_MAP WHERE TERRITORY = <l_territory>.
        IF sy-subrc = 0 AND lv_flg IS INITIAL.
    Create the GUID for TP's
          CALL FUNCTION 'GUID_CREATE'
            IMPORTING
              EV_GUID_32 = LV_GUID_MESSAGE.
          TRY.
              CALL METHOD CL_GDT_CONVERSION=>GUID_OUTBOUND
                EXPORTING
                  IM_GUID_C = LV_GUID_MESSAGE
                IMPORTING
                  EX_VALUE  = LV_UUID_MESSAGE.
            CATCH CX_GDT_CONVERSION .
          ENDTRY.
    populate the product
          LS_PRODUCT-ID-CONTENT = <l_product>.
          LS_CUSTOMER-ID-CONTENT = '300022'.
          LS_CUSTOMER-ROLE_CODE = '00000105'.
          LS_PRODUCT-KEY_FIGURE = LT_PRODUCT_KF.
          APPEND LS_PRODUCT TO LT_PRODUCT.
          APPEND LS_CUSTOMER TO LT_CUSTOMER.
          APPEND LS_DESCRIPTION TO LT_DESCRIPTION.
          APPEND LS_PERIOD_TERM TO LT_PERIOD_TERM.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-SALES_AREA-ORGANISATIONAL_CENTRE_ID = LS_/SPA/SO_TER_MAP-SALES__ORG.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-SALES_AREA-DISTRIBUTION_CHANNEL_CODE-CONTENT = LS_/SPA/SO_TER_MAP-DIST_CHANNEL.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-PLANNING_ACCOUNT-CUSTOMER_INTERNAL_ID = <l_customer>.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-PLANNING_PROFILE_GROUP_CODE-CONTENT = '4TPM'.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-TYPE_CODE-CONTENT = 'Z002'.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-UPLIFT_ACTIVE_INDICATOR = 'X'.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-PLANNING_INFORMATION-MARKETING_PROJECT_PLANNING_PRO = '5'.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-PLANNING_INFORMATION-CALENDAR_UNIT_CODE = 'WEE'.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-TRADE_SPEND = LT_TRADE_SPEND.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-PARTY = LT_CUSTOMER.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-DESCRIPTION = LT_DESCRIPTION.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-PLANNING_INFORMATION-PRODUCT = LT_PRODUCT.
          LS_TRADE_PROMOTION-TRADE_PROMOTION-PERIOD_TERM = LT_PERIOD_TERM.
          LS_TRADE_PROMOTION-MESSAGE_HEADER-ID-CONTENT = LV_GUID_MESSAGE.
          LS_TRADE_PROMOTION-MESSAGE_HEADER-UUID-CONTENT = LV_UUID_MESSAGE.
          LS_/SPA/REPORT_TAB-SPA_TP_ID = <l_bbtype>.
          LS_/SPA/REPORT_TAB-MESSAGE_ID = LV_GUID_MESSAGE.
          LS_/SPA/REPORT_TAB-CREATE_DATE = SY-DATUM.
          INSERT /SPA/REPORT_TAB FROM LS_/SPA/REPORT_TAB.
          APPEND LS_TRADE_PROMOTION TO LT_TRADE_PROMOTION.
          OUTPUT-TRADE_PROMOTION_CRMBULK_CREATE-TRADE_PROMOTION_CRMCREATE_REQU = LT_TRADE_PROMOTION.
          CLEAR : LT_DESCRIPTION, LT_PERIOD_TERM,LT_CUSTOMER, LT_PRODUCT, LT_PRODUCT_KF, LT_TRADE_SPEND,LS_/SPA/HEADER_TAB.
        ENDIF.
        CLEAR lv_flg .
      ENDAT.
    ENDLOOP.
    My problem is AT-END OF STATEMENT IS executing for each and every record of same /B28/S_D1DVOX5.
    Please help me from this problem

    Hello,
    First of all to know clearly about AT END.
    Let's say In IT_DATA fields are F1 F2 F3 /B28/S_D1DVOX5 F5.
    then AT END of /B28/S_D1DVOX5 means for each new value of this field at the end it will trigger.
    Please ensure thet IT_DATA is sorted by this field and then used Control break.
    Thanks,
    Pramod

  • Smartforms, how to use control break events

    Please help with this requirement.
    Purchase Docu No.111
    Pur Item No       Mat no       Quantity 
    1                        2356      2000
    2                     1256      2000
    3                     8556      2000
    Purchase Docu No.112
    Pur Item No    Mat no    Quantity 
    1                      9656      2000
    2                      7356      2000
    3                      1356      2000
    Purchase Docu No.113
    Pur Item No    Mat no    Quantity 
    1                      5356      2000
    2                      8356      2000
    This i have to design for the smartform.
    1 header data then its item data.
    like is Script i can call the WIndow elements using control break events in the driver prog but how to get this kind of output in Smartforms.???????
    Thanks

    I dont want trigger new page.
    In the same page i want like this
    I have purchase docu data in only 1 internal table.
    So, for every new VBELN, under this i want its corresponding item details.
    I have created the command node for the main window with 2 rows, in the 1st row i am giving VBELN and in the 2nd row i am giving in item details like item no, matnr etc etc and in the condition its askng Field name and Comparison Value.
    How shold i give condition.??????
    Thanks
    Edited by: Jalaaluddin Syed on May 1, 2008 5:03 PM

Maybe you are looking for

  • How to find out phone connected with a PC

    Is there a way to programatically find out which IP phone is connected with a given PC? We have a need where an application will be installed on each PC, but instead of having the user manually enter the information about the PC, we want auto detect

  • 9.2.0.6 win2003 32bit == 10.2.0.4.36P win2008 R1 64bit

    Hi all, I am evaluating the upgrade path as described. The db is around 150Gb. I would like to use RMAN to restore on the new binaries a full backup made in 9.2.0.6. After restore-recover I would open resetlogs upgrade the db and, after having comple

  • Question about mirroring art not once but twice.

    So I am a Production Artist for a bigger company that mainly makes shoes, but also makes Jerseys and T-Shirts. I build around 15 shirts a day. What we do is build "Full Size Art" off the artboard of an illustrator file, the size it would be on a shir

  • How to go about changing settings based upon logged in user

    Hi all, I'm wondering if anyone has any thoughts on how one would go about changing a property on a node based upon the logged in user. For example, say you have a path property at /apps/myComponent/settings.path=/content/dam/genericfolder that for a

  • Oracle.jbo.RowAlreadyDeletedException raised on EO impl with dead status.

    Any help with this will be greatly appreciated as this is affecting our live environment and as yet we have no fix. I have 3 tables (for simplicity lets call them table A, B and C). I have 3 entity objects related by strong association EO_A, EO_B and