How to disable Purchase Order Print Preview function in the Portal
We wish to expose some purchase order functions in our SAP Portal 7.0. The problem is that when we run any of the purchase order transactions as SAPGUI for HTML, the Print Preview function displays the full purchase order. This means that any user who wishes to short cut processes can display and then print a purchase order before it has been approved if they use the Portal to display the purchase order.
If the purchase order transaction is run from the normal SAPGUI, the Print Preview function only displays the top of the purchase order and the print function is disabled. Has anyone tackled this problem before and worked out a way of stopping users from using the Print Preview function to display purchase orders in the Portal and then print them?
Regards,
Tom Maggs
hi,
DATA: w_compop TYPE ssfcompop.
w_compop-tdimmed = ' '. "Print Immediately control parameter should be empty..
Then only print preview pop-up will come..
then call your smartform like this..
CALL FUNCTION fnam
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
TABLES
it_vbdkr = it_tvbdkr[]
it_vbdpr = tvbdpr[]
it_zglentitycode = it_zglentitycode[].
regards
vijay
Similar Messages
-
How to disable Print Preview function in the Portal
Hi,
I'm running the transaction ME23N through SAP Portal.
The option print view is working. How do I disable this?
Regards,
Sérgio SalomãI am not familiar with the printout method. You can preview in your web browswer if you create an HTML report and save this to file. You can then view the html in your browser to preview and later use the browser to print. Goto the following page and search for activex internet explorer to find examples on incorperating the browser into your VI.
http://search.ni.com/?col=alldocs&layout=TechResources&ql=a -
Purchase order - print preview problem
Hi friends,
i have created a Purchase Order, when im trying to view the print preview, im getting the message ' <b>Specify address number or Address handle'</b> .
Please specify where i have to give these details in PO.
Regards
kumar.Depends on what address information you are displaying on the Smartform if you are displaying the Plant address then you have to go to T001W and pick up the ADRNR from the Same table and display it in the Smartform Address Window same thing for the Vendor address you have to pick up the ADRNR in the LFA1 for that particular Vendor.. Remember to check if the ADRNR is not initial before you display a address window..
Hope That Helps
Anirban M. -
Purchase order Print preview Problem in ME23N
Hi all,
We are trying to see print preview of purchase order in ME23N, but, when we press print preview button another window named "SAPLPD" is poping up. The pop-up window looks like command propmt window and contains lines like
"(11:25:54 AM) Icon DLL loaded.
(11:25:54 AM)
(11:25:54 AM) Network Communication via SAP-NiLib
(11:25:54 AM) Hostname: L04WSChe0300
(11:25:54 AM) IP Address: 10.87.7.11
(11:25:54 AM)
(11:25:54 AM) SAPLPD Version 6.28 for Windows/NT (OPT) is listening
(11:25:54 AM) OS-Info: version = 5.1, build = 0/2600, text = Service Pack 2
(11:25:54 AM) Copyright © 1992-2001 SAP AG
(11:25:54 AM)
(11:26:04 AM)
(11:26:04 AM) Receive job for printer __DEFAULT (Berkeley LPD protocol / RFC1179)
(11:26:04 AM) send_status called
(11:26:05 AM) send_status called
(11:26:05 AM) send_status called
(11:26:07 AM) send_status called
(11:26:07 AM) send_status called
(11:26:07 AM) Job 000jgjJp.DEV for user DEV2 queued.
(11:26:07 AM) Start printing job 000jgjJp.DEV on printer MICROSOFT OFFICE DOCUMENT IMAGE WRITER
(11:26:13 AM) Error: Unable to start print job, Windows rc = -2, Error = Overlapped I/O operation is in progress.
(11:26:13 AM) Error: BG: saplpd_open_dc failed, msg = 808 SAPLPD:Windows Problem, siehe SAPLPD Protokoll
How can I fix this problem and see print preview of purchase order in ME23N.
Please help me!
Thanks,
Rajanhi,
DATA: w_compop TYPE ssfcompop.
w_compop-tdimmed = ' '. "Print Immediately control parameter should be empty..
Then only print preview pop-up will come..
then call your smartform like this..
CALL FUNCTION fnam
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
TABLES
it_vbdkr = it_tvbdkr[]
it_vbdpr = tvbdpr[]
it_zglentitycode = it_zglentitycode[].
regards
vijay -
Purchase order print preview - Short Dump - in ME23N
Dear Experts,
I am doing PO layout in PDF format . When i see print preview in me23n transaction its displaying as PDF format.
when i close the output selection popup screen its giving short dump, saying that ' A RAISE statement in the
program "CL_HANDLE_MANAGER_MM==========CP" raised the exception condition "FAILURE". Pls let me know if
anybody come across this issue.
Thanks & Regards
Ramesh Manoharan.Hi,
Dump is a result of common work area 'cleanup' procedure inside BAPI_PO_GETDETAIL1 (module cleans memory area which transaction ME2xN expects to be filled).
Luckily you are able to turn off this code section by adding some MM tool method call just before calling FM BAPI...
you need only one code line - worked perfectly in my case:
cl_mmpur_bapi_po=>put_repid( im_repid = sy-repid ).
CALL FUNCTION 'BAPI_PO_GETDETAIL1'
EXPORTING..............
Regards,
Rafał Szczerba -
Is it possible to create new tcode just for print preview only? As of now user must have authorization to tcode ME9F to preview and print. But now they are insisting of having authorization for print preview only.
Hi, Tcode ME2N is only listing of PO. What user wants is exactly the same as PO print preview?
-
Purchase Order Print Report Compilation Error
Hi,
While compiling the report in Reports Builder Purchase Order Print Report , we get the following error:
identifier GET_PRECISION must be declared.
Where as this is a seeded function inbuild in the Program Units.
Also while compiling on server we get the error.
Cannot convert rdf to rep.
Thanks,
Angelica.Couldn't find how to copy the PO layout over using copy express.
I did compare the RDOC fields for POR20002 in both databases and they are Identical.
In Crystal Reports, I did a formula search for N_Decimal_Places and it found nothing. Then I did a search for 'length' in all formulas and it finds length in N_Decimal_Places. When I double click on N_Decimal_Places it clears the screen and never shows the formula. This happens in both layouts for my test database and SBODemoUS.
Again, SBODemoUS works correctly and AAA_TEST give the error. -
Add Print Preview function in FB03
Hi Gurus,
I have a requirement to add the print preview function to view payment voucher in FB03.
The scenario is such that whenever user enter the document number in FB03 or access vendor line item (FBL1N) and double click on the line item, system will direct them to FB03 screen. Therefore whenever user does that, they will be able to see the print preview function to view payment voucher and thus print it as and when required.
Currently they have only the spool to view and print and spool could not keep the items for a long time. Therefore this requirement exists.
Thus are there any ways that I could attach a print preview function to the standard SAP FB03? or how do I provide them the view function as and when they need it in the system. The users do not want to have a customise program to have them enter the document number, company code in order to view. They want the function to exist concurrent to the document number anytime whenever they want it.
Need advice.
rgds
eddie limHi
Many thanks for your assistance.
First of all when user run F110, there will be a payment voucher generated together and this will be stored in the spool but spool can only store the information for a certain period of time. This payment voucher has the document number attached to it. Hence the users requirement is that they would want to view the payment voucher as and when required either from vendor line item (FBL1N) or FB03. Currently, there are no such button in FBL1N or FB03 which allow to view payment voucher.
Therefore how can I attach the payment voucher to those accounting document for the users whenever they run vendor line item or FB03 on an ad hoc basis?
They do not want a customise program to key in the document number and view the payment voucher from there. It is double work for them and as such to attach a print preview function to either FBL1N or FB03.
rgds
eddie lim -
ME9F Purchase Order Printing.
If authrorization of T-code ME9F is given to any SAP user ID then in t-code ME23N if we click on Print Preview system shows the Purchase order print preview, Printing options are available in this print preview.
How I can restrict that user id to take printout of the purchase order. I want to give only print preview of the Purchase order.Hi Shekar ,
Use the time spot as 3 in condition records ( MN04 ) so that printing can only happen using ME9F.
Then in ME23N only preview can be seen but cannot be printed.
Regards
Ramesh Ch -
How to know which Smart-Form is being used for Purchase Order print output
Hi Gurus ,
How to find which Smart-Form and and methods/program being used for Purchase Order print output in SRM ?
In ECC we have tcode NACE where we can check all the details.Is there something similar in SRM ?
Please help.
Regards,
SauravThere is no similar transaction in SRM for your purpose. Usually if the customers customize the smartforms, they would choose to use their own form by implementing BADI BBP_OUTPUT_CHANGE_SF. Take a look into your system and see if this BADI is implemented. If so, debug it (by pressing "Print Preview" for a PO for example) and find out what form it is using. Or, if the BADI is not implemented, by default, the system uses form BBP_PO.
-
Purchase order print program error
hi experts!
am facing a problem in my purchase order print program. the problem is that when i am trying to see the print preview the following dump error is throughing, which am not able to understand.
the P.O total amount should be change into words( like one million then thousand thirty three kuwait dinars)
but the total amount is not converting into as mentioned, instead the dump is encountered.
please give me solution,
thnaks
*DUMP*
Runtime Errors CONVT_NO_NUMBER
Exception CX_SY_CONVERSION_NO_NUMBER
Date and Time 05.05.2008 19:04:43
Short text
Unable to interpret "1760,778.71 " as a number.
What happened?
Error in the ABAP Application Program
The current ABAP program "ZMM_SUBROUTINES" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
caught in
procedure "GET_AMT_IN_WORDS" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The program attempted to interpret the value "1760,778.71 " as a number, but
since the value contravenes the rules for correct number formats,
this was not possible.
How to correct the error
Whole numbers are represented in ABAP as a sequence of numbers, possibly
with an algebraic sign.
The following are the possibilities for the representation of floating
point numbers:
[algebraic sign][mantissa]E[algebraic sign][exponent]
[algebraic sign][whole number part].[fraction part]
For example, -12E+34, +12E-34, 12E34, 12.34
If the error occurred in your own ABAP program or in an SAP
program you modified, try to remove the error.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"CONVT_NO_NUMBER" "CX_SY_CONVERSION_NO_NUMBER"
"ZMM_SUBROUTINES" or "ZMM_SUBROUTINES"
"GET_AMT_IN_WORDS"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
The exception must either be prevented, caught within proedure
"GET_AMT_IN_WORDS" "(FORM)", or its possible occurrence must be declared in the
RAISING clause of the procedure.
To prevent the exception, note the following:
System environment
SAP-Release 700
Application server... "EHPAP1"
Network address...... "10.100.150.103"
Operating system..... "AIX"
Release.............. "5.3"
Hardware type........ "00C3B3F04C00"
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 1
Shortdump setting.... "full"
Database server... "EHPDB"
Database type..... "DB6"
Database name..... "EHP"
Database user ID.. "SAPEHP"
Char.set.... "C"
SAP kernel....... 700
created (date)... "Mar 19 2007 20:40:49"
create on........ "AIX 2 5 005DD9CD4C00"
Database version. "DB6_81 "
Patch level. 102
Patch text.. " "
Database............. "DB6 08.02., DB6 09."
SAP database version. 700
Operating system..... "AIX 1 5, AIX 2 5, AIX 3 5"
Memory consumption
Roll.... 16192
EM...... 29328936
Heap.... 0
Page.... 1359872
MM Used. 19180992
MM Free. 1764848
User and Transaction
Client.............. 400
User................ "FADISULAIMAN"
Language key........ "E"
Transaction......... "ME22N "
Program............. "ZMM_SUBROUTINES"
Screen.............. "SAPLMEGUI 0014"
Screen line......... 22
Information on where terminated
Termination occurred in the ABAP program "ZMM_SUBROUTINES" - in
"GET_AMT_IN_WORDS".
The main program was "RM_MEPO_GUI ".
In the source code you have the termination point in line 398
of the (Include) program "ZMM_SUBROUTINES".
The termination is caused because exception "CX_SY_CONVERSION_NO_NUMBER"
occurred in
procedure "GET_AMT_IN_WORDS" "(FORM)", but it was neither handled locally nor
declared
in the RAISING clause of its signature.
The procedure is in program "ZMM_SUBROUTINES "; its source code begins in line
358 of the (Include program "ZMM_SUBROUTINES ".
Source Code Extract
Line SourceCde
368 DATA: lt_spell LIKE spell.
369
370 READ TABLE in_tab WITH KEY 'CURR'.
371 IF sy-subrc = 0.
372 lf_curr = in_tab-value.
373 ENDIF.
374
375 READ TABLE in_tab WITH KEY 'NETWR'.
376 IF sy-subrc = 0.
377 lf_netpr_01 = in_tab-value.
378 REPLACE ',' IN lf_netpr_01 WITH ' '.
379 CONDENSE lf_netpr_01 NO-GAPS.
380
381 IF lf_curr = 'KWD'.
382 lf_netpr_kwd = lf_netpr_01.
383
384 CALL FUNCTION 'SPELL_AMOUNT'
385 EXPORTING
386 amount = lf_netpr_kwd
387 currency = lf_curr
388 filler = ''
389 language = sy-langu
390 IMPORTING
391 in_words = lt_spell
392 EXCEPTIONS
393 not_found = 1
394 too_large = 2
395 OTHERS = 3.
396
397 ELSE.
>>>>> lf_netpr = lf_netpr_01.
399 CALL FUNCTION 'SPELL_AMOUNT'
400 EXPORTING
401 amount = lf_netpr
402 currency = lf_curr
403 filler = ''
404 language = sy-langu
405 IMPORTING
406 in_words = lt_spell
407 EXCEPTIONS
408 not_found = 1
409 too_large = 2
410 OTHERS = 3.
411 ENDIF.
412 IF sy-subrc <> 0.
413 * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
414 * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
415
416 ELSE.
417
Contents of system fields
Name Val.
SY-SUBRC 0
SY-INDEX 17
SY-TABIX 1
SY-DBCNT 18
SY-FDPOS 1
SY-LSIND 0
SY-PAGNO 0
SY-LINNO 1
SY-COLNO 1
SY-PFKEY NORMAL
SY-UCOMM PREVOUTPUT
SY-TITLE Held Imp. Pur. O r - ESG 5000000021 Created by Fadi Sulaiman
SY-MSGTY A
SY-MSGID TD
SY-MSGNO 426
SY-MSGV1 NEXTPAGE
SY-MSGV2 ZMEDRUCK_PO
SY-MSGV3
SY-MSGV4
SY-MODNO 0
SY-DATUM 20080505
SY-UZEIT 190441
SY-XPROG SAPCNVE
SY-XFORM CONVERSION_EXITHi Prasad,
Check the FM's
SPELL_AMOUNT --> for display in millions
HR_IN_CHG_INR_WRDS --> for display in lakhs and crores -
Excise duty condition type and Purchase Order Print Issue
Dear Friends,
We have a issue related to Purchase order print out.
We are maintaining TAXINN.
We have implemented CIN and we are maintaining Excise Conditions i.e. Basic Excise in JMOP
In FV11 we are maintaining values for JMOP with plant and material Group combination.
In Purchase Order Tax calculation is happening correctly.
But issue is to find the value of taxes for Purchase Order Print.
We are using function module CALCULATE_TAX_FROM_NET_AMOUNT
and passing values of Company Code, Country, Currency, and Base amount to get the entries in condition types.
But we are not getting any entry even after passing the values.
How we can get these values in JMOP.
Regards
KantWhy do you want to calculate the taxes during the PO Print when you are getting correct values in PO itself?
Modify your print program with pulling values directly from EKPO/ EKKO Tables and display it to Spool.
check with ur ABAP Person -
Purchase Order Printing problem
Hi All,
I am printing a zform of medruck for purchase order.its working fine and the output is as shown below
Order 4500045698
item Qty Price Date
10 1,000 $5.50 03/28/2008
But when i c the print preview for other purchase order its output is different as shown
order 4500045699
Item Qty Price Date
10 1.000 $5,50 28.03.2008
Instead of comma in qty its howing dot and vice versa in price also the date format is changed.its only for a particular PO
could anybody tell me why it is happening/
Regards
Lalithi,
please check your user setting.
in menubar got
system -
> user profile -
> owndata-->default (tab)decimal notification
From menubar go to system then from their user profile then owndata and from their use the default tab , in the default tab u find the decimal notation change the decimal notification.
Regards.
Praveen. -
Purchase order print ID for condition lines
How to add / remove condition types ie. freight rates, handling charges in purchase order print out ?.
i want the values of these condition types to be /not to be in the purchase order print out.
even when i m maintaining these values in P.0 conditions.hi
in pricing procedure m/08 u can the condition types as print relevant.
maintain it and check in print preview
If this Hint had helped please reward points
gibi -
How to send purchase order via e-mail.
Please could someone let me know how to send purchase order via e-mail.
I am an BC.
e-mailing is functionning however I am not very familiar in settings for MMNo, you do not need to touch ME_PRINT_PO. You need to put code before and after ME_PRINT_PO in the print program.
Step 1 - Copy the standard print program SAPFM06P to make a Z version, lets call it ZSAPFM06P
Step 2 - Copy include FM06PE02 to make a Z version, lets call that ZFM06PE02.
Step 3 - ZSAPFM06P change the statement "Include FM06PE02" to read "Include ZFM06PE02".
Step 4 - In include ZFM06PE02 you will find a subroutine called "ENTRY_NEU". In this subroutine you will see it first calls ME_READ_PO_FOR_PRINTING then calls ME_PRINT_PO. Before it calls ME_PRINT_PO just put:
l_nast-nacha = 1.
CLEAR l_nast-dimme.
This means that ME_PRINT_PO will not e-mail, it will create a spool request.
Step 5 - Still in ZFM06PE02, after ME_PRINT_PO has been called, add new code. First check that ent_retco EQ 0. If it does not then exit.
Step 6 - Get the spool ID created by ME_PRINT_PO by either moving sy-msgv1 to a variable or select from NAST.
Step 7 - Call function CONVERT_OTFSPOOLJOB_2_PDF using the spool ID from step 6, and put the result from table PDF into an internal table you can use later. ALso store the export variable pdf_bytecount, you will need it later.
Step 8 - Call function SX_TABLE_LINE_WIDTH_CHANGE using the table from step 7 as content_in and put the results from content_out into a new internal table.
Step 9 - Add some text into a internal table of type solisti1, this will be the body text of the e-mail.
Step 10 - Add whatever receivers you want into an internal table of type somlreci1. If you just want it to go to the address that the PO would have gone to anyway, select the e-mail address from ADR6 where the address number = l_doc-xekko-adrnr, that is the data from the PO.
Step 11 - Populate an internal table of type sopcklsti1 with data relevant to your PDF table from step 8 and the text table from step 9. You will have to put the size of the PDF from step 7 (pdf_bytecount) on the PDF line and the size of the text will be the number of lines of text * 255.
Step 12 - Add info to a structure of type sodocchgi1. You can add the e-mail title in here, field obj_descr. Also add the size of the PDF and the size of the text from step 12 into doc_size, and give the doc a name in field obj_name. This can be anything, ZPDFPO for example.
Step 13 - Call SO_DOCUMENT_SEND_API1 using the tables from steps 8, 9, 10 and 11 and the structure from step 12. You can amend the sending e-mail also. Set commit_work to space.
Step 14 - That is all you need, but I actually call function RSPO_R_RDELETE_SPOOLREQ to delete the spool request created in step 4, then call NAST_PROTOCOL_UPDATE to add some more messages to the processing log of the PO.
That is all.
Maybe you are looking for
-
CUCM 8.6 Call Forwarding to External Number Issue
Hello, Call forwarding worked without problems, we could forward our phones to external numbers and everything was ok, when somebody called to my phone, I could got the call to my cell phone. But now when I forward my phone to external number and tr
-
How do I get firefox to open a new window when i click on a link in a webpage ?
When I click on a link in a webpage in Firefox, generally it opens the new page in the window i am in (though some times it does not). How do I get it to open a new window (or tab) each time I click a link. For example, on www.bbc.co.uk if I click on
-
HTTP Adapter error description not showing in alert
I have created a alert thru alertcatdef & created a rule in administartion, when we have a issue with http adapter, I get the alert as follows Subject: HTTP Adapter Error Importance: High Alert ID: ##06488## HTTP Adapter Error - Possible Tracs Interf
-
PortableRemoteObject.narrow Problem
Hello, I have a jsp that is talking to a servlet that is suppose to connect to a stateless session bean in 9.0.3. The bean deploys fine. I continue to get the following error when the servlet tries to talk to the bean. The servlet works fine on JRun
-
Why is quality of photo poor when viewing in the organizer?
When i am viewing photos in the photoshop elementss 10 organizer the quality is poor when I am viewing one photo at the largest size yet it says it is high quality and in focus. Is this normal? Thank you.