An Outlier: Usage of BAdI as Regular Object - Allowed?

Hello,
I have a question regarding a pretty specific scenario:
Once a BAdI is accessed with a GET BADI command, is it allowed to downcast it to a specific interface and use as such further on? This is <i>not exactly</i> canonical usage of the BAdI-technology and I wonder if I am not accidentally just exploiting some kind of a backdoor which may be closed at some point in the future and the software on customer's site stops working.
An example: a hierarchy of BAdIs (i.e., a hierarchy of BAdI <i><b>definitions</b></i>) implements a common interface with some methods. Now, I can downcast any of these BAdI-objects to this interface and use it just as a normal object - provided I am interested in the common functionality only. So, I call GET BADI only once and cache the downcasted reference afterwards.
Please note that the resulted behaviour is not identical with the context-sensitive call and cannot be achieved by usage of this option. By context-sensitive call the name of the BAdI must always be known whereas the scenario with downcasting assumes only compatibility of the BAdI with some given interface (only at the point of GET BADI the very BAdI name must be known). In this way my scenario seems to be more flexible in some cases.
Now, is it just an abuse of BAdI-technology? I tried to find some hints from SAP but the only one I found was online help for the field "Instance mode" in the BAdI-definition settings which suggests that keeping the reference to the BAdI-object in a program is not forbidden. No mention of downcasting anywhere...
I would appreciate a commentary on that matter,
Regards
Wiktor Nyckowski

We have Java client requesting over HTTP to application server. We would like to cache some of the objects created by the servlet while serving the request. Can I use the OCS4J for caching the Java objects. Do I require any software or just copying the JAR file and importing the class would serve the purpose?
Regards
Arun

Similar Messages

  • Is polymorphism a bad design for object oriented concept?

    i think polymorphism is bad concept for object oriented concept..having the same name with different parameter function ..according to my opinion may constitue in efficient skill in programming..instead if using the same name why we cannot use different name...for example each human being will have have unique characterstics..(i.e each persons DNA would be different..)so why can't we have different function names.. even if u choose a username to create a new account it would not support same names..i think it is confusing .. i think this concept is lessly used in modern programming usage... as it has less usage i think the future language designs should not support polymorphism..
    i just want to know ur opnions..

    Is it just me or did Sun fuck up the posting screens?I didn't notice anything; care to enlighten me?800-pixels-wide window and still a vertical scrollbar, but, to make up for
    that, 250 pixels of unused whitespace to the left. And the search text
    field is still unnamed.I agree with that rediculously wide left margin, i.e. rearranging some of
    those things would allow for a better screen estate usage. But didn't Sun
    already give us that crap in a previous incarnation of their mannah?
    Besides that, I still don't notice any difference ...
    kind regards,
    Jos (<--- call me a silly ignoramus)

  • No changes on SAP objects allowed

    Hello!
    I've installed "minisap" for ABAP programming. But when I try to create program I receive the following message:
    "No changes on SAP objects allowed
    Message no. TK 220"
    Could anyone help me with it?

    On the face of it, it seems you're trying to change the standard SAP objects (programs). Could you specify which program you're trying to change / add ?
    Remember, all your new programs should begin with either a 'Z' or 'Y'.
    or
    look TA: SE03-Administration-Set System Change Option
    Re: No changes allowe to SAP system objects

  • BAdI: Determine Target Object in BE System

    Hi all
    We have recently done an upgrade to SRM 5.0 and I realised that the BAdI for determining target object is different.
    In the EBP 3.5 system in the SPRO, the BAdI name was BBP_TARGET_OBJECT. It seems that the BAdI name is now BBP_TARGET_OBJTYPE.
    Can anyone confirm that I can no longer use BBP_TARGET_OBJECT and must switch to BBP_TARGET_OBJTYPE?
    Thanks.
    Nicholas

    Hi all/Christophe
    I have found the BAdI but it seems that it is very different from the old one. Furthermore the documentation also seems to be old.
    In my implementation, I want to be able to change a Purchase <b>Order</b> to a Purchase <b>Requisition</b> depending on some checks.
    I used to do it by setting <i>ITEM_DATA-OBJ_TO_GEN</i> = '2' and clearing <i>ITEM_DATA-AGREEMENT</i>, <i>ITEM_DATA-AGMT_ITEM</i> and <i>ITEM_DATA-FIXED_VEND</i>.
    To perform my check I used to need <i>ITEM_DATA-MAT_GRP</i> and <i>ITEM_DATA-QUANTITY</i>.
    So far I can only find <i>FIXED_VEND</i> and <i>QUANTITY</i> in the new BAdI.
    Anyone with any ideas how to handle this?
    Many thanks
    Nicholas

  • Activate standard badi - prompts for Object Key?

    In SE19 when trying to activate an SAP delivered implementation of a badi I'm prompted for an object key for the implementation class.   
    fyi  Running ECC6 on Basis 7 kb14.
    Go to SE19
    Display badi FIAA_BW_DELTA_UPDATE
    Go to environment menu, choose activate.
    Notice that the activate option is greyed out?
    Go back and change the FIAA_BW_DELETA_UPDATE badi implementation.      Go to environment menu, choose activate. You'll be prompted for an object key for the implementing class -  CL_IM_FIAA_BW_DELTA_UPDATE.
    Is this correct behavior?   We don't want to change the class - just activate it.    Could I get around this by copying the class changing the implementation class to a ZCL_IM_FIAA_BW_DELTA_UPDATE?
    Thanks in advance for any help on this topic.

    Hi Ryan.
    You need to apply an OSS note for this
    Please check the extract below..it will solve the problem
    check the following Notes.
    Check these OSS Notes - 828240, 688477 and 590034,599896
    Note Pasted below :
    When you load the delta-enabled InfoSources of asset accounting, no time stamp information is updated in the OLTP system if you have selected "Simulation of the delta process initialization" (initialization without data transfer; technical mode 'S') as the update mode.
    This affects the InfoSources:
    1. 0ASSET_ATTR_TEXT
    2. 0ASSET_AFAB_ATTR
    3. 0FI_AA_11
    4. 0FI_AA_12
    As a result of the error, you cannot start delta extraction after the initialization without data transfer because the delta extractor does not find any time stamp information it can use.
    Other terms
    RSA3, BWOM2_TIMEST, delta, DeltaInit, BWFIT, 0FI_GL_4, BWFIT_GET_TIMESTAMPS, BWFIT_RESET_TIMESTAMPS, BWFIT_UPDATE_TIMESTAMPS
    Reason and Prerequisites
    a) The problem is caused by a program error.
    b) The 'FIAA_BW_DELTA_UPDATE' BADI is not active.
    Solution
    For a: Implement the source code corrections to create a correct time stamp for the initialization without data transfer.
    For b: For a data extraction to the BW system according to the delta method, the 'FIAA_BW_DELTA_UPDATE' BADI must be active. When assets are changed, this BADI writes the corresponding change entries which are read by the extractors to determine the delta values. If this BADI is not active, the extraction terminates with error BWFIAA 001 (BAdI implementation FIAA_BW_DELTA_UPDATE inactive in source system). During a DeltaInit extraction with data transfer, the system flags the data request as incorrect or canceled in the monitor and issues the error message. However, during the DeltaInit extraction without data transfer, the system does not issue an error in the BW system even though the extractor triggered an error message and the termination of the extraction in the OLTP system. The data request in the BW system has the status 'successful' and the user cannot see that an error has occurred. However, a time stamp is not created in these cases since the following delta extractions would cause inconsistencies because the BADI would not be able to log all changes that have occurred since the last extraction.
    Regards
    Byju

  • BADI for Reference Object when IBase is entered in Service Transaction

    Is there a BADI to change the Objject Reference Data when the Object ID (Product ID) and IBase ID is entered in a Service Transaction (User presses 'ENTER')
    When the user enters the Product ID/ IBase ID in the Service Transaction and hits 'ENTER', I need a BADI to change and manipulate the Reference Object Data (Description, Serial Number) etc before it is output on the screen.
    This is from WebUI

    Hi,
    I have a similar question and after lloking around in internet I still have no clue how to solve it. When creating a service ticket i introduce the Ibase and Component. The Organization has to be determined based on the postal code of the IBASE. Now my problem is that still no GUID and Object ID of the Business Transaction is generated so I can not use for example FM CRM_ORDER_READ.
    Also I have problems to find the structure or table where to see the IBASES which are related to Business Transactions if the transaction still not is created.
    Any ideas?

  • Memory usage/freeze/crash modifying multiple objects

    I'm getting Labview hanging issues when I try to modify front panel objects while editing (not running).  It seems to be a general problem but this is the current scenario.  Many charts on my front panel (over thirty), so I multiple select, and RClick>Properties.  Watching Labview in Task Manager, I watch the Memory usage climb from about 90MB to 600MB.  And it takes a minute at least!  I can then change properties (plot scale ranges), and after more pausing, the dialog closes.  Soon after, I'll get a fatal error and LV crashes.  Something wrong here; I thought maybe it's my computer, but how can it take 0.5GB to load 30 chart property sets?  Core i5, LV2011, Win7.

    johnsold wrote:
    Do you have the chart history lengths set to large values (many MB)?  Do you have significant amounts of data saved as default in the charts?
    Try clearing the charts, one at a time if necessary, first.
    Charts have internal buffers. So LV may be trying to make backup copies so that you can undo if you change your mind.  Charts are generally not a good way to manage large amounts of data.  I use as a rule of thumb: Do not keeping more data in a chart than the number of pixels in its width.
    Lynn
    I aggree that crashing could be due to the amount of data in the charts. Try clearing them and saving the cleared chart as the default before doing the multiple object selection.
    I guess I live a more dangerous life-style that Lynn in that I'll allow more data points than pixels simply because LV is "SO DAMN GOOD" at rendering down the data and supporting zooming. "In the old days" it was a common technique to reduce the data sets presented to charts to avaoid killing the CPU. So Lynn's "rule of thumb" is consistent with history. modern CPU can handle the abuse much better now so I can get away with living close to the edge.
    Sharing thoughts,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • User exit/BAdI whenever an object is saved to a transport request

    Hi all,
    We have a requirement to compare the object's version every time an object is attached to a TR. I found the BADI CTS_REQUEST_CHECK~CHECK_BEFORE_CREATION. But, this has the TR attributes only. Also, this is triggered only when the transport is created, not when the repository objects are attached to an existing TR.
    Can you please help us with a BADI/user exit to gain control before an object is attached to new/existing TR?
    Thanks in advance.
    Regards,
    Hema.

    Hi Hema,
    Have you checked the BADI given in below thread
    CTS Badi or User Exit
    Thanks,
    Pawan

  • Insert Academic Work Usage for Student and Studies object

    Hello all, I need your help with something.
    For severals module bookings, I have to insert usage in infotype 1725 (Academic Work Usage) for the student, and in infotype 1724  (Academic Work Usage) for studies object, as in the booking process those infotypes were not updated (due to an error in inserting the context data in the HRIQ_STUDENT_BOOKING FM).
    I am using the FM HRIQ_AW_INSERT_USAGE with the folowing parameters:
    IV_PLVAR=01
    IV_STUDENT=STID
    IS_ACWORK-AWOTYPE=SM
    IS_ACWORK-AWOBJID=SMID
    IS_ACWORK-AWBEGDATE=SESSION BEGDA
    IS_ACWORK-AWENDDATE=SESSION ENDDA
    IS_ACWORK-AWSTATUS=01
    IS_ACWORK-BOOKDATE=18.09.2009
    IS_ACWORK-ACAD_SESSION=ACAD SESSION
    IS_ACWORK-ACAD_YEAR=ACAD YEAR
    IS_ACWORK-CPATTEMP=3,00000
    IS_ACWORK-CPUNIT=CRH
    IT_PROGRAMTYPE=MS          
    IT_PROGRAM=SCID
    IV_AWID=MODREGID for the current booking
    IV_MODE=C
    But when I run it, nothing is updated!!
    Does anyone can tell me if I am missing something?
    Or maybe there is a better way to do what I need that you can reccomend...
    Many thanks in advance.
    Diego

    Hello Prabhat, thanks for your answer. You are right, the IV_MODE expects the INS parameter. But in spite I ran the FM with INS, I still don't get any result. Do you think I have to run after this FM another one to commit th changes?? Any other idea?
    Thanks,
    Diego

  • BAdI for prepopulating objectives (notes) in Appraisals

    Hi,
    1) Can objectives be prepopulated during template creation and then edited once the template is assigned to an appraisee / appraiser
    2) How can objectives be prepopulated when an Appraisal Form is being created? (phap_admin_pa/phap_prepare_pa)
    The requirement is to prepopulate appraisals with different sets of "objectives" based on the employee's job or personnel number. In addition, the user should be allow to make modification to these prepopulated objectives. Is there a way to do this? What's the BAdI that would allow me to achieve this task?
    Thanks,
    Paul

    Hello Paul,
    Prepopulation can be achieved via a fix enhancement (BAdI Def. HRHAP00_ENHANCE_FIX). It will be triggered once when the document goes from status 'In Preparation' into any other status.
    Whether or not they can eb overwritten depends on your normal configuration settings of the reference element.
    Regards and Groetjes,
    Maurice

  • ITunes with videos bad, Music & Regular! Crash, Black Screen, Tagging?

    So i have been using iTunes for ages and have been collection Music's CD's longer and i got to load them to iTunes a while ago. Music works great in iTunes but with my CD's i often got music video's included so i tried to play them and some regular videos in iTunes and got the following problems and issues (Almost all the tested video files was optimised for iProducts (All MP4 format)) :
    Can't use some of my music videos (mp4 format) in itunes but i can in Quicktime (Got black screen but good sound ). I have no idea how they coded iTunes but shouldn't they use the same codec's?.
    iTunes have a tendency to crash if i play music videos in a row. (Like to use random in a music video list, calming in the background. i know it's kind of excessive but i like it).
    Sometimes i need to play through a music video then reverse back to it to get a picture. (Sound works great tho) .
    Laggy! Sometimes the sound get out of sync with video and vice versa. (Usually the beginning.  Has a tendency to catch up but not always, sometimes a middle lane in the video freezes.)
    Can't you tag or sort video files better.? My computer sometimes crashes or get changed so i need to reinstall my media library from a backup. It would immensely help if i could ID3 tag media files the same way i can song so they automatically sort in to music video's, movies and Tv-series (media types!) without forcing me too change it in the advance tap at show more information. (This is off topic but i need this for audiobooks too (iTunes don't got my type of books so i am manually coping them from CD to MP3 format and transferring them to my iPhone))
    So i'm a trial and error person so i worked a little bit with the problems when i had the time and  when finally got somewhere and had some real questions so i created this profile and wrote this post.
    Please read the whole post before you go yelling: -Look at this!, Already Asked!, See this forum! It's your computer! I usually get to the point somewhere on this post. At the bottom of the post i have my current specs for my computer. So here comes the wall of text:
    I started with this http://support.apple.com/kb/TS1718?viewlocale=en_US and http://support.apple.com/kb/TS1717 which is what you get if you search a bit in apple's support site. Tried all the things there. Disabled Direct3D, Tried Safe Mode On (Note: These two made the performance worse not better.), Checked display colour quality (Maxed), Turned on DMA, (A slight improvement still issues.) and finally got to ReadyBoost. I have all my media on an external drive (Aha you says!) and yes i finally figured out that iTunes can't handle files of that size from a regular external (Observe i do not have ReadyBoost on my 1T drive, It says it don't have the necessary performance). So i moved my video files to my internal drive and it significantly improved in problems 2,3,4 (Not gone!), Also noticed that i need to have as short pathway as possible (smaller improvements yet again!) (None of this shows in troubleshooting, Apple needs to read my post i think.)
    I am now browsing web forums for a better suggestions on the problems and found that Apple either did not care about the problems or the members of this or other forums recommended other media player's to use for handling devices and media (MediaMonkey, doubleTwist and so on). Either as to further their own agenda or that they have giving up on iTunes as a media player for large number of media files. (Found a good media tagger, Magic MP3 Tagger, which worked wonders on some of my older albums with no or little information). So back to my problems or questions.
    What can be the trouble with a mp4 format?
    Tendency to crash, is iTunes really that unstable?
    Play through music video to see picture. Really iTunes?
    Laggy! don't know what more to say or fix. (iTunes take to long to buffer (got between 0-15 seconds delay after i come this far, better then before but not great)
    Sort video files better. (Tags). The only format i know to date that instantly recognise what media type it is, some movie format and the ringtone format m3u  (Useful to know is that you can make your own ringtones by creating a ACC with a limited play time in advanced tab (max 30 seconds)  then change the last file ending of the ACC file now created to m3u. Viola! (Don’t forget to change back to the regular playtime on the original file) your custom created ring/smstone in workable and high quality, but i digress).
    Sorry for the long read but i wanted to be as thorough as possible and please forgive any grammar and spelling problems. English is not my native tongue and the spelling checker did not work in my laptop (browser) on this website
    Currently using (The one with iTunes and the external hard drive) (But have had two different computers before with same problem, 1 PC & 1 Mac):
    Screen
    SyncMaster T240
    Videocard
    ATI Radeon HD 4870 (512Mb)
    PC
    ACPI x86
    Motherboard
    ASUSTeK Computer INC (P5G-PRO)
    Memory
    Type DDR2 Dual
    Size 4096 MB
    External Harddrive
    WD Ext HDD 1021 USB Device
    IDE ATA/ATAPI
    Standard-Dual Channel PCI IDE
    Standard-Dual Channel PCI IDE
    Soundcard
    TerraTec Aureon 5.1 PCI
    AMD High Definition Audio Device
    Processor
    Intel(R) Core(TM) 2 Quad CPU Q8200 @ 2,33GHZ

    This problem cropped up for me yesterday. I had just copied a new video to my iTunes library and was testing that it worked properly, but while the sound was playing, the screen was black.
    Pausing/pressing the Play button resolves the issue, until I select a new video/movie to play, when I have to do it again.
    I'm running MacOS X 10.6.6 and iTunes 10.1.1 (4). I tried reinstalling iTunes, with no luck. I also tried the old mainstay of replacing the Preferences file, but that also didn't help.
    There is ONE new wrinkle to this situation. Yesterday, I had installed a new app named AirView to stream videos over AirPlay to my iPad. This works fine, but after this, the issue cropped up, suggesting an AirPlay issue.
    I have two iMacs, so decided to try this situation on the Kitchen iMac and played a video on this other iMac just fine, video and sound. I then started up AirView on the iPad and initiated the video stream to the iPad from the Kitchen iMac. The movie played fine on the iPad. I quit AirView and went back to try the video on the Kitchen iMac, and yes, the video now failed to display until I reselected Computer from the AirPlay menu at the bottom of the screen, or used the pause/play solution, even though Computer was still selected as the default in the AirPlay menu. Doing this once seemed to be enough to resolve the issue for playing all videos on the Kitchen iMac, but not on the Office iMac.
    The only other difference between iTunes on these two iMacs is that one (the Office iMac) is running its videos from a FireWire 800 attached 2TB hard drive, while the Kitchen iMac's contents are on the internal hard drive.
    Deselecting the AirPlay option in Preferences/Devices to start videos correctly on the Office iMac is not a solution, since this iMac serves as our home server for our Apple TV.
    Since I have a practical option, however, and since this issue doesn't affect playing videos remotely using AirPlay, this is now a buggy annoyance, but no longer a problem for me.

  • ABAP webDynpro MS Office component usage throws -  Access via 'NULL' object

    I am trying to include MS office word in my custom ABAP webDynro application based on the sample SAP Package SIOS for all the MS office component usage. <br>
    In WDMODIFY method  , when the courser is reaching the point to call office component  it throws a Null pointer exception. Not sure , if i am missing some thing here or skip a step. Please advice. <br>
    get the IOS interface <br>
      wd_this->factory ?= office->_method_handler. <br>
    Below is the code for WDMODIFY <br>
    method WDDOMODIFYVIEW . <br>
    DATA: <br>
        office TYPE REF TO cl_wd_view_element, <br>
        office_res TYPE REF TO cl_wd_view_element,<br>
        mime_repository TYPE REF TO if_mr_api,<br>
        content TYPE xstring, <br>
        url TYPE string VALUE <br>
    '/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration' & <br>
    '/iostest_fields.doc'. <br>
      DATA refexp TYPE REF TO cx_ios_exception.
      DATA: msgid TYPE syst-msgid,
         msgnr TYPE syst-msgno,
         msgty TYPE syst-msgty.
      get message manager
      DATA: l_current_controller TYPE REF TO if_wd_controller,
            l_message_manager    TYPE REF TO if_wd_message_manager.
      DATA envproxy TYPE REF TO if_ios_environment.
    just do it once
      CHECK first_time = abap_true.
      mime_repository = cl_mime_repository_api=>get_api( ).
      CALL METHOD mime_repository->get
        EXPORTING
          i_url     = url
        IMPORTING
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    get the office control
      office ?= view->get_element( 'GENERIC_OFFICE' ).
      ASSERT ID sios_demo CONDITION  office IS BOUND.
    not possible : Missing bugfix component bc-wd-aba
    office_res ?= view->get_element( 'RESULT_DOCUMENT' ).
    ASSERT ID sios_demo CONDITION  office IS BOUND.
    get the IOS interface
      wd_this->factory ?= office->_method_handler.
      ASSERT ID sios_demo CONDITION wd_this->factory IS BOUND.
    wd_this->factory_res ?= office_res->_method_handler.
    ASSERT ID sios_demo CONDITION wd_this->factory_res IS BOUND.
      TRY.
          wd_this->factory->get_wordprocessing_proxy(
             IMPORTING proxy = wd_this->document  ).
          ASSERT ID sios_demo CONDITION wd_this->document IS BOUND.
         wd_this->factory_res->get_wordprocessing_proxy(
            IMPORTING proxy = wd_this->document_res  ).
         ASSERT ID sios_demo CONDITION wd_this->document IS BOUND.
    *calling    setfields
          DATA co_error_info_getfields TYPE REF TO if_wd_context_element.
          DATA co_error_info_getfields_stru TYPE wdr_ext_attribute_pointer.
          co_error_info_getfields = wd_context->get_lead_selection( ).
          co_error_info_getfields_stru-attribute_name =
    'error_info_getfields'.
          co_error_info_getfields_stru-element = co_error_info_getfields.
          DATA fields TYPE if_ios_wordprocessing=>fields_type.
          DATA fieldstable TYPE if_ios_wordprocessing=>fields_type_table.
          DATA co_fieldcontent TYPE REF TO if_wd_context_element.
          DATA co_fieldcontent_stru TYPE wdr_ext_attribute_pointer.
          DATA inputfield1 TYPE xstring.
          DATA tabulator TYPE xstring.
          DATA endofline TYPE xstring.
          DATA: conv TYPE REF TO cl_abap_conv_out_ce.
          DATA: testfielddata TYPE string.
          testfielddata = 'SAPTEST'.
          conv = cl_abap_conv_out_ce=>create( encoding = '4110'
    ignore_cerr = abap_true ).
          CALL METHOD conv->convert( EXPORTING data = 'field1'
                                           IMPORTING buffer =
    fields-fieldidentifier  ).
          CALL METHOD conv->convert( EXPORTING data = testfielddata
                                           IMPORTING buffer = fields-value
          CALL METHOD conv->convert( EXPORTING data =
    cl_abap_char_utilities=>horizontal_tab
                                           IMPORTING buffer = tabulator  ).
          CALL METHOD conv->convert( EXPORTING data =
    cl_abap_char_utilities=>cr_lf
                                           IMPORTING buffer = endofline  ).
          wd_context->set_attribute( name = 'inputfield1'
                                     value = testfielddata ).
          APPEND fields TO fieldstable.
          wd_context->set_attribute( name = 'fieldcontent' value =
    fieldstable ).
          co_fieldcontent = wd_context->get_lead_selection( ).
          co_fieldcontent_stru-attribute_name = 'fieldcontent'.
          co_fieldcontent_stru-element = co_fieldcontent.
    document is set through datasource!
          wd_this->document->setfields( EXPORTING fieldsptr =
    co_fieldcontent_stru
                                                  tabulator = tabulator
                                                  endofline = endofline
                                                  errorinformation =
    co_error_info_getfields_stru ).
    *calling    opening result document
          DATA co_error_getcontent TYPE REF TO if_wd_context_element.
          DATA co_error_getcontent_stru TYPE wdr_ext_attribute_pointer.
          co_error_getcontent = wd_context->get_lead_selection( ).
          co_error_getcontent_stru-attribute_name = 'error_getcontent'.
          co_error_getcontent_stru-element = co_error_getcontent.
          DATA co_createdcontent TYPE REF TO if_wd_context_element.
          DATA co_createdcontent_stru TYPE wdr_ext_attribute_pointer.
          co_createdcontent = wd_context->get_lead_selection( ).
          co_createdcontent_stru-attribute_name = 'createdcontent'.
          co_createdcontent_stru-element = co_createdcontent.
    waiting of ACF Patch!
         wd_this->document->getcontent( errorinformation =
    *co_error_getcontent_stru
         contentpointer_result =  co_createdcontent_stru ).
    *calling    reopening template
          DATA error_opendocument TYPE REF TO if_wd_context_element.
          DATA error_opendocument_stru TYPE wdr_ext_attribute_pointer.
          error_opendocument = wd_context->get_lead_selection( ).
          error_opendocument_stru-attribute_name = 'error_opendocument'.
          error_opendocument_stru-element = error_opendocument.
         wd_this->document_res->if_ios_document~opendocument( EXPORTING errorinformation = error_opendocument_stru ).
        CATCH cx_ios_document INTO refexp.
        CATCH cx_ios_communicationwrapper INTO refexp.
        CATCH cx_ios_factory INTO refexp.
        CATCH cx_ios_environment INTO refexp.
        CATCH cx_ios_exception INTO refexp.
      ENDTRY.
      IF refexp IS NOT INITIAL.
        refexp->get_message( IMPORTING
                  mtype = msgty
                  number = msgnr
                  mid = msgid ).
        l_current_controller ?= wd_this->wd_get_api( ).
        CALL METHOD l_current_controller->get_message_manager
          RECEIVING
            message_manager = l_message_manager.
      report message
        CALL METHOD l_message_manager->report_t100_message
          EXPORTING
            msgid = msgid
            msgno = msgnr
            msgty = msgty.
      ENDIF.
    endmethod.
    Edited by: suryajoshi on Jan 13, 2011 5:04 PM

    Thanks for your reply.
    I have defined DATAS attribute  as XSTRING.  You are right i am using SIOS code from WDMODIFY.
    I am getting exception at this line:  Please advice. Its seems that factory is not been recognize. I double check , factory is present in attributes Tabs of the View.
    get the IOS interface
      wd_this->factory ?= office->_method_handler.
      ASSERT ID sios_demo CONDITION wd_this->factory IS BOUND.

  • Difference between usage of "System -- Services for object" and GOS direct

    Hey folks,
    i was wondering if you know an answer for that problem:
    1) Start ME23N (no SAP Gui classic design!) and go to System - Services for Objects in order to start the GOS Toolbox. Try to to store a business document. In my case i don't have the authorisation S_WFAR_OBJ so i get the  Message no. 00398 "You do not have authorization for this function" Thats the behavior a want
    2) Start ME23N and activate GOS Toolbox by clicking directly on the button on the top left corner. Try to a store a business document. But there is no message coming up?! Same user, same PO! It seems that the Toolbox is just beeing restartet and thats it.
    Same behavior in IW53/IW33 too, no auth error message if GOS is started via "System --> Services for Objects".
    Thats our system:
    ERP ECC 6.04 with NW 7.01
    SAP Gui 7.20 PL 3 (signature design)
    Thanks for your help and best regards
    Olli
    Edited by: Oliver Grewenig on Jan 18, 2012 11:30 AM

    Hi Oliver,
    I have done a similar testing for Tcode FB03 since I have done Archivelink configuration for this FI object.
    Case 1:
    =======
    Start FB03 (no SAP Gui classic design!) and go to System - Services for Objects in order to start the GOS Toolbox. Try to to store a business document. In my case i don't have the authorisation S_WFAR_OBJ so i get the Message no. 00398 "You do not have authorization for this function"
    Case 2:
    ========
    Start FB03 and activate GOS Toolbox by clicking directly on the button on the top left corner. Try to a store a business document. Still got the same error message "You do not have authorization for this function".
    Later I added the required object in the authorization profile and it worked in both the cases mentioned above.
    Since the same program is being executed behind both the cases, it will check the same authorization object as designed.
    What I would suggest is that you perform this test again and ensure that no one modifies the authorization during your testing period.
    Regards,
    Deepak Kori

  • How can a button be turned back into regular object

    Once an object is converted to a button how can it be changed back (have the button properties removed?) There doesn't seem to be an obvious way to do this, but I can't imagine Adobe hasn't allowed for this...

    @Steve – yes, but only the active state will be converted and survive.
    All other states (and their objects) will be removed.
    I hope Adobe will change this in a future version. A good example for releasing states are MSOs (Multistate Objects) where you can release all states at once without losing objects.
    @Jennifer – In InDesign a Button object can consist of max. 3 states:
    "Normal", "Mouse Over" and "Click".
    To retrieve all 3 states, have your Buttons Panel and your Layers Panel open.
    1. Select your button
    2. Go to the Objects menu chose Select => Contents
    OR: go to the Layers Panel, flip open the tiny triangle on your Button object and select the state, eg. "[Normal]"
    3. Now copy/paste to the page or hold down the alt key and drag out a copy of this state to the page
    4. Ungroup the pasted object (states in essence are groups, even if they consist of one single object)
    To retrieve the next state, go to your Buttons Panel, select the next state and repeat steps 3 and 4.
    From my German UI of InDesign CS5.5:
    Whole Button selected:
    [Normal] State selected:
    [Mouse Over] State selected:
    [Click] State selected:
    When working with states you'll never see all states at the same time in the Layers Panel.
    Adobe should change that, too…
    Uwe

  • BAdI for technical object replication

    Hi,
    I have created a new attribut and settype for PoD (Point of delivery) family with tcodes COMM_ATTRSET and COMM_HIERARCHY.
    I want replicate this new field from SAP CRM to SAP R/3. For this, I have implemented two BAdI : IBSSI_SEND_TO_UPL (for SAP CRM) and IBSSI_RECEIVE_TO_UPL (SAP R/3).
    But, I have tried to put break point into these BAdI and I think that BAdI are never called.
    Perhaps, I don't use good BAdI.
    Have you got any documentations, OSS Notes, or others to help me ?
    Thank you for your help.
    Best regards,
    Rémi

    Hi, Remi
    You have to setup your aleremote user as dialog for debug purpose.
    Denis.

Maybe you are looking for

  • I am getting ORA-01008:not all variables bound error

    Hi all, i am getting ORA-01008:not all variables bound error while executing the following code... Could any one help me to find out the problem...i am very new to ODP.net and Oracle .. I am using VC++.net for run this code. Here is the code..... #in

  • How to re-install Premiere 8.1 (having MXF issues)

    Since upgrading to 8.2, I can't export MXF Comps without getting intermittent red flash frames. I have done clean installs of the newest 8.2 twice on my Mac Pro Late 2013 with the same results. The current previous install files on the CC server are

  • Windows 2012 R2 Deduplication Problems, 0 B SavedSpace and 0 OptimizedFiles

    Objective: On a Windows 2012 R2 server, enable Deduplication on a new 20 TB D: physical volume. This volume will become a target for Veeam Backup and Replication backups. Problem: Deduplication fails to dedupliate anything. Get-DedupStatus always rep

  • Data check problem

    Hi Gurus,                I have a requirement which needs to be explained with an example. Please take a look at the example given below. Say... matnr = 10001 which is stored in VAR1 so VAR1 = '10001'. Now we need to search a mara in which i should c

  • Why does Flip-Pal Scanner's SD card down load photos to Organizer even the photo is already in Organizer?

    Why does Flip-Pa Scanner's SD card down load photos to Organizer even though the photos are already in Organizer.  My preferences are to not load again photos already in Organizer.  My camera SD card loads photos only one time.