Looking at Data in the IP_IN_QUEUE -- Payload Field within IP_MESSAGE_TYPE

Does anyone have any sql, that would display the contents of the PAYLOAD field within the IP_MESSAGE_TYPE object, once a message gets queued after an incoming EDI transaction gets processed by B2B successfully --> note BPEL/SOA is not running at this point --> I just want to dump the XML itself.
I tried using the following code, but can not get the dbms_lob.read function to work properly; my dbms_lob.getlength function returns 5700, but I can not even read 250 bytes --> get sql "06502" PL/SQL numeric or value error: bind too small
--> I however can read 150 bytes .
Can someone perhaps figure this out.
CREATE OR REPLACE PROCEDURE b2b_deq AS
dequeue_options dbms_aq.dequeue_options_t;
message_properties dbms_aq.message_properties_t;
message_handle RAW(16);
ipmsg ip_message_type;
inp_clob               clob;
output_data_clob varchar2(2000);
len_clob               binary_integer;
start_pos_clob integer;
BEGIN
dequeue_options.consumer_name := 'b2buser';
dequeue_options.dequeue_mode := dbms_aq.remove;
dequeue_options.navigation := dbms_aq.next_message;
dequeue_options.wait := dbms_aq.forever;
dbms_aq.dequeue ( queue_name => 'IP_IN_QUEUE',
dequeue_options => dequeue_options,
                    message_properties => message_properties,
                    payload => ipmsg,
                    msgid => message_handle);
dbms_output.put_line('Message ID: ' || ipmsg.msg_id);
dbms_output.put_line('Message Size: ' || dbms_lob.getlength(ipmsg.payload));
SELECT ipmsg.payload INTO inp_clob FROM dual;
dbms_output.put_line('Message Size #2: ' || dbms_lob.getlength(inp_clob));
start_pos_clob := 1;
len_clob := 250;
dbms_lob.read(inp_clob,len_clob,start_pos_clob,output_data_clob);
dbms_output.put_line('Message XML: ' || output_data_clob);
Thanks.
Arthur (203-921-5925)

Thanks for the info --> it worked fine now.
Also Ramesh, with regards to an example/sample of a BPEL process that reads an 850 from an IP_IN_QUEUE and processes this txn via a PL/SQL api (OAD) -
someone has told me that this does exist somewhere --> do you have any knowledge on this piece of code perhaps.
My key point here is in the ability to post multiple line items into 11i via the process. I posted this question on the SOA forum, but no replies have come through in five days or so.
Thanks as always.
Arthur (203-921-5925)

Similar Messages

  • Regarding spliting of the data in the internal table fields

    TYPES :BEGIN OF X_flat_file,
           banks LIKE lfbk-banks,
           bankl LIKE lfbk-bankl,
           bankn LIKE lfbk-bankn,
           koinh LIKE lfbk-koinh,
           bkont LIKE lfbk-bkont,
           END OF X_flat_file.
    DATA: t_itab TYPE STANDARD TABLE OF X_flat_file INITIAL SIZE 0,
          wa_itab TYPE X_flat_file,
    Now data in internal table is as follows:
    t_itab-banks is AD,DE, AB
    t_itab-bankl is 123456578,123456588,123456579
    t_itab-bankn is 12345666,12345677,12345688
    t_itab-koinh is vinod1,vinod2,vinod3
    t_itab-bkont is 01,01,01
    TYPES :BEGIN OF X_banks1,
           banks LIKE lfbk-banks,
           bankl LIKE lfbk-bankl,
           bankn LIKE lfbk-bankn,
           koinh LIKE lfbk-koinh,
           bkont LIKE lfbk-bkont,
           END OF X_banks1.
    DATA: T_BANKS1 TYPE STANDARD TABLE OF X_BANKS1 INITIAL SIZE 0,
          WA_BANKS1 TYPE X_BANKS1,
    Now i want internal table t_itab data should split at commas and transfered to internal table t_banks1.
    ex : t_itab-banks is AD,DE, AB should transfered to
    t_banks:   AD  ( 1 record)
                   DE  (2 record)
                   AB ( 3 record).
    I used following coding ......
       SPLIT wa_itab-BANKS AT ',' INTO  T_BANKS1-BANKS.
         SPLIT wa_itab-BANKL AT ',' INTO TABLE T_BANKS1-BANKL.
         SPLIT wa_itab-BANKN AT ',' INTO TABLE T_BANKS1-BANKN.
         SPLIT wa_itab-KOINH AT ',' INTO TABLE T_banks1-KOINH.
         SPLIT wa_itab-BKONT AT ',' INTO TABLE T_BANKS1-BKONT.
         SPLIT wa_itab-BANKA AT ',' INTO TABLE T_BANKA1-BANKA.
    But its not working.

    Dear Sarvesh,
    I have closed all the previous threads and only this one is open.
    My coding is like this.
    DATA:X(2),N(2) TYPE N.
    N = 0.
    LOOP AT T_BANKS INTO WA_BANKS.
    N = N + 1.
    ENDLOOP.
    X = 1.
    perform bdc_dynpro using 'SAPMF02K' '0130' 'X'.
    CNT = 1.
    DO N TIMES.
    IF CNT > 5.
    perform bdc_field using 'BDC_OKCODE' '=P+'. "*LOGIC FOR EXTENDING TABLE CONTROL
    perform bdc_field using 'BDC_OKCODE' '/00'.
    perform bdc_field using 'BDC_CURSOR' 'BANKNAM(01)'.
    CNT = 1.
    ENDIF.
    LOOP AT T_BANKS INTO WA_BANKS FROM X TO X.
    CONCATENATE 'LFBK-BANKS(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKS-BANKS.
    ENDLOOP.
    LOOP AT T_BANKL INTO WA_BANKL FROM X TO X.
    CONCATENATE 'LFBK-BANKL(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKL-BANKL.
    ENDLOOP.
    LOOP AT T_BANKN INTO WA_BANKN FROM X TO X.
    CONCATENATE 'LFBK-BANKN(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKN-BANKN.
    ENDLOOP.
    LOOP AT T_KOINH INTO WA_KOINH FROM X TO X.
    CONCATENATE 'LFBK-KOINH(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_KOINH-KOINH.
    ENDLOOP.
    LOOP AT T_BKONT INTO WA_BKONT FROM X TO X.
    CONCATENATE 'LFBK-BKONT(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BKONT-BKONT.
    ENDLOOP.
    perform bdc_field using 'BDC_CURSOR' 'LFBK-bkont'.
    perform bdc_field using 'BDC_OKCODE' '=BANK'.
    perform bdc_dynpro using 'SAPLBANK' '0100' 'X'.
    LOOP AT T_BANKA INTO WA_BANKA FROM X TO X.
    CONCATENATE 'BNKA-BANKA(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKA-BANKA.
    ENDLOOP.
    perform bdc_field using 'BDC_CURSOR' 'BNKA-BANKA'.
    perform bdc_field using 'BDC_OKCODE' '=ENTR'.
    CNT = CNT + 1.
    X = X + 1.
    ENDDO.
    My problem is that first table control data is getting loaded in the table fields BANKS, BANKL, BANKN, KOINH, BKONT . But next screen ('SAPLBANK' '0100' 'X'.) is not getting called and BANKA data is not getting filled..
    Pls help.
    As per the recording, first BANKS, BANKL, BANKN, KOINH, BKONT table control data should be filled and next screen should be called and then BANKA  data should be filled and again cursor should come back to screen ('SAPMF02K' '0130' 'X'.).
    similarly second table control data.

  • Looking up data and validating a text field

    Hi All,
    Ran into an issue with a Application Express system i support, there is a table inside a database with department codes. HG and JW. what i need to do is look up the department code and validate a text field, for example, if the user enters "HG" or "JW" then the form can be submitted. i got told it was PLSQL in the "Page Processing" Page
    Sorry for the bad descrpition, im a complete beginner to Application Express
    Thanks,
    Sam

    940648 wrote:
    Hi All, Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "940648".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Ran into an issue with a Application Express system i support, there is a table inside a database with department codes. HG and JW. what i need to do is look up the department code and validate a text field, for example, if the user enters "HG" or "JW" then the form can be submitted. i got told it was PLSQL in the "Page Processing" Page
    Sorry for the bad descrpition, im a complete beginner to Application ExpressTake the <i>Oracle® Database 2 Day + Application Express Developer's Guide</i> tutorial in order to understand basic APEX techniques and terminology.
    What you're looking for is Validation.
    This is covered in the Oracle By Example tutorial: Building an Application using Oracle Application Express: Part 1

  • I want to adjust the column width of "From", "Subject" and "Date". in the AT&T email within Firefox browser

    My computer runs under Windows Vista Home Premium, and Firefox browser 3.6.13. Within the Firefox browser, it shows an AT&T email window (www.sbc.yahoo.com). There are several columns such as subject, date, etc. I was able to adjust such column width before. Now I cannot do it. (Also I can adjust column width if I run in the Internet Explorer. I have another computer running Window 7 professional, same set up with Fire Fox and AT&T email, I am able to adjust the column width so I can show the full subject line.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    You can also try to set the pref layout.frames.force_resizability to true on the about:config page.
    See also http://kb.mozillazine.org/about%3Aconfig

  • TO Read the data from the I/P payload of the proxy

    I want to know is there any function module or report available to read the data from the
    payload of the proxy. As we can see the data in the input payload for the prticular
    message in sxmb_moni tcode.Is there any table where this data will be stored.
    And also I have to update one Ztable with XML Message ID,Sender Interface Namespace,
    Sender Interface Name as and when this proxy is triggered. For this I will have to implement the
    class for the interface in the sproxy tcode and in this implementation i will update this
    ztable but my problem is how will i get this values there.
    In debugging I found one report  rsxmb_display_msg_vers_new is submitted in sxmb_moni to show ll these details but
    looking specially foe the paylod data.
    Your help is highly appreciated.
    Thanks.

    Hello PawanG ,
    It is very simple to find out all DB tables involved in the rsxmb_display_msg_vers_new . Steps below:
    1. run tcode SE30
    2. click "program" radio box, input RSXMB_DISPLAY_MSG_VERS_NEW as program name, click "Execute" button.
    3. input an valid message uuid in the "Message GUID" field and execute.
    4. go back to SE30,click "Evaluate" tab
    5. click "DB tables".
    Then all DB table name and description are listed there. I am sure you can find what you need. Good luck!
    Best Regards,
    Jerry

  • Setting only the TO field on the Created on Field in Selection screen to Current date

    Hello,
    We have a requirement to Set only the To date in the Created on Field in Selection screen to the Current date, I have tried through Dynamic variable option to set the Date calculation but I am able to see Options to set the Current date to From or From and To Created on Date fields instead of setting the Current date only to To created on Field.
    We are in 4.7 and are not supported with user defined variables, Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    >
    sunitha j wrote:
    > Hi ,
    >
    > It would br gr8..if u could give some more info about the usage of this class..i mean if i hav to implement it in my program....wat is the necessary data that needs to b copied...
    >
    > Thanx,
    > Sunitha
    what Text field you want to change.
    Since you are working with Dynpros , you have to split the screen in two parts, and one for the Showing differenet fonts and other your normal Dynpro information.
    you need to use the Method ADD_TEXT Did you check the program DD_STYLE_TABLE.

  • Loading Historical data to the new field without deleting the data in cube

    Dear BI Experts,
    I have enhanced a new field to the Generic data source in BI 7.0 .
    I need to load historical data to the newly  appended field.
    As we are having very huge data it is not possible to delete and do init again.
    Is there any  other possibility to load the historical data for the new appeneded field without deleting the old requests?
    Thanks for your Kind  help.
    Kind Regards,
    Sunil

    Dear Sushant,
    Thanks for your reply.
    But I am just wondeing if there is any possibility of loading historical data for new field using Remodelling  concept
    with out deleting old requests.
    I do not know about Remodelling conept but heard that it is not recommeneded to use.
    Can you please suggest and help.
    Thanks and Regards,
    Sunil Kotne

  • Function of HOLD DATA in the settings for creation of a new screen.

    Hi,
    Since i'm new to ABAP and still learning my way through, i would really appreciate if somebody can help me out with the exact functioning of selecting the check box 'HOLD DATA' under the settings option while creation of a new screen.
    Thanks for any help extended.

    Take simple scenario of SE38. The Screen for the transaction has the Flag "HOLD DATA" as Ticked.
    Now enter some program name on the field and Click - Utilities-> User Profile -> Hold data.
    Now come out of the transaction, go back to the same transaction. The name of the Program that you entered earlier will appear on the input field.
    So if the screen doesn't have "Hold Data" set the functions of HOLD data, SET DATA, DELETE data will not work.
    Also try using SET DATA For the Program input field.
    SAP Help :
    If you activate this option, the following functions are supported for the screen at runtime:
    System -> User profile -> Hold data
    -> Set data
    -> Delete data
    The Hold data function allows you to hold onto any entries you have made on the screen. When the screen is next processed (even in a different mode), the system then automatically redisplays the data in the input fields.
    If the option is not activated, these functions are ineffective at screen runtime.

  • Tables to see credit data of the customer.

    Hi
    Is ther any table which gives the data for the below mentioned fields
    Customer
    CCA
    Credit limit
    Credit exposure
    credit limit used
    I checked with F.35 but it is giving only the data for customer and CCA.
    thank you,
    Malli.

    Hello,
    Talk to your abaper on how to use the BAPI  'BAPI_CREDIT_ACCOUNT_GET_STATUS'
    This will show you the information you want
    ===
    FU BAPI_CREDIT_ACCOUNT_GET_STATUS
    Short Text
    Determine Credit Status of Credit Account
    Functionality
    This method enables A/R summary data to be determined. A/R summary data contains all the data regarding credit that is required to be able to conduct an operative credit check when entering orders.
    Whether A/R summary data is created (and can then be used) is defined in the accounting system itself.
    If no A/R summary data is created, the data can be gradually determined by calling up the following methods:
    GetOldestOpenItem
    GetHightestDunningLevel
    GetOpenItemsStructure
    GetDetail
    If these methods are used, the A/R summary data represents a summary of the partial results of the above mentioned methods. Although the data from these methods may not be up-to-date, it can be determined much more quickly.
    Parameters
    CUSTOMER
    CREDITCONTROLAREA
    RETURN
    CREDIT_ACCOUNT_OPEN_ITEMS
    CREDIT_ACCOUNT_DETAIL
    Exceptions
    Function Group
    1010

  • How to write in selection screen after the select option field?

    Hi
    Please help me with this...
    i need to write format of date after the select option field in the selection screen.
    its like..
    date ___________  to ___________     <b>yyyymmdd</b>
    points will be awarded..
    thanx

    Use  selection-screen comment 1(31) text-005 -> this will give you format option.
    See the below sysntax ,you have to use like this
    Selection-screen begin of block b2 with frame title text-002.
    selection-screen begin of line.
    selection-screen comment 1(31) text-004.
    parameter:        r_1   radiobutton group rad1.
    selection-screen end of line.
    selection-screen begin of line.
    Aging  Report
    selection-screen comment 1(31) text-005.
    parameter:        r_2   radiobutton group rad1.
    selection-screen comment 40(30) text-003.
    parameter: p_expir as checkbox.
    selection-screen end of line.
    selection-screen begin of line.
    Materials with no Expiry Date
    selection-screen comment 1(31) text-006.
    parameter:        r_3   radiobutton group rad1.
    selection-screen comment 40(30) text-007.
    parameter : p_bin as checkbox ."default 'X'.
    selection-screen end of line.
    selection-screen end of block b2.
    selection-screen end of block b0.

  • Refresh page with data from the Next Record in the Table through a Button

    Scenario: Record of a table “prototype” is made up of 8 columns,
    key_col,
    text_col,
    label1_col, label2_col, label3_col,
    check1_col, check2_col, check3_col,
    I have created the following items on a page:
    a) A Display Only item that is populated through a SQL query
    “SELECT text_col from prototype where rownum=key_seq.NEXTVAL “.
    b) Hidden item for the database columns “label1_col, label2_col, label3_col”
    Source type for the hidden items is of type SQL query, Source expression is:
    Select label1_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label2_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label3_col from prototype where rownum=key_seq.NEXTVAL ;
    (key_seq is a sequence).
    c) Checkbox item for the database columns “ check1_col, check2_col,check3_col"
    d) The labels for the above checkbox items are &label1_col. , &label2_col. , &label3_col.
    I have created a Save button to save the state of the checkboxes; (STATIC:;1 )
    I want the page to be refreshed with the data from the next record (Fields text_col, label1_col, label2_col, label3_col) through a “ Next” Button.
    Can I please know how I can achieve this?
    Thanks in advance

    If you need the value that is entered in the textbox as the email body, then try this..
    <html>
    <HEAD>
    <title>WebForm1</title>
    <script language="javascript">
    function mailHTML() {
    var content=document.getElementById('textBox').value;
    location.href="mailto:?body="+encodeURI(content);
    </script>
    </head>
    <body>
    <form name="theform" id="theform">
    <div name="body1"/>
    <input type="text" value="Test" id="textBox"/>
    <input type="button" value="Send Email" onClick="mailHTML()"/>
    </div>
    </form>
    </body>
    </html>

  • Pointing FCE to Look for Data at New Location

    FCE is in my laptop, but original clips (within an iMovie project) were taken from an External Disk ("ED"). When I opened the finished FCE project, I still had to be connected to the ED in order to keep all the files intact.
    I copied the iMovie file into the laptop, and then Set the Preference to look for data in the new location in the laptop, but it is not working. Only upon re-connecting to the ED can all the files be found and viewed again.
    Any suggestions would be greatly appreciated; thank you for your time and efforts.

    Piero, thank you for the reply. Reconnecting individual clip to the corresponding clip in the new location will be difficult as the clips are in iMovie, which (unlike in the old iMovie) does not actually show us all the individual clips.
    I suppose I will just have to start over, OR a good lesson for next time, to make sure where everything should be.

  • Best practices for using the 'cost details' fields

    Hi
    Please could you advise us to the best practices for using the 'cost details' field within Pricing. Currently I cannot find the way to surface the individual Cost Details fields within the Next Generation UI, even with the tick box for 'display both cost and price' ticked. It seems that these get surfaced when the Next Generation UI is turned off, but cannot find them when it is turned on. We can see the 'Pricing Summary' field but this does not fulfill our needs, as some of our services have both recurring and one-off costs.
    Attached are some screenshots to further explain the situation.
    Many thanks,
    Richard Thornton

    Hi Richard,
    If you need to configure dynamic pricing that may vary by tenant and/or if you want to set up cost drivers that are service item attributes, you should configure Billing Tables in the Demand Management module in 10.0. 
    The cost detail functionality in 9.4 will likely be changed to merged with the new pricing feature in 10.0.  The current plan is not to bring cost detail into the Service Catalog module.

  • Please expose the employee ID field in ADUC in this version, also add a field for data of birth, and present both on the change password form so we can validate a user's identify when they ring up for a reset.

    Considering Active Directory is supposed to be all about business, corporations and enterprises, I find it staggering that in 2015 the ADUC console STILL does not expose the Employee ID field in the default UI without having to dig into the attribute editor.
    And then only if you browse to the user in their OU, the Attribute Editor tab is missing when you just search for the user. This isn't really helping our organisation. I've just setup the tech preview version of the new server version, and that doesn't expose
    it either.
    I'm not sure how other organisations handle this (suggestions please?), but when a user rings up the service desk for a password reset, we either have to keep them on the phone while we dig into their user account and look for the Employee ID for them to
    then confirm on the phone, or just take it on blind faith that they are who they say there are.
    Please for the love of all deities, can you expose the Employee ID field on the main user panel without having to dig into attribute editor. It would also be useful to show this information directly on the reset password dialog box so there's no looking
    up required. While you're at it, please can you add a date of birth field (if it isn't already there, I never seen one), and expose this on the main screen for the user, as well as the reset password box. This would give us two pieces of information to verify
    the identity of the user on the phone.
    All that being said, if anybody has a better way of identifying users on the other end of the phone, I'm all ears.
    Thanks in anticipation.

    Personally we use the AD selfservice plugin for manageengines service desk plus.

  • How to compare Date in the TextField or DateTime with Date/Time field?

    Hi All,
    I am facing an issue with respect Date comparinson. I tried to look into entire discussions but failed to get the answer.
    My issue is: I wanted to comparet Date/time field value with Date value which is in TextField.
    The functionality of my form is:
    I have dropdown list which lists the registered customer ids binded to XML Datasource. On selection of the customer id from the dropdown I am displaying customer registration date in the TextField or say Date/Time field as below code in dropdown change event.
    RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value; (this is TextField control)
    In form I have an Date/Time field in which use will select the date of item purchase. In the validation part I want to make sure that, the purchase date selected in Date/Time field must be greater than the Customer Registraiton Date. I able to compare if the customer selects the date from two different Date/Time fields. But how to compare the dates which one is in Date/Time field and Date is in TextField?
    I have tried using Num2Date and Date2Num with "YYYY-MM-DD"  format to compare but not succeed!
    Can you guys help me in this? Thanks in advance
    Regards.

    Hi,
    Yes, I am able to display the date which I have assigned to the text box. In the message box it show the value as '31/05/2009', since in this format i am assigining the date in the text box.
    Here is the code which I am assigning the value:
    RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value;
    Do I need to change the format while assigning value in text box?
    You have told that, you have attached your test form, nothing is the reply. Can you repost the file?
    Regards.

Maybe you are looking for