RXMap field from collectors

Hi,
I am trying to understand better how RXMap field works in terms of
structure. It seems a field or structured variable which keeps other
fields which are usually parsed from event sources data. Well, that is
my understand.
I have tried to search it on so many .js files of native collectors but
I did not get its structure.
Does anybody have more detail about it or have played with RXMap
before?
I need to understand that because for some reason, some string data is
truncated to 255 characters when it is stored on RXMap (I guess). I
created a simple and custom collector and add more than 255 characters
to e.fn field and it worked fine. When I use some collectors which use
RXMap field,, e.fn (FileName) is truncated.
Regards
HH
hugohigashi
hugohigashi's Profile: http://forums.novell.com/member.php?userid=89996
View this thread: http://forums.novell.com/showthread.php?t=447960

Hi Hugo,
RXMap is a bit of an artificial construct. Basically we get an object
back from the Connector called ConnectorData, but it's a Java object, so
we have to unpack it in some way. The first thing we do is attach it to
the 'rec' object, which is a Javascript object. Next, we iterate through
the various fields that come back from the Connector (we basically get a
map of data back). There are really two types of fields that come back:
1) Event data
2) Metadata
and two different ways that the Connector will treat the event data:
1) As a single string
2) As a set of fields
Some examples: the Database Connector creates an output metadata field
called "s_Database" that indicates the name of the database that the
data was retrieved from. It also gets event data back from the various
columns, and can either place each field into a separate variable (a
map) or can concatenate them into a long string. The File Connector only
retrieves line-by-line string data and sets a single event data field
with that line of data.
The problem is that the Connector just sets all this stuff at the root
level of the connectorData object, which introduces some problems. First
of all, there's the potential for name conflicts - if a database
happened to have a column called s_Database, it would conflict with the
metadata field of the same name. For that reason the Database Connector
allows you to specify a prefix to put in front of each column name
retrieved from the database.
So what we decided to do when we unpack the Java object and put the
individual fields into the 'rec' object was to enforce a better
separation of data and metadata. For Connectors operating on lines of
data, what you'll see is all the metadata in the root of 'rec', and a
single special variable rec.s_RXBufferString which contains the line of
data. For Connectors operating on maps of data, you'll see the same
metadata in the root of 'rec' but all the actual event data stored under
a rec.RXMap hash.
Note that RXMap doesn't have any particular structure or class, it's
literally just a hash of data in whatever form it arrived in from the
Connector. So really what you find in there is entirely dependent on the
event source and the Connector.
DCorlette
DCorlette's Profile: http://forums.novell.com/member.php?userid=4437
View this thread: http://forums.novell.com/showthread.php?t=447960

Similar Messages

  • Getting Error while deleting a field from the 'Z' Structure

    Hi All,
    I have created a 'z' structure in which i have 5 fields, now i want to delete one field from the structure, but it is giving me error like Invalid Change.
    Its a structure so i cant activate and adjust as we do for Tables.(se14)
    So pls help me out asap.
    thanks & Regards,
    Dhruv Shah

    Thanks for Quick Reply.
    I have not used this field in any FM/ Report.
    I have tried log off and then log on. but it make no difference.
    Now the Other scenario is that i want to change the datatype of this field to TEXT25.
    But it is also not allowing me to change because currently datatype is TEXT20.
    So now how can i change the length from 20 to 25.
    Regards,
    Dhruv Shah

  • Can we view Color & SIZE1 field from MARA in MM43??

    Can we view Color & SIZE1 field from MARA in MM43??

    Hi Ashish,
    In MM43 on Basic data screen scroll down to see More Basic Data push button.
    Once you enter in More Basic Data screen you have field there for size/dimension.
    I'm not sure if this is what you are looking for.
    Thanks,
    Vikrant.

  • Extract a value of a fields from an internal table

    hello everyone,
    i need to extract a value of a fields from an internal table, the fields is in a postion "sy-tabix" that i know, so i need to pick this value without using a loop
    thank you.

    Like this?
    DATA: FIELD1 TYPE C,
               FIELD2 TYPE C.
    READ TABLE T_TAB INDEX 3.
    FIELD1 = T_TAB-FIELD1.
    FIELD2 = T_TAB-FIELD2.
    Greetings,
    Blag.

  • Displaying fields from a Z Table on CRM UI

    Hello Experts
    I am trying to display fields from a custom table onto a CRM UI form view.
    1. I created a custom GENIL root object & Search object ie. ZCUSTOMER. & ZCUSTSEARCH
    2. Tested this in the GENIL BROWSER to ensure that I could enter update values to the table and retrieve it via the search object.
    3. Created a custom component ZCUSTOMER
    4. Created a view with this component ZCUSTOMER using the wizard -
         Model Name - CUSTINFO
         BOL Entity - ZCUSTOMER
         No links to the custom controller or higher level objects.(as I do not want to tie this to any standard components)
    Type of view - Form view
    7. Created a Context node for the component controller with the same info as I did for the view.
    8. Performed the binding of the view context node with the component controller context node.
    9. Configured 1 field CUST_NAME to be displayed on the view.
    10. Configured the run time repository to display the view.
    Now the issue is..
    When the view gets displayed, the field is displayed with the error "CUST_NAME not bound"
    What am i missing?
    Thanks
    RLX

    Hi Swati,
    Thanks for the feedback. I re-viewed the WD_CREATE_CONTEXT method of the view controller implementation class and I see the following code in there already-
    method WD_CREATE_CONTEXT.
      create the context
        context = cl_bsp_wd_context=>get_instance(
              iv_controller = me
              iv_type = 'ZL_ZCUSTOMER_BSPWDCOMPONEN_CTXT' ).
        typed_context ?= context.
    endmethod.
    Does that look right or do I need to modify it?
    Thanks once again for the help.
    RLX

  • How to add related fields from one transaction to other transacction?

    Hi all,
    I have a problem. I need to add an OPPORTUNITY field (SALESCYCLE) to the ACTIVITY transaction because of an upgrade and I'm now in a new world... The CRM 2007 is an unexplored place to me.
    I added some custom fields (Z fields from the CUSTOMER_H) by adding the context node BTCUSTOMERH to the BT126H_APPT component, view ApptDetails, with transaction BSP_WD_CMPWB (thanks Stephen Johannes for your blogs) and all works correctly.
    I tried doing the same with the SALESCYCLE and it doesn't worked... :_(
    I added the context node BTOPPORTH, but I'm sure I failed at the wizard step with the "Higher level context node" or with the "BOL Relation", but I can't find the correct answer. I found the field in the "Configuration tab", I put it in my view but the GET method doesn't work... The field remains always void.
    I don't have problems adding activity related fields, but when I try to add some flow related (opportunity one in my case) fields it's different.
    I have been looking for any solution but I have only seen that I can add this attribute directly to one context node and modify some BAdI or do any thing similar, but I don't know how to do that either. I will accept this solution if someone tells me how to do that... But I think the first solutions could be the most appropiate (I can be wrong... of course!)
    Thanks in advance....
    Sergio

    Thanks for your answer, Subhasis!
    Your solution is correct if I want to add to the Activity a field related to the Activity or some field on the DocFlow structure (the case you described), but it's not my case. I did that with customer fields before and all worked correctly.
    My scene is like this. I have an Opportunity and there is a follow-up Activity created. When I want to see the Activity, I need to show on the Activity transaction the preceding Opportunity field SALESCYCLE, which is at the CRMD_OPPORT_H table (BTOPPORTH context node).
    The problem comes when I add this context node to the Activity. I think the application is trying to get the field from the CRMD_OPPORT_H with ACTIVITY data and it returns void to the field. I think it forgets to get the opportunity data first and after that try to get the SALESCYCLE value from the CRMD_OPPORT_H (with the Opportunity GUID).
    By the moment, I have added the attribute SALESCYCLE to the BTDOCFLOW context node and, at the moment he do the GET, I change the field it gets by the GUID of the opportunity:
         dref = current->get_property( 'SALESCYCLE' ). "#EC NOTEXT
          dref = current->get_property( 'OBJKEY_A' ). "#EC NOTEXT
    Then I go to the CRMD_OPPORT_H directly to get the SALESCYCLE value...
    I know it's a bad solution... but it works and I don't know any other solution by now. If anyone can help me to do it correctly I'll be greatly appreciated!
    Regards,
    Sergio

  • Missing field from source DSO in transformation to other DSO

    Hi SDN,
    I am facing the following problem:
    I have created DSO "A" and a transformation rule to DSO "B". InfoObject 0RATE_TYPE is available in both DSOs... BUT: when I am creating the transformation rule the field from DSO "B" (on the right side) is not connected to any filed from source DSO "A" because there the field 0RATE_TYPE is not offered.
    What I have tried so far:
    - reactivate DSO "A"
    - remove 0RATE_TYPE from DSO "A", activate DSO "A", include 0RATE_TYPE again, reactivate DSO "A"
    - newly created DSO "A"
    All this has not resulted in any other than the problem described before. One thing I recoginized: when doubleclicking on the DSO "A" I see the field 0RATE_TYPE, when doing a right click and selecting "Object overview" the field is also missing!
    I have run out of ideas and I would like to see if any of you has had the same problem and has found any solution.
    PLEASE help me!
    Thank you in advance!!

    Hi,
    Did you try to logoff and logg on again?
    (sometimes BI show things after leaving the transaction)
    IS the DSO activated?
    Is the field compounded to another field that is not in the DSO?
    You might try a work around:
    Make a routine that reads your DSO to get the field.
    (If the ABAP-editor also gives an error on thing field something very strange is going on indeed)
    Success,
    Udo

  • Start Routine to Populate Account Group Field from Master data of 0Customer

    Hello Friends. Please help me edit this ABAP code to make it work. I am putting this code in start routine in between two DSO. where I am using the
    Start Routine to Populate Account Group Field from Master data of 0Customer. I do not want to use read from master data functionality since that field 0customer is not there in dso but similar field 0debitor is there. so i want to put this code
    during the load from source DSO to Target DSO.
    Error Explicit length specifications are necessary with types C, P, X, N und
    DATA: L_S_DP_LINE TYPE DATA_PACKAGE_sTRUCTURE.
        types: begin of comp,
         CUSTOMER       type  /BI0/OICUSTOMER,
         ACCNT_GRP          type /BI0/OIACCNT_GRP,
       end of comp.
        DATA: l_S_comp type comp.
        DATA: L_th_COMP TYPE HASHED TABLE OF COMP WITH UNIQUE KEY customer INITIAL SIZE 0.
    IF  L_th_COMP[] IS INITIAL.
    SELECT CUSTOMER ACCNT_GRP FROM /BI0/PCUSTOMER APPENDING CORRESPONDING FIELDS OF TABLE L_th_COMP.
    ENDIF.
    LOOP AT SOURCE_PACKAGE INTO L_S_DP_LINE.
    READ TABLE L_TH_COMP INTO L_S_COMP WITH TABLE KEY CUSTOMER = L_s_DP_LINE-CUSTOMER
    IF SY-SUBRC = 0.
    L_S_DP_LINE-/BIC/ACCNT_GRP = L_S_COMP-/BIC/ACCNT_GRP.
    MODIFY SOURCE_PACKAGE FROM L_S_DP_LINE.
    ENDIF.
    ENDLOOP.
    soniya kapoor
    Message was edited by:
            soniya kapoor

    Hello Wond Thanks for Good Answer and good option, But Client does not like this option and does not like Nav Attribute so he does not want to turn on any Nav Attribute, In general also We hav requirement to read a third table while uploading 1 dso table to 2 dso table,
    so  Please help me edit this ABAP code to make it work. I am putting this code in start routine in between two DSO. where I am using the
    Start Routine to Populate Account Group Field from Master data of 0Customer.
    No syntax Error But during the load it is updating the source table and not the target table. how to define now target table.
    ***SOURCE DSO Table
    types: begin of typ_tgl1.
        include type /BIC/AZDAFIAR000.
        types: end of typ_tgl1.
        types: begin of comp,
         CUSTOMER       type  /BI0/OICUSTOMER,
         ACCNT_GRP          type /BI0/OIACCNT_GRP,
       end of comp.
    DATA: L_th_COMP TYPE HASHED TABLE OF COMP WITH UNIQUE KEY customer
    INITIAL SIZE 0.
      data: wa_itab type COMP.
        data: wa_zdtg type typ_tgl1.
    IF  L_th_COMP[] IS INITIAL.
    ***Master Data Table
    SELECT CUSTOMER ACCNT_GRP FROM /BI0/PCUSTOMER APPENDING CORRESPONDING
    FIELDS OF TABLE L_th_COMP.
    sort L_th_COMP by CUSTOMER.
    ENDIF.
    LOOP AT L_th_COMP into wa_itab.
    select * from /BIC/AZDAFIAR000 into wa_zdtg
                        where DEBITOR  eq wa_itab-CUSTOMER.  *** SOURCE DSO Table
    IF SY-SUBRC = 0.
    wa_zdtg-ACCNT_GRP = wa_itab-ACCNT_GRP.
    MODIFY /BIC/AZDAFIAR000 from wa_zdtg. *** modify SOURCE DSO Table
    ENDIF.
      endselect.
        endloop.
    soniya kapoor

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • How to get additional field from the second list base on lookup information column ?

    Hi everyone,
    Currently I created a SharePoint hosted Apps project and I need to know how can I get additional field from the second list base on lookup information column. example List1 Have 2 columns column1 and column2(Lookup Information from list2 (category)),
    List2 have 3 columns title, and category, and color.  so how can get the title and color from list2 base on this lookup information column (SharePoint Hosted apps and Javascript code)? that is possible?
    Best regards,
    ------------------------------------------------------------ ---Tola---

    You can build one custom lookup control. Refer to the following post
    http://www.stuartroberts.net/index.php/2012/10/03/enhanced-lookup-field-part-1/
    Alternatively, try the following solution from codeplex
    http://sp2010filteredlookup.codeplex.com/
    http://filteredlookup.codeplex.com/
    --Cheers

  • Update PRODH field from table T179T

    hi,
    i want to update PRODH field from table T179T into table VBRP. for this we
    need to take selection option also.
    selection option will be :
    ·             Sales Organization (field VBRK-VKORG)
    ·       Billing Date Range (VBRK-FKDAT)
    ·       Distribution Channel (Vbrk-vtweg
    while i have done this for one field by using hard code but like:
    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    but this is not the right way. please guide me how to solve this.

    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    <b>commit work.</b>
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    use commit work after update statement.
    But this code would make vbrp-vbeln as plc01 only.
    If you want to get the prodh value from t179t, then write a sleect on t179t and then update.
    TABLES: VBRP.
    CLEAR VBRP.
    select single prodh
      from t179t
    where......
    UPDATE VBRP SET PRODH = t179-prodh WHERE VBELN = '0008300051'.
    commit work.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.

  • I am trying to extract two more fields from 2lis_13_vditm

    Dear Experts,
    I have some tough situation here.
    In BW: i am using 2lis_13_vditm this datasource for the last 5 years. i am running daily deltas to load(10 fields from r/3) ods which is in <b>addition mode.</b>.
    from this ods data is going to another 4 ods's.
    I have client requirement that he wants to add ship to party and sold to party fields to this existing ods. that means 12 fields we need from r/3 to bw now.
    other end at r3 ; 2lis_13_vditm has already 12 fields.
    Come to the point:
    1) if i run full reapir  now data get aggregated. ruled out.
    2) if i want to run re-init  but i can't have block out period in r/3 ; do this is also rule d out.
    3) If i run init without data ; then delta ;  it takes more time ;
    If you can help me out on this situation it would be great helpful to me
    Rds,
    kk

    Something similar to this should work filling in historical data.
    1. Create new, temporary ODS to contain the key fields and the additional data fields.
    2. Run logistics set up in R/3 with to new fields added to your data source.
    3. Load data into new ODS.
    4. Create update rules to load from new ODS to existing ODS, updating only key fields and new data fields.
    5. Load from new ODS to existing ODS. At the end of this step all historical info is there.
    6. Continue with normal delta process into existing ODS.
    If you don't want a lengthy setup run, you can consider creating generic data source to pull the data.  You don't even need the temporary ODS. Just load directly into existing ODS to fill in the new data fields.

  • Upload fields from SAP R/3 to BW

    Dear All,
    I'm looking for a method to upload fields from SAP R/3 to BI 7.0.
    My testing case as following:
    - Upload table DFKKKO \ field OBEL from R/3 to BW
    - I created a Generic Datasource and select this field.
    - When coming back to BI, I replicate the metadata from SAP source system and can display my Generic Datasource.
    - I create the Info Package for this Generic Datasource but when I run the scheduling, I didn't find any data in PSA table.
    So this is my questions:
    -   Is this method (generic datasource) suitable for uploading from SAP R/3 to BI or there is anything else better?
    - Why the data cannot uploaded to PSA table? (I got this error message from Monitor "EDI: Partner profile inbound not available" and "Some IDocs have error status" but don't know how to correct)
    If there is any possible response, I shall give reward point.
    Many thanks,

    Hi
    I think you have missed the mapping part in BW....did you create the transformation in BW side before loading the date?You have to map the R/3 field to BW infoobject.

  • Hiding some fields from ALV report

    Hi All,
    I want to know if there is way to hide certain fields in ALV for some users only and not for others?
    If I use the option NO_OUT = 'X'  it will not be displayed in the list but the user can see the in the Layout option fields but if use NO_OUT = 'X' and TECH = 'X' the field will not be in the list and in the layout also but other users will miss that field.
    If I create user specific variant, but once the user is in the report he can change the layout so certain fields cannot be hidden.
    So, is there any way to hide some fields for certain users and not for others without hard coding user ids in program and restricting the fields from display??
    Thanks in Advance.
    Sonali.

    Thank You Vijay for the reply.
    I knew that Authorization object was the final solution but before using it I wanted to find out if there was a way in the ALV report to restrict certain fields.
    Sonali.

Maybe you are looking for