Print Purchase Order Document
Hi,
is there a function, that lets you print a purchase order from the system, if not , what would the best way of doing this be?
I did try
Function 'ME_DISPLAY_PURCHASE_DOCUMENT'
which works , I belive , if the document has been printed before, but not if it has not, am I correct?
Once printed I need the spool no.
Thanks
Create a Z Function module using the code below.
One import parameter for PO num say I_PO.
You can have few exceptions.
Declare NAST Table in the global data of the function group.
Replace 'XXXX' with proper values.
clear nast.
Raise exception if there is no delivery no.
IF I_PO IS INITIAL.
RAISE Exception.
ENDIF.
Fill in the NAST header line for this label.
CLEAR NAST.
NAST-OBJKY = I_PO.
NAST-LDEST = 'XXXX'.
NAST-SPRAS = 'EN'.
NAST-TDSPRAS = 'EN'.
NAST-DIMME = 'X'. " Print Immediate' flag
NAST-DELET = 'X'. " Release after print'
NAST-ANZAL = 1. " Specify one copy
NAST-NACHA = 1. " output to printer
NAST-VSZTP = 4.
NAST-KAPPL = 'XXXX'.
NAST-KSCHL = 'XXXX'.
NAST-EDIKEY = 0.
NAST-MANUE = 'X'.
NAST-VSTAT = '0'. " set status = not yet processed
NAST-ERUHR = SY-UZEIT.
NAST-ERDAT = SY-DATUM.
NAST-USNAM = SY-UNAME.
Insert entry into NAST
INSERT NAST.
COMMIT WORK AND WAIT.
Call sap STANDARD routines to process the message request
LW_SUBRC = 999.
PERFORM EINZELNACHRICHT(RSNAST00)
USING LW_SUBRC.
IF LW_SUBRC <> 0.
RAISE Exception.
ENDIF.
Thanks,
Rajesh.
Similar Messages
-
Printing purchase order 'in release' !
Hello,
we need to add a second printing document for purchase order. I think it's possible with a new message. But i've read that message works only if the purchase order is not 'in realease'.
Is it possible to print purchase order document when the purchase is 'in release' ?
Thank'shi,
AS per my knowledge it shd be possible after full release only...because then only it make sense of the printing and sending to the vendor...
If it would be possible before or within release only, and if the changes are made in between while the release by any officer, then it'll not get reflected....
Regards
Priyanka.P -
Standard Purchase Order document printing
Hi All,
I need to modify the standard purchase order document and need to print a custom note in that based on the organization criteria.
i have downloaded the .xsl file and as i am not very familiar with that i cant understand the code.
1)could you please let me know, where to open that xsl file either in jdeveloper or some thing like notepad, textpad etc..
2)If possible please share the tags to print the custom message based on organization criteria
3) where to find the xml tags related to that to modify the xsl
Please help!!
Thanks!!We need to investigate this XSL tags and need to do R&D. I finally did it.
-
Customizing 'Print Purchase Order' Report
Hi All,
We need to customize the 'Print Purchase Orders' report, for communicating the PO to supplier. But the Fax commnds, and the output format we have to change accordingly. Also we need to move the generated output file to another directory.
Please let me know the recommended customizing procedure for the above.
Thans,
Gowri.Hi,
If you want to modify Print PO Report (POXPOPDF), refer to the following document.
Note: 305307.1 - How To Modify Print PO Report POXPOPDF With Custom Template
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=305307.1
Regards,
Hussein -
Pasta 3.0 - Printing Purchase Order Forms using Pasta
Has everyone successfully gotten the Pasta utility using the PrintForm functionality to work for printing Purchase Orders in a 11.5.8 environment. We have applied the latest Pasta patches for 3.0.4 and has created a postscript file from a msword document, transferred to a True64 unix machine and converted it to the PrintForm (.pf) file. We have followed all of the setup steps for the print drivers and has run the concurrent job. It appears to have merge the text base report into a postscript file but it will not print out on the printer. When we view the output via the application you can see the data from the report but you do not see the logo image from the printform file. We are under a time constraint so any feedback would be appreciated.
BettyeHas everyone successfully gotten the Pasta utility using the PrintForm functionality to work for printing Purchase Orders in a 11.5.8 environment. We have applied the latest Pasta patches for 3.0.4 and has created a postscript file from a msword document, transferred to a True64 unix machine and converted it to the PrintForm (.pf) file. We have followed all of the setup steps for the print drivers and has run the concurrent job. It appears to have merge the text base report into a postscript file but it will not print out on the printer. When we view the output via the application you can see the data from the report but you do not see the logo image from the printform file. We are under a time constraint so any feedback would be appreciated.
Bettye -
How to split Frieght Amount in Purchase Order Document.
Dear Expert,
I want to print Frieght cost one by one in purchase order document.
For Example : list Frieght set up below
1. Packing & forward.--500 (Frieght cod is 5)
2. Transport -
300 (Frieght code 1)
Please help me how to Design in PLD (end report).
Thanks
Arunraj.Hi
Use POR2 Table in your PLD. Use this in repetative area field and hide the fields visible. use formula to display in other non-repetative field.
Regards,
Sudhir B. -
I need output type NEU automaticaly for create purchase order document type
Dear Experts,
I need output type NEU automaticaly for create purchase order document type NB
when transaction code MN04, I am doing the following:
(1) I selected the third option Purchasing Output determination: Document type
(2) I selected the output type NEU.
(3) In condition records in document type , i have chosen NB.
(4) In name its automatically coming as Purchase requisition
Please suggest how Purchase Order NB will comeHi,
Check & press F4, NB Purchase Order (for catagory F) will be there after entering PO output type NEU & then maintaion the condition record in MN04.
Output type NEU automaticaly defaulted during purchase order creation with document type ,then just fine tune the output (message) type in following path:
SPRO--->MM->Purchasing>Message>Output control->Message types> Define message type for Purchase Order----->Fine-Tuned Control: Purchase Order
Now here select the check box corresponding to your output(message) type NEU to have print output automatically displayed & save.
Now try to creating Purchase Order & you will have default message type NEU.
Regards,
Biju K -
Purchase order document row is not change (document stutas is OPEN)
Hi all,
I am created one purchase order that are not any base or targeted document ,not any approval procedure and purchase order document status is steel open . Then how I a cannot change the document row.
thanks
arabinda palHi Deepa,
I think if you want to restrict the further editing of a particular row, then you just need to follow the simple procedure.
1. create the purchase order with your desired items & vendor & add this document
2. Now reopen it & goto that row which you want to restrict. Right click on that row & select "Close Row".
3. Select yes to confirmation message.
4.Now update the document.
Now you an check it out, in that document you will not be able to edit that row contents.
I hope this solves your issue.
Regards.
ShriX. -
Customize printed purchase order report
Hi all
i need to customize Printed purchase order report
i need to add supplier item number to printed purchase order report
where(group) i need to add item number i think it g_lines right?
item number is sengment from tml_system_items_b is it correct
ple reply it is urgent
ashokAshok,
Try to get a sample and understand the concern from your users. See if that is already customized to not show the supplier item number (as far as I remember I don't think there are any conditions in the standard report that qulify the printing of the supplier item number, it should print as long as it is entered in the supplier item number field in the PO lines). So see where your users are entering this in PO lines.
Yes it is vendor_product_num in PO lines table.
Thanks
Nagamohan -
Printed Purchase Order Report R12
Hi,
I'm looking for Oracle Printed Purchase Order Report rdf file POXPRPOL
Could you let me know the path to get this rdf.
Thanks.got it.
-
Printed Purchase Order Report Custom version FAX enabling
Hi All,
We customized Printed Purchase Order Report(Landscape) 'POXPRPOL' and is runnig fine. Our client want FAX enabled to the output of custom report.
Is there any option like print option for this. Or do we need to write and code for this.
Please help.
ThanksHi;
Please see below which could be helpful for your issue:
http://blogs.oracle.com/xmlpublisher/entry/faxing_from_ebs
http://www.strsoftware.com/blog/oracle-ebs-r12-1-3-submit-request-delivery-options-button-fax-4-of-6/
Also see <a href=https://forums.oracle.com/forums/search.jspa?threadID=&q=fax&objID=c3&dateRange=all&userID=&numResults=15
this search</a>Regard
Helios -
Hi all
i need to customize Printed purchase order report(Lanadsacp)
i need to add supplier item number to printed purchase order report
where(group) i need to add item number i think it is g_lines right?
item number is sengment1 from tml_system_items_b is it correct?
ple reply it is urgent
ashokAshok,
Try to get a sample and understand the concern from your users. See if that is already customized to not show the supplier item number (as far as I remember I don't think there are any conditions in the standard report that qulify the printing of the supplier item number, it should print as long as it is entered in the supplier item number field in the PO lines). So see where your users are entering this in PO lines.
Yes it is vendor_product_num in PO lines table.
Thanks
Nagamohan -
Printed Purchase Order Report gives no output
hello,
The standard report "Printed Purchase Order Report(Landscape)" gives a a zero size output file for a certain po . Although i have checked the tables PO_HEADERS_ALL and PO_LINES_ALL and that purchase order has all the data entered in the tables above.
what can the problem possibbly be and how can i fix it?
please help...hello,
as an update i found that the specified purchase orders has 9 lines entered and in PO_LINES_ALL only 5 are there !!! -
Mass display or print Purchase Order History
Instead of checking your Purchase Order History one at a time, you can now mass display or print them with this customized abap report.
Mass display or print Purchase Order History
You can request report by :
1. Change date
2. User Name
3. Purchase Order Number
4. Vendor Code
Written by : SAP Basis, ABAP Programming and Other IMG Stuff
http://www.sap-img.com
REPORT ZPOCHANGE LINE-SIZE 132 NO STANDARD PAGE HEADING
LINE-COUNT 065(001)
MESSAGE-ID VR.
TABLES: DD04T,
CDHDR,
CDPOS,
DD03L,
DD41V,
T685T,
VBPA,
TPART,
KONVC,
EKKO.
SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE,
XNAME FOR CDHDR-USERNAME,
XEBELN FOR EKKO-EBELN,
XLIFNR FOR EKKO-LIFNR.
SELECTION-SCREEN SKIP.
TEXT-001 - Sorting Sequence
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
SNAME RADIOBUTTON GROUP R1,
SOBID RADIOBUTTON GROUP R1.
SELECTION-SCREEN END OF BLOCK BLK1.
DATA: WFLAG,
WCHANGENR LIKE CDHDR-CHANGENR.
DATA: INDTEXT(60) TYPE C.
DATA: BEGIN OF ICDHDR OCCURS 50.
INCLUDE STRUCTURE CDHDR.
DATA: END OF ICDHDR.
DATA: BEGIN OF ICDSHW OCCURS 50.
INCLUDE STRUCTURE CDSHW.
DATA: END OF ICDSHW.
DATA: BEGIN OF EKKEY,
EBELN LIKE EKET-EBELN,
EBELP LIKE EKET-EBELP,
ETENR LIKE EKET-ETENR,
END OF EKKEY.
DATA: BEGIN OF ITAB OCCURS 50,
BEGIN OF EKKEY,
EBELN LIKE EKET-EBELN,
EBELP LIKE EKET-EBELP,
ETENR LIKE EKET-ETENR,
END OF EKKEY,
CHANGENR LIKE CDHDR-CHANGENR,
UDATE LIKE CDHDR-UDATE,
UTIME LIKE CDHDR-UTIME,
USERNAME LIKE CDHDR-USERNAME,
CHNGIND LIKE CDSHW-CHNGIND,
FTEXT LIKE CDSHW-FTEXT,
OUTLEN LIKE CDSHW-OUTLEN,
F_OLD LIKE CDSHW-F_OLD,
F_NEW LIKE CDSHW-F_NEW,
END OF ITAB.
DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
FIELD-SYMBOLS: <F_OLD>, <F_NEW>.
SELECT * FROM EKKO WHERE EBELN IN XEBELN AND
LIFNR IN XLIFNR.
CLEAR CDHDR.
CLEAR CDPOS.
CDHDR-OBJECTCLAS = 'EINKBELEG'.
CDHDR-OBJECTID = EKKO-EBELN.
PERFORM GETCHGDOCS.
ENDSELECT.
IF SUDATE = 'X'.
SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
EKKEY-ETENR.
ELSEIF SNAME = 'X'.
SORT ITAB BY USERNAME EKKEY-EBELN CHANGENR EKKEY-EBELP
EKKEY-ETENR.
ELSE.
SORT ITAB BY EKKEY-EBELN CHANGENR EKKEY-EBELP EKKEY-ETENR.
ENDIF.
LOOP AT ITAB.
CLEAR: INDTEXT, EKKEY.
CASE ITAB-CHNGIND.
WHEN 'U'.
INDTEXT(50) = ITAB-FTEXT.
INDTEXT+51 = TEXT-020.
CONDENSE INDTEXT.
WHEN 'D'.
INDTEXT = TEXT-021.
WHEN 'E'.
INDTEXT(5) = ITAB-FTEXT.
INDTEXT+51 = TEXT-021.
CONDENSE INDTEXT.
WHEN 'I'.
INDTEXT = TEXT-022.
ENDCASE.
RESERVE 4 LINES.
IF WCHANGENR NE ITAB-CHANGENR.
WCHANGENR = ITAB-CHANGENR.
EKKEY = ITAB-EKKEY.
WRITE:/ ITAB-UDATE UNDER 'Change Date',
ITAB-UTIME UNDER 'Time',
ITAB-USERNAME UNDER 'User Name',
ITAB-EKKEY-EBELN UNDER 'PO No',
ITAB-EKKEY-EBELP UNDER 'Item',
ITAB-EKKEY-ETENR UNDER 'Sch No',
INDTEXT UNDER 'Changes'.
ELSEIF ITAB-EKKEY NE EKKEY.
WRITE:/ ITAB-EKKEY-EBELP UNDER 'Item',
ITAB-EKKEY-ETENR UNDER 'Sch No',
INDTEXT UNDER 'Changes'.
ENDIF.
CASE ITAB-CHNGIND.
WHEN 'U'.
ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
ASSIGN ITAB-F_NEW(ITAB-OUTLEN) TO <F_NEW>.
WRITE: / TEXT-023 UNDER 'Changes',
<F_OLD>.
WRITE: / TEXT-024 UNDER 'Changes',
<F_NEW>.
WHEN 'E'.
ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
WRITE: TEXT-023 UNDER 'Changes',
<F_OLD>.
ENDCASE.
SKIP.
ENDLOOP.
TOP-OF-PAGE.
WRITE:/ SY-DATUM,SY-UZEIT,
50 'P U R C H A S E O R D E R H I S T O R Y',
120 'Page', SY-PAGNO.
WRITE: / SY-REPID,
60 'Purchase Orders Changes'.
SKIP.
ULINE.
IF SUDATE = 'X'.
WRITE:/001 'Change Date',
014 'Time',
024 'User Name',
038 'PO No',
050 'Item',
057 'Sch No',
065 'Changes'.
ELSEIF SOBID = 'X'.
WRITE:/001 'PO No',
013 'Item',
020 'Sch No',
028 'Change Date',
041 'Time',
051 'User Name',
065 'Changes'.
ELSE.
WRITE:/001 'User Name',
015 'Change Date',
028 'Time',
038 'PO No',
050 'Item',
057 'Sch No',
065 'Changes'.
ENDIF.
ULINE.
FORM GETCHGDOCS.
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
DATE_OF_CHANGE = CDHDR-UDATE
OBJECTCLASS = CDHDR-OBJECTCLAS
OBJECTID = CDHDR-OBJECTID
TIME_OF_CHANGE = CDHDR-UTIME
USERNAME = CDHDR-USERNAME
TABLES
I_CDHDR = ICDHDR
EXCEPTIONS
NO_POSITION_FOUND = 1
OTHERS = 2.
CHECK SY-SUBRC EQ 0.
DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
CHECK NOT ICDHDR[] IS INITIAL.
LOOP AT ICDHDR.
CHECK ICDHDR-UDATE IN XUDATE.
CHECK ICDHDR-USERNAME IN XNAME.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING CHANGENUMBER = ICDHDR-CHANGENR
IMPORTING HEADER = CDHDR
TABLES EDITPOS = ICDSHW
EXCEPTIONS NO_POSITION_FOUND = 1
OTHERS = 2.
CHECK SY-SUBRC EQ 0.
LOOP AT ICDSHW.
CHECK ICDSHW-TEXT_CASE EQ SPACE.
MOVE-CORRESPONDING ICDSHW TO ITAB.
MOVE-CORRESPONDING ICDHDR TO ITAB.
MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
APPEND ITAB.
ENDLOOP.
ENDLOOP.
ENDFORM.
END OF PROGRAMHi,
copied from http://www.sap-img.com/mm001.htm -
Authorization based on plant and Purchase order document type
Hi
My client has a requirement wherein a user will have authorization for transactions only in his plant. But only for Purchase order document type UB (Stock Transport Order) the user should be allowed to create for all plants.
In short, if Purchase order document type is UB, should be allowed for all plants
if Purchase order document type is NB, should be allowed to only one particular plant.
My Basis person says that such a restriction is not possible.
Kindly suggest me on how to provide a solution to this.
Thank U.Hi,
This is possible.In this case you need to create two seperate roles.
1)Create purchase order for all plants (This can be used in long text)
2)Create purchase order for <plant no> plants.
For case 1:--
i)Populate field BSART of M_BEST_BSA with UB.
ii)Populate field WERKS of M_BEST_WRK with '*'. SAP reccomends to fill up organizational data through organizational level tab only.So while doing this step you need to put * from organizational level tab only.
For case 2:--
i)Populate field BSART of M_BEST_BSA with NB.
ii)Populate field WERKS of M_BEST_WRK with 'plant no'.
Dont worry about the objects i mentioned those are maintained through SU24 and will be automatically pulled once you insert ME21 transaction code.
Let me know if it helps.
Thanks,
Aveek
Maybe you are looking for
-
How to check collection.contains(..) inside a tag ?
Hi, I'm using both struts and jtsl tags in my jsp. JSP session has a Collection named "responses" that contains string objects. <c:forEach items="${page.questions}" var="question" varStatus="i"> <tr> <th align="left"><c:o
-
Hi folks. I am working with ECC 6.0 and I would like to kow if there is an user exit (that works during creation of a Request (workbench and customizing) ) that could give me the request number that is being created during that moment. There are some
-
Who are document managent integration partners?
From the OWF 2.6.2 documentation we can read - "Oracle Workflow provides seamless open integration with Oracles third party document management (DM) integration partners". Who are these partners? Thank you.
-
How can I hide paid tools?
Hi everybody, I need to deploy Adobe Acrobat Reader DC on thousands of computers in the school. I do not want users to have access to tools that are not free. For example, when I try the tool "Export PDF" he sent me to a webpage and offers me to buy
-
Creating a material with just the basic view using BAPI
Hi I intend to create a new material with just the basic view using BAPI BAPI_MATERIAL_SAVEDATA - To do this - I believe I have to fill in the structure HEADDATA data - ( mandatory ) with the required values - I fill values for fields IND_SECTOR