Generic Table to a formal type - for master data user exit class

Hello,
     I am attempting to setup an ABAP OO framework for extending master data with the CMOD exit, EXIT_SAPLRSAP_002.  My goal is to create generic base class, upcast to the actual extraction structure, apply the customizing data fields, and then return the full table to the exit.    The problem is that I_T_DATA, the internal table for return values is untyped and therefore generic.   I tried using a class parameter as “type ref to DATA”, but the upcast if failing is failing.  Can any one suggest:
What parameter type should I use for the class method parameter?
How do you upcast to the formal extract structure type?
How do you assign the result back to the generic type?
Thanks very much for the help!

I ended up figuring out the answer after a bit more work.  In case it helps others, the keys points are:
I_T_DATA exposed in EXIT_SAPLRSAP_00x is a dynamic internal table
The reference to the table can be passed to a method parameter as a generic type, “TABLE”
Though, to store the value in the class as a formally typed value, such as required by an attribute, the type must be cast to the type, “DATA”.
For example:
Public section
Method CONSTRUCTUR
     IMPORTS
      PT_DATA TYPE TABLE.
Assign data pointer to attribute
       GET REFERENCE OF PT_DATA INTO A_T_DATA.
Endmethod.
protected section.
  data A_T_DATA type ref to DATA .
Hope that helps.

Similar Messages

  • How to build customized screens for Master Data Users

    Hi all,
    I need to build screens on top of centrally managed master data hub (Data Manager). I want to confirm following
    1) Should I go with Guided procedure (CAF) and pre defined Portal contains provided by SAP for MDM?
    2) Should I use Java API's provided with SAP MDM.
    License is not al all the issue. We have the entire NW components in place. But not sure what to use and what are the advantages/disadv???
    Please share your views....
    Thx,
    R.n

    Hi,
    I would suggest GP would be easier and in this you can integrate with ur customised objects also.
    Vinay

  • Profit Center Master Data - User Exit

    Hi,
    I need to add few validation to the profit center master data. If there is any user exit that I can use or is there any validation like OB28 (we have for financial accounting document) that can be used.
    Please help me out.
    Regards,
    Binay Agarwal

    Hello Binay,
    in comparison to the cost center master data, there is no user exit for profit center master data.
    Cheers,
    Daniela

  • Master Data User Exit

    Hello Everyone,
    Instead of incorporating the code for the different DataSources in ZXRSAU02, we want to write the code in separate programs (files). ZXRSAU02 should contain only a standard code which calls different datasources. With 'PERFORM' or 'INCLUDE' statements we need to HARDCODE the DataSource names which we don't want to.
    Is there a way to get data from an extract structure into I_T_DATA if the Datasource name is hardcoded in an external file instead of in ZXRSAU02. This file will return data to ZXRSAU02. Could someone help.
    Thanks.

    Hi Sachin,
    Please look at this, might be useful:
    Updating Extractors Suggestion-- What do you think?
    Best regards,
    Eugene

  • Generic delta for master data

    Hi All,
    I am trying to create a generic delta for master data "equipment"  . table in SASP is "EQUI". I am choosing ALE delta . in that I have to provide table name and "changed doc object' . when I give "equi" as table name and "aedat" (changed on ) as "changed doc object' -
    it is throwing error.
    also when I  tried  for time satmp /calday delta , the delta doesnot work when changeed are done. don't know why?
    Any idea what has to be given in these fields.
    Regards,
    Dola
    Edited by: Dola das on Mar 17, 2010 12:55 PM

    Hello,
    TCDOB is a table where you need to maintain entries for Generic Detla.
    Please goto SE16 : enter table name TCDOB
    In the selection Screen Enter Object as EQUI and check the Number Of Entries..
    I guess you need to maintain the number of fields on which the change is dependent for Detla ()
    I treid creating the same Datasource Using Ale Detla
    It worked and saved without errors :
    i have the following entries in TCDOB table
    OBJECT          TABNAME
    EQUI            EQKT
    EQUI            EQUI
    EQUI            EQUZ
    EQUI            FLEET
    EQUI            ILOA
    Please tell me your count and entries..
    so that we can discuss this Further
    Also if you find if there are no entries then you can Go to SCDO tcode and maintain entries with respect to change object.
    waiting for your feedback
    Regards
    Nitin Bhatia
    Edited by: Nitin Bhatia on Mar 18, 2010 6:44 AM

  • Extractors/ Setup Tables  for Master Data

    Hi Experts,
    I am not sure if the extractor enhancement methods, setup table initialisation for Master Data different from transaction data.
    I am trying to do a delta init with initialisation of Setup table (OLI7BW) for 0CUSTOMER_ATTR. And I am not able to see any records in RSA7. Althought RSA3 shows 10 data packets and 1000 records.
    What does that mean.
    What I want to achieve is all the records a fresh for a few master data datasources since they were refreshed last month. Since then they were not being used.
    Kindly help me as soon as possible.
    Thanks in advance.

    Hi Priya,
    I am not sure if the extractor enhancement methods, setup table initialisation for Master Data different from transaction data. -
    For your information there is no conecpt of intialisation for master data.
    I am trying to do a delta init with initialisation of Setup table (OLI7BW) for 0CUSTOMER_ATTR. And I am not able to see any records in RSA7. Althought RSA3 shows 10 data packets and 1000 records.
    What does that mean.
    As said there will be no setup tbale concepts for masterdata, the changes for masterdata follows the delta pointer concept(i.e whenever changes to standard masterdata table happens the message class trigger the delta pointer for those changed records and post in RSA7).So always u see in RSA7 the changed records for masterdata tables
    What I want to achieve is all the records a fresh for a few master data datasources since they were refreshed last month. Since then they were not being used.
    i didn't get abt this question can u eloborate
    let me know if i answered ur queries

  • TO FIND TABLES  FOR MASTER DATA TRANSACTIONS

    HI , When we create a customer, the information is updated in structure RF02D and some tables like KNA1 are updated ..
    How can we find the tables for master data transactions.?
    please reply...
    thanks.

    Hi,
    I entered into the TC : ST05, Activated the trace then I created a customer, then I came back and deactivated trace, then I clicked on display it gave me a list ( yellow color list ) ... Wat do u mean by update methods here ...
    Thanks
    SK SIDDIQUI

  • What type of questions can i expect for master data?

    hi,
    am preparing for the interview. pls... let me know those questions for master data.
    thanks to all

    HI arun,
    Pl. be clear on
    what is master data, purpose, customer master data fields and material master data imp fields.
    common distribution channels and divisions.
    Org. master data. ( interms of one to many , many to many relations of org elements ).
    condition master data
    How master data is uploaded and maintained.
    Hope it helps. Pl. reward if useful.
    Thanks
    Sadhu Kishore

  • Datasource for master data attributes : QUAN fields ?

    Hi,
    In the datasources for master data attributes (in R3), fields type QUAN are in the extraction structure but not in the datasource (for example field LFMNG is in extraction structure BIW_MVKE_S but is not in the datasource 0MAT_SALES_ATTR).
    Is there a standard way to have these fields type QUAN in master data attributes ?
    Otherwise I think to this solution :
    => add a field ZZLFMNG type DEC (DEC fields are in the datasource for master data attributes) in a structure append of BIW_MVKE_S
    => in the user-exit for master data attributes : move the value of LFMNG to ZZLFMNG
    => in the infosource in BW  : assign an infoobject type QUAN to the field ZZLFMNG
    What do you think of it ?
    Thanks in advance.

    Hello,
        I'm adding this field LFMNG too, but after I update the roosfield table an error occurs in RSA6.
        This error said that the MEINS field is hide in the DataSource. But we there isn't this field there. Someone knows what should I do?
    Thanks!
    Eduardo

  • Simple basic question on attribute data load for Master Data InfoObject....

    Hi
    I am a bit confused & wanted to have some clarification on the following:
    1) For loading Attributes data to Master Data InfoObject, we load it through Data Source of Type Master Data Attribute.
    But what i did, i created Data Source of type Transaction data and using the same Excel file, i was able to create transformation with Matser data Attribute and was able to load the data.
    This shows i can use Data source of type either master data attribute OR Transaction Data doen't matter while loading into master data attribute. IS THIS TRUE?
    2) I have 2 master data infoobjects (Test1 & Test2). I made Test2 as an attribute in Test1.
    My question is while loading Master data for Test1, will it also load the data into Test2 if it doen't find respective data in Test2?
    (i did all the transformation as per need.)
    Waiting for your reply....
    Thanks...

    HI Harpal,
    1. Did you make a transformation between attribute data source from source system other than flat file and DSO?...
    I think PC File is flexible in this aspect..
    2.While loading Test1 the infoobject Test2 will get loaded only if it is a navigational ttribute..(You can see this by refering the SID Table)
    Please also note that it does not load Test2 attributes.
    regards,
    Rakesh.

  • Creation of OLAP Variable for Master data

    Dear BW Experts,
    How to Create OLAP Variable for Master data  in SAP BW? What is the use of OLAP Variable?

    The entry column Type (Variable) on the Select Data tabpage indicates a variable time frame in which the data should be requested. The variables are not replaced by concrete values until a request is made. There are eight options:
    Variable            Data request        Description
    0
                          Yesterday
                                            (12am – 12am)
    1
                         Last week
                                            (Monday-Sunday)
    2
                           Last month
                                            (1. (First day - last day of previous month)
    3
                           Last quarter
                                           (1. (First day - last day of previous quarter)
    4
                           Last year
                                          (01. (January 1 – Dec 31 of previous year)
    5
                      User time selection
                                               See below
    6
                       ABAP routines
                                               See below
    7
                         <b>OLAP variables</b>
                                                See below
    <b>Time selections with the help of the variables 0 to 4.</b>
    The variables 0-4 only refer to date fields of the data type DATS.
    <b>User time selection</b>
    Type 5 gives you a free selection of all fields.
    If you select this variable for a field, confirm the selection, and then choose Detail for Type, an additional dialog box appears. In this dialog box you can freely limit the values of the fields and determine the next period value and the number of periods until a repetition.
    Variables are placeholders for values and are not replaced by concrete values until a data request is made. You can also use a Variable for selections when requesting data for an InfoObject, if you choose type 7, confirm the selection, and then choose Detail for Type.

  • Error handling for master data with direct update

    Hi guys,
    For master data with flexible update, error handling can be defined in InfoPackege, and if the load is performed via PSA there are several options - clear so far. But what about direct update...
    But my specific question is: If an erroneous record (e.g invalid characters) occur in a master data load using direct update, this will set the request to red. But what does this mean in terms of what happens to the other records of the request (which are correct) are they written to the master data tables, so that they can be present once the masterdata is activated, or are nothing written to masterdata tables if a single record is erroneous???
    Many thanks,
    / Christian

    Hi Christian -
    Difference between flexible upload & Direct upload is that direct upload does not have Update Rules, direct upload will have PSA as usual & you can do testing in PSA.
    second part when you load master data - if error occurs all the records for that request no will be status error so activation will not have any impact on it i.e. no new records from failed load will be available.
    hope it helps
    regards
    Vikash

  • Why to use chnage  pointers for  master data idoc why not  the  change idoc

    Hi Gurus,
    I have  one doubt about  Idoc.
    When changes to master  data has to be sent Change pointers are configured and  used. (CDPOS & CDHDR). In case of  the  transaction data change change idoc  is  used as is the case with orders (we  use ORDCHG for  ORDERS message type to send  the  chnage details to a  order which was already sent to other system.
    Why we can't use  change  idoc or  message type whatever, instead of  Chnage pointers in case of  master data or  vice versa in case  of transaction data.
    Your valuable  input  will be rewarded with suitable  points!!
    -B S B.

    Hi,
    It was a good question ... SAP seems never designed the change pointer to handle transactional data IDocs. Only for master data IDocs distribution purposes.
    It may due to volume data ... the transactional data can change many times within a day compare with master data which hardly change or once a while.
    Regards,
    Ferry Lianto

  • Effect of 'No update' for master data texts

    Hello all,
    I am using flexible update - update rules - for master data text. I want to confirm effect of 'No update' in following scenario
    In the fisrt set of update rules -from first source system -I have mapped both short text and long text
    Key  |  short text| long text
    ......| overwrite| overwrite
    K1    | some SHTX| some LGTX
    In the second set of update rules, I have selected 'No update' for Long text
    Key  |  short text | long text
    ......|overwrite| NO UPDATE
    K1    | some SHTX |
    My loading sequence is first source system followed by second source system
    what should be my ultimate long text and why?
    Many thanks in advance!
    Regards
    Sanjyot

    Hi surekha,
    your long text will not get changed.
    Take the example you mentioned
    Key | short text.....| long text
    ........| overwrite......| overwrite
    K1 | some SHTX.. | some LGTX
    In the second set of update rules, I have selected 'No update' for Long text
    Key | short text... | long text
    ........|overwrite......| NO UPDATE
    K1 | some SHTX. |
    In the second set of update rules, you mentioned "No UPdate", So, when a record with the same key is found n Masterdata, it is not going to make any changes to the field Long text.
    Where as short text will get overwritten.
    Take some data for ex with the above mentioned type
    data from source 1 : 2000 Maggi Noodles
    data from source 2 : 2000 Feasters
    when the data from first source system arrives, data will be 2000 maggi noodles
    when the data from second source suystem arrives, as there exist this records with same key(2000), it checks for the other fiels
    short text will be over written with the value in second system (according to rules its in overwrite mode)
    Long text will not be updated as the rule says no update.
    hope this helps,
    Cheers,
    Srinath.
    Cheers,
    Srinath.

  • Some segments are missing in the idocs for master data zdebmas

    hi guru's,
    can any one hlep me here we facing the probelumm
    some segments are missing in the idocs for master data zdebmas
    , there is some issue on the generation of the Site Master IDoc (Message type: ZDEBMAS, Basic type: DEBMAS06).
    This is using the SAP standard program (RBDMIDOC) which reads the Site master change pointers.
    There is  some segments below is missing in the IDoc:
    how to chcek this probelumm...

    hi
    i got the function module. it is  triggerig whne i do changepointer running.
    what ever changes i made only that segments are onlycomming in to the idoc. but remaing segments are not comming.
    my req is to show all segments  even if i do changes in one segmet fields  dont change theay have send to the interfece all athe segments.i ahve to do some enhancemetns for that
    can u plse help me the login  or any function module which will fill the alla the segmetns .

Maybe you are looking for

  • Activating a BADI in ECC6.0

    Hello gurus: I'm on ECC6.0. I want to implement BAdI ME_MEREQ_PARKING so I can access and modify method ACTIVATE_PARKING. This method allows for PReq "Hold" functionality - we want to "Hold" PReqs and we can't right now. With this new Enhancement Fra

  • Save a dynamic form correctly

    OK, now this should be simple, but proving difficult. I have a form, that has various YES/NO question sets, which then unhide additional questions sets in sub-forms that are hidden at the outset. Now although when the form is "distributed" it works f

  • Some sub menus icons are just grey boxes all of a sudden

    Recently some of the sub menu icons in Netflix, MLB, and others have been showing up as grey boxes only.  When highlighted, the name under the icon is there, but no picture.  If I access the item, on the next screen it works perfectly and the picture

  • E-Commerce create order runtime error because of user-exit

    Hi all, we face the following problem in our e-Commerce 5.0 R3 B2B application: In our R3 system, we have implemented the userexit_save_document_prepare when creating sales order (VA01) because we do not want an order to be created (saving is cancell

  • Where are Validation settings stored?

    I'd like to be able to export/import settings for validation -- I've created custom validation information for HTML elements such as video, audio and canvas. I can't find anything in the userdata or Common Files directories, or in the registry.