SSFCOMPOSER - 154 - No output request open. End not possible.

Hi Experts,
I'm trying to print multiple smartforms using FMs SSF_OPEN and SSF_CLOSE. Inside the main program RBDAPP01 (Inbound processing for IDOCS) there is a loop at the IDOCS to be processed. Deep within the processing, we have a custom FM being called which prints smartforms. Since there is a loop at the calling main program, I have organized the code in the custom FM such that the first IDOC calls SSF_OPEN and the last IDOC calls SSF_CLOSE, so that all IDOCS in between will be able to print their smartforms. Here is the call stack:
8
SAPLZCUSTOM                   
ZCUSTOMPROGRAM                             
113
FUNCTION                     
ZCUSTOMPROGRAM                                         
7
SAPLPPC1                               
ZCUSTOMPROGRAM     
136
FUNCTION                     
KK2A_GET_DATA_FROM_IDOC                                     
7
SAPLPPC1                               
LPPC1U01                               
1
FUNCTION                     
KK2A_GET_DATA_FROM_IDOC                                     
6
SAPLBD20                               
LBD20F0A                               
454
FORM                         
IDOCS_PASS_TO_APPLICATION                                   
5
SAPLBD20                               
LBD20F0B                               
69
FORM                         
IDOCS_PROCESS                                               
4
SAPLBD20                               
LBD20U05                               
260
FUNCTION                     
IDOC_INPUT                                                  
3
SAPLEDIR                               
LEDIRU02                               
182
FUNCTION                     
IDOC_START_INBOUND                                          
2
SAPLBD12                               
LBD12U04                               
37
FUNCTION                     
APPLICATION_IDOC_POST_IMMEDIAT                              
1
RBDAPP01                               
RBDAPP01                               
388
EVENT                        
START-OF-SELECTION                                          
The problem is:
1. When I only have 1 IDOC being processed, SSF_OPEN and SSF_CLOSE happens in the custom FM at the same time. This creates a successful spool.
2. Whereas, when I have 2 or more IDOCS, SSF_OPEN happens in the first IDOC, but then it goes back to the calling program, and then when the last IDOC is encountered SSF_CLOSE is called. The FM SSF_CLOSE in this scenario calls the exception INTERNAL_ERROR (sy-subrc = 2).
The system message is SSFCOMPOSER - 154 - No output request open. End not possible.
Why is this happening? Is it because that other programs (calling programs) may have affected the status of SSF_OPEN? It seems that the SSF_OPEN is no longer open.
Thanks in Advanced,
Jack

No, it will not hold the smartform open, but you don't need to hold it open in order for printout to be accumulated in one spool. Spool system does the accumulation automatically, provided the spool requests that are to be added to an existing spool request are:
- generated in the same transaction and
- have the same attributes (such as user, title, output device, client from which the request was issued, number of copies, priority, cover sheet setting, archive mode, and ABAP session number).
Important is: where do OUTPUT_OPTIONS like printer come from currently? Is print parameters popup displayed on first Idoc for user to choose printer and options? Or do you use USER_SETTINGS = 'X' to simply take over defaults from user master? If the print options dialog is displayed, it needs to be controlled as well so it's displayed only once.
Assuming print options come from the user in dialog, the logic without explicit open/close could look somewhat like this:
On first idoc:
- call SSF_OPEN  importing  JOB_OUTPUT_OPTIONS to display print options dialog; move-corresponding JOB_OUTPUT_OPTIONS to global OUTPUT_OPTIONS;
- set OUTPUT_OPTIONS-TDNEWID = 'X' and clear  OUTPUT_OPTIONS-TDFINAL, to ensure new spool will be started (overriding user choices for these parameters!);
- if the user has set OUTPUT_OPTIONS-TDIMMED = 'X' save it globally and clear it;
- set CONTROL_PARAMETERS-NO_OPEN = 'X';
On subsequent idoc:
- clear OUTPUT_OPTIONS-TDNEWID;
- clear CONTROL_PARAMETERS-NO_OPEN;
On last idoc:
- set OUTPUT_OPTIONS-TDFINAL = 'X' (this is not absolutely necessary, but prevents further appending to the spool);
- restore OUTPUT_OPTIONS-TDIMMED from the value saved on first idoc;
Calling Smartform:
- set CONTROL_PARAMETERS-NO_DIALOG = 'X';
- call smartform passing OUTPUT_OPTIONS and CONTROL_PARAMETERS;
The logic is somewhat complicated; I'd wrap it in a class (singleton, which would be de-instantiated after last idoc) to avoid global data and code other than simple method call(s) in FM.
Even if you decide to refactor the logic, it would still be important to understand, I think, why the current logic does not work (where and why smartform gets closed)... Maybe there are some nasty "surprises" somewhere, and your current algorithm should work.
cheers
Janis

Similar Messages

  • Error in Smartform: No output request open.End not possible..

    Hi Experts,
    I am getting below mentioned error while trying to execute smartform..
    NO OUTPUT REQUEST OPEN..END NOT POSSIBLE..
    Message no. SSFCOMPOSER154.
    Help me to resolve the issue..
    Thanks in advance..
    Hampanna Kamatar

    Hi experts,
    I am getting the same error and found found that its because ssfcstat-tdopen getting false in the FM ssfcomp_close.
    if ssfcstat-tdopen = c_false.
        err_comp ssf_err_close_unstarted 'A' 154 space space space space.
      endif.
    I want to know the reason why and where exactly the field is getting populated with c_false.
    ps: I am using a Zprogram and it PRINTS FOR FEW DELIVERIES AND THIS ERROR FOR FEW DELIVERIES.

  • Error in Smartform:  Nested output of tables is not possible....

    Hi ,
      I am getting the below error while executing the smartform.
    Nested output of tables is not possible
    Message ID: SSFCOMPOSER
    Message Numer : 171
    could any one plese help me?
    Thanks & Regards,
    surendra

    Dear
    AS i reply in thread ,
    this error comes  with  some problem in functional Module .
    as we know that two FM use in smartforms -
    SSF_function_mudule
    call   funcion .
    so you check both and  i hope you handle this problem .
    Regards,
    Ravi

  • Evaluated receipt settlement open, deletion not possible in R3

    I am getting an error message "Evaluated receipt settlement open, deletion not possible" in R3  (message no ME867) when trying to delete a line item in PO. We did a GR and than reversed it (102 movement). I also unchecked the ERS flag and GR based IV on this line item but i am still getting the same message. Please help. Thanks in advance.

    I've not seen this error before but if you have not executed an ERS settlement the GR and the reversal are still on the EKRS table.  You can execute the settlement and the GR and reversal will create a zero value MM invoice and remove those entries from the EKRS table.
    Regards,
    Sandra

  • Created Excel Template XSL, but XML output always open IE (not Excel)

    Hello,
    We are using :
    -     XML Publisher : 10.1.3.4.1
    -     Oracle Appli : 11.5.10.2 ( DB : 10.2.0.4.0)
    - Oracle Reports Builder : 10.1.2.0.2
    We use Reports for building the query that is used with XML Publisher.
    We would like to use XML Publisher with an output Excel.
    After noticing a problem with display of numeric cells when using a RTF template ( decimal places, there's a lot of threads on this), we decided to follow an advice on xlspe.com, and we created a Excel template, that we saved as a XML Spreadsheet, and using the xlspe tools, we generated the XSL file.
    Then we defined everything in Oracle Applications EBS:
    - data definition
    - template ( XSL-XML as input, and XML as output. Note that XML is the only option)
    - executable ( execution method "Oracle Reports" )
    - program request : ( output format XML )
    This works fine when the use a RTF template with an output Excel. (except the issue on the decimal places). in the concurrrent requests form, the output button opens Excel correctly.
    When we go with a XSL template, with an output XML, the output generation works fine, but, in the concurrent requests form, the output button opens internet explorer IE instead of Excel (probably because it's a XML output file)
    I hope my explanation is clear.
    Did I make a mistake in the definition ?
    Is there anyone who has experienced and solved this issue ?
    Thanks a lot in advance,
    Olivier

    Hello,
    After many talks, I found out how to fix this issue.
    Basically, the issue is in Oracle Application where the MIME type is not defined for XML Excel type files.
    By default, XML is open with the browser.
    For solving the opening of XML Excel files with Excel (and not Internet Explorer IE), we had to add under the "System Admin > install > Viewer Options " a new entry for " XML - application/xnd.ms-excel - Microsoft Excel "
    And also, under the System profiles, for option "Viewer: Application for XML", set the value to Microsoft Excel, and, as well, for option "Viewer: Application : Text", set the value to Browser.
    This resolves the issue, and a XML Excel file generated by XML Publisher (from a XSL-XML template), is opened directly with Excel.
    Thanks for your contributrion,
    Olivier

  • Download Open Office - Not possible with Windows 8?

    Hello,
    I tried to download free Open office but the computer said no to this, it is not possible in Windows 8. Is there any other free Word and Excel I can download? I don´t need every app in MS Office, only Word and Excel.
    Also - when I tried to open a .doc saved document in Wordpad, I didn´t succed. Wordpad only showed a lot of strange signes and not the text. How can I open my word documents in Wordpad?
    This question was solved.
    View Solution.

    Hi,
    OpenOffice supports Windows 8 and 8.1:
        http://www.microsoft.com/en-us/windows/compatibility/CompatCenter/ProductDetailsViewer?Name=OpenOffi...
    Have you tried to copy and paste ? Wordpad won't/can't keep all Word formats.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Searching and opening folder not possible ?

    I sometimes search not just file name but also folder name, but I see no such option in the search function
    I also often need to quickly open a folder to see all images in it.
    For ex if I search an image named AA the search result shows only the images with the letters AA together with the folder. Now I want to quickly open the folder, but see no simple way to do it.

    The correct forum is here: http://www.adobeforums.com/cgi-bin/webx?14@@.1de78154
    Have you tried simply using Folder View?

  • ITunes 11 - multiple open windows not possible?

    I usually run iTunes with multiple windows open (double click the playlists and they open as new windows).  At any given time I have 3 or 4 playlists open.
    ... doesn't seem to work any longer, am I overlooking something?

    It took me a while, but I finally came up with a solution for this! It's not a perfect one for everybody (since you have to make hotkeys) but it works great if you use something like Alfred or Quicksilver to control iTunes already.
    Basically, I wrote an AppleScript that detects if Repeat One is on. If it is, then the script very quickly disables it, skips to the next track, and turns it back on. Skipping then works just like it did with iTunes 10 and iDevices.
    I put the scripts up for download here: iTunes 11: Restore track skipping with Repeat One turned on (OSX)
    Hope this helps some people.

  • On my iPad, when I try to open a movie I purchased from iTunes, I get "The requested URL was not found on this server."

    On my iPad, when I try to open a movie I purchased from iTunes, I get "The requested URL was not found on this server."  It's on my laptop but when I play it there, it 'jerks' every couple of seconds.  How can I fix both these issues?  Thanks!!

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • Error :-The requested resource does not exist while opening the adobe form

    hello Experts,
    We are in Portal implementation face with ECC6 EHP4 and Portal EHP1
    We have developed adobe  form using HCM forms and processes and done the required configuration in SPRO
    When we are trying to open the form from ESS we are getting below error
    404 not found
    The requested resource does not exist.
    Please look into this issue and let us know any thing we are missing
    Sincerely
    Paresh

    is ADS working correctly?
    1.  Use transaction SA38 to execute the program FP_TEST_00.
           Detailed information about this test program and about how you
           should then proceed is given in the Adobe Document Services
           Configuration Guide in the Help Portal under:
           http://help.sap.com/saphelp_nw2004s/helpdata/en/37/504b8cbc2848a4
           94facfdc09a359b1/frameset.htm -> Adobe Document Services
           Configuration Guide -> Configuring the Web Service -> Securing
           Access to the Web Service ->Configuration Check -> Configuration
           Check for PDF-Based Forms in ABAP
           -  If the FP_TEST_00 form is displayed in the print preview, the
              ADS configuration is correct.
              -> If you use scenarios with an interactive PDF, proceed with
              point 5. Otherwise, proceed with the test under point 6.
           -  If the system displays an error message instead of a form, the
              configuration of ADS is incorrect.
              -> Carry out the additional tests from point 2 onwards.
    2.  Use transaction SA38 to execute the program FP_PDF_TEST_00.
        This enables you to check the RFC connection to ADS  (see the
        reference to the documentation given above).
           -  If the system displays the version number of ADS, the
              configuration of the RFC connection is correct.
    read the note 944221
    Please paste the whole error? Is any dump in ST22

  • Issue when installing SQL Server Express 2012 - "The requested control is not valid for this service" + "Could not find the database engine startup handle"

    Good morning,
    I'm experiencing the following issue when installing Microsoft SQL Server Express 2012 (with tools, SQLEXPRWT_x86_ENU.exe) on the laptop of my company;
    Installation goes plain until around the end of the progress bar, it stops on the setup of
    SqlEngineDBStartConfigAction_install_configrc_Cpu32
    giving 7-8 times, even pressing "Cancel", the message "The requested control is not valid for this service";
    After this, I receive one last message ""Could not find the database engine startup handle", then installation ends with failures, in particular the Database Engine and the Server Replication failed to be installed.
    I've put in my SkyDrive the error log I received after the install;
    I'm at full disposal if you need further information,
    thank you in advance
    Best regards
    Francesco

    Well, i just ran into this issue and the problem was lack of admin rights. It was my company's laptop so got the setup initiated by my company's IT team with admin rights. However, the upon completion of setup, i go the same error messages as stated above: 
    SqlEngineDBStartConfigAction_install_configrc_Cpu32
    giving 7-8 times, even pressing "Cancel", the message "The requested control is not valid for this service";
    After this, I receive one last message ""Could not find the database engine startup handle", then installation ends with failures, in particular the Database Engine and the Server Replication failed to be installed.
    Also, if you open SQL Server Configuration, the status of the service is "Change Pending" and you would not be able to set the startup login type to Local Service/System/Network.
    Then, I just got my account added as Local Admin and then tried to start the service and was able to.
    However, I am not sure whether same was the case for you.
    Please mark the answer as helpful if i have answered your query. Thanks and Regards, Kartar Rana

  • Requested query does not exist on current server

    I have transported a query from DEV to PRD and it went in fine. Now when i try to open the query in designer or analyzer i end up getting error " Requested query does not exist on current server". Though i can run this in RSRT and also can see its entry in RSZCOMPDIR table. Also i am able to execute this query in analyzer when i run it from the history.
    Please advice what went wrong and what needs to be done.

    Try re-generating the Query in production.
    goto RSRT and selet the query. Now click on the third button Generate Report
    Now try opening the Query from Query Designer...

  • Recorded Videos after Sync: The requested URL was not found on this server.

    A few days ago, i recorded a couple of videos. They were saved properly and i could watch them after it in the Camera Roll of my iPhone. Because my memory was almost full, i connected my iPhone to my MacBook and synchronized about 900 old pictures with iPhoto and selected to delete the pictures after the sync. I did not select the recently recorded videos.
    After the sync, i opened the Camera Roll on my iPhone and tried to watch the videos again. But now, they all have a grey icon and it says the duration is 0:00 minutes. When i click on a video, it shows me the following error message:
    The requested URL was not found on this server.
    When i connect my iPhone to iTunes, it says that there is about 350 MB of "Documents and Data" on my phone that I have no idea where it is coming from. Do you think it is possible that the videos are still saved on my phone but my phone doesn't recognize it as videos and can't assign it to the icons in the Camera Roll? Do you have any tips how I can access the videos in case they are still saved somewhere on my iPhone?
    Thank you very much in advance for your help and tips!

    I have the same problem too!! I was deleting some photos and videos in my phone when the next picture I swiped to was a blank picture with JPG in the middle~ after I closed camera roll and reopened it my photos and videos after that picture are all gone~ and I'm left with 3 videos I took about 30 mins before with 0:00 and when I tried to play them the message popped up saying "requested URL cannot be found on this server" T^T does anyone have a solution to this problem?

  • Download from loop masters says "The requested URL was not found on this server.

    I'm downloading some audio files from http://www.loopmasters.com/ but whenever I try, in the download progress in the top right corner of safari, it'll stop downloading and say "The requested URL was not found on this server." There doesn't seem to be any rhyme or reason as to where in the download it'll stop. The first time got 37.3% of the way through, the second time got barely 12% (but my computer went to sleep this time,) and the last time it got to 34.8%. I can't do any more attempts because this website will only let me download it five times. Is there anything that's going wrong on my end, perhaps? Or is it likely just their servers being all wonky?
    Let me know if you need any other information :]

    This previous discussion has a solution:
    https://discussions.apple.com/message/16527576#16527576

  • HELP. "The requested URL was not found on this server." (iPhone videos)?

    So i was editing a bunch of videos on iMovie on my phone and while exporting, i didn't have enough space. So I thought that I would delete the videos off my Camera Roll (the ones i'm putting into iMovie) thinking that i would still be able to export and have enough space.
    It was the wrong decision because it resulted in having all the videos deleted even on iMovie. So i backed up my files on iTunes 2 days ago (luckily) and when i restored my files, the videos are back.
    BUT the videos that were saved from snapchat (they were going into the video i was putting together) wouldn't play! It shows the error "The requested URL was not found on this server".
    I looked up everything possible to try and fix it but i just can't find it the correct solution. I accidentally backed it up tonight and so the old back up file is gone. I really want to save these videos. The videos still show up in my Camera Roll, they just wouldn't play because the error shows up.
    When i connect my phone to my laptop (PC windows vista... I know its old but it works fine for me) it would show the option "open device files" or something. so when i open it, it shows the DCIM folder. And so i open that it shows all my pictures and videos.
    Problem is my snapchat videos show up as 0 bytes and still wouldnt play. I've attacted the error message just so you guys know what i'm talking about.
    I'm really sad and upset about this, so can anyone help me??
    pleaseeee!

    This might be helpful:
    http://support.apple.com/kb/HT4539

Maybe you are looking for

  • Many Options in Message Mapping Editor Disabled

    Hello all, Many fields in Mapping editor are disbled. Fields like, ==>"Map Selected fields and Substructures, if names are identical" ==>"Clear Mapping" ==>"Data Flow Editor" etc, in that row, except "Edit Java sections" and "Select Message" are diab

  • Can't Use "Mail" Application

    I just got a MacBook so am just starting to get my head around things. I have tried to use and set up Mail but I put in my yahoo address and password - it whirrs for a bit and then says basically yahoo may require some money for this - is this correc

  • Creator and image databases

    I'm trying to create an application that uses a database to store pictures along with other info. My question is, how can I retrieve the images from the database and show them in a paging setup like the Data Table component? So far I have been able t

  • How can access third party( Ms word) ClipBoards

    hi i wanto acess third party ClipBoards like Ms word ... Dream weaver is possible to access ps help me thankq in advance

  • How to print a messages inside pl/sql functions

    I have this function whihc is very similar to a number of my other functions: DECLARE check_if_set VARCHAR2 (50); BEGIN      FOR c IN (SELECT proposal_id      FROM student_current_project      WHERE student_id = :p4_student_id      AND second_reader_