Print behaviour different from 'Print Preview' in PM Order
Hi gurus,
We have a requirement to check a user status at the Operation level before a print can be triggered from a PM Order in IW32. After changing the code to satisfy the requirement at the print program level, we are able to prevent the print if the user status is not set, when the user clicks the Print Preview button. However, if the user clicks the Print button, the header system status is being set to PRT, though the print program prevents the print from being output. After debugging, we found that the behaviour of the standard SAP ABAP code is different for Print compared to Print Preview.
Looking at the userexits "IWO1*", we weren't able to identify a suitable one that allows one to make this check before a print is triggered.
Have anyone come across this / a similar problem ? Is there a solution ? Any ideas ??
Cheers,
Ashok.
Hi Narasimhan,
Yes, your guess is correct. We have tried out the possibility of controlling the print from the user status configuration side of things, but as the user status is at an Operation level, the system status at the header level still gets set, confusing the user that a print was created.
Any other ideas / alternates ?
Cheers,
Ashok.
Similar Messages
-
Not able to see Print Preview of Purchase Order.
Dear All ,
I m not able to see the Print preview of Purchase Order , as the P.O is well release , but as i m click on Print Preview , an info displays in task bar , -> " Error in OPEN_FORM for document 4501472103
Message no. ME142
Procedure
Report the error to your system administrator.
I request you to pl help how to fix this problem.
Rgds,
sap11thanx for your support , here i need to know one thing that i had gone to MN06 to display the cond. record , here for the output type i m using in P.O
Given below different key comb. are maintained for same p.o , but as p.o was created then in message tab the first combination of fax was displayed and for this combi when clicking on print preview the message came for " Error in open _form " .
1) P doc type / P. org./ Vendor = Medium = 2 ( fax) / Date / time = 1 , is maintained
2) P Doc. Type / P.org / Pgrp = Medium = 1 / date/ time = 1 is maintained.
3) P Doc. Type / P.org = Medium = 1 / date/ time = 1 is maintained
4)P org. = Medium = 1 / date/ time = 3 is maintained
Here my querry is that as medium = 1 ( print output ) is also maintain then why Other comb, were not triggered , why only Comb. for medium -=2 ( fax ) was trigered , and after that as i changed the medium to 1 , i m able to see print preview , why ?
why i m not able to see p prwe for medium 2 ?
Thanx n rgds,
sap11 -
How to find print preview for purchase order like what we find in va03
hi guru's
how to find print preview for purchase order like what we find in va03
let me share ur information
thank uHi
You can see the Print Preview/printout etc using the Transaction ME9F for Purchase Order
Execute the ME9F tcode and execute you will get lot of PO's select any Po and press display message
you will see the print preview
Similarly for RFQ output use the Tcode ME9A
for Contrat use ME9K
for GR output use MB90
Reward points for useful Answers
Regards
Anji -
Runtime error in print preview of Purchase Order
Hi,
I am facing a problem regarding the Print Preview of Purchase Order. This is happening after applying the patch no SAP_APPL Level 15.
The error is "<b>Z_ME_PO_FOR_PRINTING IS NOT FOUND IN THE FUNCTION GROUP ZMEDRUCK"</b> which is the copy of MEDRUCK.
How to solve the problem please guide.
Please Reply Soon
Thank you
Sankhajeet.
Message was edited by:
Sankhajeet BhowmickHi
You have customized your layout and print programs.
Suggest you to sit with your ABAP programmer and they are the best ones to go through this problem.
Your print program is looking for a function module which is missing
Best regards
Ramki -
Automatically prompt to save PDF when Print Preview for Purchase Order?
We recently upgraded to EP7.
I have an end user that does our PO's.
She swears up and down that she used to be able to go into any given PO, be it new or existing, and click on the print preview button. She says when she did this she was prompted to save or open the file.
She is set to PDF Preview when doing a print preview of the PO.
When we first upgraded the system, it was broken. When she tried to do this it would give you a Page Cannot Be Displayed error as in unable to find the page. We learned that there was an issue with name resolution within the system. We fixed this and now she can view the files as PDF when doing a print preview.
But she still claims it did not used to work like this that when she went to preview she would be prompted to save or view which worked great for her because she could click save, save it to her computer, and then email it to whomever she needed to send it to.
Seems clear to me that that when you do PDF Preview that an SAP browser session is created and sent to an web site (internal to SAP of course) to view the PDF. How can I tell SAP to give me the option to view or save?
For now the user is repeating the output when she needs to reprint another copy of the PO.
I should also say that we use Free PDF Creator. After setting her default printer to this, she says that now when she creates a new PO, it is working like before. So its possible that the prompt was the one from PDF Creator.
The user says she swears she could simply print preview would allow her to save local. I never saw it for myself prior to the upgrade.
Anyone seen this before or can offer any clues? Is there away to issue output at print preview?How did you fix 'page cannot be displayed' error?
It looks like issue was at browser/pdfreader side. -
Print Preview of purchase order
Hi All,
when i am trying to see the print preview for a purchase order, system showing a message like
"No messages found (Please check your input)"
please suggest me in this regard ASAP.
Thanks,
SrinuGo to MN04 trxn & create the Output messages for the Key combination you want..
also Please maintain the Communication data & Printer details in MN04 trxn...
and then open your PO in ME22N trxn & Save..
So that the output will trigger automatically for already created Po's..
for New PO's the Output will trigger automatically, once you maintain the settings in MN04 trxn.. -
Pricing conditions are not picked in print preview of purchase order.
Dear experts
Purchase order was created for imports vendor.
there is difference of amount in purchase order and purchase order print preview.
In purchase order print preview the system is not picking the values of custom value and custom clearing charges.
Import pricing procedure is assigned to vendor.
what else more be checked since the print preview is not picking the conditions , custom value and custom clearing charges.
Any solutions.
Thanks & Regards.
Erfan.Hi,
Purchase order was created for imports vendor & must have separate documement type for Import Purchase order or new PO output type for import.
Check FORM or PDF/SmartForm Form used for your Import PO out put type for application EF in NACE t.code. Check SmartForm in t.code: SMARTFORMS and see condition types of custom value and custom clearing charges is there or not. Just consultant with ABAP consultant about condition types of custom value and custom clearing charges inclusion in SmartForm.
Regards,
Biju K -
Net Price in Print Preview of Purchase Order
Hi all,
I have a typical issue over here,,,
1. Created two similar materials A, B with material type HALB, data in all the fields were same except material description.
2. maintained all excise details in J1ID
3. Created a PO for these two materials and saved.
4. Display PO, ME23N - print preview,,, noticed that the details like below:
SrNo.-- Material -- Desc - Qty- Unit Rate --- Total Value
1. -
A -
xxx -
05 -
100 -
500.00
2. -
B -
yyy -
01 -
0.00----
0.00
Total Net amount ======= 600.00 (500 + 100)
if u can observe for slno 2 , material B, its not picking up the unit rate and total value,,, what may be the problem,,
for info: all the data including excise details were maintained similar to these two materials,,,
please help me out,,, its urgent,,
regards,
urendraHi,
Check in pricing procedure for PB00 and PBXX both are having print control as X and subtotal as 9. i think for the second material you may have entered the price PO.
Regards,
Ramakrishna -
Page that is uploaded to the server looks different from the preview in Dreamweaver browser
Hi, I have a couple of questions. Does anyone happen to know why my homepage looks different in Dreamweaver when I preview in browser then it does when I upload the page onto the server? http://www.iewaterkeeper.org/ I see a join our mailing list button is intact when I preview in browser but is no where to be found when I view the uploaded page from the server. Other weird things have been going on with Dreamweaver today like I wasn't able to absolute position a div tag in it's intended place and all the typography on my homepage looks very blurry in Dreamweaver but looks clearer when it's uploaded to the server. Does anyone know what's going on? Any help would be greatly appreciated. .... Could it be a virus?
That's so weird because I'm looking at the code in Dreamweaver and line 181 has a closing </body>. Here's the code straight from Dreamweaver:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inland Empire Waterkeeper</title>
<link href="_css/styles.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body,td,th {
color: #999999;
font-family: Verdana, Geneva, sans-serif;
body {
background-color: #FFFFFF;
color: #D6D6D6;
background-image: url(_images/background_1255hompage.png);
background-repeat: repeat-x;
margin: auto;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
</style>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="container">
<div class="header"><img src="_images/banner1.jpg" alt="Inland Empire Waterkeeper" width="933" height="300" /></div>
<div class="menubar">
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="index.html" class="MenuBarItemSubmenu">Home</a>
<ul>
<li><a href="mission.html" class="MenuBarItemSubmenu">About Us</a>
<ul>
<li><a href="mission.html">Our Mission</a></li>
<li><a href="history.html">Our History</a></li>
<li><a href="community.html">Our Community</a></li>
</ul>
</li>
<li><a href="staff.html" class="MenuBarItemSubmenu">Our Team</a>
<ul>
<li><a href="staff.html">Staff</a></li>
<li><a href="supporters.html">Supporters</a></li>
<li><a href="advisoryboard.html">Advisory Board</a></li>
</ul>
</li>
<li><a href="coastkeeper.html">Coastkeeper</a></li>
</ul>
</li>
<li><a href="projects.html" class="MenuBarItemSubmenu">What We Do</a>
<ul>
<li><a href="advocacy.html" class="MenuBarItemSubmenu">Programs</a>
<ul>
<li><a href="advocacy.html">Advocacy</a></li>
<li><a href="education.html">Education</a></li>
<li><a href="research.html">Research</a></li>
<li><a href="restoration.html">Restoration</a></li>
<li><a href="enforcement.html">Enforcement</a></li>
</ul>
</li>
<li><a href="projects.html">Projects</a></li>
<li><a href="datareports.html">Data & Reports</a></li>
</ul>
</li>
<li><a href="volunteer.html" class="MenuBarItemSubmenu">Get Involved</a>
<ul>
<li><a href="volunteer.html">Volunteer</a></li>
<li><a href="employment.html">Employment</a></li>
<li><a href="events.html">Events & Meetings</a></li>
<li><a href="donate.html">Donate</a></li>
</ul>
</li>
<li><a href="pressreleases.html" class="MenuBarItemSubmenu">News Room</a>
<ul>
<li><a href="pressrelease.html">In the News and Press Releases</a></li>
<li><a href="legislation.html">Legislative Updates</a></li>
<li><a href="waternews.html">Water in the News</a></li>
</ul>
</li>
<li><a href="reportpollution.html" class="MenuBarItemSubmenu">Resources</a>
<ul>
<li><a href="watershed.html" class="MenuBarItemSubmenu">Information</a>
<ul>
<li><a href="watershed.html">Our Watershed</a></li>
<li><a href="reportpollution.html">Report Pollution</a></li>
</ul>
</li>
<li><a href="photos.html">Photo Gallery</a></li>
</ul>
</li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<div class="missionstatement"><img src="_images/mssionstatement.gif" alt="Inland Empire Waterkeeper" width="933" height="110" /></div>
<div class="space1"><img src="_images/bar_left.png" alt="Inland Empire Waterkeeper" width="20" height="315" /></div>
<div class="facebook">
<div class="facebooktop">
<img src="_images/facebooktop.gif" width="106" height="125" alt="Inland Empire Waterkeeper" /></div>
<div class="facebookmailinglist">
<div class="fb-like" data-href="http://www.iewaterkeeper.org/" data-send="true" data-width="106" data-show-faces="false"></div>
<!-- BEGIN: Constant Contact Standard Email List Button -->
<div align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="https://imgssl.constantcontact.com/ui/images/visitor/bevel_tl_gray.gif" width="6" height="6" alt=""></td>
<td background="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bg_top_gray.gif"> </td>
<td><img src="https://imgssl.constantcontact.com/ui/images/visitor/bevel_tr_gray.gif" width="6" height="6" alt=""></td>
</tr>
<tr>
<td background="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bg_left_gray.gif"></td>
<td bgcolor="#cccccc"><a href="http://visitor.r20.constantcontact.com/d.jsp?llr=wejp69bab&p=oi&m=1101488694422" target="_blank" style="text-decoration:none; font-weight: bold; font-family:Arial; font-size:10px; color:#336666;">Join Our Email List</a></td>
<td background="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bg_right_gray.gif"></td>
</tr>
<tr>
<td><img src="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bl_gray.gif" width="6" height="6" alt=""></td>
<td background="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bg_bottom_gray.gif"> </td>
<td><img src="https://imgssl.constantcontact.com/ui/images/visitor/bevel_br_gray.gif" width="6" height="6" alt=""></td>
</tr>
</table>
</div>
<!-- END: Constant Contact Standard Email List Button -->
</div>
<div class="space2"><img src="_images/bar_right.png" width="21" height="315" alt="Inland Empire Waterkeeper" /></div>
<div class="video"><iframe width="560" height="315" src="http://www.youtube.com/embed/3OU8D8kBjWg" frameborder="0" allowfullscreen></iframe></div>
<div class="space3"></div>
<div class="photospace1"></div>
<div class="photo1"><a href="_images/kayaking_6lg.png"><img src="_images/kayaking_6.jpg" alt="Inland Empire Waterkeeper" width="176" height="95" /></a></div>
<div class="photospace2"></div>
<div class="photo2"><a href="_images/riverkat_57lg.png"><img src="_images/riverkat_57.jpg" width="176" height="95" alt="Inland Empire Waterkeeper" /></a></div>
<div class="photospace3"></div>
<div class="photo3"><a href="_images/riverkat_172lg.png"><img src="_images/riverkat_172.jpg" width="176" height="95" alt="Inland Empire Waterkeeper" /></a></div>
<div class="photospace4"></div>
<div class="space4"></div>
<div class="pillars"><img src="_images/pillars_grey.jpg" alt="Inland Empire Waterkeeper Pillars" width="933" height="400" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="77,54,297,198" href="advocacy.html" alt="Inland Empire Waterkeeper Advocacy" />
<area shape="rect" coords="361,51,584,195" href="education.html" alt="Inland Empire Waterkeeper Education" />
<area shape="rect" coords="636,54,858,196" href="research.html" alt="Inland Empire Waterkeeper Research" />
<area shape="rect" coords="212,220,430,352" href="restoration.html" alt="Inland Empire Waterkeeper Restoration" />
<area shape="rect" coords="502,222,726,364" href="enforcement.html" alt="Inland Empire Waterkeeper Enforcement" />
</map>
</div>
<div class="footer"><img src="_images/footer2.png" width="933" height="100" alt="Inland Empire Waterkeeper" /></div>
</div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
</html> -
Why is the playback different from the preview?
It's display on the same monitor, but clearly the playback looks so much different than the export preview
I also tried taking a snapshot and it doesn't look like the one displayed on the project monitor.You know, I find most commercial DVD's to be about +3dB higher, than for my other input settings. I always have to turn the volume down...
When editing my Audio, I always do so with headphones, and carefully monitor the output Audio. I do this by ear, and only glance at the Levels Meters. In general, my Master is probably most often set to -3dB, and for Menus, and for my surround channels, I am usually ~ -6dB, but this all depends on the Levels of my source material. It is not uncommon to have a Track at -18dB, especially if it's used in a Menu, or is in my surround channels.
I'd almost always rather turn UP the home theater's volume, than have to run to turn it down, as the house is blown off its foundation.
What I absolutely hate is the commercial DVD, where the Center channel is way down, but the SFX in the LFE channel is up by about +12dB. I almost blew out my walls on Fight Club, with the airplane crash scene. Just totally painful. SFX pieces do not need to be THAT loud. Just a pet peeve of mine.
I also find that too many burned DVD's (by others) have the Menu Audio much, much too high, as do some commercial DVD's. That Audio should be nothing more than "background" music.
Good luck,
Hunt -
Menu Mnemonic behaviour different from Windows Applications!!!
Hi, In My Swing application I have few menu's on Menubar. For Example File(Mnemonic 'f'),Edit(Mnemonic 'e') and View(Mnemonic 'v'). If I pressed Alt+f then File menu opens, but now if I press 'e' ( which is not associated with any of menuitems of "File" menu) then the Edit menu opens. If you try similar thing in any windows application, there Edit menu will only open when you press Alt along with 'e' and nothing happens if you just press 'e' when File menu is open.
In JBuilder( which is also written in Swing), although the menu mnemonics works just like Windows. Can somebody tell me how to achieve this Windows like behaviour in Swing application, so that on pressing 'e' without Alt, nothing happens and only on pressing Alt+'e' the Edit menu opens?
Thanks,
SandeepBetty raised this on the Lightroom-news comments section where I replied:
"The mistake was that I used the Apple screen key combo Command+Shift+4 to capture the menu. This is what caused the menu changed from saying 'remove Photos from catalog to Remove and trash photos. Obvious when you think about it! If you reread that section again, it should make more sense."
I revised the text in this section so that it now reads:
"if you hit the delete key you will be faced with a slightly changed dialog that offers (as before) the option to simply remove the current photo(s) from the catalog, or the option to delete completely from the disk. Note here that selecting Delete from Disk will remove the photos from the catalog and then send them to the system trash/recycle bin. So although the warning message says that this process cannot be undone, it is not in fact a complete deletion. The photos you delete can still be accessed via the trash/recycle bin. It will only be when you choose to empty the trash/recycle bin that the images will truly be deleted forever.
If you are aware of this difference and wish to avoid having to go through the above dialog each time you hit delete to remove photos from the catalog, you can instead now use the Photo > Remove Photos from Catalog command, or the Option + Delete (Mac), Alt + Delete (PC) shortcut. This allows you to remove photos from the catalog without showing the Delete photos dialog. Or use the Command+Option+Shift + Delete (Mac), Control+Alt+Shift + Delete (PC) shortcut to remove photos from the catalog and send them directly to the trash. Again, bypassing the Delete dialog."
Martin -
IE7.0 and Firefox2.0 differs from DW previews
I am new to DW8.0.2
The preview of my website via DW (IE7 and Firefox2.0) looks
good, and matches my website as seen on browsers on OTHER computers
(checked WinXP and Win200Pro installed computers) but the DW
preview does NOT match the browser as seen on MY own computer
(WinXP) -- the computer where I created and my website.
Why is that? It's frustrating because I can see the website
as DW preview it, but can never see the same website via the
browsers on my own computers. I need to go to others computers to
see my website.
What am I doing wrong on my computer?raindrummer,
Please do not rely on Dreamweaver preview. Only preview on
web browsers, as it should be the case.
Can we take a look at your web page where you are showing a
problem appearing in IE7 and Firefox browsers. Uhm, it is hard to
take a wild guess about what exactly you did with your html code to
reflect the outcome on those browsers.
A link would be greatly appreciated.
Cheers, DWD (Brian)
quote:
Originally posted by:
raindrummer
I am new to DW8.0.2
The preview of my website via DW (IE7 and Firefox2.0) looks
good, and matches my website as seen on browsers on OTHER computers
(checked WinXP and Win200Pro installed computers) but the DW
preview does NOT match the browser as seen on MY own computer
(WinXP) -- the computer where I created and my website.
Why is that? It's frustrating because I can see the website
as DW preview it, but can never see the same website via the
browsers on my own computers. I need to go to others computers to
see my website.
What am I doing wrong on my computer? -
Error Message in Print preview of PO.
Hi guys.
i am trying print preview of purchase order from ME23N.
but i am getting errror message "system message 038 from SSFCOMPOSER does not exist" .
can u tell what is this error is?
how to solve this problem?
Thanks..Hi,
I think there is an error in the Smartform assigned to this transaction or the address window is not filled in the smartform of that particular PO, it throws an error.
If there is a problem in smartform check it and do check the condition for address window, bcoz u try to print empty address window it will throw an error and check even the transaction NACE wether correct Smartform is assigned or not.
Regards,
Aravind -
Error IN ABAP PROGRAM AT PRINT PREVIEW
Dear All experts.
i got an error at gone to print preview of sales order delivery ALV reports. it gives an error follwing.
GETWA_NOT_ASSIGNED.
FIELD SYMBOL HAS BEEN NOT ASSIGNED.
BHAVESH PANCHALDear Expert.
thnks for reply.
Just check my code. Also check my output.
thnks
*& Report Z_SALES_EXP_BHAVESH
REPORT Z_SALES_EXP_BHAVESH.
TYPE-POOLS:slis.
TABLES
TABLES: vbep,
vbap,
vbpa,
vbkd,
vbak,
likp,
lips,
vbup,
vbbe,
konv,
kna1.
DATA :BEGIN OF itab OCCURS 0,
vbeln LIKE vbak-vbeln,
posnr LIKE vbap-posnr,
edatu LIKE vbep-edatu,
knumv LIKE vbak-knumv,
wmeng LIKE vbep-wmeng,
bmeng LIKE vbep-bmeng,
lfimg LIKE lips-lfimg,
omeng LIKE vbbe-omeng,
posar LIKE vbap-posar,
netwr LIKE vbap-netwr,
ntgew LIKE vbap-ntgew,
kbetr LIKE konv-kbetr,
kwert LIKE konv-kwert, " CONDITION VALUE.
kunnr LIKE vbak-kunnr,
name1 LIKE kna1-name1,
*BRGEW LIKE VBAP-BRGEW,
bstkd LIKE vbkd-bstkd,
bstdk LIKE vbkd-bstdk,
lfsta LIKE vbup-lfsta,
*KNUMV LIKE VBAK-KNUMV,
*posnr LIKE LIPS-POSNR,
*NETWR LIKE VBAK-NETWR,
brgew LIKE vbap-brgew,
LFMNG like vbap-LFMNG,
lfdat LIKE likp-lfdat,
*NTGEW LIKE LIKP-NTGEW,
delivery LIKE lips-vbeln,
*LFIMG LIKE LIPS-LFIMG,
KWMENG like VBAP-KWMENG,
op_qty like VBAP-KWMENG,
weight LIKE vbap-ntgew,
pending_val LIKE vbap-netwr,
END OF itab.
*variable for Report ID
DATA: v_repid LIKE sy-repid .
*declaration for fieldcatalog
DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv.
DATA: it_listheader TYPE slis_t_listheader.
declartion for layout
DATA: alv_layout TYPE slis_layout_alv.
*Title displayed when the alv list is displayed
*DATA: i_title_main TYPE lvc_title VALUE 'FIRST LIST DISPLAYED'.
DATA: i_title_main TYPE lvc_title VALUE 'Reports : Bhavesh Panchal'.
DATA : it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE,
it_vbrk TYPE vbrk OCCURS 0 WITH HEADER LINE,
it_vbrp TYPE vbrp OCCURS 0 WITH HEADER LINE,
it_vbep TYPE vbep OCCURS 0 WITH HEADER LINE,
it_vbpa TYPE vbpa OCCURS 0 WITH HEADER LINE,
it_lips TYPE lips OCCURS 0 WITH HEADER LINE ,
it_likp TYPE likp OCCURS 0 WITH HEADER LINE,
it_konv TYPE konv OCCURS 0 WITH HEADER LINE,
it_kna1 TYPE kna1 OCCURS 0 WITH HEADER LINE,
it_adrc TYPE adrc OCCURS 0 WITH HEADER LINE,
it_makt TYPE makt OCCURS 0 WITH HEADER LINE,
it_mara TYPE mara OCCURS 0 WITH HEADER LINE,
it_vbkd TYPE vbkd OCCURS 0 WITH HEADER LINE,
it_vbbe TYPE vbbe OCCURS 0 WITH HEADER LINE,
it_vbup TYPE vbup OCCURS 0 WITH HEADER LINE,
it_itob TYPE itob OCCURS 0 WITH HEADER LINE.
INITIALIZATION.
v_repid = sy-repid.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : so_vbeln FOR vbak-vbeln ,
so_kunnr FOR vbpa-kunnr,
so_edatu FOR itab-edatu.
SELECTION-SCREEN: END OF BLOCK b1.
START-OF-SELECTION.
get the details required to be displayed in the report
PERFORM fetch_data.
*& End-of-Selection
END-OF-SELECTION.
IF itab[] IS NOT INITIAL.
initialize the fieldcatlog to be used for alv grid display
PERFORM field_catalog.
display actual data in the alv grid
PERFORM display.
ELSE.
initialize the fieldcatlog to be used for alv grid display
PERFORM field_catalog.
display actual data in the alv grid
PERFORM display.
ENDIF.
*& Form build_fieldcatlog
text
FORM field_catalog.
*- Show quoted text -
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'VBELN'.
wa_fieldcat-seltext_m = 'SalesOrderNo'.
wa_fieldcat-outputlen = '12'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field for Customer Name.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'NAME1'.
wa_fieldcat-seltext_m = 'Customer Name'.
wa_fieldcat-outputlen = '30'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For Po Number.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'BSTKD'.
wa_fieldcat-seltext_m = 'PO No'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For Order Value
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'NETWR'.
wa_fieldcat-seltext_m = 'Order Value '.
wa_fieldcat-outputlen = '12'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For Po Date.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'BSTDK'.
wa_fieldcat-seltext_m = 'PO Date'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'EDATU'.
wa_fieldcat-seltext_m = 'Delivery Date'.
wa_fieldcat-outputlen = '12'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For Order Qty.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'KWMENG'.
wa_fieldcat-seltext_m = 'Ord.QTY'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
field For Delivery Qty.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'op_qty'.
wa_fieldcat-seltext_m = 'DEL QTY.'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For Open Qty from ITAB.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'OMENG'.
wa_fieldcat-seltext_m = 'OPEN QTY.'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For Pending Weight from ITAB.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'BRGEW'.
wa_fieldcat-seltext_m = 'Pending Weight'.
wa_fieldcat-outputlen = '12'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For netweight.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'NTGEW'.
wa_fieldcat-seltext_m = 'Net Weight'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For Actual Delivery.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'LFDAT'.
wa_fieldcat-seltext_m = 'Actual Delivery'.
wa_fieldcat-outputlen = '12'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'KBETR'.
wa_fieldcat-seltext_m = 'RATE'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-tabname = 'VBUP'.
wa_fieldcat-fieldname = 'LFSTA'.
wa_fieldcat-seltext_m = 'Delivery Status'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For pending weight.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'PENDING_VAL'.
wa_fieldcat-seltext_m = 'Pending VALUE'.
wa_fieldcat-outputlen = '20'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. "BUILD_FIELDCATLOG
*& Form fetch_data
text
FORM fetch_data.
break mtabap.
SELECT *
FROM vbep
INTO TABLE it_vbep
WHERE edatu IN so_edatu
AND vbeln IN so_vbeln.
IF NOT it_vbep[] IS INITIAL.
SELECT *
FROM vbak
INTO TABLE it_vbak
FOR ALL ENTRIES IN it_vbep
WHERE vbeln = it_vbep-vbeln
AND kunnr IN so_kunnr.
ENDIF.
IF NOT it_vbak[] IS INITIAL.
SELECT *
FROM vbpa
INTO TABLE it_vbpa
FOR ALL ENTRIES IN it_vbak
WHERE vbeln = it_vbak-vbeln
AND posnr = space.
SELECT *
FROM vbap
INTO TABLE it_vbap
FOR ALL ENTRIES IN it_vbak
WHERE vbeln = it_vbak-vbeln.
Select all Customer Data
SELECT * FROM kna1 INTO TABLE it_kna1
FOR ALL ENTRIES IN it_vbak
WHERE kunnr = it_vbak-kunnr .
SELECT *
FROM vbkd
INTO TABLE it_vbkd
FOR ALL ENTRIES IN it_vbap
WHERE vbeln = it_vbap-vbeln.
and posnr = IT_VBAP-POSNR.
SELECT *
FROM vbbe
INTO TABLE it_vbbe
FOR ALL ENTRIES IN it_vbap
WHERE vbeln = it_vbap-vbeln
AND posnr = it_vbap-posnr.
SELECT *
FROM vbup
INTO TABLE it_vbup
FOR ALL ENTRIES IN it_vbap
WHERE vbeln = it_vbap-vbeln
AND posnr = it_vbap-posnr.
SELECT *
FROM konv
INTO TABLE it_konv
FOR ALL ENTRIES IN it_vbak
WHERE knumv = it_vbak-knumv
AND kinak = space .
SELECT *
FROM vbrp
INTO TABLE it_vbrp
FOR ALL ENTRIES IN it_vbak
WHERE aubel = it_vbak-vbeln.
IF NOT it_vbrp[] IS INITIAL.
SELECT * FROM likp
INTO TABLE it_likp
FOR ALL ENTRIES IN it_vbrp
WHERE vbeln = it_vbrp-vgbel.
SELECT * FROM lips
INTO TABLE it_lips
FOR ALL ENTRIES IN it_vbrp
WHERE vbeln = it_vbrp-vgbel
AND posnr = it_vbrp-vgpos.
itab-lfimg = it_lips-lfimg.
ENDIF. ENDIF.
LOOP AT it_vbap.
itab-posnr = it_vbap-posnr.
itab-posar = it_vbap-posar.
itab-brgew = it_vbap-brgew.
itab-ntgew = it_vbap-ntgew.
itab-KWMENG = it_vbap-kwmeng.
itab-LFMNG = it_vbap-LFMNG.
itab-LFIMG = it_lips-LFIMG.
itab-op_qty = it_vbap-kwmeng - it_lips-LFIMG.
READ TABLE it_vbak WITH KEY vbeln = it_vbap-vbeln.
itab-vbeln = it_vbak-vbeln.
itab-netwr = it_vbak-netwr.
itab-kunnr = it_vbak-kunnr.
READ TABLE it_vbep WITH KEY vbeln = it_vbap-vbeln.
itab-edatu = it_vbep-edatu.
READ TABLE it_kna1 WITH KEY kunnr = it_vbak-kunnr.
itab-name1 = it_kna1-name1.
READ TABLE it_vbkd WITH KEY vbeln = it_vbap-vbeln .
itab-bstdk = it_vbkd-bstdk.
itab-bstkd = it_vbkd-bstkd.
READ TABLE it_vbrp WITH KEY aubel = it_vbap-vbeln aupos = it_vbap-posnr.
READ TABLE it_lips WITH KEY vbeln = it_vbrp-aubel posnr = it_vbrp-aupos.
itab-delivery = it_lips-vbeln.
itab-del_qty = it_lips-lfimg.
itab-del_qty = LIPS-LFIMG.
READ TABLE it_likp WITH KEY vbeln = it_vbrp-aubel .
itab-lfdat = it_likp-lfdat.
itab-ntgew = it_likp-ntgew.
break mtabap.
READ TABLE it_vbup WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
itab-lfsta = it_vbup-lfsta.
READ TABLE it_vbep WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
itab-wmeng = it_vbap-kwmeng .
itab-bmeng = it_vbep-bmeng.
READ TABLE it_vbbe WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
itab-omeng = it_vbbe-omeng .
READ TABLE it_konv WITH KEY knumv = it_vbak-knumv
kposn = it_vbap-posnr
kschl = 'PR00'.
ITAB-KBETR = IT_KONV-KBETR / 10. " CONDITION RATE
itab-kbetr = it_konv-kbetr.
itab-kwert = it_konv-kwert . "CONDITION VALUE
itab-pending_val = ITAB-OMENG * ITAB-KWERT .
itab-pending_val = itab-omeng * itab-kbetr .
APPEND itab.
ENDLOOP.
ENDFORM. "data_retrieval
*& Form build_listheader
text
-->IT_LISTHEADER text
Show quoted text -
FORM build_listheader USING it_listheader TYPE slis_t_listheader.
DATA HLINE TYPE SLIS_LISTHEADER.
DATA: ls_line TYPE slis_listheader.
bhavesh
HLINE-INFO = 'report Developed by Bhavesh'.
HLINE-TYP = 'H'.
Header
Bhavesh
CLEAR ls_line.
ls_line-typ = 'H'.
LS_LINE-KEY: not used for this type
ls_line-info = 'Sales ORDER Report'.
APPEND ls_line TO it_listheader.
bhavesh
***Selection
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = 'Key 1'.
ls_line-info = 'SFEL'.
APPEND ls_line TO it_listheader.
ls_line-key = 'Key 2'.
ls_line-info = 'SFEL'.
APPEND ls_line TO it_listheader.
***Action
CLEAR ls_line.
ls_line-typ = 'A'.
LS_LINE-KEY: not used for this type
ls_line-info = 'Status list'.
APPEND ls_line TO it_listheader.
ENDFORM. "BUILD_LISTHEADER
*ENDFORM. "build_listheader
*& Form display
*& text
FORM display.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_top_of_page = 'TOP_OF_PAGE'
is_layout = alv_layout
it_fieldcat = i_fieldcat
it_events = gt_events[]
i_callback_user_command = 'USER_COMMAND'
i_grid_title = 'BHAVESH REPORT'
TABLES
t_outtab = itab[].
CLEAR : itab .
ENDFORM. "display
*& Form top_of_page
text
FORM top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_listheader[].
i_logo = 'ENJOYSAP_LOGO'.
I_END_OF_LIST_GRID =
ENDFORM. "TOP_OF_PAGE -
I am unable to see print preview for my sales orders in VA03.
Hi All,
I am unable to see print preview for my sales orders in VA03.
When ever i am selecting an order and from
menu-> sales document-> issue output to
it is raising information message on my status bar no output
has been selected for printing.
How can i view may print preview for sales order other
than from va02/vao3.
Can we view preview of a sales order if there is no output type is mapped to
form. if yes can please give me the steps.
Thanking in advance.
Best Regards,
TRS GUPTAHi,
Go to NACE transaction , from there choose the V1 application,now click on Output types. now see the Output types for print related.
Now use them for your preview.
you need to provide Output type to view the preview
May be you are missing some configuration(in your case Order type may be Z* so it requires Some Config ).
Regards
vijay
Maybe you are looking for
-
Dequeue stop working after environment switch
Hi folks! We are running AIA2.0.1 on top of the SOA Suit 10g 10.1.3.5.0. We do have a queue in Siebel Database 11gR2 RAC, and we dequeue messages from that queue via JMS adapter and pass it to the BPEL engine. That works fine until we do the followin
-
Dear All, I want to use routing oerations in program. I am using plpo table, but I have one problem, eg. in ca03 tcode for material 37 it is displaying 4 operaions like 20, 30, 40, 50. But in table plpo there is 10 operation also I want to avoid thi
-
Safari 3.0 Quitting on Frame based websites
We just upgraded to the new Leopard and we seem to be have major problems in Safari. We maintain a website that uses frames and ASP and every time we try to navigate pages in Safari 3.0 the application just quits. The previous Safari had no problems.
-
Buenas tardes, Tengo un problema, cuando los usuarios entran en cualquier módulo , SAP tarda bastante en refrescar la pantalla, y cuando uno pasa de Excel a SAP, a veces muestra mitad SAP mitad el otro programa, tambien sucede cuando estamos cargando
-
Where is Tool Palette in Photoshop CS2?
I just installed photoshop cs2. But I cant see any tool palette when I open photoshop for the first time. It has only menus on the top and the working screen is completely blank as if nothing is opened. Even if I open any new image, it is not showing