Extract info from RFH2 header in MQ message

Hi All,
I'm trying to send a MQ message with RFH header. Purpose is that JMS adapter extracts user data from RFH Header.
A few questions:
1.Format RFH2 header:
-In the MQMD I assign the format: MQFMT_RF_HEADER_2
-Apart from the mandatory fields in the RFH2 header I write user data to it as well and it looks like this:
<usr><msgType dt="string">data</msgType></usr>    Is this sufficient or should there be an additional surrounding tag like <MQRFH2>?
2.In PI, I use a JMS Adapter. On the Module-tab I have added AF_Modules/DynamicConfigurationBean (type: Local Enterprise Bean, Module Key: RFHHEADER), after ConvertBinaryToXMBMessage  and before CallSapAdapter.
Under Module Configuration I added 2 entries:
RFHHEADER     key.0     read http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0
RFHHEADER     value.0     msgType
I want to extract the value of msgType and use it.
On the Parameter-tab, I suppose I have to add Adapter-specific message attributes, but it is not exactly clear what I should put there.
3.Dynamic Configuration Bean
Is there anything I should do to activate that Dynamic Configuration Bean, because when I sent I message, I don't see anything in the monitor of the processed XML messages, not even an error.
Kind Regards
Edmond Paulussen

Edmond Paulussen wrote:>
> Hi All,
>
> I'm trying to send a MQ message with RFH header. Purpose is that JMS adapter extracts user data from RFH Header.
>
> A few questions:
> 1.Format RFH2 header:
> -In the MQMD I assign the format: MQFMT_RF_HEADER_2
> -Apart from the mandatory fields in the RFH2 header I write user data to it as well and it looks like this:
> <usr><msgType dt="string">data</msgType></usr>  
> On the Parameter-tab, I suppose I have to add Adapter-specific message attributes, but it is not exactly clear what I should put there.
The list of additional parameters are stored in the ASMA field.
So you enter here the header value "msgType" with type String
The value "data" is stored in DCJMSMessageProperty0
You do not need the DynamicConfigurationBean in this scenario.

Similar Messages

  • Mail. How can I copy the sender and date info from the Header like I used to do in Lion?

    I used to find it very useful to drag and highlight all the info in the header of the email including sender, cc, date, subject etc to be able to paste in into other docs as reminders of who sent what when. Now I have to do 2 copy/pastes. Not a deal killer but makes my life just that little bit more unnecessarily complicated.

    There is usually a toolbar button in the editor to turn a text link into a clickable hyperlink (look for a chain like button).<br />
    You can select the text and click that button to turn the link into a clickable hyperlink.<br />
    If you can't find the button then hover them all to check the tooltip of each.<br />
    * Make Link - https://addons.mozilla.org/firefox/addon/142

  • Extracting info from a web page

    Hi,
         I m not sure if i m asking this question at the right forum.
    Can anyone tell me if there is a way to extract data from a web page.
    This means, say for example a web site Yahoo displays stock quotes
    updated or NASDAQ values almost in real time.
    Now if i want to get that information from the web page into one
    of my applications ,say, something that uses that data. Is there
    a way to do it?
    Just curious

    Yes, it's possible. You can use the java.net.URL object to connect to websites and download the html. Doing the coding is not that easy, and you should also be mindful of not redistributing data you've gotten from another site without permission

  • Gurus...Need help....extract data from BKPF header table and BSEG line item

    Gurus,
    I have to write the logic to fetch data from bkpf and bseg. Need help on how can i do that..
    I have to get bukrs  belnr gjahr ldgrp from BKPF for a given date and company code. For all these documents, then i have to get the line items from BSEG if the ldgrp is I1 or SPACE.
    If the ldgrp is not I1 or SPACE then i have to fetch the records from BSEG_ADD and then generate a ALV report with all the data including the data that was fetched from BKPF.
    So, it wil be a combined ALV report that displays header as well as LINE item data together...
    Can u please help me with the code...I am not sure how can everything go all together in one internal table....Becoz once its there in one table then only a ALV list can be generated.......
    Cheers:
    Sam

    hi Sam, this may be of some similar thing.
    Use this program, I got this prog from a source and we added a small conditional check in the program which checks document numbers in BSEG and also comapres in BKPF and sees if the output from BSEG falls under the posting data range specified in the initial selection.
    Now just so you know, this output is kinda messed up, so you will have to play with it in Excel to extract the document numbers, if that is what you want.
    ============================
    PROGRAM....... ZFI_BSEG_DOWNLOAD
    TITLE......... Download BSEG
    PROGRAM TYPE.. Download
    ======================================================================
    GENERAL DOCUMENTATION AND COMMENTS
    <...>
    ======================================================================
    ASSOCIATED PROGRAMS
    <Program>..... <Description>
    ======================================================================
    CHANGE HISTORY
    Date By Ticket Description
    REPORT zfi_bseg_download.
    TABLES: bseg, bkpf.
    TYPES: BEGIN OF ty_output,
    line(6000) TYPE c,
    END OF ty_output.
    TYPES: ty_tab_output TYPE TABLE OF ty_output,
    ty_tab_nametab TYPE TABLE OF x031l.
    CONSTANTS: c_delimiter(04) TYPE c VALUE '"%%"',
    c_records TYPE i VALUE 10000.
    SELECTION-SCREEN
    SELECT-OPTIONS: p_bukrs FOR bseg-bukrs,
    p_belnr FOR bseg-belnr,
    p_buzei FOR bseg-buzei,
    p_gjahr FOR bseg-gjahr,
    p_budat for bkpf-budat.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_append AS CHECKBOX DEFAULT 'X'.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM get_records.
    *& Form get_records
    FORM get_records.
    DATA: l_cursor TYPE cursor,
    lt_bseg TYPE TABLE OF bseg,
    ls_bseg LIKE LINE OF lt_bseg,
    lt_output TYPE ty_tab_output,
    ls_output LIKE LINE OF lt_output,
    lt_nametab TYPE ty_tab_nametab,
    ls_nametab LIKE LINE OF lt_nametab,
    l_field(30) TYPE c,
    l_output(50) TYPE c,
    l_date(10) TYPE c,
    l_len TYPE i.
    FIELD-SYMBOLS: <field>.
    IF p_append NE space.
    OPEN DATASET p_file FOR APPENDING IN TEXT MODE.
    ELSE.
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
    ENDIF.
    Retrieve BSEF fieldnames and data types
    PERFORM get_fields CHANGING lt_nametab.
    OPEN CURSOR l_cursor FOR
    SELECT * FROM bseg
    WHERE bukrs IN p_bukrs
    AND belnr IN p_belnr
    AND buzei IN p_buzei
    AND gjahr IN p_gjahr.
    Write out fieldnames
    IF p_append IS INITIAL.
    LOOP AT lt_nametab INTO ls_nametab.
    CONCATENATE ls_output ls_nametab-fieldname
    INTO ls_output SEPARATED BY c_delimiter.
    ENDLOOP.
    IF ls_output+0(4) = c_delimiter.
    SHIFT ls_output LEFT BY 4 PLACES.
    ENDIF.
    l_len = strlen( ls_output ).
    TRANSFER ls_output TO p_file LENGTH l_len.
    ENDIF.
    Process BSEG records
    DO.
    CLEAR lt_bseg.
    FETCH NEXT CURSOR l_cursor
    INTO TABLE lt_bseg
    PACKAGE SIZE c_records.
    IF sy-subrc 0.
    EXIT.
    ENDIF.
    LOOP AT lt_bseg INTO ls_bseg.
    SELECT single * FROM BKPF
    WHERE BUKRS = ls_bseg-BUKRS
    AND BELNR = ls_bseg-BELNR
    AND GJAHR = ls_bseg-GJAHR
    AND BUDAT in p_budat.
    if syst-subrc 0.
    continue.
    endif.
    CLEAR ls_output.
    Process individual fields of BSEG record
    LOOP AT lt_nametab INTO ls_nametab.
    CONCATENATE 'LS_BSEG-' ls_nametab-fieldname INTO l_field.
    ASSIGN (l_field) TO <field>.
    CLEAR l_output.
    Process by field data types
    CASE ls_nametab-exid.
    WHEN 'C' OR 'N' OR 'I'.
    Character, Numeric & Integer
    l_output = <field>.
    WHEN 'D'.
    Dates
    WRITE <field> TO l_date DD/MM/YYYY.
    l_output = l_date.
    WHEN 'P'.
    Packed decimals
    WRITE <field> TO l_output.
    WHEN OTHERS.
    MESSAGE a000(zs) WITH 'Data type error - ' ls_nametab-exid.
    ENDCASE.
    SHIFT l_output LEFT DELETING LEADING space.
    CONCATENATE ls_output l_output
    INTO ls_output SEPARATED BY c_delimiter.
    ENDLOOP.
    IF ls_output+0(4) = c_delimiter.
    SHIFT ls_output LEFT BY 4 PLACES.
    ENDIF.
    l_len = strlen( ls_output ).
    TRANSFER ls_output TO p_file LENGTH l_len.
    ENDLOOP.
    IF sy-subrc = 0.
    ENDIF.
    ENDDO.
    CLOSE CURSOR l_cursor.
    CLOSE DATASET p_file.
    ENDFORM. " get_records
    *& Form get_fields
    FORM get_fields CHANGING pt_nametab TYPE ty_tab_nametab.
    CALL FUNCTION 'RFC_GET_NAMETAB'
    EXPORTING
    tabname = 'BSEG'
    TABLES
    nametab = pt_nametab
    EXCEPTIONS
    table_not_active = 1
    OTHERS = 2.
    IF sy-subrc 0.
    ENDIF.
    ENDFORM. " get_fields
    hope this helps.
    cheers,
    Hema.

  • Extracting info from webpages

    I am trying to create a hotel program that has various features including finding cheapest hotel prices on the web. My program searces the web and returns the approriate web page results in html format. My problem is I'm not sure the best way to extract the information I want. Below is an example of a web page (I know it's long but if you copy it into a web browser, it does work, honest!). From this page I want to extract the hotels name and prices.
    http://www.bookings.org/searchresults.html?class_interval=2&country=gb&error_url=http%3A%2F%2Fwww.bookings.org%2Fcountry%2Fgb.html%3F&search_by=city&city=-2595386&region=Avon+Aberdeenshire&class_key=1&class=0&do_availability_check=on&checkin_monthday=21&checkin_year_month=2005-6&checkout_monthday=22&checkout_year_month=2005-6&newlangurl=%2Fcountry%2Fgb.en.html&x=77&y=14
    At present I can return the HTML of this page. However can anyone suggest how I go about extracting the specific info i require. The html file is huge!
    Regards
    Ross

    Sorry pasted the wrong url. This one should work.
    http://www.bookings.org/searchresults.html?class_interval=2&country=gb&error_url=http%3A%2F%2Fwww.bookings.org%2Fcountry%2Fgb.html%3F&search_by=city&city=-2595386&region=Avon+Aberdeenshire&class_key=1&class=0&do_availability_check=on&checkin_monthday=24&checkin_year_month=2005-3&checkout_monthday=27&checkout_year_month=2005-3&newlangurl=%2Fcountry%2Fgb.en.html&x=88&y=5

  • Extracting info from HTML documents

    My program returns the HTML of any web page entered by the user. The HTML documents that are returned all contain pricing infomration that I want to extract. Any idea of the best way to search an HTML document for specific infomration I require. Seems like a huge task to split it all into tokens and searching for � sign!!!!!

    This a nightmare of a problem........... the html
    files that I am retrieving are huge. All I need from
    them are a couple of lines of information. How do I
    find the specific infomration I need???Load the entire file, search for it. You find the information in the same way like you'd do when ouy look for it in the file's source code.
    Is it possible from a java program to open the HTML
    file in web broweser, search, then return the info?
    The html files seem really complex to search on.How would this help?

  • Extracting info from v$sqlarea

    Hi,
    I use Oracle 9i and I am trying to extract what a session is exactly doing in a certain moment.
    So, on sqlplus I execute
    select a.sid,a.username,b.sql_text
    from v$session a inner join v$sqlarea b
    on a.sql_address=b.address and
    a.sql_hash_value=b.hash_value
    where sid=&sid;
    but sql_text column is just 1000 characters size and I want the whole statement.
    Is there any way to extract this information using sqlplus? I know that Enterprise Manager shows me this information, but to get sql text at the right moment, I would like to use a script.
    Thanks in advance
    Alex

    Hi Arup,
    I am writing a linux shell script that will automatically logmine information from the archivelogs in the database,
    I want to try to build a shell script that will make information from the archivelogs aceesible to users i.e automating logminer with either shell scripting or set of
    pl/sql procedures so that a user can use his reporting tool to specify the start date , end date and all other parameters to spool the information.
    You could also help with any ideas you have.
    Best Regards

  • How to extract info from an almost diseased HD?

    Hi,
    My mac won't boot up it and after a silent "burr" sound, it shuts itself down during the grey "apple"-screen (while the gear is spinning). I have tested all the tips I could find on this forum and others (incl. resetting the PRAM, starting in Single user mode, in Safe mode etc.). It seems to me that my hard drive is dead (or hopefully almost dead)...
    When I try to do Repair Disk through my installation disc it says there is an error with the HD and it can't repair it. My HD is visible in the Disk Utility – (but i.e. not on someone else's desktop in Target-mode.). I cannot mount the disk in Disk Utility and I can't copy the disk as a disk image.
    Is there any other way I can copy or extract the info on my HD (I need some files that weren't backed up)? Perhaps you have some tips for more advanced software? I don't want to go to a Data Recovery shop yet... Please help.
    Cheers,
    Mat.

    Mat:
    Disk Utility reports "Underlying task reported failure" when repairing a volume is a serious directory/file structure error that, as you have learned, cannot be repaired by Disk Utility. The article linked suggests the use of third party software, which we have noted earlier. For more technical information on the subject see Kappy on Error -9972
    There is a possibility that the condition can be brought about by a failing HDD, although that is not always, or even usually, the case. So the first order of business would be to run either TTP or DW and see what you come up with.
    As to what you can do to recover your data if you are unable to mount the disk that can be a challenge. Here is what I suggest:
    Download the demo version of DataRescue II
    Boot computer in FW-TDM and see if DataRescue can locate your data.
    If the files which you want to backup show up you will have to buy the license to be able to recover them. Dr. Somke's FAQ Data Recovery is a good tutorial on the subject.
    Please do post back with further questions or comments.
    cornelius

  • Script to extract info from Mail subject line?

    I'd like to set up a rule that copies all subject lines containing text I specify to a text file. For example... all subject lines containing "has subscribed" would be copied to subscribers.txt. Is this possible?

    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    using terms from application "Mail"
    on perform mail action with messages theMessages
    tell application "Finder" to set ptd to (path to desktop folder) as string
    tell application "Mail"
    repeat with theMessage in theMessages
    if subject of theMessage contains "has subscribed" then
    set theText to (subject of theMessage & return)
    set theFile to ptd & "subscribers.txt"
    set theFileID to open for access file theFile with write permission
    write theText to theFileID starting at eof
    close access theFileID
    end if
    end repeat
    end tell
    end perform mail action with messages
    end using terms from
    </pre>

  • Extracting info from info window OTHER THAN the usual properties

    Hi, the info window's property list does not include what's in the "more info" section: I am specifically looking for the "dimensions" property of a jpeg file. Is there some way to access it in a script?
    thanks
      Mac OS X (10.4.6)  

    I don't believe Finder exposes that information to AppleScript directly. There are many other ways to get image info, however. Here are three of them…
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">set hfs_image to choose file
    tell application "Image Events" to tell (open hfs_image)
    set {w, h} to get dimensions
    close
    end tell
    {w, h}
    -- UNIX METHODS
    set posix_image to POSIX path of hfs_image
    -- Using MDLS (Metadata List, AKA Spotlight)
    set w to last word of (do shell script "mdls -name kMDItemPixelWidth " & quoted form of posix_image)
    set h to last word of (do shell script "mdls -name kMDItemPixelHeight " & quoted form of posix_image)
    {w, h}
    -- Using SIPS (Scriptable Image Processing System)
    set w to last word of (do shell script "sips -g pixelWidth " & quoted form of posix_image)
    set h to last word of (do shell script "sips -g pixelHeight " & quoted form of posix_image)
    {w, h}
    </pre>

  • BO 4.0 Extract info from SAP BW Table

    Hello Guys,
    we would like to join SAP BEx Query with SAP BW Table. I thought of using the Information Desing Tool.
    Do you know if Information Design tool can connect a SAP Table?
    Thanks and regards,
    Markus

    Hello Markus,
    the Information Design Tool is able to create a relational Universe on top of InfoProvider which will show the tables from the cube, but the Information Design Tool in the current release is not able to show the tables from the ERP system.
    regards
    Ingo Hilgefort

  • Extracting text from header, body of an InCopy table...

    Hi folks, I have a script that runs in InCopy CS3 on the Windows platform and part of it extracts text from the header and body parts of a table. If the insertion point is in the header, I can put the text into a variable using...
    var textToExtract = app.selection[0].parentStory.contents;
    Same scenario if the insertion point is in the body of the table. Anyway, I'm looking for a way to set the insertion point in the Header or Body sections of the table or, better yet, a way of extracting the data directly from those containers. Any ideas are, of course, appreciated. Thanks, Wil

    Yes, I am stuck with the same problem.... any ideas out there?
    thanks

  • How do I remove (strip) the RFH2 header from a message?

    Hi,
    MQSeries version 5.2.1 with client version 5.2.2
    I have a Java program enqueues the messages to MQSeries and another Java program dequeues them and I need to remove the RFH2 header. How do I do this? I don't want to define TARGCLIENT(MQ). In another word, the RFH2 header can exists, and I must be able to detect and remove it when dequeue.
    Thanks very much in advance,
    Frank

    There is a kludge, which involves using the innards of an MQSeries message - 8 bytes into the message is a 4 byte block which gives you the length of the RFH2 header ( which is variable depending on the JMS header info you have ). Read these bytes and convert them to an int, and then do a msg.seek(lengthofheader) to get the start of the raw MQSeries message. Its not pretty coding and I don't know the likelyhood of IBM changing the internal format of a message with new version releases.

  • How to extract data from info cube into an internal table using ABAP code

    HI
    Can Anyone plz suggest me
    How to extract data from info cube into an internal table using ABAP code like BAPI's or function modules.
    Thankx in advance
    regds
    AJAY

    HI Dinesh,
    Thankq for ur reply
    but i ahve already tried to use the function module.
    When I try to Use the function module RSDRI_INFOPOV_READ
    I get an information message "ERROR GENERATION TEST FRAME".
    can U plz tell me what could be the problem
    Bye
    AJAY

  • HT4910 My iCal has frozen after I tried to paste info from an email into a reminder.  I get a "server reports an error" message with what I tried to paste in the box.  Calendar is frozen and will only close by forcing it.  Any help?

    My iCal has frozen after I tried to paste info from an email into a reminder.  I get a "server reports an error" message with what I tried to paste in the box.  Calendar is frozen and will only close by forcing it.  Any help?

    Did another window open with the pasted information?  If so, try hitting "enter/return" key and "delete" key at the same time.  That should get rid of the current action on the ical, the extra window should go bye-bye, and all should be fine with the world.

Maybe you are looking for

  • OIM11g R1: Error Creating Authorization Policies

    Hi All, While creating custom authorization policies, I am getting a window popup with below error message: files: <OIM_ORACLE_HOME>/server/apps/oim.ear/admin.war/WEB-INF/lib/OESOIMTaskFlows.jar/taskflows/policycreate/DataConstraints.jsff ADF_FACES-6

  • Open a file in same directory as app

    I am trying to open a separate app that is in the same folder as the form app i'm using. Is there a way to do it so i can move the folder with the files in it from computer to computer and still have it work. I'm trying to open it with a jbutton Than

  • Data Blocking -- Why?

    This isn't a knock on those folks who have chosen to block all data, but I'm just curious as to why it's such a big deal? I've had my KIN TWOm for about three weeks. I use data quite a bit for things like e-mail, weather radar, sports scores, Google

  • Header discount

    Dear friends                   i have created a manual  header discount condition type HB00, after  giving manually it will split the discount value to each line item based on weight of material ,but i want the amount should be distribute equally to

  • Get index in foreach loop

    Hi, I have to iterate a list and get a value from another list. Something like this: for (String element: A)   x.replaceAll(element, B.get(A.indexOf(element))); }Is there a another way to get the index we are at? JoSE ====