Editing Colspan in ABAP class

Hi experts,
We have a report modified to aggregate like this (along with the axis info):
           x1           x2               x3
y1  Plant 1 | workcenter 1 | Result kf
y2  Plant 2 | workcenter 2 | Result kf
y3  Plant 3 | workcenter 3 | Result kf
y4  -
Overall Result-------| Result kf
Plant and workcenter are characteristics, result kf is a kf along our structure. The overall results row is the results row based on the Plant column. in this case it takes up 2 columns, x1 - x2, which is correct. we have a requirement were we hide column 2, so we only see the Plants and the immediate results:
           x1                               x2                                     x3
y1  Plant 1 | Result kf
y2  Plant 2 | Result kf
y3  Plant 3 | Result kf
y4  -Overall Result--| Result kf
our problem is the overall results row. it seems that it spans 2 columns (x1-x2) and it will not work if we hide I_X = 2 (column 2), and based on the source code from the report there is a colspan = "2". Does anybody know how to remove this colspan setting, or how to manitpulate the colspan? we are using abap classes to modify the reports.
any help would be greatly appreciated as this is quite urgent. points to be awarded accordingly.
regards
mark

Try this way
class lcl_range definition.
  public section.
    types:
      t_matnr  type range of dmatnr.
    class-methods:
      r_matnr  importing v_matnr  type t_matnr,
endclass.

Similar Messages

  • TYPES statement in abap class to include structure

    hi ,
    i have declared following in a abap class...
    TYPES:
          zts_alv_line TYPE zmat_pr_costest_alv.
         TYPES:BEGIN OF ts_alv_line,
                include type zts_alv_line,
                matkl type mara-matkl,
                t023t type t023t-wgbez,
                lvorm type mara-lvorm,
                end of ts_alv_line.
         TYPES: tt_alv_data TYPE STANDARD TABLE OF ts_alv_line WITH DEFAULT KEY.
         DATA:
          alv_data TYPE tt_alv_data.
    now while refering to alv_data-matnr the sap is giving error that this component does not have matnr.
    please help.
    Edited by: Suhas Saha on Feb 3, 2012 1:11 PM

    TYPES: zts_alv_line TYPE zmat_pr_costest_alv.
    TYPES:BEGIN OF ts_alv_line,
                include type zts_alv_line,
                matkl type mara-matkl,
                t023t type t023t-wgbez,
                lvorm type mara-lvorm,
                end of ts_alv_line.
    Actually by defining this you've defined include as field of ts_alv_line. Actually ts_alv_line is a nested structure.
    I think you need to re-define the structure definition as:
    TYPES:BEGIN OF ts_alv_line.
          INCLUDE TYPE zts_alv_line.
    TYPES: matkl TYPE mara-matkl,
           t023t TYPE t023t-wgbez,
           lvorm TYPE mara-lvorm.
    TYPES: END OF ts_alv_line.
    BR,
    Suhas

  • BOR reference in ABAP Class

    Hello,
    I am writing method in ABAP class which I will link to the Workflow Step. I want  to access values of one of the Workflow Element which is Multiline and refering to BOR Object Type. My queries are as below:
    1. How should I define Importing Parameter of Method which will import values from the Workflow Element which is Multiline and refering to BOR object type.
    2. If I change value of that Workflow Element (Multipline refering to BOR object type)  in ABAP class method, will it be automatically reflected in Workflow Container due to binding?
    Edited by: Ashwin Sonkusare on Apr 1, 2011 3:35 PM

    Hi,
    1. How should I define Importing Parameter of Method which will import values from the Workflow Element which is Multiline and refering to BOR object type.
    Please create a table type same as workflow multiline element type. ( You can also use standard table if present ).
    Then use this table type as the type of the import parameter of the class.
    Then u can pass the multiline element of workflow to  abab calss
    2. If I change value of that Workflow Element (Multipline refering to BOR object type) in ABAP class method, will it be automatically reflected in Workflow Container due to binding?
    If u change the Workflow Element (Multipline refering to BOR object type) in ABAP class method, then  u need to update the values of the workflow multiline element through reverse binging ( binding abap class to WF ).
    Thanks and regards,
    SNJY

  • Macro swc_set_objectkey in ABAP Class

    Hello,
    I want to use macro swc_set_objectkey in ABAP class.  macro swc_set_objectkey is present in include <object>. I can not include <object> in ABAP class because it gives syntax error "You may only define classes, interfaces, or types in a CLASS-POOL". Can you please let me know what should be done in this case ?
    Edited by: Ashwin Sonkusare on Apr 6, 2011 1:55 PM

    Hi Rick,
    Is possible to use macros in abap classes ,
    review link
    http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4b130453d11d189430000e829fbbd/frameset.htm
    Regards.
    maopacheco.

  • How to model ABAP classes in a correct manner?

    Hi,
    I'm creating a conceptual design for an ABAP Objects program. The program should collect some data from standard tables like VBAK, VBAP, etc. (SD environment) in one flat structure/table, calculate some characteristic numbers for each dataset and finally write the datasets to my own flat DDIC table.
    This program should run every day as a planned job. There are some hundred up to 5000 datasets to be collected by my program every day...
    Now the question: Is it an usual manner to model a ABAP class representing one dataset. Every collected dataset would be represented by its own object at running time...
    I hope there are no performance issues!!
    Regards,
    Benjamin

    Creating "good" OO classes (I mean reusable, easily extendable, simple to use) is not so simple when you have to deal with a complex model. The only solution is first to read many documentations (http://www.sdn.sap.com/irj/scn/advancedsearch?query=ooProgrammingwithABAPObjects) and then experiment by oneself.
    This last is important, because even documentation does not provide exact inputs to all scenarios, and to the limits of the used OOP languages.
    Note: I already saw people create "bad" OO classes: simple to use and understand in the initial program, but can't be reused or extended at all. In fact, OO programs can be written as badly as a bad procedural program (I mean without OO), and a procedural program can be written as good as a good OO program (yes it's possible!)
    I remember I had rewritten complex classes (there was like inheritance from multiple classes) because my initial choice was not the right one, subclasses became standalone classes with delegation to the old parent class, and things like that. If I had initially released my classes in the first version (to be used by other developers), I probably should have duplicated them (more or less) to implement the new functions.
    An existing example of classes that you can't reuse for a slightly different goal, are the tree classes (cl_gui_alv_tree, cl_treemodel*, etc.), if you want to handle trees in memory in background (it dumps if you try to use these classes), that you need to duplicate and adapt. It could be used to handle sets (GS01 transaction), menus, workbench objects where-used lists, file system, etc. Even XML tree classes can't really be used to handle non-XML trees. Currently, you have to create your own code to work with trees in memory in background (by creating our own generic tree class, for building and traversing). I feel SAP might have created such a class and used it in all its tree classes (and we could have benefit from it!)
    Edited by: Sandra Rossi on May 5, 2010 2:08 PM GMT+1
    (Last chapter corrected a little bit)

  • Abap Class for Enterprise Service

    Hi guys.
    I've published as webservice in SAP ECC as enterprise service get it in Enterprise Service Workplace.
    I have two questions:
    1- How can I know the abap class associated to this enterprise service.
    2- Could I extend the functionality of this enterprise service? For instance I'd like to response with one more field. Is that possible or I have to create a new one?
    Thaks a lot.
    Regards.
    Edited by: Christian  Abad Chico on Feb 20, 2012 4:03 PM

    Hi
    May be the below link helps you,
    [http://wiki.sdn.sap.com/wiki/display/EmTech/PublishWeberviceinABAP,ConsumeWebserviceinABAPandAdobeFlex.]
    Regards,
    Vijay V

  • How to auto refresh planning application -- using ABAP Class?

    Hi
    I have written few planning functions and attached them in one single planning sequence. One of the planning function in this sequence is de-activate data slice checkmark in planning modeler. If I execute this planning function indiviually then it works great however when I use this function in sequence then second function in row doesnot identify changes made by first function(data slice inactivate) and thus throws errors.
    At the same time, if I refresh my planning session and re-execute the planning sequence then it does works as REFRESH activates the changes done by first function (de-activate data slice).
    I am wondering if there is any ABAP class that can trigger this auto refresh in background else some other method to do this auto refresh ?
    Please let me know if you have any thoughts on this one.
    Thanks and happy holidays
    Al
    Edited by: Al Gon on Dec 21, 2007 3:56 AM

    Hi Al,
    The planning fn to deactivate was ineffective in a sequence was because the sequence which executes the functions does it on the data in the buffer and not actually on saved data, while your deactivation would work on the data after its saved.
    You could perhaps run that function separately from the others in the sequence and save the data first and then perform your "deactivation" function.
    Merry Christmas
    Aby

  • Binding ABAP Class Attribute with BUS2038 in a Standard WF task

    Hi,
    I need help as mentioned in the subject line.
    In my standard task I am capturing event for BUS2038. In the General tab I have a ABAP class which has implemented IF_WORKFLOW. From BUS2038 I just need notification number.
    Since my source is a BO and my target is a class. How do I make this conversion and pass the data to my class?
    I know there are several solution but none have solved my concern.
    Thanks,
    Sridhar Karra.

    Hi,
    If you want to access teh attributes of the BOR inside a class emthod then you have to make use of teh MACROS.
    1. include INCLUDE CNTN01_SWC  in the class local macros section. and in the type groupsof the class include SWC0.
    2. Now if you know the key of the BOR instance then create a BOR object inside the class method as below
    DATA lo_object   TYPE SWC0_OBJECT.
    SWC0_CREATE_OBJECT lo_object '<BUSXXXX>' '<Key of the BOR>.
    the above line will create the instance of the bor inside the class method
    now inorder to access the attributes of the BOR  use the below code
    DATA lv_notif_no   TYPE  <type of the notification>.
    SWC0_GET_PROPERTY lo_object '<ATTRIBUTE NAME> lv_notif
    In this way you can access the BOR attributes inside a class method.
    Regards
    Pavan
    Edited by: Pavan Bhamidipati on Dec 15, 2011 11:01 PM

  • ABAP class method with dialogue

    Hi all,
    I want to use a ABAP class method within a Workflow definition with user interaction. The SAP help says, that is possible, but I couldn't find a way, to mark the method as "with dialogue".
    For BOR-objects there is a checkbox in the details for the method definition. Can anybody tell me, how it can be done?
    Thanks in advance
    Nick

    Hi Nicolas,
      When you create the Task with the ABAP OO Method, you can select it as "Background Processing" else it will be a "Dialog Process".
    If you notice here, "Background Processing" checkbox will be editable if ABAP OO Method is used, whereas in case of Business Objects it directly comes from method definition.
    Reward points if useful.

  • ABAP class in a Webtemplate

    Hi SDN,
    How to Use ABAP class in a Webtemplate.
    Thanks,
    Pilli

    Hi
    Please find the steps below for the process on how to go
    1. Open your Web template that contains the Web item Table and/or Generic Navigation Block in the BEx Web Application Designer.
    Use the HTML tab page to switch to the HTML view of the Web Application Designer.
      2.      Navigate to the Object Tag of the Web Item Table and/or the Web Item Generic Navigation Block (CL_RSR_WW_ITEM_GRID and/or CL_RSR_WWW_ITEM_NAV_BLOCK) and insert the following parameter line into the HTML:
    <object>u2026
    <param name=u201CMODIFY_CLASSu201C value=u201DYourClassNameu201D/>
    u2026</object>
    <object>u2026
    <param name=u201CMODIFY_CLASSu201C value=u201DZCL_RSR_WWW_MODIFY_TABLEu201D/>
    u2026</object>
       3.      Save the changes.
       4.      Execute the Web template in the browser.
    Many thanks
    kiran
    Edited by: Kirun k on Jul 3, 2009 11:24 AM

  • Replace Abap-class by Java for Error

    hi,
    i tried what was said in Michal tutorial :
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    but i faced some problems, first of all i dont have Abap-class in the settings of my Interface mapping i just only have java , XSL and also MM it s weird but anyway could i replace the Abap-class that read the dynamic configuration with a java-class mapiing that could write in the error tag of the soap header.
    i followed the steps described in the tutorial i mean the code in the UDF but i cant use the Abap-class mapping in my interafce mapping is there any other way to write in the Error tag of soap header in the SXMB_moni
    thanx

    Hey
    You need to add a parameter to exchange profile before you can see ABAP-class in Interface mapping,please follow the below steps:
    Go to http://<host:port>/exchangeProfile in internet explorer
    Expand IntegrationBuilder ->IntegrationBuilder.Repository->click on com.sap.aii.repository.mapping.additionaltypes link ,then on right hand side just type
    R3_ABAP|Abap-class in i/o field. and save.
    You may need to restart Java engine for this take effect.
    Thanks
    Aamir
    Edited by: Aamir Suhail on Aug 5, 2009 1:02 PM
    Edited by: Aamir Suhail on Aug 5, 2009 1:02 PM

  • ABAP class mapping in PI (7.0)

    I just switched from XI (3.0) to PI (7.0).
    I tried to move one of my interfaces, but in Interface Mapping there is no "ABAP-class" option. How to use ABAP mapping in PI?

    Hi Mariuszu
    you need to enable it as described here
    in the exchange profile
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    or you can ask us directly via mail
    Regards,
    michal

  • Shooping cart creation in SRM 7.0 using web dynpro ABAP classes.

    Hi,
    We have recently upgraded to SRM 7.0 from SRM 4.0. We are using customized portal application for the creation of the shopping cart.I am planning to create custom FM which will use the standard Web dynpro ABAP classes to create the shopping cart.
    Could you please guide with the classes that are need to be implemented and the sequence of the classes used in the shopping cart creation.
    I think these are the classes that are used in the standard web dynpro ABAP component.
    CL_FPM_EVENT ->                  Creates an instance of this class based on an event ID.
    CL_BADI_FLT_DATA_TRANS_AND_DB -> Data Handling: Transport and Database.
    CL_EXITHANDLER ->               Class for Ext. Services Within Framework of Exit Technique.
    CL_EX_BBP_DOC_CHANGE_BADI ->     BAdI Class CL_EX_BBP_DOC_CHANGE_BADI.
    CL_BBP_OBJECTS_ACCESS ->         Access Functions for Object Types.
    /SAPSRM/CL_PDO_BO_SC ->          Shopping Cart BO.
    Your expert comments will be appreciated...
    Regards,
    Naresh

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • File to Proxy Scenario using ABAP Class and DB Multi Connect

    Hello Friends,
    I have a scenario below and a proposed solution. I would like some input as to whether i am headed the right way.
    Scenario: Thousands of records come in from the legacy accounting system. The fields of these records need to be mapped to SAP fields using cross-reference tables stored in DB2. Finally, summarize the records by deleting a few fields and feed to R/3.
    Solution i proposed:
    (1) File Adapter is used to send the file
    (2) Although JDBC adapter comes first to mind but since i need to access the DB2 tables multiple times for each record i propose to use an ABAP class for the mapping. Within the ABAP class the intent is to open an database connection to DB2, read the relevant cross tables using native SQL and finally generate the output XML.
    (3) Reciever is Proxy which feeds this generated XML to SAP for creating posting via BAPI_ACC_DOCUMENT_POST
    Question: Is the above solution correct or is there a better method to implement this scenario?
    Please let me know.
    Thanks,
    Minhaj.

    Looks fine. Few observations -
    1. Whether it is ABAP class or Mapping in RFC lookup, you are making multiple trips to the database.
    2. It looks like PI is being used only for reading the file and converting it to XML.
    3. If using PI is not mandatory, then a complete ABAP class on ECC it self would be faster than swtching between PI Java, PI ABAP then round trips to DB2 finally data push to ECC.
    If you could look at something like fetching all the required RFC look up data in one go and then map the fields according, might save u on processor and network resources.
    VJ

  • ABAP Class not displaying in operation mapping.

    HI,
    I have created abap class using se24 for throwing exception message in sxmb_moni, this abap class needs to be called in operation mapping, even though i have activated this abap class in PI environtment, i couldnt see the abap class option in the operation mapping.
    Could any one please let me know any change profiles requirements are required,
    Thanks,
    --Sai

    Hi Sai,
    Yes, you do have to register ABAP Class Mapping in the Exchange Profile to see this option in the Operation Mapping. Follow these step-by-step configuration guidelines:
    http://www.riyaz.net/sap/xipi-how-to-register-abap-mapping-in-exchange-profile/624/
    Hope this helps,
    Greg

Maybe you are looking for

  • Chapter Markers won't show up on Chapter Menu when trying to burn a DVD.

    Help, Trying to burn an SD DVD disc in FCP X from the Share menu.  I've set Orange Chapter Markers with Titles in my project from the timeline and these don't appear when I check the box to use chapter markers for Subtitles in the Destinations box to

  • I have a 3rd party SSD to put in my mac mini how do i get osx on it i do not have a external hard drive

    I want to put a 3rd party SSD in my mac mini and I no how to put in inside the mac mini but, how do I get osx on it preferably Yosemite I do not have a external hard drive just the one that comes with the mac mini and my 3rd party internal SSD please

  • How can I put one "shape" on top of another in pages?

    Hi all: I'm trying to do something pretty simple.  I made some shapes using the "shapes" tool in the toolbar.  I want to put one shape on top of (or in front of) another but it gives me the masking tool instead.  I tried putting a shap in the backgro

  • Help! Lost data on my ancient, not synced Tungsten E

    My long-serving Tungsten E has been on it's last legs, and I finally pushed it too far.  It has not held a charge well for a while, but if it ever completely lost it's battery in the past it has always had the data still there when it powered back up

  • How to stop a stage from closing

    I want to trap the clicking of "X" on the window and possibly stop the window closing. I've got this code: @Override public void start(final Stage stage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("demo.fxml")); Scene sce