CIDX adapter !DOCTYPE - addition for Preamble and ServiceHeader

We are using the CIDX adapter in PI 7.1 for sending the OrderCreate 4.0 message to a partner.
When the partner received a first message they had the following remark:
We are not sending the reference to the DTD for Preamble and ServiceHeader part:
Partner expects:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE Preamble SYSTEM "PreamblePartMessageGuideline.dtd">
<Preamble><DateTimeStamp>20090724T064154.122Z</DateTimeStamp><GlobalAdministeringAuthorityCode>CIDX</GlobalAdministeringAuthorityCode><GlobalUsageCode>Test</GlobalUsageCode><VersionIdentifier>1.1</VersionIdentifier></Preamble>
We are sending:
<?xml version="1.0" encoding="UTF-8"?>
<Preamble><DateTimeStamp>20090724T064154.122Z</DateTimeStamp><GlobalAdministeringAuthorityCode>CIDX</GlobalAdministeringAuthorityCode><GlobalUsageCode>Test</GlobalUsageCode><VersionIdentifier>1.1</VersionIdentifier></Preamble>
My questions:
Is this really part of the CIDX standard, or can then be left out?
Is  there something that I forgot to set up?
Any way I can get it in?
Thanks
Thierry Boeve

Hi Satish
I don't have a schema for this, it's all handled by the CIDX adapter. 
The OrderCreate message is the only part that I can handle myself, all the enveloping is standard. 
The problem is with the Preamble and Service header.
Content-Type:application/x-rosettanet-agent
  &ÏMessage-ID: <490755631.141248417714315.JavaMail.pxdadmbeevssd2.int.huntsman.com>
MIME-Version: 1.0
Content-Type: multipart/related;
     boundary="----=_Part_688_1226761625.1248417714232";
     type="Application/x-ChemXML"
Content-Description: This is the RosettaNet Business Message
------=_Part_688_1226761625.1248417714232
Content-Type: Application/XML; RNSubType="preamble-header"
Content-Transfer-Encoding: binary
Content-ID: preamble-header.1362cb80781d11deb638001125bd0fd4sap.com
<?xml version="1.0" encoding="UTF-8"?><Preamble><DateTimeStamp>20090724T064154.122Z</DateTimeStamp><GlobalAdministeringAuthorityCode>CIDX</GlobalAdministeringAuthorityCode><GlobalUsageCode>Test</GlobalUsageCode><VersionIdentifier>1.1</VersionIdentifier></Preamble>
------=_Part_688_1226761625.1248417714232
Content-Type: Application/XML; RNSubType="service-header"
Content-Transfer-Encoding: binary
Content-ID: service-header.13656390781d11de8dd6001125bd0fd4sap.com
<?xml version="1.0" encoding="UTF-8"?><ServiceHeader><ProcessControl><ProcessIdentity><GlobalProcessCode>OrderCreate</GlobalProcessCode><GlobalProcessIndicatorCode>E41</GlobalProcessIndicatorCode><initiatingPartner><GlobalBusinessIdentifier>405338377</GlobalBusinessIdentifier></initiatingPartner><InstanceIdentifier>1312afb0781d11de86e9001125bd0fd4</InstanceIdentifier><VersionIdentifier>4.0</VersionIdentifier></ProcessIdentity><ServiceRoute><fromService><BusinessServiceDescription><GlobalBusinessServiceCode>Buyer Service</GlobalBusinessServiceCode></BusinessServiceDescription></fromService><toService><BusinessServiceDescription><GlobalBusinessServiceCode>Seller Service</GlobalBusinessServiceCode></BusinessServiceDescription></toService></ServiceRoute><TransactionControl><AttemptCount>1</AttemptCount><PartnerRoleRoute><fromRole><PartnerRoleDescription><GlobalPartnerRoleClassificationCode>Buyer</GlobalPartnerRoleClassificationCode></PartnerRoleDescription></fromRole><toRole><PartnerRoleDescription><GlobalPartnerRoleClassificationCode>Seller</GlobalPartnerRoleClassificationCode></PartnerRoleDescription></toRole></PartnerRoleRoute><TransactionIdentity><GlobalTransactionCode>OrderCreate</GlobalTransactionCode><InstanceIdentifier>1312afb0781d11de86e9001125bd0fd4</InstanceIdentifier></TransactionIdentity><ActionControl><ActionIdentity><GlobalBusinessActionCode>OrderCreate</GlobalBusinessActionCode><InstanceIdentifier>1347f080781d11de8d5b001125bd0fd4</InstanceIdentifier><VersionIdentifier>4.0</VersionIdentifier></ActionIdentity><GlobalDocumentFunctionCode>Request</GlobalDocumentFunctionCode><PartnerRoute><fromPartner><PartnerDescription><BusinessDescription><GlobalBusinessIdentifier>405338377</GlobalBusinessIdentifier></BusinessDescription><GlobalPartnerClassificationCode>Buyer</GlobalPartnerClassificationCode></PartnerDescription></fromPartner><toPartner><PartnerDescription><BusinessDescription><GlobalBusinessIdentifier>387453178</GlobalBusinessIdentifier></BusinessDescription><GlobalPartnerClassificationCode>Seller</GlobalPartnerClassificationCode></PartnerDescription></toPartner></PartnerRoute><PerformanceControlRequest><timeToAcknowledgeReceipt><TimeDuration>00000003T000000.000Z</TimeDuration></timeToAcknowledgeReceipt></PerformanceControlRequest></ActionControl></TransactionControl></ProcessControl></ServiceHeader>
------=_Part_688_1226761625.1248417714232
Content-Type: Application/XML; RNSubType="service-content"
Content-Transfer-Encoding: binary
Content-ID: service-content.1367fba0781d11deac08001125bd0fd4sap.com
<?xml version="1.0" encoding="utf-8"?>
<OrderCreate Version="4.0">
  <Header>
    <ThisDocumentIdentifier>
      <DocumentIdentifier>4A65D83286B800B8E1008000CDEB6913</DocumentIdentifier>
    </ThisDocumentIdentifier>
    <ThisDocumentDateTime>
      <DateTime DateTimeQualifier="On">2009-07-24T06:41:42Z</DateTime>
    </ThisDocumentDateTime>
  </OrderCreateBody>
</OrderCreate>
------=_Part_688_1226761625.1248417714232--
Edited by: Thierry Boeve on Aug 3, 2009 9:55 AM

Similar Messages

  • BPM patterns for using CIDX adapter

    Hi,
    I am trying to implement the below requirement and am having problems doing that. Any help or pointers would be appreciated.
    Requirement:
    We need to send an order create message from file system A to
    Elemica(using CIDX adapter) asynchronously and capture the RA back and
    convert it into a message and send it to a file system B.
    I tried the below scenarios already and could not maker it work:
    <b>Scenario 1</b>: I tried creating a scenario using Sync- Async bridge, but
    it did not work as I need to send some response back to the File system
    A. In this case I do not have any response to send.
    I created an external definition for RA and used it for mapping to the
    File system B interface.
    CIDX adapter is not accepting any messages if we try to send
    synchronously.
    <b>Scenario 2</b>: I could not make my scenario work if I am trying to create
    in my SWCV. So, I created all my abstract
    interfaces for my business process in the CIDX SWCV. Now I created
    Async – Sync scenario by sending a synchronous order create request to
    Elemica. It did not work as CIDX adapter does not support any
    synchronous messages( guessing).
    Apart from the above questions, I have few additional questions:
    1. Can we send synchronous messages to Elemica through CIDX
    adapter? If so, how do we configure our communication channel as
    only “Asynchronous” option is available.
    2. If we have File-Elemica-File scenario, how do we configure the
    scenario?
    3. Are there any blogs having scenarios with BPM involving CIDX
    adapter? If so, pls send a link.
    Thanks in Advance,
    GP

    Hi
    Try this
    check the following link for information on configuring CIDX Adapter http://help.sap.com/saphelp_nw04/helpdata/en/29/cb22419e2ab167e10000000a155106/plain.htm
    And on specifically on Single-Action responder directly on http://help.sap.com/saphelp_nw04/helpdata/en/0a/cb23412546ef6fe10000000a1550b0/content.htm
    Thanks

  • Receive XML file from CIDX adapter and Post to SAP as IDoc using XI

    I have scenario where we will receive the xml file from CIDX adapter. I need to take the xml from CIDX, do the Database Lookup and post it to SAP as IDoc.
    Any technical documentaion or step-by-step process documents can be very helpfull to me, since I am new to XI
    Thanks
    SP

    Lookup in XI is used to call the target data storage system and get data from there to your mapping programme.
    In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
    Overview of Lookup
    - Lookups are used to identify/request the data from mapping program.
    - It interrupt the process and looking for data which was stored in target system.
    - It get that data and comeback to process and continue with that data.
    Types of Lookups in XI
    - JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
    - RFC Lookup: RFC lookup is used for accessing the SAP Data.
    - SOAP Lookup: SOAP lookup is used for accessing data from Webservice
    Steps to perform Lookup in Mapping
    Import package com.sap.aii.mapping.lookup.*;
    Create connection to the target Database system.
    // Determine communication channel created in ID
    Channel channel = null;
    channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
    // Get system accessor for the channel.
    DataBaseAccessor accessor = null;
    accessor = LookupService.getDataBaseAccessor(channel);
    Build the Query String.
    Getting Result
    // Execute Query and get the values.
    DataBaseResult resultSet = null;
    resultSet = accessor.execute(Query);

  • Reg: CIDX Adapter and Scenario

    Hi! Gurus,
    I need one help from you. Here I got a task that I need to work on CIDX Adapter using PI.7.1 Server and also on CIDX Enhancements. But really I donu2019t have any idea regarding CIDX except that it was an Industry speaking scenario for  chemical industries. I searched in SDN and some other links but I didnu2019t found any exact document based on that topic.
    Kindly provide any document regarding CIDX Adapter and also if possible any documentation that is having regarding the design  and configuration steps on CIDX Scenario so that I will appreciate you if you do this help.
    Regards:
    Amar Srinivas Eli

    hi Amar,
    you didn't search a lot did you?
    Chem XML Message eStandards and CIDX Scenario u2013 Part I
    Chem XML Message eStandards and CIDX Scenario – Part I
    Chem XML Message eStandards and CIDX Scenario u2013 Part II
    Chem XML Message eStandards and CIDX Scenario development – Part II
    Regards,
    Michal Krawczyk

  • What is the difference between a VGA adapter and an AV adapter? Which would be better for my iPad 2 if I just wanted it for games and browsing the Internet?

    If I just wanted to play games and surf the web, would a VGA adapter or an AV adapter be better? For my iPad 2? I asked my family for a VGA adapter for Christmas and I'm not too sure if it's the one I want. Also, what is the difference?

    HDMI Adapter

  • I have a Samsung HD TV and I purchased a Mini Display port to HDMI Adapter today. For some strange reason I get no display on my HD tv. I even tried switching a few HDMI cables and nothing popped up. I made sure my computer was updated. Help pls

    I have a Samsung HD TV and I purchased a Mini Display port to HDMI Adapter today. For some strange reason I get no display on my HD tv. I even tried switching a few HDMI cables and nothing popped up. I made sure my computer performed all software updates, and I even tried calling Apple Support. They just told me to keep trying different hdmi cables and see if anything pops up. Does anybody know what the problem is? My HDMI cable is from "rocketfish" also my display port is too.

    You may have the screen refresh rate set higher than the TV is generally able to track reliably. It may be able to get there most times, but occasionally loses sync because it is out of its nominal range.
    I suggest you sit down with the manual for the TV and find out what resolutions at what refresh rates it intends to support through VGA, and make sure your screen settings are near (or below) those limits.

  • HT204266 Do I need a converter in addition to an adapter to charge my phone and ipad mini in France?

    Do I need a converter in addition to an adapter to charge my phone and ipad mini in France?

    I used my iPod touch power plug and cord in France with no problem.  I did need an adapter to allow me to plug our 2-blade plug into their round-post outlets.  There are no electronics involved in that, just metal pieces.  You can pick those up cheaply online (I just borrowed one at my hotel).  (PS - I live in the US).

  • I cannot download an app from the app store, it keeps loading until it says "You have already purchased this app so it will be downloaded no at  no additional charge", and then it prompt for password and I input it after which nothing happens.

    I cannot download an app from the app store, it keeps loading until it says "You have already purchased this app so it will be downloaded no at  no additional charge", and then it prompt for password and I input it after which nothing happens.
    I know my icloud has record of my installing this app before, but that was the first install that was failed during that time some other apps also keeps loading without respond whey they updated itself, and this app didn't install before I restart the device. But I don't see this app on my device after I restarted the device so it should have been installed on my device. It seems icloud has created some kind of dead loop that makes it not able to get the correct status about this app on my device.
    I have no problem install this app on my other device (iPad) with the same account, but just fail on my iPhone. And it just fine installing other apps...... What happened !!?? @@
    Please help !!! 

    Someone help! I dont know how to do this and please put the words into an easy way to understand because im young...

  • Prerequisites for Sender and Receiver FTP adapter

    Hi Experts,
    I am new to PI and configuring simple file to file scenario. I need to know the prerequsites for sender and receiver FTP adapter. Scenario is System A -> XI -> System B .
    What I want to know is:
    1> What ports need to be opened?
    2> Any service that I need to activate?
    3> Do I need to install FTP server in any of the machine?
    If I have missed something, please add.
    Br,
    Nilz

    Hi,
    1> What ports need to be opened?
    mentioned in below link as said its 21.
    2> Any service that I need to activate?
    No
    3> Do I need to install FTP server in any of the machine?
    THere are two ways by which u can pick ur file.
    1) NFS by which u can put the file on XI appplication directory and pick up ur file.
    2) FTP u have to put ur file on FYP server and XI will pick up the file from there. U can use freeware FTP and install it on ur Desktop search on goolge u will get ti FTP installtion.
    refer the below configuration requirement for FIle adapter.
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    ALso refer the end to end file to file scenario.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    chirag

  • Java mapping for Remove and Add of  DOCTYPE Tag

    HI All,
    i have one issue while the Java mapping for Remove and Add of  DOCTYPE Tag   in Operation Mapping .
    it says that , while am testing in Configuration Test "  Problem while determining receivers using interface mapping: Error while determining root tag of XML"
    Receiver Determination...
    error in SXMB MOni
    " SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem while determining receivers using interface mapping: Error while determining root tag of XML: '<!--' or '<![CDATA[' expected</SAP:P1>
    plz provide solutions
    Thanks in advance.

    Hi Mahesh,
    I understand, you are using extended Receiver Determination using Operational Mapping (which has Java Mapping). And, there is an error message u201CError while determining root tag of XMLu201D, when you are doing configuration test.
    Can you please test, the Operational Mapping (which has Java Mapping) separately in ESR, with payload which is coming now. It should produce a XML something like this [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce53aea0d7154ee10000000a421937/frameset.htm]
    <Receivers>
    <Receiver>
      <Party agency="016" scheme="DUNS">123456789</Party>
      <Service>MyService</Service>
    </Receiver>
    <Receiver>
      <Party agency="http://sap.com/xi/XI" scheme="XIParty"></Party>
      <Service>ABC_200</Service>
    </Receiver>
    </Receivers>
    If it is not (I Think it will not), then there is some problem in Java Mapping coding. Please correct it. Last option, if your Java code is small in length; you may paste it here, so that we can have a look at the cause of issue.
    Regards,
    Raghu_Vamsee

  • My company loaded profiles onto my iPad for email and calendars.. There is also a signing certificate and a certificate. What are these for? Additionally are they able to monitor apps and usage, ie Internet usage when it is not on their wifi?

    My company loaded profiles onto my iPad for email and calendars.. There is also a signing certificate and a certificate. What are these for?
    Additionally are they able to monitor apps and usage, ie Internet usage when it is not on their wifi?
    I do not have any VPN enabled?

    Do you happen to have an Android?  If so and depending on what version there is a great data usage analyse tool built-in.  See if you can go to Settings -> Data Usage  from there you can pick a current or previous billing cycle and then use the vertical sliders to select a date range and it will filter the usage data per app to show you exactly what app(s) were using data during that time frame.

  • Apple MagSafe Airline Adapter for MacBook and MacBook Pro

    Does the Apple MagSafe Airline Adapter for MacBook and MacBook Pro work in cars to in the cigerete lighter and how does it work on a airoplane cause in airoplanes there is only a mike connection thats about it ?

    This is an alternative solution that works great for me. I always carry a small and lightweight DC to AC converter with me in my case when I'm on the road. It's a Wagan Tech Smart AC 100 USB that I picked up at Costco for under 20 bucks. 100 watt capability and allows me to use all my electronics and chargers on the road. I can use it to charge the cellphone, laptop, ipod, etc.
    Even includes a USB port on the side for charging USB based products and also includes the aircraft adaptor (and of course a cigarette lighter adaptor) and everything fits into a small cloth bag (included).
    http://www.wagan.com/htmls/detail-2382.html
    The link is for the newer 120 watt version but it looks identical otherwise. If you don't have access to Costco then check the link provided for either direct purchase or the availability of other resellers. There's a "where to buy" tab at the top of the screen. Cheers!
    P.S. I just noticed that you are from the U.K. I'm sure this will still work as your MacBook charger should autoswitch down to 110v input, you'll just need to make sure you have the North American plug installed. If not, I'm sure there are similiar DC to AC adaptors available in the U.K. Hope that helps!
    Message was edited by: joudbren

  • Trying to create a password for router and wireless adapte

    I was reading through alot of posts and just couldnt find an answer that worked.
    I have a linksys wireless router, never had a pass set up on it, and lately
    I find someone is connecting to my internet and I would like to put a password
    on it. I found these instructions... but it wouldnt accept admin as the password
    to allow me to create a new one. I followed these instructions.
    "The default password of the router is admin. If you have set up a password  before, it will not recognize the default admin.Hold the reset button of the router for 10secs and it will retrieve the default admin...To change the default password, lauch internet explorer(pc should be connected to the router hardwired), type on the address bar, 192.168.1.1--it willl prompt for a username and password, leave username blank and password will be admin...It willl bring you to the set up page of the router..click on the administration tab and from there you can create your new password for your router... To encrypt the wireless network refer to our website, www.linksys.com/kb and search for answer id 759...it will walk you through with the process..."
    I am using windows XP for OS and the Wireless G? The router is on my main PC
    and the adapter is on my other PC. How do I go about obtaining a password on this? The Model # for the wireless piece is WMP54G not sure what it is on the actual router.
    Message Edited by FullSmile on 09-17-2006 11:11 PM

    If the router is not accepting the default admin password even after a reset of 10 sec you can hold down the reset button for 30 sec and if that doesn't work even,the other options would be to change browser settings,try a different comp, try upgrading the firmware of the router through tftp.exe.You can download the tftp.exe file from ftp.linksys.com/pub/network.

  • Example program for returninng and importing with value addition

    HI ,
    I want few example programs on how to use the abap oops with returning addition and importing with value addition as Im getting syntax error for the Program when Im declaring them with these additions
    Thnaks .

    Hello,
    This statement declares a general instance method meth. Use additions ABSTRACT and FINAL to make the method abstract or final.
    The additions IMPORTING, EXPORTING and CHANGING define the parameter interface of the method. After every addition, the corresponding formal parameters are defined by a specification of the list parameters.
    The other additions determine which exceptions the method can propagate or trigger and determine whether the method is abstract or final.
    Note
    Within a method, you can use the logical expression IS SUPPLIED to check whether an actual parameter was assigned to an optional formal parameter at the call.
    Addition 1
    ... IMPORTING parameters PREFERRED PARAMETER p
    Effect
    IMPORTING defines input parameters. When calling the method, you need not specify an appropriate actual parameter for every non-optional input parameter. During the call, the content of the actual parameter is passed to the input parameter. The content of the input parameter - for which the reference transfer is defined - cannot be changed in the method.
    Use PREFERRED PARAMETER to identify an input parameter p1 p2 ... of list parameters after IMPORTING as a preferred parameter. This specification makes sense only if all input parameters are optional. When calling the method with the syntax
    CALL METHOD meth( a ).
    the actual parameter a is assigned to the preferred parameter if you have appropriate use of a functional method at an operand position.
    Addition 2
    ... EXPORTING parameters
    Effect
    EXPORTING defines output parameters. When calling the method, you can specify an appropriate actual parameter for every output parameter. The content of the output parameter - which is defined for value transfer - is passed to the actual parameter at the call after the method has been completed successfully.
    Note
    An output parameter that is defined for the reference transfer is not initialized when the method is called. Therefore, no read access to it should take place before the first write access.
    Addition 3
    ... CHANGING parameters
    Effect
    CHANGING defines input/output parameters. When calling the method, you must specify an appropriate actual parameter for every non-optional input/output parameter. The content of the actual parameter is passed to the input/output parameter at the call, and after the method has been completed, the content of the input/output parameter is passed to the actual parameter.
    Example
    The method read_spfli_into_table of this example has an input and an output parameter, which are typed fully by reference to the ABAP Dictionary.
    CLASS flights DEFINITION.
      PUBLIC SECTION.
        METHODS read_spfli_into_table
           IMPORTING VALUE(id)  TYPE spfli-carrid
           EXPORTING flight_tab TYPE spfli_tab.
    ENDCLASS.
    Addition 4
    ... RAISING exc1 exc2 ...
    Effect
    Use addition RAISING to declare the class-based exceptions exc1 exc2 ... that can be propagated from the method to the caller.
    For exc1 exc2 ..., you can specify all exception classes that are visible at this position and are subclasses of CX_STATIC_CHECK or CX_DYNAMIC_CHECK. You must specify the exception classes in ascending order corresponding to their inheritance hierarchy.
    Exceptions of the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be declared explicitly, otherwise a propagation results in a violation of the interface. An interface violation results in a treatable exception CX_SY_NO_HANDLER. Exceptions of category CX_NO_CHECK are always implicitly declared.
    Notes
    The declaration of exceptions of category CX_STATIC_CHECK is checked statically at the syntax check. For exceptions of category CX_DYNAMIC_CHECK, the check is executed at runtime.
    In a method in which class-based exceptions are declared with the addition RAISING, you cannot use the statement CATCH SYSTEM-EXCEPTIONS. Instead, handle the relevant treatable exceptions in a TRY control structure.
    Example
    In class math, you can propagate all exceptions represented by class CX_SY_ARITHMETIC_ERROR and its subclasses from within method divide_1_by. If, for example, the input parameter operand is filled at the call with the value 0, then the exception CX_SY_ZERODIVIDE is triggered, propagated, and can, as shown in the example, be handled by the caller in a TRY control structure.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING operand TYPE I
           EXPORTING result  TYPE f
           RAISING   cx_sy_arithmetic_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        result = 1 / operand.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA oref TYPE REF TO math.
    DATA exc  TYPE REF TO cx_sy_arithmetic_error.
    DATA res  TYPE f.
    DATA text TYPE string.
    CREATE OBJECT oref.
    TRY.
        oref->divide_1_by( EXPORTING operand = 4
                           IMPORTING result = res ).
        text = res.
      CATCH cx_sy_arithmetic_error INTO exc.
        text = exc->get_text( ).
    ENDTRY.
    MESSAGE text TYPE 'I'.
    Addition 5
    ... EXCEPTIONS exc1 exc2 ...
    Effect
    Use addition EXCEPTIONS to define a list of non-class-based exceptions exc1 exc2..., which can be triggered with the statements RAISE or MESSAGE RAISING in the method. You specify identifiers exc1 exc2 ... for the exceptions to be defined at will and directly. Exceptions defined in this way are bound to the method - similar to formal parameters - and cannot be propagated.
    If such an exception is triggered in a method and no return value has been assigned to it in the addition EXCEPTIONS of the CALL METHOD statement in the method call, then a runtime error occurs.
    Note
    The additions RAISING and EXCEPTIONS cannot be used simultaneously. For new developments starting at release 6.10, we recommend to use class-based exceptions, which are independent of the respective method.
    Example
    In the class math, for method divide_1_by an exception arith_error is defined, which is triggered in the method with the RAISE statement if an arithmetic error occurs. If, for example, the input parameter operand is filled with value 0 at the call, the exception arith_error is triggered in the method-internal handling of exception CX_SY_ZERODIVIDE and handled after the call of the method by evaluating sy-subrc.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING  operand TYPE I
           EXPORTING  result  TYPE f
           EXCEPTIONS arith_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        TRY.
            result = 1 / operand.
          CATCH cx_sy_arithmetic_error.
            RAISE arith_error.
        ENDTRY.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA res  TYPE f.
    DATA oref TYPE REF TO math.
    CREATE OBJECT oref.
    oref->divide_1_by( EXPORTING  operand = 4
                       IMPORTING  result  = res
                       EXCEPTIONS arith_error = 4 ).
    IF sy-subrc = 0.
      WRITE res.
    ELSE.
      WRITE 'Arithmetic error!'.
    ENDIF.
    Regards.

  • I have already bought a macbook pro in USA and I want to use it in Europe. What adapter I need for my Airport Extreme?

    I have already bought a macbook pro in USA and I want to use it in Europe. What adapter I need for my Airport Extreme?

    No power adaptor is needed as the power units are auto-switching. But you will need wall outlet adaptors such as you will find in Apple's World Travel Kit, at AAA stores, and other vendors.

Maybe you are looking for

  • Dashboard prompt in Obiee 11g

    Hi, I have a requirement to hide dashboard prompt, and display it only if the previous prompt has a user input. For example, first I need to display a prompt for Country, if the user selects a value, the show a prompt for State, and if a user selects

  • How can I make a brush that starts and ends in a thin line?

    I am looking to make a brush that I can use for cartooning in CS6 that starts out thin, gets thicker with pressure (I have a cintiq), and ends in a thin line. Does anyone have the expertise to make one? Thank you.

  • How to get rid of IDES logo in the SAPScript Layout PSFC_PRINT_LAY ?

    Hello Guys, I am trying to print the standard production order. The printout has the IDES logo on top left corner for the SAPScript Layoutset PSFC_PRINT_LAY. How do I get rid of it? Is there a config setting for that? How do I insert my own logo? Tha

  • Videos become unresponsive with Home Sharing

    I am having a unique problem when watching videos via AirPlay on my iPad 2.  After a few minutes of playing when I try to pause or fast forward or rewind I am unable to.  Hitting the home key returns me to my home screen, but the audio for the video

  • Textarea - create String that acts like a single character

    Hi guys, I am trying to create a string in a textarea that acts like a single character. By this, I mean that the user cannot edit the contents of that section of text. Here's an example: Textarea text: [Number of Iterations] * 35 / 200 I want the [N