Display either ( first and second page ) or only second page on smart form

Hi All,
There is a requirement in which we get Program name and smart form name from table TNAPR.Now the smart form contains 2 pages.We have to check condition in the program and based on the condition we have to Display either ( first and second page ) or only second page of the smart form.
Can any one please tell how to solve this .
Tahnks in advance.

SSFCOMPOP-SPONUMIV-->Number range number
SSFCOMPOP-TDPAGESLCT-->Pages selected for printing
Data: t_out type ssfcompop.
If COndition.
t_out-sponumiv = 'Number Range'.             " 1-2  or 2
ESLE.
t_out-sponumiv = 'Number Range'.
ENDIF.
OR:
If COndition.
t_out-TDPAGESLCT = '2'.        " Else Bot pages will print      
ENDIF.
Pass T_out to the function module.
CALL FUNCTION 'FORM'
    EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
OUTPUT_OPTIONS             = t_out
*   USER_SETTINGS              = 'X'.
Regards,
Gurpreet

Similar Messages

  • How can I display the first and last name using a paramater as employee ID?

    Hi SAP,
    I have a parameter that is called {? Employee ID}.   What I want to do is display the first and last name based on the employee ID value entered in {? Employee ID} in the page header of the report.  Right now, when I put the following formula in the page header only some pages get the right result while other pages dont....
    if table.employeeid = {? Employee ID} then
    table.firstname" "table.lastname
    It appears as though if the first record in the details section on the beginning of each page happens to be the employee under {? Employee ID} then it prints it correctly, if it isn't I get a null value in the page header.
    Anyone have any ideas?
    Z

    Hi Try this,
    Whileprintingrecords;
    if ={?EmpID} then
    Also check the option "Default values for null" in the formula editor.
    Regards,
    Vinay

  • Display "modified by" and "modified date" on sharepoint wiki pages.

    Hi there,
    I want to display "modified by" and "modified date" on sharepoint wiki pages as a footer note.
    I googled about it and I got the following code which I have inserted in my master page(Since I want to display on 2400 pages).
    <%@ Register Tagprefix="SharePointWebControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <SharePointWebControls:DateTimeField FieldName="Modified" runat="server" ControlMode="Display"/>by
    <SharePointWebControls:UserField FieldName="Modified By" runat="server" ControlMode="Display" />
    It is working but last modifed user and date and time is visible only till page loads.
    After page is loaded completely it dissappears.. Am I missing something??
    Many thanks in advance..

    Sabiha,
    Try these links,
    http://blog.henryong.com/2010/06/08/how-to-create-custom-sharepoint-2010-page-layouts-using-sharepoint-designer-2010/
    http://blogs.msdn.com/b/kaevans/archive/2011/07/07/modifying-the-page-layout-for-enterprise-wiki-pages-in-sharepoint-2010.aspx
    https://social.technet.microsoft.com/Forums/en-US/64f6006a-73c5-4c8e-a552-896df8e22af1/show-wiki-page-library-columns-on-wiki-pages-sharepoint-2010
    Hope it will be helpful
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Multiple page  in only one pdf in adobe forms abap?

    Hi,
    How to display multiple page  in only one pdf in adobe forms abap and avoid > sign in adobe for next page?

    Hi,
    Here are the steps how you can do it.
    1. Create a table.
    2. In the Library palette, click the Standard category and drag the Table object into a cell in the main table.
    Note: If you selected Donu2019t Show This Again in the Insert Table dialog box, when you select the Table object from the Library palette, LiveCycle Designer automatically inserts a table with the same number of columns and rows that you inserted the last time you used the Insert Table dialog box.
    3. In the Insert Table dialog box, enter the number of columns and rows. You can enter a maximum of 20 columns and 50 rows. You can add more columns and rows after the table is created by using the Insert commands on the Table menu.
    4. To add a header row, select Include Header Row In Table.
    5. To add a footer row, select the Include Footer Row In Table.
    6. Click OK.
    Regards
    Runal

  • MY PIXMA iP4000 not printing--paper feeds and steps through but only blank pages

    The printer sounds like it is printing----you can hear the print head moving---but nothing prints....
    pages are completely blank. Reseated the connections, no effect. Took out all the cartridges, reseated
    them, no effect. Still only prints blank pages. Connected it to another computer, same---only blank
    pages...nothing, not even a test page or nozzle page will print. Any ideas? Was working fine
    on Monday when I went out of town until Friday. When I tried to print on Saturday morning, only
    blanks pages. Just spent a small fortune on ink for the printer and would hate to trash the
    printer, but can't justify spending more than the price of a new one to have the old one fixed.
    PS The printer is connected to my USB port, as it was for the past several years when it worked
    fine. Totally stumped/

    Thanks, Michael, however, I was on the phone with Canon for some time, and could not get the printer to do anything even off line. Was told the iP4000 is over 8 years old and there are no parts available to repair it.
    So I have already replaced the printer with an iP2702 that was on sale at a nearby
    mass merchandise store. I was intending to replace the iP4000 eventually anyway, as the red was
    not printing as vividly as it once did...more like a purple. Thought at first it was because I was using
    3rd party ink, but even after replacing the magenta cartridge with "genuine Canon", the red was still
    not as vivid as when it was new.
    Unfortunately,as you know,  the iP2702  got uses a more expensive combined color cartrdige
    rather than the separate ones in the iP4000.
    I am suspecting the reported failure of my iP4000 to print may be due to the third party cartridges
    which I was told do not contain a "chip" as do Canon cartrdiges and that may signal to the printer
     to suppress printing.
    Strange, as I have been using 3rd party cartridges for some time prevbiously without any problem.  
    H. Singer

  • How to hide welcome user and logout link for only specified pages

    Hi,
    I have few pages in my application like forget password page, in which i don't want to show logout link on top corner and welcome message. For rest other pages its ok. If I edit the template body for doing it then in all pages the welcome user vanishes, where i need to hide it for some specific page only.
    Please give some idea.
    Thanks,
    Chandra Bhanu

    Go to Shared Components/Templates.
    Find the page template that you are using and click Copy.
    Go into the copy and look for &USER. and #NAVIGATION_BAR# and delete.
    Go to each page that does not need the user and navigation and assign the new template.
    This will get rid off the user details and the navigation bar.
    Gus

  • Are different page layouts possible in a single smart form?

    My SmartForm needs a header window and a main window (line item data will flow here) which will take 90% of page space. For each line item there is a note which need to display after all line items get displayed. There is a high chance that each note will be of 1 or 2 full A4 pages. That means, suppose my SmartForm takes 1 page to display 10 line items. Now for 10 items 10 full pages of notes need to display starting from page-2 up to page-11th. I want 2 type of page format it this case. 1st: with Header window and Main Window. 2nd: Header Window and Notes Window and in 2nd format maximum space will be for the Notes Window. If it is possible, then how?
    Best Regards
    ROY.

    Hello  Arghya
    There is Condition option of window Where u can select and Additional Event
    Only of First Page
    Not on First page
    only After the end of main Window
    Only Before end of Main
    Only on Page
    you Can select the option According to your Requirement
    Reagrds
    Nilesh

  • Why is my 24-inch LED display flashing black (and sometimes scrambles) every few seconds?

    I have recently upgraded to a new iMac: 3.4 GHz Intel Core i7. 4 GB 1333 MHz DDr3. AMD Radeon HD 6970M. 1024 MB. Mac OS X Lion 10.7.4. I have it attached to a 24-inch Cinema Display.
    Before I switched to my new iMac, it would blink black a couple of times a day. This was going on for a LONG time, but was not a big deal. However, now that I have switched to the new iMac, it is every few seconds. And it has now added the "scrambled" screen to it's repertoire. Fun. And, as I am typing this...it just went black and has not come back on.
    I've read a few threads on this happening, but haven't found any substantial evidence as to what is causing this. It's beyond annoying. Has anyone learned anything new?

    Okay. Murphy's Law. As soon as I posted this, I found an answer (hopefully!). My situation fit the criteria at http://support.apple.com/kb/TS4045?viewlocale=en_US and I installed the update and so far, so good. I'll keep you posted.

  • Premiere cs6 continues to offset screen and freeze/crash after only seconds.

    When opening premiere the issue sometimes happens instantly, or other times it happens after the first thing I click.
    The Issue freezes the laptop and makes my laptop screen offset similar to the "offset" effect, where my screen is pushed to the left. and the left side of the screen is pushed off onto the right side of my screen.
    I unfortunately have updated to OS X Yosemite and am currently running 10.10.1 on. Up to this point premiere has been running fine.
    It started one day while I was in the middle of editing a video and then all of the sudden my screen went black... my laptop instantly shut off.
    Since then, Premiere Pro CS6 has been completely unusable.
    I was able to run premiere in safe boot mode, however my laptop runs far too slow to do anything in premiere in safe boot.
    I have a project that I must get done in 2 weeks! Somebody please get back to me ASAP!   
    Thanks,
    Eric
    MacBook Pro (17-inch, Late 2011)
    OS X Yosemite 10.10.1
    2.5 GHz Intel Core i7
    8 GB 1333 MHz DDR3
    Intel HD Graphics 3000 512 MB

    Well, it's been a while since my last report, mostly because I haven't been using the program as much... however, today I needed to use it and well... it happened.  And it happened on a blank document too.  I made sure that all my other applications were closed at this time, and when I rebooted it, it continues to freeze.  Here is what I saw on the task manager.  Seems to be pretty similar to last time:
    I use Flash to do Timeline animation and sometimes vector art.  The program has crashed before on a reset of preferences.  You also noted that there is a Flash.exe instead of a Flash 32.exe, I don't see it in the task manager at all... I only see the Flash 32 that I've been posting.
    Perhaps I may be missing something, but the reasons for crashing that you listed do not seem to be the reasons why I am crashing and freezing.  While I can understand loading up a bloated file and having it crash the program, I have never seen this program until CS6 freeze once, and then from then on out, until I restart the computer, it will freeze time and time again.  It's bewildering as to why that is happening.
    The Application doesn't seem to be sucking in a ton of memory.  The application will crash out-of-the-blue.  Sometimes when I simply click into the program on a blank doc (like this last crash), it will freeze up.  And if the program isn't even able to work with a blank doc, I don't think the content of ANY file is the problem. 
    I'm really at a loss.  I might have to downgrade back to CS3.  This is one of my most used programs, and if it's impossible to have it run smoothly without me having to restart my computer every few hours, I'm not really sure what to do.

  • Can I display the PDFs and Authors on my iTunes Books page as list, not icons?

    On the Books page of iTunes, the titles under PDFs and Authors display as Thumbnail icons.  Can I display them as a list of titles instead of icons?

    +"When i check the files on my computer it is still there, yet it is not in the library."+
    Putting the files on your computer does not cause them to be added to the library. To add them, use the command File > Add Folder to Library, and point it to My Music or whatever folder(s) all the music is in.

  • I saved a document in pages, a 25 page document, and when I opened up pages today only 10 pages were there. Please is there any way I can get some of my work back?

    I have a macbook. This has never happened before. I 100% saved my document. I tried clicking on "revert to saved" with no luck. Please someone help me, I cannot write all of this again.

    While we all have MacBooks in this forum not all of us use Pages. There's a Pages Support Community where everybody uses Pages. You should also post this question there to increase your chances of getting an answer. https://discussions.apple.com/community/iwork/pages

  • Custom master page issue only some pages not all (spwebpart manager)

    Hi i am using html custom master page in  sharepoint 2013, In my search page (home)  working properly without any issue,
    But in my Result.aspx page showing below error. 
    A WebPartZone can only exist on a page which contains a SPWebPartManager. The SPWebPartManager must be placed before any WebPartZones on the page.
    How to solve this? Thanks in advance

    There are 4 web parts in this page
    1.Refinement
    2.Search Box
    3.Search Navigation
    4.Search Results

  • Preview shows only one page of article

    I have a 23-page portrait-only article for which I can preview only one page.  Normally it is the first page, but if I click on any other page, the preview shows that page -- but the slider on the bottom of Content Viewer shows only the first page regardless of what page is in the preview window.  I'm a newbie at this, and this is my second article; the first one worked just fine.  Put them together in a folio, in either order, and the "normal" one shows all pages, and the other shows only page 1.  Any thoughts?
    Jose

    Silly newbies... I read some of the layout options in Plain English.  Apparently, if the article isn't set to "horizontal swipe only" it's on vertical swipe only, not "optional."  The Aha! moment came from accidentally brushing the mouse so that the preview scrolled upward, revealing the pages hidden below.  Now I get it.

  • Display-condition="first" doesn't work

    Hi,
    I'm trying to use the 'display-condition' attribute of the xdofo:inline-total element to get some boiler plate to appear on the first page only, and some other boiler-plate to appear on all subsequent pages (display-condition="first" and display-condition="exceptfirst") as detailed on page 2-78 of the 5.6.3 user guide.
    (This is not something that can appear in the header/footer, so we can't use 'different first page').
    If I don't specify a display condition then my boiler plate is displayed (although only if I add this as a string within the element, and the variable is not displayed correctly). But if I add the display-condition="first" then the element is not displayed at all.
    I've tried this with the 5.6.2 desktop previewer and with 5.6.3 within Oracle Applications. The results are pretty much the same.
    I guess I have two questions:
    1.) Is this the right way to do what I'm trying to do? (We need 'Assessment Information to be shown at the head of a table on page 1, and 'Assessment Information Continued' to be shown at the top of the table on all subsequent pages, and as this is a batch print job, we need the pageing to restart for each new main group)
    2.) If this is the right way to do it, can anyone help me get it working?
    I can post a small example xml and rtf if it helps.
    Thanks for any suggestions,
    Ben

    To test this further I created a new rtf template and xml file which make the problem quite clear I think.
    I've created 5 new items in the template.
    Each one of them uses a different printing condition as specified in the user guide, from which I quote:
    • first - the contents appear only on the first page
    • last - the contents appear only on the last page
    • exceptfirst - contents appear on all pages except first
    • exceptlast - contents appear on all pages except last
    • everytime- (default) contents appear on every page
    When you preview the report, what happens is that:
    • first prints on every page except the last
    • last is never printed
    • exceptfirst prints on every page except the last
    • except last is never printed
    • everytime prints on every page except the last
    None of these behaves as descibed in the manual, and nothing is ever printed on the last page.
    Anyone got any ideas? Someone must be using this functionality succesfully...
    Thanks,
    Ben

  • In XML Show Form display Creator FirstName and LastName ?

    Hi all,
    In XML Form Builder i want to display the creator FirstName and LastName ( Diamond Admin) in the Show Form.
    For egs:
    Logon ID: diamond_admin
    Last Name: Admin
    First Name: Diamond
    In the EDIT Form By using $sap_user and also createdBy property i'm getting the creator name as diamond_admin but i want to display the FirstName and LastName (Diamond Admin).
    2)In the EDIT Form i used the Label for Time Based Publishing(TBP)
    Opening Date = TimeStamp control
    Closing Date = TimeStamp control
    In the RenderList Form i'm showing the Closing Date label its display the date and time.
    Closing Date= 05/12/08 08:00:00 PM
    But i requirement is to show the closing date only not time(Closing Date= 05/12/08) in the RenderListItem Form..
    How to do this?Please help me...
    Regards
    Thillai J

    When you are editing the Show Form, select the correct label in the form and in the property list area (bottom right) you have a property named "Display As". Select "Display Name" for the value.
    Make sure that in your Data Model your property has the data type "user"
    The "Display As" parameter should also work for your date problem as you can select "Short" to only display the date.

Maybe you are looking for