Printing OAException message line by line in OAF

Hi Experts,
Can any body help in printing OAException Messages Line by Line in OAF.
Example :
I am writing code like below :
throw new OAException(" Please enter Depreciation rate as Straight Line Method : Example \r\n1st Year Premium – 0% Depreciation \n 2nd Year Premium – 20 % Depreciation \n 3rd Year Premium – 20% Depreciation ",OAException.CONFIRMATION);
I want output like below:
Please enter Depreciation rate as Straight Line Method : Example
1st Year Premium – 0% Depreciation
2nd Year Premium – 20 % Depreciation
3rd Year Premium – 20% Depreciation
Thanks in advance.
Basha

Hi,
Refer below link:
Re: Logging Exceptions in OA Framework
--Sushant                                                                                                                                                                                                           

Similar Messages

  • How to print the message in 2 lines?

    How to print the message in 2 lines?
    Here i am having it like this... MESSAGE i000(zm) WITH lv_uname.
    here I want to print lv_uname in 2 lines because it lengthy one.
    Thanks,
    Sridhar.

    No man, itas not comming..I am using the below logic to print my message:
        CONCATENATE text-I01 lv_printdate1 text-I02 INTO lv_printname
    SEPARATED BY space.
        MESSAGE i002(zm) WITH lv_printname.
    its printing in a single line...

  • OAException - Custom message in multiple lines

    Hi All,
    Is is possible to display an error message to the user in multiple lines using OAException?
    For Ex: The Error message should be displayed as below
    1. Effective from date should be less than Effective to date
    2. Difference between Effct Frm Dt and Effct To Dt is greater than 12 months
    Incase these two messages have been hard coded in two string variables, Is it possible to display it in two different lines ?
    Thanks and Regards,
    Dean

    hi,
    We have a requirement, wherein we have to show custom messages in multiple lines on a dialog page. so my question is can we pass this bundled message to Dialog page also or something else needs to be done?
    Plz share some code snippet depicting the same.
    Thanks
    Antriksh

  • How to show warning message in two Lines.

    Hi,
    Can some one please let me know how to show a warning message in two lines. I have created a Message in EBS in two lines but it still displays on the page in a single line.

    use bundled exception.
    ArryList peerExceptions = new ArrayList();
    peerExceptions.add(new OAException(....));
    peerExceptions.add(new OAException(....));
    OAException.raiseBundledOAException(exceptions);
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with receiver file adapter printing data line by line in .txt file

    We are working on e-payments integration with one of the bank. As part of text file generation, we have a written a UDF which accumulates all Invoice details( 10 input fields information ) into one string and then sends output line by line with a delimiter separation for each invoice.
    H
    D
    E
    E
    E
    T
    Bank requires a file in above format separating invoice in separate E band.( one invoice collection in one E band)
    As per our scenario, multiple invoice details from an idoc(PAYEXT) have to be written to a text file line by line.  i.e one invoice details per one row.
    After the execution of the scenario, in SXMB_MONI, the message display clearly showing that the invoice details are printed line by line. A java function used in message mapping for the writing the invoice details line by line.
    But actual file that is written to a text file is showing all the invoice details in written in single row.
    When I enable the option Word wrap in the notepad, then only I can see the details in desired format.
    Please guide us where we are going wrong.
    Can notepad settings make any difference while displaying the text file???
    Is there any way to write the file as desired without enabling the word wrap in notepad.
    Thanks in advance.
    Nagendar

    Hi venkatnrj,
    i hope this UDF might be its helps
    public void CombineText(String[] var1, String[] var2, String[] var3, String[] var4, String[] var5, ResultList result, Container container) throws StreamTransformationException{
    String s = "";
    for( int i = 0 ; i < var1.length ; i++)
         if ( var1<i> != ResultList.CC)
         s = s +  var1<i> + "," + var2<i> + "," + var3<i> + "," + var4<i> + "," + var5<i>  + "\n" ;
    result.addValue( s );
    Output diplay like below the format by using above udf:
    aaa,bbb,cccc,dddd,eee,fff,
    aaa,bbb,cccc,dddd,eee,fff,
    aaa,bbb,cccc,dddd,eee,fff,
    aaa,bbb,cccc,dddd,eee,fff,

  • Problem with printing one variable in one line in smartforms

    Hi,
           Please help me.  It's my first time to use smartforms, and my problem is that I am trying to print one variable on one line and I just don't know why the variable splits and prints the other half on the next line.  On my paragraph format, I only chose the "Left-aligned" as my alignment choice and line spacing as one.  I used a character format for the variable just to make it bold.  The width of the window is 19.9cm.  Please, really hope someone could help me.  Thanks.
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Oct 13, 2009 9:16 AM

    Yes.  There are actually 3 variables on that window:
    SURNAME   <E1>&wa_surname(C)&</>
    FIRSTNAME <E1>&wa_fname(C)&</>
    MIDDLE NAME <E1>&wa_midname(C)&</>
    The variable for the firstname is the one being split to the next line.  It's like half of the firstname is combined with the middlename as shown in the example:
    FIRSTNAME    FIRST
    MIDDLE NAME NAME MIDDLE NAME
    When it should be:
    FIRSTNAME    FIRST NAME
    MIDDLE NAME MIDDLE NAME
    Thanks.

  • Printing only Text and Subtotals lines in A/R Invoice not Regular lines

    How can I create in PLD for A/R invoice that only prints the Text and Subtotals lines in A/R Invoice but not the regular lines the A/R Invoice ?

    Hi Hector Santos,
    Try this,
    ->> Open the A/R Invoice Document.
    ->> Choose the Print Layout Design(PLD) on Top of the Menu Bar.
    ->> Open the A/R Invoice(System) PLD and Save as the New PLD.
    ->> Open the New PLD.
    ->> Choose the Database field(make) on Top of the Menu Bar.
    ->> Create the Database field in Repetetive Area.
    for example,
    Row Line Total Field:
    Table -> INV1 - A/R Invoice(Item).
    Column -> LineTotal.
    ->> Choose the TEXT field(make) on Top of the Menu Bar.
    ->> Create the TEXT field in Repetetive Area Footer or End of Report.
    ->> Create the Database field in Repetetive Area Footer or End of Report.
    for example,
    Document Total Field:
    Table -> OINV - A/R Invoice.
    Column -> DocTotal.
    This is Duplicate thread, so Close the thread.
    Regards,
    Madhan.

  • Error Message with multiple line

    Hi
    How to display a error message with multiple line?
    Example
         Goods movement not possible for material 101
         Goods movement not possible for material 102
         Goods movement not possible for material 103
    is it possible is ABAP? If so please advice me.
    Best Regards
    Asheek

    Hi Anoop,
    You can use same thing like this
    I suggest write ur message through this.
    First set the obecj.
    CALL FUNCTION 'APPL_LOG_SET_OBJECT'
    for local memory
    FUNCTION 'APPL_LOG_WRITE_MESSAGES'
             EXPORTING
                  OBJECT              = OBJECT
                  SUBOBJECT           = SUBOBJECT
                  UPDATE_OR_INSERT    = UPDATE_INSERT_FLAG
             TABLES
                  MESSAGES            = MESSAGE_TABLE
             EXCEPTIONS
                  OBJECT_NOT_FOUND    = 1
                  SUBOBJECT_NOT_FOUND = 2
                  OTHERS              = 3.
    the call for physical memory
    CALL FUNCTION 'APPL_LOG_WRITE_DB'
    In this process you only need to provide the Itab with error messages.
    Reg,
    Arpit

  • ITunes unable to recognize iPod, error message along the lines if "iTunes has detected an iPod but unable to recognise" I have followed all the trouble shooting tips and am still stuck? I am now being told by a friend I need a link sent to me to fix this

    Hi,
    I am need of help! I have had this issue for a while now and it's becoming frustrating.
    My iTunes installed on my HP Windows 8 Netbook is unable to recognize my iPod, the error message along the lines of "iTunes has detected an iPod but unable to recognise"
    I have followed all the trouble shooting tips and am still stuck? I am now being told by a friend I need a link sent to me to fix this??
    Someone please help me fix this problem.
    Many thanks.
    Matt.

    Hi
    So just close iTunes and re-open iTunes thats it and that worked for you?
    When you say reset your settings do you mean to factory settings? As my iPod was swapped at the store for a new one and the problem is still there...
    Thanks.

  • Printing fixed number of  Invoice Line in rtf template with level two group

    Hi,
    I have to print fixed number of invoice lines on a page. Invoce tempalte design has a table with header and summary(Invoice , tax and shiping totals) at each page in table footer. The table should repeate at each page with header and footer. I need to print specific number of rows or number of rows wihich page can accumulate in table body on each page.
    I checked few blogs giving solution for fixed number of rows printing say
    "Anatomy of a Template I - Fixed Row Enumeration"(http://blogs.oracle.com/xmlpublisher/2007/03/27/)
    and
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Above two blogs explanation has only one group at line level. but in my case there are two groups (Parent and child) at line level. I am able to count rows in parent group but it is not counting lines in child group.
    Edited by: Bhanu Yadav on Apr 19, 2011 2:10 AM

    Will it be possible for you to move the 1st and 3rd sections to header/footer?
    So that if the 2nd section spills over to next page too, starting position of 3rd section wont be affected.

  • How to print vertical lines for line items?

    hi experts,
                    can any one tell me how to print vertical lines for line items in ascript?
    ive tried using sy-vline but its printing jus one line each for each item .i want it in columns ?if there are any control commands plz let me know how to print?
    thanks &regards
    narendar

    hi narendar,
    Welcome to SDN.
       u can go for box command.
    Use the box command with zero width for vertical lines.
    Position the line by x position and y postion.
    syntax :
    BOX <xpos> <ypos>
           <width>
          <height>
          <thickness in twips> twips.
    Regards,
    Arun.
    Reward points if useful.

  • Need to print Records as according to line values.

    Hi All,
    I have a query,in my report when i pass the po_number,it prints the po details and line details.For each line i have taxes also.
    For Example if i have 5 lines (1,2,3,4,5) and for 1st,2nd and 3rd line's have a,b,c,d as the taxes and for 4th and 5th having a,b as taxes.
    Now i need to print the reportin such a manner that,first i need to print all the three lines (1,2,3) and then need to print there taxes(a,b,c,d).
    and then need to print 4th and 5th line and followed by taxes(a,b) which the both line contains.
    Waiting for you valuable comments..
    Thanks in Advance.....
    RR

    And whats the rule at what time the taxes for some preceding lines should be printed?

  • AR Invoice Print - Print on Preprinted stationary with Line comments & more

    Hi All,
    I have a requirement to print a report in XMLP for AR Invoice Print.
    Requirement
    For Template Body - Line Items
    Line 1-------------------------------------------------------------------------------------
    Line 2-------------------------------------------------------------------------------------
    Line 3-------------------------------------------------------------------------------------
    ----------------------<LINE COMMENT>----------------------This will be line :4
    Line 5-------------------------------------------------------------------------------------
    Line 6-------------------------------------------------------------------------------------
    Line 7-------------------------------------------------------------------------------------
    ----------------------<LINE COMMENT WITH 2 LINES - So the 2nd line will wrap >-----This will be line :8 and 9
    Line 10-------------------------------------------------------------------------------------
    1. Display 10 lines per page
    2. If there are Line comments for the particular line description then print the line comment in the next line as shown above - So it starts from the begin of the first column and prints till the last column of that particular row
    3. If there are more than say 100-200 characters of text then the Line comments will wrap to the next line
    4. Maintain the size of the frame size (or display 10 lines per page)
    I have already implemented 10 lines per page, which is not at all any issue, but in case there are line comments then it does not count that row. Also if the line comments wrap to 2 or more lines then it is still more complicated.
    Does anyone have a solution to this issue. Also, if any of you have implemented this earlier, kindly let me know if you can share the template for reference.
    Thanks and appreciate all your suggestions.

    Hi,
    Was anybody able to an answer to this issue? I have the same requirement where I have multiple subgroups under main group. To print a fixed number of lines in the template is causing an issue.
    Thanks,
    Sandeep

  • Create .txt empty file After Message Processing Command Line Linux command

    Hi All,
    An empty .txt file has to be created in FTP location(FTP loc c:\xyz\Customer20082910.txt) only after the .dat file has been created(FTP loc c:\xyz\Customer20082910.dat)
    Note:.dat has the actual data and .txt is an empty file and is created only after .dat is created
    I know that .txt empty file can be created using the After Message Processing Command Line...
    But confused which command to be given such that it will be created in the FTP location(c:\xyz\Customer20082910.txt)
    Can any one please give the Linux command for it...
    Regards,
    Sridhar

    Hi Aamir,
    Thanks for the suggestion, I will ask my client to create a shell script at FTP server...
    And one more question,
    This is reverse side , now the .dat file is to be picked only if .txt exists at the FTP server (scenario File > XI>SAP) (earlier was SAP>XI>File)..
    So please can you suggest for this also...
    How can i check for the .txt and pick corresponding .dat file...
    i had posted question long back
    Need to pick .TXT file only if .CTL file is available
    Regards,
    Sridhar

  • Printing multiple PR with different line items in smartform

    Hello all,
    I have an requirement to print multiple PR with different line items on different pages.
    So,suppose two PR are there,PR1 and PR2 with n no of line items,then i should get each PR on different page with its line items.
    Note: One loop processing is already there on line items.
    Best Regards,
    Anurodh

    Hi,
    Fetch all the PRs and its corresponding items into 2 different table. Then Loop at the internal whihc contains the PRs and  call the 2nd internal table for its items and call the FM for smartforms and pass them.
    LOOP AT it_PR.
      fetch all the items into it_PR_item
      Call Function Fnam
      Passign the it_PR_item
    ENDLOOP.
    Regards,
    Aditya

Maybe you are looking for

  • How do you select what pictures are in your photo stream?

    I don't understand how pictures are included in the photo stream. Have an iphone 4 that I want to set up so all the pictures/videos are available on my mac book??

  • Which generic-searchbackend-config.xml file to be used..?

    Hi, I need to make some changes to generic-searchbackend-config.xml. There are 2 generic-searchbackend-config.xml files available. 1. sap.com\crm\isa\web\b2b\_comp\*webContent*\WEB-INF\xcm\sap\modification\generic-searchbackend-config.xml 2. sap.com\

  • Skype icon does not appear

    I installed skype but the icon does not show up. OS is actually 4.3.3. It says it is installed and I can find it under settings, but without the icon I cannot fire it up. I'm quite new to the phone so I assume it's me, but I have had not trouble with

  • URL for Forms

    i have seen Forms working on a single url like http://www.xyz.com:8000 How can i have single url to start my forms instead of URL like http://server_ip/forms/frmservlet?login.fmx Can some one send me the exact configuration for this? For domain name

  • How to know which plug in to install?

    I got an error msg "a plug in is needed to display this content" on my Android phone. how do I know which plug in to install?