Problem while displaying 2 page in Smartforms

I'm working on Smartforms.
My problem is, i have 2 different pages with 2 diiferent main windows.
The First Page lasts after 7 pages of Data Printing.
It is coming corrctly.
I've assign the Next Page as Second Page in the First Page and i'm maintaining a condition in the First Page to go to the Second page.
Everything is working fine, but in the second page i'm not getting the Main Window.
What could be the Problem??? Why the control is not going to main window of second page???
Thanks in advance.
Regards,

Well , If you are getting an error as A page cannot point to itself better do this way..
Let your main window sit in page 1. and create a page 2 and create a secondary window as suggested.
Now in general attributes of page 1 set the next page : page1 (itself) .
Create a command in your page1 and set goto next page: page2.
In your page 2 general attributes leave blank in the next page option.
This will work.!
Regards,
Swetha

Similar Messages

  • Problem while displaying top of page in list display

    Hi,
    M facing problem in displaying top of page in list .
    M using following methods:-
    lr_outer_grid TYPE REF TO cl_salv_form_layout_grid,
    lr_inner_grid TYPE REF TO cl_salv_form_layout_grid,
    lr_label TYPE REF TO cl_salv_form_label,
    lr_text TYPE REF TO cl_salv_form_text.
    For displaying the top of page m using event TOP_OF_PAGE.
      CREATE OBJECT lr_outer_grid.
    *Outer grid
      lr_inner_grid = lr_outer_grid->create_grid(
      row = 1
      column = 1 ).
    *... create lable information in inner_grid
    User ID
      lr_label = lr_inner_grid->create_label(
      row = 1
      column = 1
      text = text-h03 ).
    *... create text information in inner_grid
      lr_text = lr_inner_grid->create_text(
      row = 1
      column = 2
      text = sy-uname ).
    *... set label for text
      lr_label->set_label_for( lr_text ).
    But while m going to do same coding for second parameter its not intializing length so adding extra spaces while displaying second row.
    e.g
    USERID       abcdefghjik
    PLANT         jhk            to hjk
    I want that output should look like
    USERID      abcdefghjik
    PLANT        jhk to hjk
    Please tell me the solution what should i do for avoiding extra space

    Hi Neelema,
    You could try this sample code.
    [http://sap-img.com/fu037.htm]
    [http://sap-img.com/abap/sample-alv-heading-in-alv.htm]
    Regards,
    Amit.

  • Problem while displaying UTF8 characters.

    Hi,
    I have a panel grid which is binding through one method.I generated two label component inside that panelgrid.
    I created HtmlOutputLabel.I'm seeting value setLabel() method.My problem is I'm setting UTF8 charecters inside.
    Example setLabel("G�te"); While displaying in browser this UTF8 character is not displaying properly.This setLabel method is getting one object as argument.I dont know how they r doing typecasing internally.
    CAn anyone tell what is the problem.How to rectify it?
    Thanks,
    Bosky

    response.setCharacterEncoding("utf-8");This makes sure that the response characters will be in utf-8.
    Also makes sure that you data that is being send is encoded as utf-8. Java stores data in utf-8 by default.

  • Facing Problem while Displaying Russian words using HTP.TableData

    Hi,
    We are storing russian words in DB.While displaying these words, it is not displaying proerly.we are using "HTP.TableData" to display russian characters in the front end.Please suggest the solution to display russian words proeprly

    Hi Amith,
    I checked that way also, i put break point in database program of the copied LDB, but its not allowing to check the flow in that program also.
    Please suggest any other ways.
    Thanks,
    Nanda

  • Problems while displaying messges on jsp under struts

    hi all,
    i have split up sing up page into two different pages and they are working fine. i have validated the form elements through struts validation, when there is any problem occured while submitting the form, means in case of invalid input or empty input, then i want to display correpsonding message againt input,
    if all input are empty then just show a single message that showing "required fileds can't be empty unless otherwise specified", but when there is any invalid input then previous message not be shown but "valid input required " message should be shown to user and corresponding input fields label marked red. i am sending jsp messages tags for reference
    <logic:messagesPresent message="false">
    <table cellpadding="0" cellspacing="0" width="550" border="0">
    <tr>
    <td align="center" class="error">
    <img src="images/error.gif" width="23" height="20" alt="error" />
    You must fill out all fields unless other specified.
    </td>
    </tr>
    </table>
    </logic:messagesPresent>
    <logic:messagesPresent message="false">
    <table cellpadding="0" cellspacing="0" width="550" border="0">
    <html:messages id="error" message="false">
    <tr>
    <td align="center" class="error">
    <ul><li><bean:write name="error" />1</li></ul>
    </td>
    </tr>
    </html:messages>
    </table>
    </logic:messagesPresent>
    if you can tell me changes to be done in validate method, then i will be thankfull of urs.
    abrar

    Kamali, I think you are giving wrong value in the name attribute of login:iterate tag. Place the name what you have given in strusts-config.xml.
    Let say you have set your list in form (not in session), so by following way you can iterate your list of string objects.
    <logic:iterate name="SampleForm" property="list" id="listObj">
         <!-- your code to do stuff with listObj-->
    </logic:iterate>See if this solve your problem or not.
    Tahir
    Mark tnis reply correct or atleast helpful, if this solves your problem.

  • Problem while displaying popup message while using inputfile component

    Hi
    I am using JDEV 11.1.1.2.0, using ADF i developed and application
    in my page i have a input file component, from which i am taking a csv file and reading it through valuechangeevent of inputfile component. I have used myfaces.trinidad-UploadedFile to get the selected file and read it using inputstream.
    I have put some validation check (validation check is done while reading the file using valuechangeevent of the inputfile component), while reading the file and incase i receive any error (validation mismatch), the reading of file stops ... and before doing that i used to display error message using below method:-
    public String ValidationCheck(String attrname, String attrvalue, int rownumber) {
    String msg="Validation error found in "+attrname+" with value "+attrvalue+" of row "+rownumber+" in the file. Please correct the file and retry/";
    FacesContext ctx = getFacesContext();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "");
    ctx.addMessage(null,fm);
    return null;
    i have used the same method to display message in other places where its showing correctly but fails in inputfile component.
    Please help me out how can display messages from inputfile component??
    Thanks
    Sudeep
    Edited by: SKD on Feb 21, 2012 12:02 PM
    Edited by: SKD on Feb 21, 2012 4:08 PM
    Edited by: SKD on Feb 21, 2012 4:11 PM

    It works fine for me (albeit on 11.1.2.1). Here is my complete test case:
    FileUploadTest.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:document title="FileUploadTest.jsf" id="d1">
        <af:form id="f1" usesUpload="true">
          <af:inputFile label="Label 1" id="if1" valueChangeListener="#{TestBean.vcl}"/>
          <af:commandButton text="commandButton 1" id="cb1"/>
        </af:form>
        <af:messages id="m1"/>
      </af:document>
    </f:view>TestBean.java:
    package view;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.share.logging.ADFLogger;
    public class TestBean
      private static final ADFLogger _LOG = ADFLogger.createADFLogger("view.TestBean");
      public TestBean()
      public void vcl(ValueChangeEvent valueChangeEvent)
        _LOG.severe("in the value change event");
        FacesContext ctx = FacesContext.getCurrentInstance();
        FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, "This is a message", "Message");
        ctx.addMessage(null, fm);
    }adfc-config.xml:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <managed-bean id="__1">
        <managed-bean-name>TestBean</managed-bean-name>
        <managed-bean-class>view.TestBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
    </adfc-config>John

  • Problem in displaying ampersand in Smartform

    I am working on one smartform. There is one header window.The text populated in this window is dynamic text. Symbol ampersand is not getting displayed correctly . When this text is displayed . It is getting displayed with greater than and smaller than symbol .  I am not able to show it here. Please help me with this issue.

    Hi,
    This dynamic text is an include text. User will be giving that.  I have used FM Read_Text and taken that text in an internal table. In this table also ampersand is getting populated as i told above. Except ampersand it is displaying all other characters correctly. Only problem is with ampersand.

  • Problem in displaying title in smartform

    hi all,
    I m developing a smartform in dev server. While i m directly checking the output by executing smarform i  able to see the main title ( hard coded in title window, with no condition, font size 16, bold, arial) .
    While i test the same in testing server, its not showing the main title.I asked the Funtional Consulatant to chk for the configration but as per his comments everything is ok.
    Apart from this, rest all other windows are dispalying properly.
    Can anybody guess where might be the problem.
    thanks

    hi
    r u uasing any language for the text elment or text module.. i think u r giving the language dynamic based in the SPRAS or customer Language. may be the text is not existed in that language,
    ru givung the language as 'EN' or u r giving it in any variable &Language&
    if u r uisng any varaible then once check whether the text is avilable in that language.

  • Problem in displaying Bitmap in Smartform

    Hi All,
    I have requirement of displaying company logo along with other logos like ISO logo etc.  I combined all logos in one bitmap with white background.
    When I insert the bitmap in other applications its printing correctly.  When I import same bitmap into SAP and put it in smartform background turns out to be light grey.  It gets reflected in print out also.
    I tried to import the same as black and white bitmap.  Its printing OK but logo is not as sharp as the original image.  I understand that, when I convert it to black and white bitmap, the grey pixels in the edges of logo turn out to be white giving rough edges to logo.
    Can anyone give solution to print the bitmap from smartform with the same sharpness as original bitmap with pure white background??
    It's urgent.
    Regards
    Hema

    Hi Hema,
    I used to encounter the light grey issue on the background. It's nothing to do with SAP, but it's due to the image capturing when you try to combine all logos in one bitmap.
    The solution is, try to save your bitmap without 'Frame' or 'Border'. I try to requested my colleague on editing the bitmap, and save the picture by ignoring 'Frame' or 'Border'. This will be a bit tricky, but it works for me.
    If you know how to save the picture without 'Frame' or 'Border' using Image Editor Application (Adobe Photoshop, etc), this may solve your problem.
    Hope the above helps.
    Cheers,
    Patrick

  • Problem in displaying page

    when we are running the home page created in macbook..its showing how we wanted....but when we are trying it in windows dell...its showing some totally different screendisplay...check the images and give us a reason to fix this problem...so that it show's same display in every pc display..

    Different OS and different browser in the 2 scenarios. It looks like a CSS issue.

  • Problem while opening page page in Illustrator

    I opened a pdf page in Illustrator to extract the image. Missing font dialog box was not shown while opening the pdf page but junk characters (box-like) appeared in the file.
    The font used for these characters is Times New roman composite True type. This font could not be replaced with Times new roman true type font.
    Let me know how to avoid the junk characters while opening the pdf page in Illustrator                         

    Junk characters usually means a foreign language unicode problem. Does the file look good in acrobat?
    Best advice I can offer is what I used in the past, to save as an image from acrobat. I tried look ing in export to .eps if you coudl convert to outlines, btu could not find anything (screenshto below).

  • Current page printing problem - while repeating pages : Adobe forms

    Hi Experts,
    I have a problem in printing current page number of an adobe form.
    My requirement is that , my form got 2 pages. On first page i am not printing page numbers and excluded from numbering.
    Numbering starts from second page. The second page needs to be repeated twice.
    In this case my page printing should look like :
    First page - no page number
    second page - 1 of 1
    Third page - 1of 1 (as it is a copy)
    IF second page extends to multiple pages (eg.. 2)
    First page - No Page no
    First instance of second page - 1of 2 , 2 of 2
    Second instance of second page - 1 of 2 , 2 of 2 . Presently it is printing like : 3 of 2 , 4 of 2. I need to initialize current page count. I could able to set the total page count 2 via variable from print program. But while printing the second instance, I am not able to initialize the current page count.
    I have seen the following thread which exactly talks about my problem but with out any solution.
    Re: Adobe Forms - Page Count
    Can any one help me in this regard.
    Thank You,
    Regards,
    Naresh.

    Hi,
    I am not sure how your page design looks like.
    Assumption:
    During runtime, ONLY 1 page for Page1, multiple pages for Page2 and Page3, same number of pages for Page2 and Page3.
    This is what i did:-
    I have 3 pages:
    Page1: With NO page number: ONLY 1 page
    Page2: With page number: Multiple page
    Drag the "Insert -> Custom -> Page n of m"
    - TextField: "CurrentPage",
    -- replace the original script: "this.rawValue = xfa.layout.page(this)" with "this.rawValue = xfa.layout.page(this) - 1"
    - TextField: "PageCount",
    -- replace the original script: "this.rawValue = xfa.layout.pageCount()" with "this.rawValue = ( xfa.layout.pageCount() - 1 ) / 2"
    Page3: With page number: Multiple page
    Drag the "Insert -> Custom -> Page n of m"
    - TextField: "CurrentPage",
    -- replace the original script: "this.rawValue = xfa.layout.page(this)" with "this.rawValue = xfa.layout.page(this) - 1 - ( xfa.layout.pageCount() - 1 ) / 2"
    - TextField: "PageCount",
    -- replace the original script: "this.rawValue = xfa.layout.pageCount()" with "this.rawValue = ( xfa.layout.pageCount() - 1 ) / 2"
    Good luck.

  • Problem while displaying Purchase order using me9f

    Hi All,
    I have copied ME9F as ZME9F, and SAPFM06P as ZSAPFM06P (print program of purchase order). Now when I display the PO using ME23n, there is no problem and PO is getting displayed absolutely fine. But When I display the same PO using ZME9F, the vendor address in the PO is getting printed at the item level instead of header level.
    The vendor address should be displayed at the top and not at the item level.
    When I analysed the code, I found in case of ZME9F AND ME23N, the values of NAST structure and ENT_SCREEN are different. These values are passed as input values to the Function Module ME_READ_PO_FOR_PRINTING.
    Please let me know how do I fix this issue, such that vendor address is displayed at the header level instaed of item level.
    Thanks !!!

    Hi,
    First you creat a PO using BAPI_PO_CREATE , once PO is created then you use the FM BAPI_PO_CHANGE and update the condtions in PO. See the code below given.
    Fm lt_cond-condition_no = lvc_knumv.
    lt_cond-itm_number = gt_output-ebelp.
    lt_cond-cond_type = 'FRB1'.
    lt_cond-cond_st_no = '020'.
    lt_condx-condition_no = lvc_knumv.
    lt_condx-itm_number = gt_output-ebelp.
    lt_condx-itm_numberx = 'X'.
    lt_condx-cond_st_no = lt_cond-cond_st_no.
    lt_condx-cond_st_nox = 'X'.
    lt_condx-cond_type = 'X'.
    lt_cond-cond_value = gt_output-frcst.
    lt_condx-cond_value = 'X'.
    lt_cond-currency = p_cndcur.
    lt_condx-currency = 'X'.
    lt_cond-vendor_no = gt_output-frvndr.
    lt_condx-vendor_no = 'X'.
    lt_cond-change_id = 'I'.
    lt_condx-change_id = 'X'.
    APPEND lt_cond.
    APPEND lt_condx.
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    purchaseorder = gt_output-ebeln
    TABLES
    return = lt_return
    * poitem = lt_poitem
    * poitemx = lt_poitemx
    pocond = lt_cond
    pocondx = lt_condx.
    Thanks.

  • Problem in displaying text in smartform

    Hi,
    In my smartform, In a text element I have written a text like below.
    Reference Number ,,,, &v_ref& ,,,, Date Received ,,,,&v_date&
    Now v_ref can be max of 23 characters. When it is of 23 characters, it is showing fine in output.
    But when it is <23 i.e.10 or 11 characters, the allignment is misplaced. So I am thinking in that case
    I will append blank space after the value upto 23 characters. I have tried several ways to add blank
    spaces but in the output it is not considering the space and still the problem remains.
    I want you guys help to resolve my problem.
    Mainak

    Hi,
    For this there is Two solutions :
    1. Create One paragraph format in smart Styles by providing required Tab Spaces and assign it to Text node.
    2.Use a Template that contain two columns with required length.
    Better is Use Template for future modifications.

  • Problems while displaying EXCEL sheets within OUTLOOK

    Dear all,
    I have the following problem: 
    a user within the company receives sometimes emails containing excel sheets. the user wants to use/work with the preview within outlook, unfortunately the displayed values are different compared with the values if the sheet is opened with excel. 
    Now I'd want to ask if you had such  a problem and also found a solution for that?
    Best regards and thanks in advance
    Oli

    Hi Oli,
    Does this only happen to these specific spreadsheets or all? Are these fixed manually entered value? Or references to other sources?
    The previewers in Microsoft Outlook provide additional security against potentially harmful code to help protect you from malicious code,
    active content embedded in attachments (including scripts, macros, and ActiveX controls) is disabled during a preview.
    Thus, a preview might not show the most up-to-date content in the file. To see the most complete, up-to-date content, you need open the file in related Microsoft Office application.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for