Quantcast
Channel: SCN : All Content - Output Management
Viewing all 1353 articles
Browse latest View live

Smartform re-activation after upgrade

$
0
0

Hi expert,

 

We are doing upgrade from 4.7 to ECC 6.0. I noticed that smartforms in the system are in active status but function module used to call the smartform has not exist yet. What I did was reactivate the smartform so it will generate the function module. My question is, is this the right approach when doing upgrade, activating one by one all custom smartform in our system or there is additional step or tool need to be executed when doing upgrade to ECC 6.0 in order to do mass activation of this smartform? Thank you.

 

Regards,

Abraham


regarding module pool.

$
0
0

hi ,

 

I have a query regarding module pool

 

i created table using table control passing values from internal table and the structure is

Header 1Header 2Header 3Header 4Header 5Header 6Header 7Header 8

  comm_3/8

  comm_1/16

  comm_15/32

----
abc123555

 

 

 

 

Now the problem is the user will enter the data abc,123...  it should store in database table like .

 

comm       3/8    abc    region -1srt record in data base table .

comm    1/16     123    region- 2nd record in data base table.

 

 

for that i have to loop on each column and with respective rows to store in database table.

 

 

how to loop the table ...and how to find that cursor current row and current line ???

 

Thanks in advance

Smartforms for production order paperwork

$
0
0

The standard configuration for SAP PP shop floor control output paperwork, accessed via IMG or OPK8, has not been changed to benefit from the introduction of Smartforms (ECC6 EHP 0). This restricts use to SapScript, which, although capable of providing the functionality to design your own outputs has some restrictions. One of the key restrictions we encountered was the requirement to have a printer capable of printing barcodes in order to add these to the outputs whereas with Smartforms you can print barcodes on any printer as it is sent as a graphic. That in addition to the fact that Smartforms are far easier to design and customise drove me to look for a way of configuring SAP to allow Smartforms.

The configuration of the production outputs requires the setting of a print program and a print form. In our system, and probably most others, the print program retrieves the print information from memory, retrieves the corresponding production order information and outputs it to the various sections of the SapScript form.

 

Solution

 

In order to avoid making any changes/enhancements to the standard SAP checks in config (OPK8) for SapScripts I chose to create my Smartform with the same name as the old SapScript form. This form name is retrieved in the print program (see later) and so taking this approach means that I don't have to hardcode the Smartform name in the print program. If in the future I want to switch to another Smartform I only need to change the config and if it is a completely new name I simply need to also create an empty SapScript form with the same name.

 

The new print program retrieves the print data in the same way as the old print program.

 

  call function 'CO_PRINT_IMPORT_DATA'
exceptions
memory_id_ppt_not_exist
= 1
memory_id_ppi_not_exist
= 2
memory_id_pps_not_exist
= 3
others                  = 4.
check sy-subrc = 0.

call function 'CO_PRINT_GET_INFO_LIST'
importing
print_co_exp  
= print_co
print_opts_exp
= print_opts
exceptions
others         = 0.

 

 

 

The code above brings back details of what production order to print, which document is to be printed (Production order, GR, GR label etc.) and which form is to be used for the output. The form name being passed is that set in OPK8 which in our case refers to the Smartform and also the dummy SapScript form. The print options being passed are as used for SapScripts rather than the format for the standard interface for Smartforms. Many of these have the same name so you can either move the corresponding fields to the Smartform interface and map the remaining ones, or, simply add structure ITCPO to the Smartform interface and then access the information in the Smartform from there.

 

The remaining processing that has to be done in the print program is to retrieve the function module for the Smartform and then call the Smartform.

 

The format of the form name being passed in the print information is that of a SapScript so it is necessary to save that to a local variable with the format of a Smartform name in order to be able to retrieve the function module for the Smartform.

 

  lf_formname = print_co-forml.


Next get the Smartform function module name.

 

  call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname                
= lf_formname
*     VARIANT                  = ' '
*     DIRECT_CALL              = ' '
importing
fm_name                 
= lf_fmname
exceptions
no_form                 
= 1
no_function_module      
= 2
others                   = 3
.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif

 

Now call the Smartform


call function lf_fmname
exporting
output_options
= ps_opt
print_co
= print_co
print_opts
= print_opts.

 

 

 

In my code above I am simply passing the print options and print information to the Smartform and doing all the processing within the Smartform itself. I have done this so that I should be able to use the same print program to call Smartforms for all the production outputs although I haven't made that change yet.

 

Within the Smartform itself, the data for the production order is retrieved using the function modules below. The use of these was taken from the old print program and so that is the best place to start when developing your own Smartform.

 

Production order header

  call function 'CO_PRINT_GET_ORD'
exporting
aufnr_imp       
= print_co-aufnr
flg_prtbl_opr   
= 'X'
flg_prtbl_sop   
= 'X'
flg_prtbl_cmp   
= 'X'
flg_prtbl_prt   
= 'X'
changing
caufvd_p_tab_exp
= gt_caufvd
exceptions
entry_not_found 
= 1
others           = 2.
check sy-subrc = 0.

Production order sequence

  call function 'CO_PRINT_GET_SEQ'
exporting
caufvd_p_imp   
gs_caufvd
*         AFVGD_P_IMP     =
*         RESBD_P_IMP     =
*         AFFHD_P_IMP     =
*         FLG_NO_REFRESH  =
flg_prtbl_opr  
= 'X'
flg_prtbl_sop  
= 'X'
flg_prtbl_cmp  
= 'X'
flg_prtbl_prt  
= 'X'
changing
affld_p_tab_exp
gt_affld
exceptions
entry_not_found
= 1
too_many_params
= 2
others          = 3.

Production order item

  call function 'CO_PRINT_GET_ITEM'
exporting
caufvd_p_imp   
= gs_caufvd
posnr_imp      
= '0001'
changing
afpod_p_tab_exp
= gt_afpod
exceptions
entry_not_found
= 1
others          = 2.

Production order final product serial number

  call function 'CO_PRINT_GET_INFO_SEROB'
exporting
*         CAUFVD_P_IMP      =
afpod_p_imp      
= gs_afpod
changing
rserob_tab_exp   
= gt_rserob
exceptions
entry_not_found  
= 1
imp_param_missing
= 2
too_many_params  
= 3
others            = 4.

 

Production order operations

  call function 'CO_PRINT_GET_OPR'
exporting
*            CAUFVD_P_IMP    =
affld_p_imp    
= gs_affld
*            SAFVGD_P_IMP    =
*            RESBD_P_IMP     =
*            AFFHD_P_IMP     =
*            FLG_NO_REFRESH  =
flg_chk_ctrlkey
= print_co-psteu
*            FLG_PRTBL_SOP   =
*            FLG_PRTBL_CMP   =
*            FLG_PRTBL_PRT   =
changing
afvgd_p_tab_exp
= gt_afvgd
exceptions
entry_not_found
= 1
too_many_params
= 2
others          = 3.

 

Production order operation components

  call function 'CO_PRINT_GET_CMP'
exporting
*            CAUFVD_P_IMP    =
*            AFFLD_P_IMP     =
afvgd_p_imp    
= gs_afvgd
*            FLG_NO_REFRESH  =
changing
resbd_p_tab_exp
= pt_resbd[]
exceptions
entry_not_found
= 1
too_many_params
= 2
others          = 3.

 

Unable to get enhancement KKCD0001 to work

$
0
0

Hello Experts,

 

I have added code to customer exits ZXKKCU01 AND ZXKKCU02.

 

I am unable to get them to work. I have created a project in CMOD and activated it but so far no luck in getting it to execute.

 

I have placed a Break-point in ZXKKCU01 to stop the program to check values at that point.

 

Can any one suggest a way I could see why the executes are not working?.

 

Should the activation of the project be done in  a special client?

 

 

Best Regards

 

Mike.

OINV.CardCode as Field for Billingadress in Printdefinition-Layout possible?

ADOBE Form Table printing Multiple pages

$
0
0

Hi,

 

   I am having a suituation that in ADOBE Forms I need to display same internal table data in multiple pages. But while i display it the data only printing in first page. I want to print the same data in the second page also. How to do this? any idea please.

 

Regards

 

Srikanth S

Printing different data using the same layout in a smartform

$
0
0

Hi Experts,

 

I have a requirement to print a smartform (different data using the same layout).

My smart form has a logo, 2 page headers (one for main heading and other for column details), main window and a page footer.

my driver program has 2 tables (gt_header which has all the headings related to 6 forms) and (gt_data has all the data to display the results)

 

Requirement

 

1. To print costs at WBS level

     a. including accruals. Main header (Development costs for report including accruals)

     b. excluding accruals. (Development costs for report including accruals)

     c. accruals only. (Development costs for report including accruals)

Data for WBS level costs include WBS element, description and cost to date. (as mentioned above this is maintained in GT_DATA)

 

2. To print costs at cost center level.

     a. including accruals. header (Development costs for report including accruals)

     b. excluding accruals. (Development costs for report including accruals)

     c. accruals only. (Development costs for report including accruals)

Data for Cost center include Cost center desc, current month cost, year cost and total cost (as mentioned above this is maintained in GT_DATA).

 

in my driver program i got all the data required into the tables.

 

Can you suggest me how do i work on this data? is it a good practice to maintain 6 different tables (one each for the 6 types of forms).

 

I have never worked on smartforms so, please guide me.

How to suppress blank page in sapscript

$
0
0

Hi All,

I am working on cheque printing, after I run the transaction F110, it will print the sap script which I have developed, everything is working fine and good. But its printing an extra blank page in addition with cheque. I have tested thinking it might be main window extention, but its not, even i have tested by keeping page number variable in main window, its not at all getting extented to the next page. I am wondering from where this blank is getting created, anybody can help me in this?

 

Thanks in advance

Kasturi


Print texts "Original" in first copy and "Copy" in subsequent copies

$
0
0

Hi,

I need to print text "Original" in first copy and print  "copy" in other copies when Number of copies is set. I am using tcode VL03 (Delivery).

For eg: If No. of copies is set to 3(nast-anzal). But  print preview is showing Delivery document only once. I tried to put condition in sapscript as to get the text :

if &nast-vstat& = 0

  print original

else.

print duplicate

endif.

The above condition prints always original text only.

Now I have to check the output by viewing print out. The output is is coming wrong.

 

So there are 2 issues:

1. Print preview is not appearing based upon number of copies.

2. The text original or duplicate is not coming

 

Thanks for your replies

 

Edited by: harryibm on Jul 6, 2010 7:58 PM

UPE – Unicode Printing Enabling

$
0
0

Unicode Printing until now

Over the last few years, I have focused on Printing and Output Management as a topic within SAP Consulting. The starting point for that was the question as to how to print after a Unicode conversion has taken place; after conversion the documents will have different languages and code pages.

Until now, the answer involved four different alternatives:

A) Printing with Unicode Device Types (like HPUTF8)

In this case, SAP creates the print data without any font embedding. That means, the printer is responsible for including all the fonts required on its system (e.g. by adding them via DIMM chips).

B) SWINCF (Windows-based solution)

The second solution is to use SAPWIN as a technology. With SWINCF, the Windows system (either on the front-end or on the server) is responsible for adding the necessary subsets of fonts to the data stream.

C) External Conversion (e.g. by Output Management Systems)

Independently of the interface you are using (print data like PCL, pre-formatted data like SAPGOFU or raw data with RDI/UCPLAIN) this is an elegant way to print Unicode documents on every printer.
There are several good conversion routines that are used by the standard output management systems like SAP Document Presentment by OpenText (StreamServe), LRS VPSX or others.

D) Printing with SAP Interactive Forms by Adobe

The ADS is able to render documents and do font subsetting out-of-the-box.

 

Each alternative has its own justification, but there was no direct solution by using the pure SAP standard. Each alternative has its own limitations (the most important ones in my eyes for our customer are: A: printer-dependency, B: relying on Windows for formatting and monitoring, C: not free of charge, D: need to convert to SAP IFbA means a lot of effort for existing SAPscript forms / Smart Forms).

 

Unicode Printing Enhancement (UPE)

Overview

In 2012, SAP started a development based on a co-operation with the German SAP User Group (DSAG). This Customer Engagement Initiative focused on solving this issue by developing a pure SAP solution.

 

The requirements for this development were:

  • Generic solution to print Unicode documents in the most common languages on PCL- and Postscript-based printers for ABAP Lists, SAPscript and SAP Smart Forms.
  • High level of compatibility and minimized influence on performance
  • Inclusion of internal PDF conversion
  • Embedding of only the characters that are needed in the print data stream (font sub-setting)
  • SAP will license fonts and deliver a holistic solution.

 

How to use UPE?

That was quite a bit of theory – but now let’s have a look how you can start with UPE. Assuming you fulfill the technical requirements (see Note 1812076), there is a new button available in the device configuration in transaction SPAD.

05.07.png

Yes – you enable UPE at printer level to ensure a non-disruptive change in your landscape. As soon as you activate UPE, you have to select a Unicode Reference Device Type (URDT) – for details check the chapter below.

If you do not print Chinese, Korean, Japanese or Taiwan, it doesn’t matter which URDT you choose.

 

05.07_2.png

After these two simple steps, your printer is now UPE-enabled as soon as you have saved the printer. You can check the available languages now with the button “Supported Languages”.

 

05.07_23.png

If your printer is using UPE, the following will happen: As soon as there is a character in the document that does not exist in the code page of the printer device type, the SAP spool will – by means of the URDT - extract precisely that part of the TrueType font and include it in the print data.

The big advantage in this case is the full functionality (using all of the languages) out-of-the-box by only adding the needed characters instead of a full font.

And if you convert your documents to PDF in SAP, the same methodology is used as described above.

No additional configuration is needed, as all of the fonts are included in SAP with the NW stacks mentioned in Note 1812076.

 

Unicode Reference Device Type (URDT)

For most of the languages the URDT has no effect. But if you want to print in Chinese, Korean, Japanese or Taiwanese, you have to take the following into consideration.

The URDT is not a real device type. Instead, it is more or less the flavor your output should look like. A simple rule (the CJK topic could cover a whole blog entry itself) is to choose the URDT for “your” country, e.g. the Chinese one for printers in China. All the non-CJK-Countries will be the same for all the different URDTs.

The real reason behind that differentiation is that Chinese, Taiwanese, Korean and Japanese share some code points in Unicode but use slightly different glyphs. In reality, a native Japanese would be able to read a text with a Chinese flavor, but he or she would recognize that a different character has been used.

To visualize the issue, there is a list available in Wikipedia that shows some example of differences. (http://en.wikipedia.org/wiki/Han_Unification#Examples_of_language_dependent_characters)

 

What is delivered?

With the support packages mentioned below, there is the needed integration in SPAD delivered as well as the fonts themselves and the addition to the internal PDF converter.

In addition to this standard scope, there is also a report delivered ‘RSPOUPE_URDT_TOOL’ that enables you to modify URDTs, e.g. to add an individual font or to customize the fonts used e.g. for list printing.

 

Availability

Starting with NW 7.40 SP03 and including downports up to NW 7.02 SAP will deliver this solution in the following Support Package Levels:

  • NW7.02 – SP14
  • NW7.30 – SP10
  • NW7.31 – SP09

Note: Kernel 721 is a requirement!

Details in Note 1812076.

 

Languages covered

To be very honest, not every language that is supported by Unicode (such as Mongolian) is supported by UPE. But here is a list of languages that are supported by this new solution:

  • Latin 1 (e.g. English, French, German, Spanish…)
  • Latin 2 (e.g. Czech, Polish,…)
  • Cyrillic (e.g. Russian, Ukranian)
  • Arabic
  • Hebrew
  • Simplified Chinese
  • Traditional Chinese
  • Japanese
  • Korean
  • Thai
  • Vietnamese
  • Baltic (Estonian, Latvian, Lithunian)
  • Greek

pdf preview option to save disappeared

$
0
0

Hi Experts

 

Hope you can help to resolve this one.

 

When using ME9F to display and output message, the option in the "GO TO" menu for "Pdf preview" gives a popup menu with the option to "open", "save" or "cancel". There is also a check box that is by default set. When you remove the setting, the popup disappear, but so does the option to save the output in pdf format. How can I get the popup display back?

 

Thanks

Christo.

Creating a smartform from scratch

$
0
0

Hello experts,

 

I need to prepare a complex print format. The driver program will send a table to the smart form with which the form will be initialised and would be available for printing.

 

Can anyone guide me for this ?

 

Regards,

Shubhendu

Installation of SAPsprint on Windows 2008 x64bit SP2

$
0
0

OK, installed the latest xSPrint730_5-20009690 file to our Windows 2008 SP2 x64 server to replace our old Win 2003 SP2 x32 server.  Seemed to install OK, but our HOST system does not see it.  I get the following error message "Unable to reach the remote host spool system".  I've tried installing Windows built-in LPD service and it seems to work fine, so should I even bother?  Are there any known issues?  SAPsprint worked fine on my Win2k3 server, what gives?

Smartforms & Zebra breaks longer value into two lines

$
0
0

Hello,

 

I am designing label for zebra printer using smartforms.

Label size is 15cm x 3cm... it has to be printed using ^FWR (rotated by 90 degrees).

I have problem with one value (name of material) which can be up to 40 characters long, but for some unknown reason this 40character-long text is split into 2 lines and second line is displayed in non printable area.

 

I cannot force it to print whole 40 charater-long string in one field. (i tried to resize target window horizontally and vertically up to page edges, i also tried to change font size, page format... none of these made any change to final ZPL code that is sent to printer)

 

I set up __FILE printer so see whole data which is sent to printer, and this is what bothers me:

 

^FT106,581^AS,41,0^CI17^F8^FDAR-0001^FS

^FT236,73^AS,100,0^CI17^F8^FD1000007192^FS

^FT188,73^AS,41,0^CI17^F8^FDVýrobok PXX611-311/2 xxx xxx ^FS

^FT773,73^AS,41,0^CI17^F8^FDxxx xxx xx1^FS

^FT106,274^AS,41,0^CI17^F8^FDAR^FS

^FT70,274^AS,29,0^CI17^F8^FDAR-SD^FS

 

Those two red lines should be one textfield... practically one line.

It does not mater if printed text uses special characters or spaces... also fontsize does not matter and windowsize does not matter either.

 

That line should not contain any line break. this is field definition:

nazovmat.png

Size of window NAZOV_MAT_V is currently 10.5 x 10.5 CM ... so that is enough for whole text rotated by 90 degrees.

 

Do you have any idea how to fix this? There should be some way how to tell smartform not to split that

 

Regards,

Martin

Error message while trying to set session break point

$
0
0

hi friends,

 

when i tried to set a session break point in smartform in abap editor i am unable to set breakpoint and i got a message.

Message no. ED297

No framework program was found for include /1BCDWB/LSF00000002F01

 

can any one give to the solution how can i proceed to set break-point.

 

 

regards,

venkat suman.


No print-relevant changes to document & exist

$
0
0

Hi,

 

When trying to print the PO, the status of message type is 'No print-relevant changes to document & exist'. But the requirement is to take printout of the PO even if there are no print relevant changes. How can it be achieved?

 

Tried to check the driver program and noticed that the return code is set to 1 and message number is set to 140 incase if no print relevant changes are found. I have changed the value of return code from 1 to 0. This case, the spool request is created and ended with status Error. Couls some one help me in taking print out for these POs as well?

 

Best Regards,

Kumar.

Different length for Uline (SAPscript)

$
0
0

Hi experts,

 

maybe only a small problem:

 

I have a SAPscript form. Here I have a line ( ULINE(84) ).

 

Printing on a HP printer (HPLJ4), everything's fine. Printing as a PDF (PDF1), my line get broken (line break), so I have the last ~4 "ULINES" in a second line.

 

Sure, I can do somethin like

 

IF printer = PDF

ULINE(80)

ELSE

ULINE(84)

ENDIF.

 

But that's not very nice!

 

Any ideas how to prevent the line break?

 

Thanks

Michael

smartform - two main windows

$
0
0

Hi Guys,

 

I wanted to create two windows that acts like two main windows.

 

The upper part contains the original copy then the lower part should contain duplicate copy of the upper part.

 

Heres a sample output:

 

Original Copy:

 

material1      text

material2      text

 

Duplicate Copy:

material1      text

material2      text

 

 

How will I do it? Please help...

define default printer for my company

$
0
0

hello all

 

i want to define default printer

 

example : when i make sales order and save it , print automatic on my printer

 

and the same for purchase order , returns , transfers .......etc

 

can you help me and let me know from where i can do that

 

thanks

To Postscript or to not Postscript

$
0
0

So currently I am in the middle of the implementation phase for ERP 6.0.  Currently we have three locations up and running, all locations have Canon printers and its been over six months without any output device specific issues.

 

This last Monday (July 15, 2013), I have the entire project team involved with a unit test coming after me...and I believe if it hadn't been in Mexico, they would of found pitch forks and torches.  They reported that using any method F or G printer (leveraging SAPWIN and POST2 for device types); every document that was attempt to print using direct IP printing (no print server) the printer had garbled text on the first sheet and just spewed out blank pages.

 

So the first step we took was to setup a print server and have all the printers added to that and ensured we had the same driver as the other locations to ensure we didn't have a Windows driver issue.  Functional members that were left out of the unit test helped with generating new prints and sent them to the print server to the printers and re-produced the same issue.

What I found interesting is that a Delivery note that I found in the spool had generated 1 page, on the Windows print server it shows 1 page, watching the Canon printer the print out exploded into 15 pages.  Oddly enough the Windows print server is set to use a PCL5 driver for the Canon.

 

At this point I am baffled on what is wrong with the print outs.

 

I then start some back tracking with people involved with the deployment of the Canons.  I now learn that when they went live with the printers they had issues printing from the AS/400 system that ran their business all due to PCL5 not being enabled/configured on the printer, and it would cost $11 per printer....Well if that was a HUGE mistake on someone's part for not ensuring that was setup during the installation.

 

So now I track down the tech who led the US Canon deployment who informs me that PostScript (which POST2 uses) has to also be enabled.  So now with 5 days left prior to a go live, we have printers that won't print using POST2.

 

I also assumed those within my company will be slightly agitated if they are informed the go live is delayed due to the only printed documents that can be printed are on Zebra printers.

 

Now as a backup plan to support the go live I quickly whip up a method F printer in the unit testing system, find a PCL 5 device type and track down a functional person that can generate a new print for me to test on a Canon in HQ to verify that the document not only prints, but resembles what we are accustomed to viewing...and success!

 

Hopefully this can save time for future viewers who may run into something similar as this took me over 3.5 days to narrow down where & what the problem was, and always remember if the end user says they tested a print out; make them send the output to you (scan & email, fax, etc) and ensure they are following the business process vs thinking on their own and negating to report in a problem with printing.

Viewing all 1353 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>