JMS sender with MessageTransformBean and xml.additionalLastFields

Hi all,
I have a JMS sender adapter (generic JMS) which I use for this scenario
MQ (JMS) --> PI (7.4 AEX) --> ERP (IDoc)
I am following this page for setting up content conversion for the adapter:
Adapter Engine (Java SE) - SAP Library
If i specify the following parameters...
xml.missingLastFields = Error
xml.additionalLastFields = Error
... the channel goes to error state when it tries to process a shorter / longer message then the configured one.
This of course is expected / wanted behavior. What is not wanted is that the channel does not pick up the message from the JMS queue and then putting it on error state within PI. Instead the message stays in the queue and the channel tries to pick up the message every second or so.
So my question is:
Is there any way to have the channel pick up the message from the queue, then fail on PI and put the message in (system) error state?
(I already tried Transform.PermanentErrors = true but no luck, maybe this only applies to file adapter?)
Thanks and kind regards
Jens

Hi Jens,
AFAIK - there is no standard way in adapter engine to perform this. But you can pick the message a throw the error in transformation step (using mapping).
regards,
Harish

Similar Messages

  • Problems with reports and XML-publisher - No XML

    Hi!
    I'm having a problem with Apps and XML-publisher. I made a report file, which queries some views. When executing in reports, I get all the data I expect.
    Now, when I upload the reportfile to Apps and let it generate XML, my xml-file is empty (well, almost empty)
    <?xml version="1.0" ?>
    <!-- Generated by Oracle Reports version 6.0.8.27.0 -->
    <T03501684>
    <LIST_G_PERSOON>
    <LIST_G_PERSOON />
    </T03501684>
    Anyone who can shed any light upon this problem?

    OK, finally solved the problem... A good night's sleep always helps ;).
    After just trying each queried table one after an other, I found the problem:
    The difference between Oracle Apps (Dutch locale) and the reports builder (English) is the language... And our functional people have changed some names, but the Dutch ones, leaving the english names in place and one of the tables I query has language specific data, which is also appears in a where clause.

  • JMS Sender with ejb3 container managed transaction

    Hi all,
    I refer to the following link http://download.oracle.com/docs/cd/E11035_01/wls100/jms/trans.html#wp1035937
    I found that JTA support JMS.
    But I dont' want to use JTA explicitly, I want to use container manage transaction. eg. inside ejb3 stateless session bean.
    does it support JMS?
    With Regards,
    wp

    Hi,
    Yes, WebLogic JMS supports JTA (a.k.a XA, a.k.a global) transactions such as container managed transactions. There are two requirements for CMTs on SSB:
    (1) use an XML descriptor setting or EJB annotation to enable CMT for the SSB
    (2) use a WebLogic JMS connection factory that is configured to have "global (XA) transactions enabled"
    And I usually also recommend:
    (3) Consider using a JEE "res-ref" for the connection factory to enable pooling of JMS resources. See "Enhanced Support for Using WebLogic JMS with EJBs and Servlets" (http://download.oracle.com/docs/cd/E14571_01/web.1111/e13727/j2ee.htm#g1329180), and the "Integrating Remote JMS Providers" FAQ (http://download.oracle.com/docs/cd/E14571_01/web.1111/e13727/interop.htm#JMSPG553).
    (4) Avoid using SSBs to receive messages. MDBs are specifically designed for processing incoming messages.
    It's also possible to have WebLogic automatically enlist foreign (non-WebLogic) vendors in WebLogic transactions. See the "Integrating Remote JMS Providers" FAQ for details (http://download.oracle.com/docs/cd/E14571_01/web.1111/e13727/interop.htm#JMSPG553).
    Regards,
    tom

  • JMS (Sender Communication Channel) and MQ in Mainframe (Legacy) System

    Hi All,
    Can we use JMS Sender Communication Channel in XI that runs on Windows 2003 server to DIRECTLY poll messages from MQ in Mainframe (Legacy) system??
    I understand that we can install MQ on XI server and have mainframe push the messages to XI MQ so that JMS can poll but wanted to see if there is a way to do this without having MQ on XI server.
    If you know of any documentation regarding this, can you please post it?
    Thanks,
    Jay

    Jung,
    Are you looking for this help:
    /people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
    Also check this sap help:
    http://help.sap.com/saphelp_nw04/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/content.htm
    ---Satish

  • Problem in IAS Server with generation of PDF with FOP and XML parsing

    Dear co.forumers :
    We are developing an application that generates a pdf document with FOP Apache utilities, and this PDf is stored in a folder of the server. Firts of all, a DDBB data is retrieved using java ( jdbc) middleware classes ( servlets ), and with these data, the pdf is generated using FOP. In these process, he data retrieved from the DDBB is converted in a XML file , and the with the XSL FOP utility, the pdf is generated.
    In the other hand, we have another application that consults data from a java beans, using a JSP, generates a XML with the data of the beans, and with this XML, and with a XSL file generates and html , with the data and fixed text.
    Both applications have been deployed as a separated WebApp in the IAS. Both use Xalan as XML parser amb Xerces is used aswell.
    So, the problem is , after generating a pdf with the firts application, every html generated via JSP-XML-XSL transformation in the second application is shown completelly bad formated. All fixed text are wrongly composed, and the text that should appear in textFields and ComboBoxes is also bad formated. The XML with the data is well generated, so the problem is in the parsing of these XML and the conversion in html through XSL. We have to re-initiate the server and then everything goes well again. If no pdf is launched, no problem occurs with the other application.
    How an a WEB APP pplication can affect to another, installed both in different folders of the IAS ? We tried to change Xalan version and FOP version, but no result.
    Is this a Poltergeist ?? and X file , maybe ?
    Has anyone had the same problem ?
    Pleae, any help will be very wellcomed.

    A PDF document may be generated in the JDeveloper OC4J server.
    http://www.oracle.com/technology/pub/notes/technote_vohra_fop.html

  • Mail sending with subject and attachment

    hai all,
           my requiremnet is i want to send a mail with a body and pdf attachemnt , but with the below code iam able to send both as attachment , but how to send along with body.
    *& Report  ZV_TEST                                                     *
    Report  ZV_TEST no standard Page heading line-size 200.
    Tables: Pa0105,
            pernr,
            QPPNP,
            HRPY_RGDIR,
            SSCRFIELDS,
            pa0002.
    Constants
    constants:
    begin of F__LTYPE, "type of line
    CMD like PC408-LTYPE value '/:', "command
    TXT like PC408-LTYPE value 's', "textline
    end of F__LTYPE.
    constants:
    begin of F__CMD, "commands
    NEWPAGE like PC408-LINDA value '<NEW-PAGE>',
    end of F__CMD.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    Data Declaration
    DATA:Begin of Itab occurs 0,
           pernr like HRPY_RGDIR-PERNR,
           SEQNR like HRPY_RGDIR-SEQNR,
           PAYSLIP_VARIANT like BAPI7004-PAYSLIP_VARIANT,
         end of itab.
    data: P_INFO like PC407,
          P_INFO1 like PC407,
          P_FORM like PC408 occurs 0 with header line,
          P_P_FORM like PC408 occurs 0 with header line,
          RETURN like BAPIRETURN1 occurs 0 with header line,
          PAY_VAR like BAPI7004-PAYSLIP_VARIANT value 'ESS_PAYSLIPS' ,
          P_LIST like ABAPLIST occurs 1 with header line,
          P_IDX type I.
    data: begin of P_INDEX occurs 0,
            INDEX type I,
          end of P_INDEX.
    data: OBJBIN like SOLISTI1 occurs 10 with header line,
          DOCDATA like SODOCCHGI1,
          OBJTXT like SOLISTI1 occurs 10 with header line,
          OBJPACK like SOPCKLSTI1 occurs 1 with header line,
          RECLIST like SOMLRECI1 occurs 1 with header line,
          OBJHEAD like SOLISTI1 occurs 1 with header line,
          TAB_LINES type I,
          ATT_TYPE like SOODK-OBJTP.
    data: PDF_TAB like TBL1024 occurs 0 with header line,
          OTF_TAB like TBL1024 occurs 0 with header line.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    data: PDF_CONTENT TYPE XSTRING,
          PDF_FSIZE   TYPE I.
    data: error        TYPE sysubrc.
    DATA: v_dest LIKE tsp01-rqdest,
          v_handle LIKE sy-tabix,
          v_spool_id LIKE tsp01-rqident,
          v_rc TYPE c,
          v_errmessage(100) TYPE c,
          v_text(70) TYPE c.
    data: PAYSLIP     LIKE     BAPI7004_PAYSLIP occurs 0 with header line.
    Data: v_index like sy-index value 1.
    Data: Begin of I_Sent occurs 0,
            pernr like pernr-pernr,
            name(20),
            usrid_long like pa0105-usrid_long,
            Status(3),
          End of I_sent.
    Data: Begin of I_NSent occurs 0,
             pernr like pernr-pernr,
            usrid_long like pa0105-usrid_long,
          End of I_Nsent.
    DATA: I_FCODE TYPE TABLE OF sy-ucomm.
    data: v_text1(255),
          v_text2(255),
          v_text3(255).
    data: month_names like T247 occurs 0 with header line,
          v_month(2) type c.
    ***********************Selection Screen********************
    selection-screen Begin of Block b2 WITH FRAME TITLE TEXT-BL1 .
    Parameters: P_Print type c default 'X' radiobutton group g1
                                          user-command CMD,
                P_DISP  Type C  Radiobutton Group g1.
    Selection-screen end of Block b2.
    selection-screen Begin of Block b1 WITH FRAME TITLE TEXT-BL2 .
    Recipient address and Period
    SELECT-OPTIONS :   s_name   FOR PERNR-PERNR Modif id M1,
                       s_period for HRPY_RGDIR-FPPER Modif id M1.
                      s_year for QPPNP-PABRJ Modif id M1.
    SELECT-OPTIONS:    p_num    FOR PERNR-PERNR Modif id M2 .
    Selection-screen end of Block b1.
    *SELECTION-SCREEN FUNCTION KEY 1.
    *SELECTION-SCREEN PUSHBUTTON /10(20) CHARLY USER-COMMAND ABCD.
    ***********************At Selection Screen Output**************
    at selection-screen output.
      Loop at screen.
        if P_Print = 'X'.
          if screen-group1 = 'M2'.
            screen-active = 0.
          endif.
        else.
          if screen-group1 = 'M1'.
         if screen-name = 'S_NAME-LOW' Or screen-name = 'S_PERIOD'.
            screen-active = 1.
          endif.
        Endif.
        Modify Screen.
      Endloop.
    ***********************INITIALIZATION********************
    INITIALIZATION.
    MOVE 'Preview' TO SSCRFIELDS-FUNCTXT_01.
    MOVE 'Preview' TO CHARLY.
      p_print = 'X'.
    v_text1 =
    'Please find enclosed your salary slip for the month of Apr 2006 as
    *attachment. This is confidential '.
    ***********************AT SELECTION-SCREEN******************
    AT SELECTION-SCREEN.
    if p_print = 'X'.
       if s_name[] is initial.
          message e000(8i) with 'Make Entry into Personal Number Field'.
       endif.
    else.
       if p_num[] is initial.
          message e000(8i) with 'Make Entry into Personal Number Field'.
       endif.
    endif.
    ***********************Start-of-Selection********************
    Start-of-Selection.
      if p_print = 'X'.
        APPEND 'NEXT' TO i_fcode.
        APPEND 'PREV' TO i_fcode.
        set pf-status 'ZHRF' excluding I_FCODE.
        Perform Get_values.
       Perform Print using v_index.
        perform Write_Values.
      else.
        set pf-status 'ZHRF'.
      Perform Get_values.
        Perform Print using v_index.
      endif.
    ***********************Top-of-page***************************
    Top-of-page.
      skip 2.
      if p_print = 'X'.
        write:50 'The Pay Slip Sent details'.
        skip 1.
        uline at 1(70).
        write :/ sy-vline,2 'Personal Number',18 sy-vline,
                         19 'Name',40 sy-vline,
                         41 'User Mail-Ids',63 sy-vline,
                         64 'Status',70 sy-vline.
        ULINE /1(70).
      endif.
      set left scroll-boundary Column 0.
    *&      Form  Get_values
          text
    -->  p1        text
    <--  p2        text
    FORM Get_values .
      select  *
              from HRPY_RGDIR
              into corresponding fields of table itab
              where PERNR in s_name
              AND
              FPPER IN S_PERIOD.
      if sy-subrc eq 0.
        loop at itab.
          Create receiver list
          refresh RECLIST.
          clear RECLIST.
          select single *
                        from PA0105
                        where PERNR eq ITAB-PERNR
                          and USRTY eq '0010'.
          if SY-SUBRC <> 0.
            I_sent-PERNR = ITAB-PERNR.
            i_sent-status = 'NO'.
            select single *
                          from pa0002
                          where pernr eq itab-pernr.
            concatenate pa0002-VORNA pa0002-NACHN into i_sent-name
                                             separated by space.
            append i_Nsent.
            continue.
          else.
            refresh reclist.
            RECLIST-RECEIVER = pa0105-usrid_long.
            translate RECLIST-RECEIVER to lower case.
            RECLIST-REC_TYPE = 'U'.
            append RECLIST.
          endif.
          call function 'GET_PAYSLIP'
            EXPORTING
              EMPLOYEE_NUMBER = itab-PERNR
              SEQUENCE_NUMBER = itab-SEQNR
              PAYSLIP_VARIANT = PAY_VAR
            IMPORTING
              RETURN          = RETURN
              P_INFO          = P_INFO
            TABLES
              P_FORM          = P_FORM.
          loop at P_FORM
              where LINDA eq F__CMD-NEWPAGE
              and LTYPE eq F__LTYPE-CMD.
            P_INDEX-INDEX = SY-TABIX.
            append P_INDEX.
          endloop.
          P_IDX = 1.
          refresh P_P_FORM.
          append lines of P_FORM from P_IDX to P_INDEX-INDEX
          to P_P_FORM.
          P_IDX = P_INDEX-INDEX.
          export P_P_FORM to memory id '%%_P_FORM_%%'.
          export P_INFO to memory id '%%_P_INFO_%%'.
          submit RPCEDT_LIST_TO_MEMORY exporting list to memory and return.
          call function 'LIST_FROM_MEMORY'
            TABLES
              LISTOBJECT = P_LIST.
          call function 'TABLE_COMPRESS'
            TABLES
              IN     = P_LIST
              OUT    = OBJBIN
            EXCEPTIONS
              others = 1.
          Read table RECLIST index 1.
          I_sent-PERNR = ITAB-PERNR.
          i_sent-usrid_long = RECLIST-RECEIVER.
          select single *
                        from pa0002
                        where pernr eq itab-pernr.
          concatenate pa0002-VORNA pa0002-NACHN into i_sent-name
                                           separated by space.
          i_sent-status = 'YES'.
          append i_sent.
         concatenate ' Payslip-'  '(' ITAB-PERNR+4(4) ')'
        into DOCDATA-OBJ_DESCR.
          CALL FUNCTION 'MONTH_NAMES_GET'
           EXPORTING
             LANGUAGE                    = SY-LANGU
            TABLES
              MONTH_NAMES                 = month_names
           EXCEPTIONS
             MONTH_NAMES_NOT_FOUND       = 1
             OTHERS                      = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
         if sy-datum+4(2)  = '01'.
            v_month = '12'.
         else.
            v_month = sy-datum+4(2) - 1.
         endif.
         read table month_names with key mnr = v_month.
         concatenate 'Salary Slip for the month of' month_names-LTX
                      sy-datum+0(4) '-' i_sent-name
                      into DOCDATA-OBJ_DESCR.
          DOCDATA-OBJ_NAME = 'Pay Slip'.
          DOCDATA-OBJ_LANGU = SY-LANGU.
          OBJTXT = 'Dear Mr.'.
          concatenate OBJTXT i_sent-name into objtxt.
          append OBJTXT.
          append initial line to objtxt.
          OBJTXT = 'Please find enclosed your salary slip for the month of'.
          concatenate OBJTXT month_names-LTX sy-datum+0(4)
                                      into objtxt separated by space.
           append OBJTXT.
    OBJTXT =
    'as attachment This is confidential document and not be disclosed'.
          append OBJTXT.
    OBJTXT =
    'shared with any other employee.In case of any queries on this subject'.
    append OBJTXT.
    OBJTXT =
    'you are requested to contact the Payroll administrator “Sabitha” '.
    OBJTXT = 'email:[email protected]'.
    append OBJTXT.
    append initial line to objtxt.
    append initial line to objtxt.
    OBJTXT = 'With Kind Regards'.
    append OBJTXT.
    append initial line to objtxt.
    append initial line to objtxt.
    OBJTXT = 'Sabitha'.
    append OBJTXT.
    OBJTXT = 'Payroll Administrator'.
    append OBJTXT.
    OBJTXT = 'Enteg Infotech Pvt Lyd.'.
    append OBJTXT.
    OBJTXT = 'Banaglore'.
    append OBJTXT.
          Write Packing List (Main)
           describe table objtxt.
           read table OBJTXT index sy-tfill.
          DOCDATA-DOC_SIZE = ( sy-tfill - 1 ) * 255 + strlen( OBJTXT ).
          clear OBJPACK-TRANSF_BIN.
          OBJPACK-HEAD_START = 1.
          OBJPACK-HEAD_NUM = 0.
          OBJPACK-BODY_START = 1.
          OBJPACK-BODY_NUM = sy-tfill.
          OBJPACK-DOC_TYPE = 'TXT'.
          append OBJPACK.
    Create Message Attachment
    Write Packing List (Attachment)
          ATT_TYPE = 'ALI'.
          describe table OBJBIN lines TAB_LINES.
          read table OBJBIN index TAB_LINES.
          OBJPACK-DOC_SIZE =
          ( TAB_LINES - 1 ) * 255 + strlen( OBJBIN ).
          OBJPACK-TRANSF_BIN = 'X'.
          OBJPACK-HEAD_START = 1.
          OBJPACK-HEAD_NUM = 0.
          OBJPACK-BODY_START = 1.
          OBJPACK-BODY_NUM = TAB_LINES.
          OBJPACK-DOC_TYPE = ATT_TYPE.
          OBJPACK-OBJ_NAME = 'ATTACHMENT'.
          OBJPACK-OBJ_DESCR = 'Payslip'.
          append OBJPACK.
    Send the document
          call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
              DOCUMENT_DATA              = DOCDATA
              PUT_IN_OUTBOX              = ''
              COMMIT_WORK                = 'X'
            TABLES
              PACKING_LIST               = OBJPACK
              OBJECT_HEADER              = OBJHEAD
              CONTENTS_BIN               = OBJBIN
              CONTENTS_TXT               = OBJTXT
              RECEIVERS                  = RECLIST
            EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
              DOCUMENT_NOT_SENT          = 2
              DOCUMENT_TYPE_NOT_EXIST    = 3
              OPERATION_NO_AUTHORIZATION = 4
              PARAMETER_ERROR            = 5
              X_ERROR                    = 6
              ENQUEUE_ERROR              = 7
              others                     = 8.
        endloop.
      endif.
    ENDFORM.                    " Get_values
    *****************************At User Command*************************
    at User-Command.
      case Sy-ucomm.
        When 'NEXT'.
          describe table itab.
          if sy-tfill GT v_index.
            v_index = v_index + 1.
            Perform Print using v_index.
          else.
            message E000(8i) with 'You Have Reached the Last Entry'.
          endif.
        When 'PREV'.
          if v_index LE 1.
            Message E000(8i) with 'You Have Reached the First Entry'.
          else.
            v_index = v_index - 1.
            Perform Print using v_index.
          endif.
        When 'BACK'.
          leave to screen 0.
        WHen 'EXIT'.
          set Screen 0.
          leave screen.
      Endcase.
    *&      Form  Print
          text
    -->  p1        text
    <--  p2        text
    FORM Print using v_index.
      if v_index = 1.
        select  *
               from HRPY_RGDIR
               into corresponding fields of table itab
               where PERNR in P_num
      endif.
      if not itab[] is initial.
        sort itab by pernr .
        read table itab index v_index.
        select single *
                      from PA0105
                      where PERNR eq ITAB-PERNR
                        and USRTY eq '0010'.
        call function 'GET_PAYSLIP'
          EXPORTING
            EMPLOYEE_NUMBER = itab-PERNR
            SEQUENCE_NUMBER = itab-SEQNR
            PAYSLIP_VARIANT = PAY_VAR
          IMPORTING
            RETURN          = RETURN
            P_INFO          = P_INFO
          TABLES
            P_FORM          = P_FORM.
        loop at P_FORM
            where LINDA eq F__CMD-NEWPAGE
            and LTYPE eq F__LTYPE-CMD.
          P_INDEX-INDEX = SY-TABIX.
          append P_INDEX.
        endloop.
        P_IDX = 1.
        refresh P_P_FORM.
        append lines of P_FORM from P_IDX to P_INDEX-INDEX
        to P_P_FORM.
        P_IDX = P_INDEX-INDEX.
           export P_P_FORM to memory id '%%_P_FORM_%%'.
           export P_INFO to memory id '%%_P_INFO_%%'.
      IMPORT P_P_FORM FROM MEMORY ID '%%_P_FORM_%%'.
      IMPORT P_INFO FROM MEMORY ID '%%_P_INFO_%%'.
        new-page                                                "VKIK008647
        line-size p_info-pcols
        line-count p_info-psize
        no-title
        no-heading.
        SET BLANK LINES ON.
        LOOP AT P_P_FORM.
          if sy-tabix lt 20.
            NEW-LINE NO-SCROLLING.
          endif.
          CASE P_P_FORM-LTYPE.
         WHEN F__LTYPE-TXT.
            WRITE:/ P_P_FORM-LINDA.
            WHEN F__LTYPE-CMD.
              IF P_P_FORM-LINDA EQ F__CMD-NEWPAGE.
                NEW-PAGE.
              ENDIF.
            WHEN others.
              hide: itab,v_index.
              WRITE:/ P_P_FORM-LINDA.
              if sy-tabix lt 20.
                NEW-LINE NO-SCROLLING.
              else.
                NEW-LINE SCROLLING.
              endif.
          ENDCASE.
        ENDLOOP.
        SET BLANK LINES OFF.
    v_index = 1.
      endif.
    ENDFORM.                    " Print
    *&      Form  Write_Values
          text
    -->  p1        text
    <--  p2        text
    FORM Write_Values .
      if p_print = 'X'.
        loop at i_sent.
          write :/ sy-vline,2 i_sent-pernr,18 sy-vline,
                            19 i_sent-name,40 sy-vline,
                            41 i_sent-usrid_long,63 sy-vline,
                            64 i_sent-status,70 sy-vline.
          ULINE /1(70).
        endloop.
      endif.
    ENDFORM.                    " Write_Values
    i want to send the contents of objtxt has body.
    cheers

    Hi,
    in the below code, BOLD Characters coming as body text in my mail.after that i am attaching V_LINE as the attachment.pl compare this with ur code.
    revert, if you need any clarifications.
    <b>*-populate body text</b>
      CONCATENATE <b>'Japan BOL details for the Delivery#'
                    V_VBELN
                   ',is attached'</b>               INTO WA_OBJTXT SEPARATED BY SPACE.
      APPEND WA_OBJTXT TO IT_OBJTXT.
    <b>*---- Append Date and Time into Body of email.</b>
      MOVE 'File is generated on'(004) TO V_INFO.
      V_TIME = SY-UZEIT.
    WRITE : SY-UZEIT TO V_TIME USING EDIT MASK '__:__:__'.
      CONCATENATE V_TIME+0(2)
                  V_TIME+2(2)
                  V_TIME+4(2)
                  INTO
                  V_TIME2 SEPARATED BY ':'.
       WRITE : sy-datum MM/DD/YYYY TO lv_date .
      CONCATENATE SY-DATUM+4(2)
                  SY-DATUM+6(2)
                  SY-DATUM+0(4)
                  INTO V_DATE.
      CONCATENATE <b>V_INFO
                  V_DATE
                  'At'
                  V_TIME2
                  INTO V_INFO</b>              SEPARATED BY SPACE.
      <b>WA_OBJTXT = V_INFO.</b>  APPEND WA_OBJTXT TO IT_OBJTXT.
    *-document size
      CLEAR : V_TABLE_LINES.
      DESCRIBE TABLE IT_OBJTXT LINES V_TABLE_LINES.
      READ TABLE IT_OBJTXT INTO WA_OBJTXT INDEX V_TABLE_LINES.
      X_DOC_CHNG-DOC_SIZE =
                     ( V_TABLE_LINES - 1 ) * 255 + STRLEN( WA_OBJTXT ).
    *-populate packing list for body text
    CLEAR IT_OBJPACK-TRANSF_BIN.
      WA_OBJPACK-HEAD_START = 1.
      WA_OBJPACK-HEAD_NUM = 0.
      WA_OBJPACK-BODY_START = 1.
      WA_OBJPACK-BODY_NUM = V_TABLE_LINES.
      WA_OBJPACK-DOC_TYPE = 'RAW'.
      APPEND WA_OBJPACK TO IT_OBJPACK.
      CLEAR WA_OBJPACK.
    *--for attachment
    *--add Internal table lines here, as attachment.
      WA_OBJBIN = V_LINE.
      APPEND WA_OBJBIN TO IT_OBJBIN.
      CLEAR  WA_OBJBIN.
    *-get total no.of lines of Object table(attachment)
      CLEAR : V_TABLE_LINES.
      DESCRIBE TABLE IT_OBJBIN LINES V_TABLE_LINES.
    *-populate object header
      CONCATENATE  'Delivery#'(005)
                     V_VBELN
                     SY-DATUM
                     V_TIME
                     INTO
                     WA_OBJHEAD SEPARATED BY SPACE.
      APPEND WA_OBJHEAD TO IT_OBJHEAD.
      CLEAR  WA_OBJHEAD.
    *-packing list for attachment
      WA_OBJPACK-TRANSF_BIN = C_X.
      WA_OBJPACK-HEAD_START = 1.
      WA_OBJPACK-HEAD_NUM = 1.
      WA_OBJPACK-BODY_START = 1.
      WA_OBJPACK-BODY_NUM = V_TABLE_LINES .
    WA_OBJPACK-DOC_TYPE = 'CSV' .
      WA_OBJPACK-DOC_TYPE = 'RAW' .
      WA_OBJPACK-OBJ_NAME = 'POTR'.
    CONCATENATE 'Delivery details for '(005)
      CONCATENATE TEXT-005
                V_VBELN
                SY-DATUM
                V_TIME
                '.CSV'
                INTO
                WA_OBJPACK-OBJ_DESCR SEPARATED BY SPACE.
      BREAK-POINT.
      WA_OBJPACK-DOC_SIZE = V_TABLE_LINES * 255.
      APPEND WA_OBJPACK TO IT_OBJPACK.
      CLEAR  WA_OBJPACK.

  • Problem with DumpObjects and xml:lang qualifiers

    Hi,
    DumpObjects and also the SXMPIterator (latest SDK version, build with Visual Studio 2005 on Windows) seems to skip properties sometimes when parsing the XMP tree:
    Example:
          Extensible Metadata Platform
          Extensible Metadata Platform
          Une Platforme Extensible pour...
          Piattaforma Estendibile di Metadata
    This is parsed correctly. But when I remove two of these localized strings:
          Extensible Metadata Platform
          Piattaforma Estendibile di Metadata
    the Dump method returnes twice the x-default text although it lists the "it-it" language qualifier. When I add a third language to the XMP tree, things work again.
    It seems the problem always happens when there are exactly two language qualifiers used.

    Hi again,
    Well i tried out changing the xsd file it seems to be taking effect though i tried it with a stanalone application.
    Is it a web app or a standalone application?
    Also can you tell me whether how old are the xml specific jars you r using (Looking into the manifest).
    Regards,
    Jitin Vyas

  • Getting started with Java and XML

    Hi,
    Although I am pretty familiar with Java, I am a total newbie with using it to parse XML. I have been reading quite a few tutorials so am getting a good understanding of it and am thinking of using the DOM model for my purposes.
    What I haven't been able to find, however, is how I can actually get started with this. I have tried compiling a few examples and have been getting errors such as:
    xmltest.java package javax.xml.parsers does not exist
    xmltest.java package org.w3c.dom does not existetc etc...
    It looks like these packages don't come with J2SE. Can anyone confirm this? Do I need to download and install the Java Web Services Developer Pack to solve this problem?
    Finally, I know I will need an XML parser but have read that JDK 1.4 has it's own parser (Crimson). Is this adequate for parsing XML files or will I also need a parser such as Xerces?
    Thanks so much for any help!

    Hi DrClap,
    Thanks for the reply. I have JDK 1.4.1_02 installed on my server but the following error keeps coming up when I try to run my example:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/NodeAre there any further packages I need to download in order to run Java with XML? I have read some people install JAXP and XERCES... are these necessary for parsing an XML document or should J2SE 1.4.1 be sufficient?
    Thanks for your help!
    Jill

  • Help with Packages and xml files

    I have a XML file that is read by the program that I want to add to my package.
    The package can be check out with a different name and different location each time, so how would I set up for my file to be read in by com.compname.project.lib.xml enstead of c:/dev/com/compname/project/lib.xml

            InputStream fis = null;
            BufferedInputStream bis = null;
            DataInputStream dis = null;
            String[] original = new String[3];
            //try {
                fis = this.getClass().getResourceAsStream("/c.s.p.b.i.t.c.c.xml");
                xmlpath = new File(is.toString());
                bis = new BufferedInputStream(xmlpath);
                dis = new DataInputStream(bis);
            //catch (FileNotFoundException e) {}
            try
                //parse the file
                DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                DocumentBuilder db = dbf.newDocumentBuilder();
                Document doc = db.parse(fis);
                doc.getDocumentElement().normalize();
                NodeList nodeLst = doc.getElementsByTagName(Tag)Edited by: mferguson13 on Jan 28, 2009 6:58 AM

  • Guided research with Java and XML

    Hi all,
    I'm a last year student and now I have to choose a topic for my Guided Research Project.
    My interest in XML and databases pushes me in this direction. However, I still cannot come up with an interesting proposal for the project. At first I considered implementing a "XML <-> databaseSchema" converter, but then I found out that many similar tools already exist. I have background in Java, PHP and mysql which could be useful.
    I was wondering if you could give me an idea about a possible topic.
    Thank you very much!
    Regards,
    J

    For parsing you can use SAX Parser and for document generation you can use DOM Parser.

  • Navigate with MVC and XML pages

    Hi guys,
    I'm having some trouble with navigating through my app.
    Although there are lots of examples on SCN, it's probably something that I didn't pick up or I missed.
    I'm creating an app, that has an index.HTML starter file, and all others are XML.
    Index:
    jQuery.sap.registerModulePath('Application', 'Application');
    // Load your application js   
    jQuery.sap.require("Application");
    Index.js
    jQuery.sap.declare("Application");
    jQuery.sap.require("sap.ui.app.Application");
    sap.ui.app.Application.extend("Application", {
      init : function() {
      main : function() {
      // create app view and put to html root element
      var root = this.getRoot();
      var view = sap.ui.xmlview("App", "view.App");
      // set i18n model
      var i18nModel = new sap.ui.model.resource.ResourceModel({bundleUrl : "i18n/i18n_ro_RO.properties"});
      view.setModel(i18nModel, "i18n");
      view.placeAt(root);
    >  }
    App.view.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <core:View
        controllerName="view.App"
        xmlns:core="sap.ui.core"
        xmlns="sap.m"
        xmlns:mvc="sap.ui.core.mvc">
        <App id="app">
            <mvc:XMLView viewName="view.HomePage" id="idHomePage" />
            <mvc:XMLView viewName="view.Order" id="idOrder" />
        </App>
    </core:View>
    And 2 pages. HomePage and DetailPage.
    What I want is to navigate from Home to Detail. I can't use split app.
    This is the function that I'm using to do it:
    handleListSelect : function (evt) {
      var app = sap.ui.getCore().byId("App");
      app.to("Detail");
    but I get the awesome error: "Uncaught TypeError: Object [object Object] has no method 'to' "
    That means I didn't declare something right or at all ?
    Thanks in advance,
    Marius

    Hi Maria,
    Got it,
    In the App.view.xml:
    Replace the following line :
    <mvc:XMLView  viewName="view.HomePage" id="idHomePage" />
    with the following
    <mvc:XMLView  id="homePageView"  viewName="view.HomePage" />
    And Similarly,
    Replace the following line:
    <mvc:XMLView viewName="view.Order" id="idOrder" />
    with the following:
    <mvc:XMLView id="orderView" viewName="view.Order" />
    Please do let me know

  • Create Report with CR4E and XML Data Source

    Hi all,
    I have a problem when create a report with CR4E that should use a XML data source. It is not possible to choose fields from the field explorer, because ther are no fields from the XML-file. Is there a general problem when using an ODA data source in CR4E?  At the moment I can only create reports with a database as data source.
    Please help me with a tip.
    Thanks
    Arnold

    Hi,
    After Installing CR4E Version 2  the code snippet for creating a XML-report not works as JSP. Has anywhere a hint to resolve the problem or a complete JSP-file?
    reportClientDocument = new ReportClientDocument();
    java.lang.NoClassDefFoundError: com/crystaldecisions/reports/common/data/CrystalResultSet
         com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.<init>(Unknown Source)
         org.apache.jsp.XMLDataSource_jsp._jspService(XMLDataSource_jsp.java:64)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Thanks
    Arnold Meier

  • WSS4J with Soap and XML digital signatures

    Hi,
    I need to write a web client to access data from my friend's server
    However, I do not have access to the WSDL or the Axis part and instead need to manually generate the SOAP
    message that needs to be sent . I have been able to generate the SOAP body without the WSS4J part but I haven't been able to get it working
    with the security part. I have read through the documents on the OASIS website but haven't been able to find any sample java code to
    help me on this. Can you please give me some pointers on this ? Some sort of sample java code would be extremely helpful.
    thanks,

    gary,
          How did you configure  the subsystem. could you plz expalain me in detail. bond_chaitu at yahoo.com
    kris.

  • Have itl and xml files on external hd am running home premium. can  no longer access files, am told this is because they were created with a newer version of itunes. also when i try to download 10.3 it wont, just says invalid drive j and for me to try aga

    i am running vista home premium on desktop and vista basic on laptop. have placed my itunes music with .itl and .xml files onto external drive connected to another desktop running vista and can no longer access music on first two mentioned comps only on the one connected to external drive. always am told that the library cant be read because it was created using a newer version of itunes. have tried to download 10.3 but it always tells me that i have and invalid hard drive j and to try again. any ideas?

    Older versions of iTunes cannot read libraries created with newer versions of iTunes. You need to have the same version of iTunes on all your PCs. Is that the case?
    As far as the problem installing iTunes goes, see this article from b noir on dealing with the problem:
    https://discussions.apple.com/thread/2450004
    If you get to the point where you need the Microsoft Installer cleanup utility, you will need more help as it has been withdrawn by Microsoft. but I am hoping the virtual drive trick will work,

  • EOIO JMS Sender Channel in Error

    Hi All,
    We have a error on JMS sender channels in Pre-Production environment.
    Let me explain you the problem.
    On Dev and QA there is no cluster environment. On Pre-production we have 3 clusters. We tested this Sender JMS channel on Dev and QA without giving a Cluster ID and it worked.
    Now on Pre prod, we had not mentioned the cluster ID and when messages were picked from the Queue, the channel went into a error mode stating the " Channel is locked due to EOIO".
    Then when we added the cluster ID to the channel, in RWB the channel goes into inactive mode. The status is " The EOIO channel has been made inactive on Node 206485150"
    The node mentioned in channel is 251902150. This means that the other node has been made inactive. That sounds logical as it is not supposed to process the message.
    But the node which is mentioned in the channel has also gone into error mode.
    " Error creating JMS connection. failed to create MQManager for ' Hostname:Channel name'". An MQException occured: Completion code 2, Reason 2009
    MQJE016: MQ queue managerclosed channel immediatly during connect. Closure reason= 2009, and erro code as MQJMS2005
    After this all other sender JMS channels have gone into the same error mode on this node.
    We have stopped the JMS service and started it. We also restarted the XI server but no change was encountered.
    Please let us know whether JMS sender with EOIO works with cluster ID as I'm not able to find any document which says that JMS with EOIO works succesfully.
    Please also let us know how to overcome the error on this node.
    Thank you.
    Regards,
    Sarvesh Desai

    Check if there is any unprocessed message stuck in the queue:
    /people/stefan.grube/blog/2006/04/27/how-to-deal-with-stuck-eoio-messages-in-the-xi-30-adapter-framework

Maybe you are looking for

  • I just updated my computer to OS X Lion but my ical doesn't work, what do I do?

    I just updated my computer to OS X Lion but my ical doesn't work, what do I do?

  • Having problems trying to install itunes? getting all sorts of errors!

    Just 2 days ago i uninstalled itunes because it wasn't letting me update to ios5. So i uninstalled it. Then when i tried to install it came up with an error occurred during the installation of assembly"Microsoft.VC80.CRT.type="win32",version="8.0.507

  • Picky Wireless Keyboard

    I recently got an Apple Wireless Keyboard (the new aluminium one). However it's been acting rather strangely: the F keys, Command, Option, Shift, Delete, Escape, and arrow keys work, but not the others. I thought it was a malfunctioning unit, but it

  • Lightroom & OneDrive - a match made in heaven?

    My photo collection is in a real mess! I'm seriously considering using Lightroom to organise and I'd really appreciate some feedback on my proposed approach as set out below. Importing and Storage Set Lightroom to store the catalog (and other Lightro

  • Windows Shutting down unexpectedly

    Hi, I am running windows 8.1 on a 1 year old laptop. When I am doing normal things like surfing the net, I get sudden crashes and when I turn on my computer again, it acts like it had just shut down. Is there anything I can do to stop this from happe