ABAP classes for WebTemplate development

Hi experts,
I am manipulating a report via ABAP classes.  I need to hide an entire column including the header.  Currently I have done this under the DATA_CELL method and have only been able to hide the KF area.  If I need to hide the Header in the column (built under a structure) as well must I move all my code under the CAPTION_CELL method instead?
Secondly, I also need to search for a row by the text "Overall Results."  Is there a quick way to search the Y axis for this particular row using the text "Overall Results?
mark

hi Mark,
you can try in
method CAPTION_CELL
if i_iobjnm_row = 'your charateristic to be hidden'.
C_CELL_TD_EXTEND = 'style="display:none;"'.
endif.
and ...
method CHARACTERISTIC_CELL
if I_IOBJNM = 'your charateristic to be hidden'.
  C_CELL_TD_EXTEND = 'style="display:none;"'.
endif.
and I_IS_SUM <> 'X' if result not hide       
to search 'Overall Result' (if you didnt get yet), can try
method CHARACTERISTIC_CELL
I_TEXT
not sure what's your requirement, to hide a characteristic you can set it bex query designer, characteristic's property 'display' = no display.
hope this helps.

Similar Messages

  • Include in ABAP class for Workflow

    Hi,
    In order to use BOR macros inside ABAP class, (From SAP help) came to know that we need to use include <cntn02> .
    How to add this include to ABAP class for workflow?
    Regds,
    Akshay

    Hi Akshay,
    Slight difference, I said "keeping the class clean of BOR <i>code</i>". By all means use BO's in the class: basically create a ZCL_MATERIAL, and use BUS1001 as an attribute (I use a naming convention BO_* for these). As long as it's the right type (SIBFLPORB I think - no system handy right now), and the key values are populated correctly the system will instantiate it as necessary. So in WF I can refer to ZCL_MATERIAL.BO_MATERIAL whenever I need any of the BO's functionality.
    You are correct though, creating a proper business class which you can instantiate such as material does involve a fair bit of effort and coding to set up. e.g. my last project I ended up creating one ZBOR subtype because all I needed was one new attribute - definitely not worthwhile creating a new class for. (USR01.zEmailAddress for what it's worth).
    I've said before somewhere, it's not without pain, so if you're under time pressure etc, then it may be better to do whatever's quickest. There's nothing wrong with using BOR macros, it will still work for quite a few versions. I just meant to say that pure class(y) code is a preferred way to go if it makes sense to do so. This is not always the case.
    Hope that helps,
    Mike

  • BOR or ABAP Class for MM41

    Hi all.
    I am wondering whether anyone ever use workflow in transaction MM41.
    Does SAP provide standard BOR or ABAP Class for transaction MM41.
    I  know there is BUS1001006 but this only get triggers from MM01.
    Does user exit or BADI is the only way to trigger workflow from MM41?
    Thanks

    Hello,
    It might help if you said what MM41 was.
    As usual, turn on the event trace (SWELS), create and save something in your chosen transaction and then check the event trace (SWEL) for any events.
    regards
    Rick Bakker
    hanabi technology

  • Error handling in Abap Class for SAP Workflow

    Hi Experts,
    I would like to know if we have an option in abap classes used in workflows to send errors to the workflow log. We can achieve this in BOR Object methods by using the EXIT_RETURN <CODE> var 1 var 2 to send the errors back to the workflow, but how is this achieved through methods from classes  used in workflows.
    Appreciate your quick responses,
    Chaitanya

    Just raise exceptions in the normal OO way. Any exception that is a subclass of CX_BO_ERROR should be automatically available in workflow. Use subclasses of CX_BO_TEMPORARY for temporary errors.

  • 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

  • ABAP Classes for date & day computation

    <<Date questions have been asked so many times that they are not permitted in the ABAP forums>>
    Hello, I have a requirement to get the date of last 2 thursdays. Can somebody please help with the class I should use for the purpose?
    Thanks!
    Edited by: Matt on Aug 16, 2011 11:50 AM

    Hey,
    DATE_COMPUTE_DAY will give you DAY number for any date, with day number 1 as Monday .....4 as Thursday....and 7 as Sunday.
    SO, you can use ..
    data: lv_day type SCAL-INDICATOR,
          lv_diff type i,
          lv_thurs1 type sy-datum,
          lv_thurs2 type sy-datum.
    PARAMETERS: p_date type datum DEFAULT sy-datum.
    CALL FUNCTION 'DATE_COMPUTE_DAY'
      EXPORTING
        date          = p_date
      IMPORTING
        DAY           = lv_day
    lv_diff = lv_day - 4.         "since Thursday is 4
    if lv_diff GT 0.
      lv_thurs1 = p_date - lv_diff.
    else.
      lv_thurs1 = p_date - 7 - lv_diff.
    endif.
      lv_thurs2 = lv_thurs1 - 7.
      write:/ lv_thurs1, lv_thurs2.
    I have not included today's date if it is Thursday, if you want to include it, change 'GT' to 'GE'.
    BR,
    Diwakar
    Edited by: Diwakar Aggarwal on Aug 16, 2011 10:49 AM

  • ABAP Class for BOR IMAGE

    Is there an ABAP Object class which wraps or implements the BOR IMAGE?
    ( In particiluar, I wan't to be able to use the display method. )
    Thanks...
    ,..Mike

    closed

  • 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

  • Hide a specific cell using ABAP classes

    Hi Experts,
    Is there a way to hide a specific cell using ABAP classes for reports?
    Marcelo

    Hello Thomas Daly
        I never saw a way to grant permission to a List, the only way I ever saw a list get its permissions is thru
    the group site it resides in, the Discussion Board is the problem in this case (it has preconfigure permissions but they seem more like properties that you select the value from RadioButtons).  However, ms-addnew gets rid of the Add new link but it
    gets rid of the one in the Discusson Board too because Discussion Board falls in the category of List.
        In other words ms-addnew in the master got rid of all of the Add new items, link etc as hoped but now
    I can't add to the Discussion Board.
        I am alright with a hack (I am open to any suggestions) that would work if it works but, the List's I am referring to are all "Links" in the Quick Launch so I dont know how you would be able to apply the jquery, how would you apply the
    jquery to a Links in a Quick Launch?
        Thank you
        Shabeaut

  • Changing the development class for 0CALMONTH

    Hi we upgraded from BW3.5 to 7.0 and we are getting the same error from the thread :  Unable to change development class because field is greyed out
    Does anyone know how this problem was resolved.
    Regards,
    Brian
    I am changing the development class for 0CALMONTH and for some reason I am not able to change the $TMP to ZBW because it is greyed out. I also noticed the Orginal system field is SAP and not our BWD name and the Orginal language is DE and not EN.
    How would I change the development class for this IO? I am perplexed how this got to this status. When I collected the 0CALMONTH afterwards and listed the IOs belong to 0CALMONTH, I was able to change the development class. Why is this being greyed out?

    Changing while signed on in DE did not work.   - I also tried changing the person reponsible and get the following 
    Local private objects cannot be repaired
    Message no. TR229
    Diagnosis
    Every user of the SAP System can access and change local private
    objects using the ABAP/4 Development Workbench.
    System Response
    Setting the repair flag is rejected.

  • Creating ABAP class in XI for ABAP mapping

    Hi All,
    While creating ABAP class in SE80 XI I am getting following message.
    “You are not registered as a
    developer.
    Please register in the Online
    Service System (OSS).
    In the OSS you will receive
    an access key.”
    Plz guide which role I required to do ABAP mapping/class creation.
    Regards

    Hi Rohan,
    for developing abap you need a developer key. You can get it with the corresponding authorisation at <a href="https://websmp209.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000103676&_SCENARIO=01100035870000000202&">SAP OSS</a>.
    Regards,
    Udo

  • 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

  • Why SAP has taken Java for their development instead of ABAP completely

    Hi
    I am Neelima, new to SAP and abap,
    Can u please explain
    Why SAP has taken Java for their development instead of ABAP completely
    Thanks in advance
    Regards,
    Neelima

    Hi Neelima ,
      Answer to Q . Why SAP has taken Java for their development instead of ABAP completely ?
      First of all in my view SAP has not taken Java as Such instead of ABAP .
      But you nowdays whole lot of java is coming in SAP by doors of SAP NetWeaver .
    Now why they choosed java only <b> IN MY VIEW</b>
    1)     Java is open source so SAP in tie up with SUN can develop SAP specific API’s and that’s what happenings . In Net Weaver Developer studio (NDS of SAP like eclipe of Java ) we use packages ,classes , methods for SAP.
    2)     In my view Java is rocking in Web world , Every single popular product ( like IBM MQ series , Oracle Apps ) is making use Java for making things web based .
    So why not SAP .
    3)     Now data ultimately data is getting saved in XML . And java is best to deal with that . In SAP also Idoc data is stored in XML and so same data can be used anywhere inspite of Platform , technology .
    4)     Java has much established base of web Solution , Web services .They have got beautiful architecture so that Best Web sevices can be developed with EJB (Enter prise java beans  ) , sturts  and all .
    5)     Now It’s time for SAP to be Mobile Enabled .i.e. to Run SAP over PDA , Blackberry .Such solutions possible with SAP + Java combination .Java provides that framework to understand Mobile OS platform.
    6)     Another thing now Its time of EAI (Enterprise Application Integration) . Integration is future . Multiple product integrated and used togetherly , exchanges data. Take case SAP’s message goes to Sieble , people soft .For this Java + XML is best suied as both product understand it .
    Utimately SAP is Using java to provide Best Web ERP solutions
    But it does not mean ABAP is not there. With webDynpro ABAP  you can do every thing that WD java does . In fact incase if you have existing ABAP recourses then use WD ABAP for developing web services in SAP. In uses OO ABAP as base programming language .
    Please refer to this link
    IS Webdynpro for ABAP/JAVA is same?
    so hope your question is cleared
    Cheers
    <b>Parry</b>

  • ABAP class or function for retrieving BEx query properties at runtime

    Hello Experts,
    I'm working on BADI RSR_OLAP_BADI and for a special calculation I need to know which characteristics are in the drill-down of the BEX query, sol later on I can aggregate some key figures using only these characteristics.
    Problem is that structure C_s_DATA in method COMPUTE contains all fields of the query (filters, free chars, chars in the rows, etc) and I need to now which characteristics are currently being showing in the Bex analyzer.
    So is there an ABAP class or function module I can use to find out this kind of information at run time?
    Any suggestion?
    Thank you

    Tank you for the feedback,
    I tried to use the class you provided, but I'm stuck now in how to get from within my class that implements RSR_OLAP_BADI interface, a handle, reference, o whatever represent my runtime query (not the query at design time) . As the class you provide must be instantiated before I can use
    In pseudo code could be something like this
    DATA my_query type query_ref.
    my_query = get_rt_query().
    my_query->get_state()
    regards

  • Whats ABAP class should I take for SAP BW

    Hi Gurus:
                I want to learn ABAP to code in  SAP BW and R/3. I am planning to take some class from SAP Education, what SAP class you experts recommend.
    I am working on SAP BW and my focus is to get better in ABAP coding for BW purpose.
    Please suggest me.

    You can go through SAM's Teach Yourself in 21 days for ABAP. This good one for Basics. There are lot of posts in SDN regarding routines. You can also go through them and i hope you get some idea ......... Regarding SAP Class from SAP Education i have no idea
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    http://www.geocities.com/rmtiwari/
    Regards
    Naga

Maybe you are looking for

  • Downpayment invoice in miro.

    Hi all, We have the following situation: For a purchese order I have to pay an advance. The vendor send's me an "advance" invoice for this payment. We register it and so on.. When they send us the final invoice the value is total sum of purchase orde

  • Time Warner Cable - Can They Recall Collection??

    Hi all, I've been working to get a $500 collection removed from credit report from Time Warner.     It is now with Collection Bureau of America (CBA).       I sent CBA a PFD - They didn't respond  I then decided to call Time Warner to see if they cou

  • Why does Adobe Prelude 2.01 update FAIL?

    Update fails OK, Cleared cached files and try again> FAIL OK, Uninstall and Reinstall> FAIL installs 2.0 back to same problem OK, Start a discusion on Adobe> ....... 

  • Request Clarification on Girdley's Book

    I am going through Girdley's new book on WebLogic, and I am confused           by an example early. Please bear with me, as I am new to J2EE apps.           In Chapter 3, there is an example called formServlet. It includes           out.println state

  • Why are some contacts listed by first name others by last name.

    I synchronize my iPhone with an MS Exchange Server. Some contacts on my iPhone are listed by first others by lastname. I checked my Outlook - All contacts are the same! Does someone know this Problem?