How to suppress Blank records

Hi All,
I am having a tab delimeted .txt file which contains blank records which need to be supressed otherwise i get empty XML tags in the output as shown below.
- <Header>
  <PERNR />
  <BEGDA />
  <ENDDA />
  <SCHKZ />
  </Header>
Actually i am getting a tab in PERNR field. I tried the createif function but its not working .Can anyone help me out in this

Hi,
The following way is one way if you are using sender file with content conversion.
NameA.fieldContentFormatting
&#9679;     Specify trim to remove all the leading and subsequent blanks for a value found. This is the default.
&#9679;     Specify nothing to ensure that the value remains unaltered.
The second way is..
if target structure is 0..unbound then
source -- exists-- createIf -- target node
or write UDF to handle input string is null then return
ResultList.SUPPRESS in you UDF.before that the target parent node/node should be having occurrences 0..unbound/0..1
please clarify
Regards
Chilla..

Similar Messages

  • How to suppress blank pages in 11i from printer output

    Hi All,
    We were working on Oracle Reports and registering in 11i thr concurrent program and while running thr concurrent request we are getting blank pages from printer output, please let me know how to suppress blank pages as i need to get printouts without any white pages.
    Say for example if we run concurrent request and o/p is 10 pages which consists of 3 blank pages so finally we need to get printer o/p with 7 pages which are having data as i need to stop printing which are having white pages.
    Please help as this a critical scenario.....
    Regards,

    Please post the details of the application release, database version and OS.
    We were working on Oracle Reports and registering in 11i thr concurrent program and while running thr concurrent request we are getting blank pages from printer output, please let me know how to suppress blank pages as i need to get printouts without any white pages.
    Say for example if we run concurrent request and o/p is 10 pages which consists of 3 blank pages so finally we need to get printer o/p with 7 pages which are having data as i need to stop printing which are having white pages.
    Please help as this a critical scenario.....Does this happen to all concurrent requests?
    Is the issue with all printers or specific ones only?
    What if you use the lp command from the OS to print the concurrent requests output files, do you still get blank pages?
    Do you use PASTA?
    Please see these docs/links.
    How To Investigate Printing Issues and Work Towards its Resolution? [ID 297522.1]
    Oracle Applications Postscript Printing [ID 99495.1]
    Only First Line Of Concurent Output Prints And Then Blank Lines/Pages [ID 452906.1]
    Apps Reports Generate and/or Print With Incorrect Page Break Points [ID 359716.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Blank+AND+Page+AND+Print&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Blank+AND+Page&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to suppress blank lines in smartforms

    Hi all,
         How can we suppress blank lines in smartforms?
    In my scenario I am having customer address details in main window.
    i.e. Name
         Street
          P O Box
          P O Box Location
          Post Code
          Telephone
          Fax.
    Suppose if there is no value for P O Box Location the address is getting displayed as
          Name
         Street
          P O Box
                          -> Leaving blank space
          Post Code
          Telephone
          Fax.
    But I want it as
         Name
         Street
          P O Box
          Post Code
          Telephone
          Fax.
    i.e The blank line should not be displayed.
    Kindly let me know how to do this.
    Regards,
    Neethupriya.

    Hi Neethu,
    Are you using ADDRESS option in smartforms or code to get address from customer master?
    If you are using code, you can give condition like P O Box Location <> SPACE in condition tab.
    Pranav

  • How to delete blank records in internal table

    Hi.
    please tell me how can i delete blank records in an internal table.
    thnx

    In that case
    Suppose you have 10 fields in internal table and if any of them is blank, you need to delete record.
    Try this command
    delete itab where field1 is initial or
                      field2 is initial or
                      field10 is initial.

  • How to Insert Blank Record in Array?

    I assume that I need to insert a blank record into my array
    to solve the problems below, but am not sure how to do so.
    I have a function shown below that is part of a two selects
    related Component. My first problem is if no data is passed to the
    argument, the select field bound to the function is very tiny (I
    would like it to have a default width). Adding a "width" does not
    work.
    SECONDLY, if there is data passed to the argument (in
    Arguments.accountID, i would like to have a blank record inserted
    at the top of the select list results. So in summary, if no data is
    passed to the argument, the select field is very small. If data is
    passed to the argument, the select list is populated, but I need to
    have a blank record (option) at the top of the select list.
    The code for the function shown below:
    <cffunction name="getUsers" access="remote"
    returnType="array">
    <cfargument name="accountID" type="string"
    required="yes">
    <!--- Define variables --->
    <cfset var data="">
    <cfset var result=ArrayNew(2)>
    <cfset var i=0>
    <cfset data1= oSF.QueryObject("select ID , name, Email,
    ACCOUNTID__C from User").results>
    <cfquery dbtype="query" name="data">
    SELECT ID, NAME, ACCOUNTID__C
    FROM DATA1
    WHERE ACCOUNTID__C = '#arguments.accountID#'
    </cfquery>
    <!--- Convert results to array --->
    <cfloop index="i" from="1" to="#data.recordcount#">
    <cfset result
    [1]=data.id>
    <cfset result
    [2]=data.name>
    </cfloop>
    <!--- And return it --->
    <cfreturn result >
    </cffunction>
    <b>Code for select list:</b>
    <cfselect name="Contacts"
    bind="cfc:getPartners.getUsers({mediaid})" tooltip="Select
    Partner Rep" onError=""
    width="50"/>

    1) style="width:50px;"
    2)
    <cfif data.recordcount>
    <cfset result[1][1] = "">
    <cfset result[1][2] = "">
    <!--- Convert results to array --->
    <cfloop index="i" from="1" to="#data.recordcount#">
    <cfset result[i+1][1]=data.id
    >
    <cfset result[i+1][2]=data.name>
    </cfloop>
    </cfif>
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • How to suppress duplicate records in rtf templates

    Hi All,
    I am facing issue with payment reason comments in check template.
    we are displaying payment reason comments. Now the issue is while making batch payment we are getting multiple payment reason comments from multiple invoices with the same name and it doesn't looks good. You can see payment reason comments under tail number text field in the template.
    If you provide any xml syntax to suppress duplicate records for showing distinct payment reason comments.
    Attached screen shot, template and xml file for your reference.
    Thanks,
    Sagar.

    I have CRXI, so the instructions are for this release
    you can create a formula, I called it cust_Matches
    if = previous () then 'true' else 'false'
    IN your GH2 section, right click the field, select format field, select the common tab (far left at the top)
    Select the x/2 to the right of Supress  in the formula field type in
    {@Cust_Matches} = 'true'
    Now every time the {@Cust_Matches} is true, the CustID should be supressed,
    do the same with the other fields you wish to hide.  Ie Address, City, etc.

  • How to get blank records at the start of report output for label sheet?

    Hello -
    What is the best way to get an arbitrary # of blank records at the start of report output?
    I am writing a report that will be printed out on label sheets -- some of which might already be used. For example, there might be 3 labels per page but the first 2 have been used the last time the report was run.. so the report needs to display 2 blank records first so that the first record that gets printed on a label is in the 3rd position on the page. (the user would indicate - through a parameter - what the starting postion would be)

    Hi Scott
    Create a user parameter that reads in the number of blanks you need to 'print' before starting the actual printing.
    In the Format trigger of the outermost frame of your report write code using SRW.SET_BEFORE_PRINTING_CODE.
    Loop this method based on the user parameter and call this method with skip-line-command of your printer as its argument.
    Regards
    Sripathy

  • How to suppress blank line in top and end of portlet

    I created one small report (portlet) however when i execute this one; i remarked there is one blank line in the top
    and another one at the end of the report. How can i eliminate these lines. I need this space to be able to see
    a lot of information in the same page.
    I use portal 3.0.9.2

    After developping a lot of portlet and read a lot of TAR on metalink and a lot of message on OTN i discovered the solution.
    Wnen you create one report with the wizard there is no way to erase the first line ( header ) in the result.
    Second for the last line of the results ( blank line ) ; the problem is with netsacpe 4.75 ( no problem with internet explorer )
    with Netscape you will see one blank line and not with internet explorer ( confirm with Oracle support )
    Anyway in the place of developping one report with the wizard ; you can copy and paste your sql statement of your report
    inside one dynamic page and control all you want.
    I will give you one example than i created; i hope it will help other persons like me
    ( we need to read a lot of thing to do something really simple with portal )
    <HTML>
    <HEAD>
    <style type="text/css">
    <!--
    .TabFontText {
    font-family: Arial, Helvetica;
    font-size: 9pt;
    -->
    </style>
    </HEAD>
    <BODY>
    <ORACLE>
    begin
    htp.p('<table cellspacing=0>');
    for c in ( select '<a TARGET="_blank" HREF="http://'||ssdw_portal.pkg_globl.
    fnc_get_server_port||'/pls/portal30/docs/FOLDER/SSDW_AIDE/'||replace(item.name,
    ' ','+')||'">'||item.display_name||'</a>' filename , to_char(item.updatedate,'dd/mm/yyyy hh24:mi') last_updated
    FROM portal30.wwsbr_all_items item ,
    portal30.wwsbr_all_folders folder
    WHERE folder.name = 'SSDW_AIDE'
    and folder.caid = item.caid
    and folder.id = item.folder_id
    and item.language = 'us'
    and item.name like 'GUIDE%ANG%'
    order by item.name ) loop
    htp.p('<tr>');
    htp.p('<td bgcolor=#CCCCCC width=325>');
    htp.p('<font class="TabFontText" >');
    htp.p(c.filename);
    htp.p('</td>');
    htp.p('</font>');
    htp.p('<td bgcolor=#CCCCCC width=125>');
    htp.p('<font class="TabFontText">');
    htp.p(c.last_updated);
    htp.p('</td>');
    htp.p('</font>');
    htp.p('</tr>');
    end loop;
    htp.p('</table>');
    end;
    </ORACLE>
    </BODY>
    </HTML>
    Marc Fortin
    [email protected]

  • How to print blank records after the detail records in a masterdetail report

    Hi,
    Developing a report for time and attendance record. In this report I am printing all the employees in a department, limiting the no. of records per page to 10.
    I need to insert blank lines at the end of all of the detail records in a page that has less than 10 employee records so that the no. of records displayed on a page can always be 10(these blank lines will facilitate the management to note down the temporary employees who worked for the department but are not part of the department).
    I am using a tabular form with group above layout.
    The report layout is as follows:
    Department : FINANCE & ADMINISTRATION
    Employee Name | Employee Number |
    1 Jim | 1234 | _________________
    2 John | 5678 |__________________
    3 blank
    4 blank
    5
    6
    7
    8
    9
    10 balnk
    Supervisor's Sign:______________________
    Note: the no. of blank lines should be inserted dynamically based on the no. of emp. records being printed on the page.
    Any help is greatly appreciated.
    Thanks in advance.
    Kavita.

    Your solution works when I am not limiting the no. of records per page for a department to 10 records and when I want to print blanks lines for the depts that has fewer than 10 employees in it.
    Exactly in my report I have several dept's that has more than 10 emp's. In such cases I'll be printing first 10 in one page and the rest in the next page. Now I want to dynamically print the blank lines in the second page depending on the no. of emp's on that page. I tried to acheive this by using a CS column that reset's at page level but, REPORTS is not letting me use CS column that reset's at page level in a format trigger. I also tried to copy the CS value into a parameter and or to a Place holder column and did not help.
    Any more work around ideas to acheive this?? please help.
    Thanks alot
    Kavita.
    Hi
    Create a column called Serial_No in ur emloyee query like this
    select 1 , empno ,ename from emp;
    Create a summary column on the serial column with the function SUM
    and resetting it to Page
    Display the column in the report by using the text color as white
    so it doesn't display in the report
    I think this should help u i believe
    Sri
    Hi,
    Developing a report for time and attendance record. In this report I am printing all the employees in a department, limiting the no. of records per page to 10.
    I need to insert blank lines at the end of all of the detail records in a page that has less than 10 employee records so that the no. of records displayed on a page can always be 10(these blank lines will facilitate the management to note down the temporary employees who worked for the department but are not part of the department).
    I am using a tabular form with group above layout.
    The report layout is as follows:
    Department : FINANCE & ADMINISTRATION
    Employee Name | Employee Number |
    1 Jim | 1234 | _________________
    2 John | 5678 |__________________
    3 blank
    4 blank
    5
    6
    7
    8
    9
    10 balnk
    Supervisor's Sign:______________________
    Note: the no. of blank lines should be inserted dynamically based on the no. of emp. records being printed on the page.
    Any help is greatly appreciated.
    Thanks in advance.
    Kavita.

  • How to suppress blank page and selection criteria in SPOOL ?

    My Z program submits two programs to spool and converts the ABAP List in the spool to PDF and emails.
    After upgrade to ECC6, the first (a report painter report) resulting PDF there was one blank page and the contents were displayed on second page. For the second report (RKPEP003 - CJI3)  the selection criteria that the report used was printed as the first page of output and the result on a subsequent page. The same thing happens when I individually execute these two reports directly in SE38 with the same selection criteria. I believe the blank page is there in the spool because when I view the spool as a RAW, there is a P in the first column, however the spool shows that there is only one page in the first and two in the second (this is true - one for selection criteria "which I don't want" and then the actual content). In 46C, when I look at the RAW view of the spool there is no additional P's in the first column.
    I do not want to have the blank page on the first report and the selection criteria listed on the output of the report. How can I do that ? I am thinking get_print_parameters can in someway get me there, but I am not sure.
    Thanks
    Hari
    Edited by: Hari Sudarsanan on Apr 8, 2009 7:28 PM
    Edited by: Hari Sudarsanan on Apr 8, 2009 8:05 PM

    The first report painter program writes a regular ABAP list.
    The second outputs an ALV.

  • How to elemenate blank records

    dear All,
    i am facing the report level problem. i have one char structure and key fig structure .in rows i have placed char structure and units key figure structure kept in columns. in my reports some unit haveing values some units don't have any values .user is asking any unit field don't have values don't display in report i try to create condition but not working properly. after executing the repot ,query properties i saw "zero SUPPESSION" tab i checked the APPLY ALSO TO MEMBERS OF STRUCTURE STRUCTURE AND APPLY ALSO MEMBER OF STRUCTURE KEY FIGURES .now working fine. i question is how to use this condition in query
    designer level.

    Hello Rama,
    If you do not want to see the blank UOM in the report, then please select the UOM char, try to restrict the UOM with " # "   (exclude) in the report level, so that blank values will not be seen at the query level.
    Hope this may help you.
    Thanks
    PT
    Edited by: PT on Apr 19, 2011 3:29 PM

  • How to suppress blank page before side-by-side subreports

    Post Author: nv6525
    CA Forum: General
    I'm having a problem with a primary report forcing a page-break before sub-reports display data.Here's the side-by-side (newspaper-column style) report I'm trying to build:   Report Header      Report title   Page Header        Suppressed   Details                 Suppressed   Report Footer       Subreport 1     Subreport 2     Subreport3     Subreport4     Subreport5   Page Footer         Footer with page numbersThe primary report is intended to be a shell for the subreports.  The subreports contain unrelated, unlinked, independent data from separate data sources.  Each subreport, which must be in-place (not on-demand), contains 2 or 3 columns of data.  The result set yields about 250 pages of data, which is OK.  I'm using Crystal Reports 10 on Windows XP.The problem is that the primary report is forcing a page break before the subreports begin displaying data.  I'd like the data to appear directly below the report header on page 1.  The Underlay option is checked on all sections of the primary report.  Can the page-break be removed?Thanks!

    Post Author: nv6525
    CA Forum: General
    I was able to find a solution.  It was in section C of KB article c2010715 for CR 8.5.  Basically, right-click a subreport in Design view, select Format Subreport, and on the Common tab uncheck "Keep Object Together."  This works great to begin displaying the subreports' contents on page 1 directly underneath the report heading.

  • How to suppress blank page in sapscript

    Hi All,
    I am working on cheque printing, after I run the transaction F110, it will print the sap script which I have developed, everything is working fine and good. But its printing an extra blank page in addition with cheque. I have tested thinking it might be main window extention, but its not, even i have tested by keeping page number variable in main window, its not at all getting extented to the next page. I am wondering from where this blank is getting created, anybody can help me in this?
    Thanks in advance
    Kasturi

    Hi Sridy,
    Please debug the SAP script and check where exactly the value of &page& variable changes before triggering  your Blank page and remove that unwanted piece of code.
    Also check for contents of variable in debug mode.
    Regards,

  • Blank records are showing as '0' in Analytical View

    Hi,
         How to avoid blank records not to be shown as '0' in Analytical View?  Can you please help me on this?
    For your information: from the above image, there's no data for column 3 for Fiscal Period 005 - 012 but it's displaying as '0' rather than showing it as blank while I do a data preview of an analytical view.
    Regards,
    Antony Jerald.

    Hi,
         The analytical view generated in Hana is based on Bex query imported from BW.
         Actually I'm calculating Year till date (YTD) Last Year(LY) Sales, TY(This year) Sales based on posting period.
         In Bex query for YTD Sales last financial year data its posting period would be from 1-12(ie., for the entire last year what's my sale).
          While doing calculation for YTD current year, since we are in posting period 4 which is july month(i.e,calculation would be from 1-4), rest of the month's would not have any data for YTD Current year.  It's showing as blank in Bex query.  But hana analytical view is displaying as '0' which ideally should come as blank. 
         Kindly let me know how can we handle this.
    Regards,
    Antony Jerald.

  • How to suppress a section that a blank subreport appears in?

    Post Author: MikeA-ICE
    CA Forum: General
    I have a series of subreports inside of a main report (each one in a different Group Header like GH2a, GH2b,etc. ) and there are certain times where there are no records in a particular group. The Subreport and the section it is housed in still appear though and I'd like  to suppress the section that  subreport appears in. I found the "Suppress if Subreport is Blank" option which works well but the main report section still displays and takes up space. How can I suppress a section in a report if the subreport it contains doesn't have any records and doesn't need to show?

    Post Author: MikeA-ICE
    CA Forum: General
    Never Mind! I had forgotten about the "Suppress Blank Section" option in the Section Expert. Works like a charm!

Maybe you are looking for

  • Help with delete duplicate locked files

    I'm kinda new at this so forgive me if I'm a bonehead. I made a contribute site, then wanted to disable check in check out. All the files have duplicate locked files remaining on server and they take eons to ftp. Is there an easy way to delete them a

  • Cluster via Mac Pro second ethernet port?

    I'm on an enterprise 10/100 LAN and want to link two Mac Pros together for a cluster. I don't want to use the Internet Ethernet-1 port because it's slow and IT will probably throw a fit if they figure out I'm transferring massive amounts of data over

  • ConfigTool Settings for 1GB RAM System wanted

    Hi, I have done a standalone J2E SR1 installation. The Central insance doesnot come up after restarting the server. The jcontrol.exe shows "Some processes running" with an yellow flag next to it. I know that the config tool settings have to be change

  • Media kind is all messed up now....

    I have a ton of music videos, all of which are in mpeg-4 format. The problem is they won't play on my car stereo or ipod because it isn't recognized as a video because the media kind says "music". I can 't switch it to anything like "pod cast video"

  • Problem extending transitions

    Hello -- I've seen the discussions on this, but the fact is, is that I have two 5 second clips and want to insert something as small as a 2 or 3 second dissolve, and am not able to do so, I'm only able to do the default, and I'm not able to extend it