What will be input for custom module developed for JDBC adapter

Hi,
I have a scenario SQLDB -> Xi -> R3 .
Here I have added a custom module before callsapadapter module.
As I know the sequence of module calling will be as follows :
1. Standard jdbc adapter
2. custom module
3. callsapadapter
Standard jdbc adapter has a select query . After that what will be the input format for my custom module .Will it be the xml structure of my source Data type or will it be a resultset or will it be a inputstream(stream of xml fomat????).
And then in which format i need to generate the output format for CallSapAdapter.
Regards

Hello Moni,
SAP has a wonderful feature in ABAP. There are some Runtime Errors that you can <i>catch</i>. This is somewhat similar to the Exception Handling procedure in Java / C++. So here's how you go about it....
Sometimes there might some calculations that we do, multiplication , for example, where the result of the arithmetic operation is known only at run-time. And the recepient for this result may not always be of the right type to take the result. Consider the following code:
parameters a type i obligatory.
data : b type i,
       c type i.
b = 99999999.
** Assume that the user has entered 99999999 for the value of the parameter a.
c = a * b.    " 99999999 * 99999999 "
write c.
This program will certainly give a short dump saying that there was an arithmetic overflow. But we can actually avoid this Shor Dump and handle the situation quite elegantly. consider the following.
parameters a type i obligatory.
data : b type i,
       c type i.
b = 99999999.
CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 1.
** Assume that the user has entered 99999999 for the value of the parameter a.
   c = a * b.    " 99999999 * 99999999 "
ENDCATCH.
if sy-subrc ne 0.
  write: 'There was an arithmetic overflow in the calculation.'
else.
  write c.
endif.
This way you can actually avoid the short dump and make the system set a value for sy-subrc. Based on the avlue of the sy-subrc, you can go ahead with further processing / error-handling, as the case may be.
Here, ARITHMETIC_EXCEPTIONS is called an <i>exception group</i>. For more information on what other run-time errors can be <i>caught</i>, and What the various exception groups contain, please refer to the online documentation for the CATCH statement.
Regards,
Anand Mandalika.

Similar Messages

  • Hello, i have buy iphone 6 recently now it is fall down on the ground and any chance to repair buy apple on free of cost if not then what will be price for this

    Hello, i have buy iphone 6 recently now it is fall down on the ground and any chance to repair buy apple on free of cost if not then what will be price for this

    santosh7783 wrote:
    and its screen is break down please help me
    iPhone 6 screen replacement is $109 U.S.
    => https://www.apple.com/support/iphone/repair/screen-damage/

  • "Recordsets per Message" for jdbc adapter

    Hi all,
    is "Recordsets per Message" kind of option is available for JDBC adapter.
    Any help will be appriciated
    Thanks
    -Kulwant

    Hi Kulwant,
    its not available.
    You can a stored procedure whick picks only certain number of records per each call.
    Regards
    Inder

  • About 2 questions for jdbc adapter.

    1.
        which transaction isolation level should i set for jdbc sender adapter to guarantee data to be selected correctly?
        not error occurs.
    2.
        how to reslove time_out error for jdbc adapter. especially sync query in volume data case.

    Hi,
    If you want to maintain the sequence and data consistency, then use isolation level "serializable" and QoS as EOIO.
    Set / Increase the time_out parameter in the adapter module.
    Regards,
    Neetesh

  • How to increase the thread count for JDBC adapter

    Hi ALL,
                Could someone advice me on how to increase the thread count for JDBC Adapter in Visual Admin:
    JDBC_http://sap.com/xi/XI/System.Call.maxConsumers 5
    JDBC_http://sap.com/xi/XI/System.Recv.maxConsumers 5
    JDBC_http://sap.com/xi/XI/System.Rqst.maxConsumers 5
    JDBC_http://sap.com/xi/XI/System.Send.maxConsumers 5
    I need to increase them to 10.
    Regards,
    Xier

    hi check the below links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/806e75a0-0e01-0010-2587-fc518de8ac1a
    admin manual:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fdb09490-0201-0010-e09e-a76388646ad0
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • What kind of input for Wrapping tool

    Hi
    I am using below command for wrapping tool
    IntuneMAMPackager -i /Users/xyz/Desktop/upload/myapp.ipa -o /Users/xyz/Desktop/upload/output/myapp_Wrapped.ipa -p /Users/xyz/Desktop/upload/xyz_Distribution.mobileprovision -c 7878200C2E4B2F892BB53E75F4042461474CD112
    What kind of input supposed to give for "-i" parameter?
    As my understanding we can give input as ".app or .ipa" for the Wrapping tool, Is that correct?
    Can we give input as "apps downloaded from apps store"?
    Can we give input as "installed apps on the mac machine(eg: App Strore.app)
    Can we give  input as ".ipa(myapp.ipa) which is created for my app using xcode from developement profile and certificate"?
    Can we give input as ".ipa(distrubitioon/enterprise ipa) which is created using xcode from distribution profile and certificate"?
    Waiting for your reply,
    Regards,
    Venkatesh Guttal

    The Mini comes with an HDMI->DVI-D adapter.  So, if your monitor
    supports DVI-D you are set.  If it supports HDMI, you just need an
    HDMI cable.
    If it only supports VGA, you will need a Display Port->VGA adapter.

  • What will they do for us?

    If your screen is scratched and apple is being sued for that reason..does anyone know what they are doing for their carelessness for the consumer product?

    No offense but how is Apple responsible for people who scratch up their iPod? I don't own one single thing that can NOT be scratched. NOTHING. Every single thing can be scratched, gouged, or maimed. Just the other day I took a healthy chunk of paint off of my car with the key to my car, quite by accident. Is Honda careless? Hardly. If you don't want to scratch up your iPod take precautions. That's what photographers do when they buy an expensive lens. It's what Palm owners do when they buy an expensive unit. I took my iPod right out of the box and put a screen protector on it (I had some leftover from previous Palms I've owned) and my iPod can't be scratch easily (but it could still be scratched). Apple wouldn't have anything to do with whether or not it got scratched after it's out of the box.
    If you opened up the box and it was scratched in the box (mine wasn't) that would be one thing but if YOU have used it and it got scratched - YOU scratched it.
    A little personal accountability would go a long way here.
    Over and out.

  • Create a PDF as attachment in custom module in mail receiver adapter

    I'm trying to create a PDF attachment to an email using a custom module with the following codes. The attachment was created and sent, but when I tried to open it, I got the following error message: the file cannot be read either because a invalid encoding or the file is damaged.
    Anybody knew if I did anything wrong in the way I'm opening and creating the PDF attachment below?
    // add a new pdf attachment to the message
    FileInputStream fi = new FileInputStream("c:/ftmailxi.pdf");
    byte[] attachmentContent = new byte[fi.available()];
    Payload attachmentPDF = msg.createPayload();
    attachmentPDF.setName("ftmailxi.pdf");
    attachmentPDF.setContentType("application/pdf");
    attachmentPDF.setContent(attachmentContent);
    //adding our this pdf as an attachment
    msg.addAttachment(attachmentPDF);
    //provide the XI message for returning
    inputModuleData.setPrincipalData(msg);

    This will surly help u
    /people/sravya.talanki2/blog/2006/11/28/e-mail-xml-messages-in-pdf-format-from-sap-xi
    Check this out
    Mail with attachment.
    Regards,
    Prateek

  • Multiple STATEMENT nodes in target structure for JDBC adapter

    Hi All,
    I have a file to JDBC scenario . At the receiver side we need to update two tables simultaneously .
    So in the target structure for JDBC , is it possible to have two STATEMENT nodes , so that 2 tables can be updated simultaneously.
    Please help.
    Thanks & Regards,
    Loveena.

    Hi,
    U can do tht..please see below link..
    http://help.sap.com/saphelp_nw04/Helpdata/EN/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Regards,
    Manisha

  • Update statement problem for jdbc adapter

    Hi all
    In the jdbc sender adapter, I configured as follows:
    Query statement
    select * from pickdiff where tid is null
    Update statement
    delete from pickdiff where tid is null
    I got following error message:
    Database-level error reported by JDBC driver while executing statement 'delete from pickdiff where tid is null'. The JDBC driver returned the following error message: 'java.sql.SQLException: [SQLServer 2000 Driver for JDBC][SQLServer]Die Unterabfrage gab mehr als einen Wert zurück. Das ist ungültig, wenn die Unterabfrage auf =, !=, <, <= , >, >= folgt oder als Ausdruck verwendet wird.'. For details, contact your database server vendor.
    If I change the Update statement to
    update pickdiff set tid = 'sapxi' where tid is null
    Then everything is ok.
    Doese any one have some idea about this problem?
    Regards
    Hui

    Hi,
    The below statements are from SAP help...
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm
    The UPDATE statement must alter exactly those data records that have been selected by the SELECT statement. You can ensure this is the case by using an identical WHERE clause. (See Processing Parameters, SQL Statement for Query, and SQL Statement for Update below).
    &#9679;      Processing can only be performed correctly when the isolation level for transaction is set to repeatable_read or serializable.
    SQL statement for query: SELECT * FROM table WHERE processed = 0;
    SQL statement for update: UPDATE table SET processed = 1 WHERE processed = 0;
    processed is the indicator in the database.
    please see if setting the isolation level would help....Also are you getting this error always or is it intermitent ?
    Thanks,
    Renjith

  • Writing Select statement for JDBC Adapter

    Dear frndz,
       Please guide me, i have to pick record form the Oracle D/B,
    and this has to be updated in the Sap Table. For this scenario, tell me where i have to write the select statements to fetch the particular record.I was asked to use the jdbc adapter for this d/b link.
    Thanks in advance
    Karthikeyan

    Hi karthikeyan,
    You have to use a sender JDBC adapter.
    Just follow the instructions in this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Previously, you must install Oracle drivers so that JDBC works properly.
    Regards,
    Carlos

  • Adapter Engine Prioritation for JDBC Adapter

    Hi ,
    I am currently working on an Idoc to Jdbc Scenario. The jdbc adapter is used to push the messages to three different legacy systems through three different scenarios. I need to prioratize the messages of the legacy systems(For Eg. Legacy System A is more critical than Legacy System B) in adapter engine or in adapter itself.
    Regards,
    UserPI

    Hi
    We are having the same problem. Once one of the interfaces which is using a JDBC communication channel is processing a bigger amount of messages, the JDBC adapter seems to be blocked exclusively for that interface. All other interfaces using the JDBC adapter are on hold (status "Scheduled" in Adapter Engine Message Monitoring). I set up message prioritization in RWB (Component: Adapter Engine), but it doesn't help (nothing different from before).
    Does anybody has a hint on that?
    Thanks
    Philippe

  • What will bluetooth do for me?

    I am getting a new Macbook Pro 13 inch next week and see that it is bluetooth enabled. What does this mean exactly? How can an average user use this technology? Am also a new Mac user.

    http://www.apple.com/support/bluetooth/

  • Screen Broke in Mini what will apple do for me?

    WEll i just purchused an i pod mini in october, i still have the warrenty on it but my screen craked

    From the iPod service request page.
    "If your iPod's LCD display is cracked due to accidental damage, do not send your iPod in for service. Coverage for this type of damage is excluded under Apple's Limited Warranty for iPod and AppleCare Protection Plan for iPod, and service is not available under the terms of Apple's Repair Terms and Conditions."

  • CAN U TELL ME WHAT WILL WORK BEST FOR MY LAPTOP

    '''bold text'''INCLUDING ALL PROGRAMS RUNNING ON COMPUTOR
    WILLING TO DELETE ANYTHING CAUSING COMPATIBILITY PROBLEMS

    Basically, do not buy a Harddrive Camera or a DVD Camera.
    Get a Dv Tape camera (I am partial to Sony) and be certain that it has a firewire port (the only way to import video directly to your Mac. if you get a Sony, they call that port an iLink.
    Be sure to pick up a 4-pin to 6-pin firewire as no camera that I know of comes with anything but a USB cable.
    :)Sue

Maybe you are looking for