Exit program after new-page

Hi,
What could be wrong with folowing code (part of longer program) :
FORM print_id.
  DATA: valid TYPE c,
        params LIKE pri_params.
     CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination = 'LOCL'
        immediately = 'X' "<<< add this line - immediate print
        new_list_id = 'X' "<<< add this line - new spool request
     IMPORTING
      out_parameters = params
      valid = valid.
     IF valid <> space.
      NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
       WRITE: 'dsds'.
    ENDIF.
ENDFORM.
I result its print a page with 'dsds' text on pritner but then program exit to main sap menu with no any error message.
when I use:
NEW-PAGE.
instead of:
NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
new page report is display on screen with text 'dsds' but no exit occurs.

self-solved
I added:
NEW-PAGE PRINT OFF.
at the end of form and it helps.
Without that line after executing a form, controls goes back to other screen that should ('previuos ?')

Similar Messages

  • Exiting program after text file is created

    i want to close labview using the exit.vi after the text file is created....also i am using c++ to execute the labview application is there anyway to make sure labview finishes its routine in c++ before i send the text file to a motion controler
    the c++ routine to open the exe is
    int main()
      system("start C:\\greg\\g.exe");
      return 0;
    then the digital i/o command woudl execute
    anyone know what i can do before sending a digital line to tell the motion control software to pick up the text file?
    thanks
    Attachments:
    program to exe.vi ‏113 KB

    Given the amount of time it takes for LV to launch, you would probibly get better response time if you let the LV code run in a loop watching a predefined "input" directory for new files to process, and writing its results to a predefined "output" directory. The code that uses the text files would likewise sit in a loop waiting for a new text file to appear. (BTW: what will that other piece of code be written in?)
    Alternately, if you don't like the idea of polling a directory, make the main LV application event-driven with a user event that performs the processing. Then create a small VI that you run from your C++ code that simply fires that user event.
    Finally, given all the limitations of C++ perhaps the most straightforward solution might be to write the whole application in LV?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • User Exit Program works Differently

    I'm trying to sync user info from HCM system to a destination system. There is a limitation in SAP HCM system, which allows only full load and not incrememental load or sync up based on events(New Joinee, Position change, Employee Exit) to happen from source to destination. So, I thought User exit could fix this issue.
    When a person inserts or changes or changes the status of an employee to quit through PA30 and saves it, the user exit program should pass the personnel number (numbers) of the user(s) as input to the report RPLDAP_EXTRACT_IDM.
    I am trying to trigger a report(RPLDAP_EXTRACT_IDM) which exports the data from HCM to a destination system(IDM) with the help of a user exit program. Using PA30 when I change the user info and when I save it, through User exit program I'm passing the personnel number of the user(whose data has been changed) as an input to the report, which inturn will replicate the change to the destination.
    Problem:
                User Exit works differently here. After configuring User exit for this tcode(PA30), once I change a user's info and click save, without saving the data, it triggers the User exit program. Usaully while chanign user info, when I click 'SAVE', i get a message 'Recod changed', but now after sonfiguring User Exit program, since the program runs immediately as soon as i click SAVE, I see the following message' Successfully exported Data to the destination' . And the change that i make is not reflected.
    Shouldn't the User Exit program be triggerred after the data is saved?
    Is there a way where I can trigger the User Exit Program after saving the record.

    Not an ABAP expert, but I remember hearing something about PAI and PBO modules and separate user exit includes depending on where you are executing it. Is it worth investigating on these lines?
    Also is it worthwhile configuring Change Pointers to capture whether a change has been made instead of coding user exits in PA30. You could code uxerexits in the ALE data transfer program to analyse the data based on change pointers and transfer data pertaining to New Joinees etc.
    Again I am not ALE epxert, I am just giving my views For what they are worth. For better results perhaps you should post in ABAP forum.

  • Major metadata Problem with new Pages(v4.3) epub export

    Iam are very disappointed with new Pages update (4.3). After new Pages update, when i want to export a book into epub, and upload book in iBookstore iTunes Producer cancels it, because of ERROR: /OPS/cover.xhtml(5,458): element "div" not allowed here; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg"). Previously i did not have any problems with uploading the epubs produced in Pages (4.2). I checked our epubs using epubchecker and i  think, that new Pages (4.3) makes incorrect HTML elements in epubs, which i want to export.
    Please, send me some feedback and Apple - fix this problem.!

    VikingOSX wrote:
    Have you tried creating your content in Pages v4.3 and transferring it into iBooks Author 2.0. Let the latter export your epub, which may be a newer epub standard than what Pages may incorporate. See if this epub satisfies the iBookstore iTunes Producer file requirements.
    iBooks Author can't produce .epub, only a special .ibooks format that can't be read on any device other than an iPad.  But should certainly satisfy the ibookstore.

  • User-exit for call new customize screen of another new program

    Hello, I'm very appreciate for all who read this topic and give me some advice.
    Anyone has an experience about customize standard program to create new screen
    and add new screen to pop-up when user click some standard button to do something
    for support business requirement and then continue to working the old step (such next old screen).
    In QA11 (Manual UD), For posting stock quantity (After click button "Stock for inspection lot")
    Business requirement need to avoid user to input stock quantity for unrestriced used (UR) and block
    by after click button "Stock for inspection lot". Need to customize to pop-up new created screen for user
    to choose sub-set of this inspection lot to post for UR or block by check box (Just overview)
    Then after finish to select, Need to go back old screen ("Record UD : Stock" Screen) and default sum
    of UR and block into screen (Automatic) for post to mvt.type 321, 350 later.
    After checked, Not have any screen-exit after clicked button "Stock for inspection lot".
    but i found 1 user-exit which was called after click above button.
    So, Can i use user-exit to call new customize screen?
    If need to go back from new customize screen to main screen, May have any problem? How to do it?
    If finish to do in new customzie screen and need to continue display next old screen. How to do it in PAI of new customize screen.
    Thank in advance

    Can anyone provide the documentation for this BADI? Also, I'm concerned about the layout of the screen. Can this BADI do the necessary changes on the layout of the screen?
    Thanks!

  • New Pages is double spacing after enter again- can't find the area in inspector that allows you to change paragraph format...help?

    New Pages is double spacing after enter again- can't find the area in inspector that allows you to change paragraph format...help?

    The "new" Pages is missing just about everything.
    Your best best is to go back to the old Pages (mavericks puts in in your applications folder in IWorks.
    Apple told me that based on input from users they will add back some missing features back but I suspect that will take a long time if ever.
    They (Apple) say they created a new Pages to make it work seamlessly on various devices.
    But in doing so they've dumbed down the programs to where they're nearly useless.
    Any new users who don't know what "old" Pages could do will probably be satisfied.
    But those of us who use this program to do real publishing should send feed back to Apple.
    Apple has decided that we are "heavy" users and not representative of the majority of their customers.
    That's why I suspect that putting back the features in Pages will not be top priority.
    But just in case they really do read the feedback send them your opinions and feature requirements and just maybe if enough people squawk they'll at least put the old Pages back in the App Store (it's gone now).
    One possibility crossed my mind. If the new OS Yosemite can mirror devices, perhaps we'll be able to mirror the old pages on to our IOS devices than you could have the full capability of Pages and the connivence of an IPad or IPhone.
    Wouldn't that be awesome?
    At least in the presentation, it looked like it could work, we'll see.

  • Where does one set space after paragraph in the new Pages 5.0? It used to be under text in the Inspector in the previous version, but I just can't find it in this new version.

    Where does one set space after paragraph in the new Pages 5.0? It used to be under text in the Inspector in the previous version, but I just can't find it in this new version. Paragraphs seem to only be dealt with in styles, and the Formatting window for text doesn't seem to have the space after paragraph contrtol that the older Inspector had. What am I missing?

    Sorry I did this without looking:
    Side panel >Text > Style > Spacing > Turn the triangle > Before Paragraph/After Paragraph/
    This is the trouble with the Peeky Boo Contextual Interface that so many wiser heads than mine love to love.
    Peter

  • On Ibooks Author, my programmed image for the Chapter page no longer shows up on new pages, just appears as a question mark inside a box, How do I fix this?

    On Ibooks Author, my programmed image for the Chapter page no longer shows up on new pages, just appears as a question mark inside a box, How do I fix this? Please help, its the same when I try and copy and paste the same image within Ibooks author.

    https://discussions.apple.com/message/24420017#24420017
    You may have  moved or removed content on your page or  its possible you  used the"Adjust Image" and over sharpeed one or more images.
    I assume  you mean it does not show up of new Chapter pages... have you checked the  template?
    Where you see the  ?    you  need to either reduce teh  box outline size - or drop anther  copy of the original image onto  it, it may  fill the  ? box or sit on top.... delete the ? box.
    If its Chapter page only related, its  better doing this in the template.
    Is you image .jpg or .png?

  • How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)?

    How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)? When I do what Apple said and go to a Pages file in finder and select "get info" then select "Pages 4.3" and "change all" it just defaults to the new one even though I'd selected the old one. Do I need to completely uninstall the new version of Pages or is there another work around because the new version of Pages comes dreadfully short of the features I need that are included in the old one?

    Eric Kraft wrote:
    HOWEVER, if you modified a document in 5.0, 4.3 can't open it. You'll have to use Time Machine to replace the modified version with an earlier version that was last modified in 4.3.
    Actually there is a workaround.
    If you open the file in Pages 5, it can then be exported on Pages 0.9 format to another folder. I had to do this as the document was only in iCloud and couldn't be recoverd by Time Machine.
    Worked for me!

  • Why do I receive a "Page nor available" error message on my site after I add a link to a new page?

    At work, I have been adding a new page to an existing folder. This appears to be properly placed in my site folder on my desktop. I also have the new page linked and saved. However, after I link the page, save it, manually "put" the page onto the existing site, then refresh the page, when I go into the actual site and click on the link, it reads an error message that the site is temporarily unavailable.
    As a test, I used the same method to link to one of the existing links that already exist within the site, and it connected just fine.
    What am I doing wrong?

    Assuming the path to your links is correct, sounds like it could have been a server glitch.  Normally, if the page is not found, you receive a 404 error.  If the server is down or your internet connection times out, you'll get "site is temporarily unavailable."
    Nancy O.

  • **To branch to a new page in Smart forms after main window**

    I have three pages where on second pages main window so my data many be carry on next 3, 4, pages and my requirement is to display  data(like notes ) on last page after all contain of main window .that last  third page is different formatting on basis of company code lets 10 different pages. On second page in main window I write u2018commandu2019 and General Attributes, Tick Go to new page in. On the Determine the new page using the list box next to the checkbox. The output of the main window will continues on the new page of third pages. I did this for my all company like (command for 10 , command for 11u2026.).BUT also on second page option of next page in General Attributes. Where in can maintain next pages entry is single...if I put blank the error comesu2026thingu2019s 1) what should I have to maintain in second page for next page.
    2) how I get data from multiple page design (I design 10 pages from that I want one should display):- I used condition option in command for company still getting error .
    So kindly help me  for such scenario.
    Edited by: nshahare on Aug 5, 2011 4:07 PM

    Hi nshahare ,
    Format the way you have asked the question, It is highly unclear what issue you are facing.
    Be clear, be cool and then post(edit) the question again. we are here to help you.
    BR
    Dep

  • I recently updated to the OSX 10.8.3 Operating Sistem.  I am writing a book and now cannot open any word document I've created.  Could not find a newer version of the Microsoft Word Processing Program.  Is Pages the next thing? Can I recover my documents?

    I recently updated to the OSX 10.8.3 Operating Sistem.  I am writing a book and now cannot open any word document I've created with the old system.  Could not find a newer version of the Microsoft Word Processing Program.  Is Pages the next thing? Can I recover my documents?  How?

    I'm in the same boat: new to OS X and Mac, and in the middle of a book. I switched because I heard about the the ease of using Mac, but so far, for me, it's been a nightmare. I bought 2011 Office Mac and hate everything about it, the most recent being the inability to open or cut or paste any of my original word files. I understand that this could have easily been done with earlier versions, but not Mountain Lion (which I learned is what OSX is.) Since I work with language, I am amazed at the assumptions of the Apple community. It helps to use common language and explain even the basics.  
    So all the helpful hints to use the latest version of Office Mac are to no avail. Now what?

  • How to use a formula for dynamic New Page After?

    There is a formula for dynamic New Page After.
    How do I get value of formula?
    I am using RAS and the ReportClientDocument.

    There is a section object.  Off that there is a format property that is of type sectionformat.  From there there is a ConditionFormulas property which I believe is a collection of all the formulas you can set for a section.

  • Does any one know if Apple is going to make the necessary changes to the new pages program so we can merge our contacts into a letter as before

    Does any one know if Apple is going to make the necessary changes to the new pages program so we can merge our contacts into a letter as before

    No.
    No more than anyone knew they were going to take away over 90 features.
    Have you tried using Pages '09 which should still be in your Applications/iWork folder?
    Peter

  • Things are so hard to find in the new pages! Like where is the place where I can adjust the line spacing AFTER a paragraph? Grrr.

    Things are so hard to find in the new pages. Does anyone know where to find the "adjust line spacing after paragraph" control?

    Oh I just solved my own question! Drop down pops when you click the arrow attached to spacing.Just in case anyone else has the same question.

Maybe you are looking for

  • Can't update or download apps

    This has been a problem for me for quite some time. I can't download or update any apps from the AppStore. I though that downloading iOS 7.0.6 would do the trick but I still can't download or update any apps.

  • How to configure Growl notifications for File Sharing and Address Book...

    Heya, So my team and I constantly add new contacts to Address Book and drop files via File Sharing and I would love a way to push growl notifications to people's computers when these actions occur. Or even send emails. Does anyone know how I could ac

  • SeeBurger Message Splitter State accepted or partially accepted

    Hi, The requirement is that if we receive an EDI interchange with multiple transaction sets and if some of them are rejected due to EDI data errors, only those transaction sets in error should be ignored for processing and the ones without errors sho

  • Problem printing from some software versions

    Am assuming it has something to do with the (Adobe?) sepcifics of the machine since the same software on a G4 (10.4) Powerbook will print fine. Machine: G4, 10.4.11 Printer: wireless HP6890, Software: Just installed Acrobat Reader 6 then 8, will not

  • I want to impersonate user when I access Microsoft SQL Server from powershell

    Hi, Actually I have to perform some SQL operation on my MSSQL server database. but problems is that I have given all credentials (windows fix login/password which can access database) in connection string. but when I execute the script then it is alw