We recently made some changes to our SRS server and now when we create Sales Orders instead of the PDF coming up for view in the web browser we're getting the error "File does not begin with '%PDF-'". I've searched for OSS notes about this, as well as a general web search, but I haven't found anything that resolves this issue. Has anyone else encountered and fixed this issue?
PDF error in SAP Retail Store
Re: PDF error in SAP Retail Store
Found the issue: someone made a change to output type and changed it from PDF to Smartform so it's production smartforms with a .pdf extension which don't open correctly.
Re: ITS Application for LM01 screen size is too small on Mobile devices
Hey Josue,
Please create the new file under the internet service that you have created. Not under ITSMOBILE service. There mist be a default mobile.css under your service too.
Also, Please let me know the name of the new file that you have created- mobile_e.css or mobile_new.css. Accordingly, you will have to modify the value of ~ITSMOBILECSSINCLUDE in config.
Let me know.
Re: OS Login ID with an ITS Service
Hello Janakiraman,
Please be aware that the new implementation of frontend methods via WEBGUI (without a Java applet), the method GET_USER_NAME (and a few others) are not supported - as the new browser API does not support such possibility.
While using the applet version, then it works as mentioned by Oisín.
You can use the java trace to obtain more information about the method execution.
Regards,
Cris
Re: OS Login id in Web Dynpro Abap
Hello Indiranjthn,
Web Dynpro ABAP is a different web application framework. It does not support GUI methods. You can read more about its limitations in SAP note 1098009.
Please consider using the Web Dynpro ABAP forum for questions on WDA.
Regards.
Cris
Re: How to Use ITSmobile Visual Editor?
Hello Thomas,
Note that SAPKB73107 is quite old. There are several corrections for the ITSmobile Visual Editor.
Here is a list of the notes that have corrections for SAPKB73107. (Personally, I would see whether importing a higher support package stack would be possible - then do it).
1818662 - ITSmobile Visual Editor: Improvements and corrections
1876462 - ITSmobile Visual Editor: Hide elements
1903390 - ITSmobile Visual Editor: Accelerated start, corrections
1927694 - ITSmobile Visual Editor: "Adapt to screen" does not work
2005958 - ITSmobile Visual Editor: Prerequisites for switching screens quickly
2051056 - ITSmobile Visual Editor: User changes are not always saved correctly
2057020 - ITSmobile Visual Editor: Adding or removing CSS properties is not possible
You should read each note and implement them, at your own discretion.
There are newer notes, but only available via Support Package.
I hope this helps,
Cris
Re: How to get WebGUI URL from ABAP or Table?
Hello Blangero,
You can also read the values from (ICM-related) profile parameters.
Regards,
Cris
Re: ITS ALV Auto Refresh
Hello Aravind R,
Do you know whether the auto refresh causes a round trip. i.e. the server is contacted? Or the screen only reloads in the web browser itself?
Have you tried to use ~alvclientcellthreshold parameter (used to avoid performance issues while loading large ALVs)? Read more in SAP note 1706598.
Regards,
Cris
Re: ITS Application for LM01 screen size is too small on Mobile devices
Hi Torrealba,
Instead of using a difference CSS, I suggest other option you can use to enlarge all the screen elements. That is to create a new style which requires a new generating class and 2 new services. Here are the steps:
1. Add a new style to table W3GENSTYLES, let's call it 'ZMOBILE' and put generation class ZCL_ITS_GENERATE_HTML_MOBILE.
2. Copy class CL_ITS_GENERATE_HTML_MOBILE to ZCL_ITS_GENERATE_HTML_MOBILE.
3. Go to method _COMPUTE_WIDTH_STRING in class ZCL_ITS_GENERATE_HTML_MOBILE, modify data type 'emfactor' to a value more than existing '0.86' (This is an important scale factor). Make it like 1.0 or 1.5 to try. I'll use 1.5 as an example.
4. Go to method IF_ITS_GENERATE_TEMPLATE~DESCRIPTION_TEXT in same class, Put the new style ZMOBILE under the case and put a new description.
5. Go to method CONSTRUCTOR, change template service from ITSGENMOBILE to ZITSGENMOBILE(this is a new service that we will create later).
6. Go to internet service and copy ITSMOBILE to ZITSMOBILE.
7. Look for 'FUNCTIONS' under HTML Templates of ZITSMOBILE. Edit the parameter value ~itsmobile1UnitWidth to 1.5em
8. Stay in internet service, copy service ITSGENMOBILE to ZITGENMOBILE for step 5.
9. In new service ZITGENMOBILE, look for GENERATION_INFO under HTML Template. Edit 'include(~service ="itsmobile"' to 'include(~service="zitmobile"'.
10. Now create all the screen templates using the new style ZMOBILE. You'll have everything enlarged. To further test with difference sizes, change the scale factor 1.5 to any other values.
Hope I don't miss a step and good luck.
Regards,
Silver
Re: PDF error in SAP Retail Store
Nope, changed the value to PDF and it's still not printing.
Re: PDF error in SAP Retail Store
Hi Tim,
Please check whether you have followed the steps to enable the PDF printing via WEBGUI, by following the steps from SAP note 771683 (belongs to BC-CCM-PRN-PC area). (there are only configuration steps, no SNOTE code necessary - most likely you have a system with SAP_BASIS > 6.40).
The WEBGUI note 1042424 tells more about the needs to have the correct configuration (made by note 771683).
Regards,
Cris
Re: PDF error in SAP Retail Store
Re: PDF error in SAP Retail Store
SAP_BASIS release 700 level 15.
I have not tried using any HTTP traces. I will see if I can get the software and give it a try.
Re: PDF error in SAP Retail Store
Hi Tim,
SAPKB70015 is from March/2008. I think you will face issues with this low support package level. I searched for notes involving printing in WEBGUI and found notes that require a higher support package level to be implemented.
I would suggest to import a higher support package level (at very least SAPKB70022), then try again. If you consider raising a support incident, then use component BC-CCM-PRN-PC. (the HTTP trace will help the troubleshooting).
Regards,
Cris
Re: PDF error in SAP Retail Store
Downloaded and ran Fiddler, but it didn't really show me anything new. I can see the requests going through and the BSP frontend_print being called with the not-a-pdf PDF file, but because it lacks the %PDF in the header it doesn't open. I just can't seem to pinpoint where this file is being converted (or not) in the code.
Re: PDF error in SAP Retail Store
Hi Tim,
Please check the content of the PDF file.
Does it start with something like "�%SAPWIN%" ?
Regards,
Cris
Re: PDF error in SAP Retail Store
It certainly does. Here's the first set of characters when I open it in notepad:
W136; %SAPWIN% OCb Op1 Os1 p1; PP
m850,57; Gb( û ÿÿÿ xf  Â
Re: PDF error in SAP Retail Store
Hi Tim,
Ok, this means that PDF1 is not being used.
This is an application issue.
I recall one case where the default PC printer was being used in SM30 _> WCVL1 view. But I don't know whether it is the same case as for SRS printing. You may check your customizing and see whether you have a similar scenario.
You can also ask your ABAP developers to debug the coding and see which entry in the table view is being used. If you decide to involve the SAP support application team, please raise your incident under LO-SRS.
Kind regards,
Cris