Saving Purchase order as PDF
Hello all,
we would like to save our purchase orders as pdf file on the pc. We use SAPscript to create the POs.
I have already searched the forums, but I didn't find a solution for me so far.
I don't wanna use the way over the spool requests and the program RSTXPDFT4, because the end users don't have access to that.
My question is, do I have to create a new output type for that? How does that work? Or what else do I have to do (step by step)?
Thank you,
Anne
Message was edited by:
Anne Jannasch
Hi Anne,
*PO to PDF to string
CALL FUNCTION 'ECP_PDF_DISPLAY'
EXPORTING
purchase_order = p_ebeln
IMPORTING
* PDF_BYTECOUNT =
pdf = file
*Converting Xstring to binary_tab
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = file
* APPEND_TO_TABLE = ' '
* IMPORTING
* OUTPUT_LENGTH =
TABLES
binary_tab = int_tab1
**Downloading into PDF file
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:RDsample1.pdf'
filetype = 'BIN'
TABLES
data_tab = int_tab1
With the help of above code and triggering user exit while saving PO , you are able to get PO PDF into PC.
Just try it.
Regards,
Madhu
Similar Messages
-
Error while saving purchase order
Hi all,
While saving purchase order i am getting the following error.
Syntax error in program SAPLV61A
in include RV64A932
in line 10
Statement"*&"is not defined.check your spelling.
Thanks& Regards,
Hari.Hi Hari,
I've just encountered the same problem as you have now in your latest post.
Normally the include that you mentioned is a formula condition value include which you can modify but you probably have
to register this object first on the SAP OSS pages to get an Access key to modify it.
After you've obtained a key launch transaction VOFM and comment out the line "TABLES: VBRK, VBAK".
As you see below SAP did exactly the same thing in several other includes.
Include FV64A582
-> is a formula condition value
tx VOFM
-> Formulas
-> Condition Value
-> Routine number 582
At line 37 I commented out "TABLES: VBRK, VBAK." which is not used
anyway in this include.
On top of that SAP commented out these definitions in several other
includes: eg. FOICH002, FOICH002, OI_LV61ATOI.
If other persons have comments on this topic please respond/advise.
Hari, inform us if this resolved your problem.
Also reward points if my post aided you in resolving your issue.
Thank you for feedback.
Best regards,
Tom Cockaert. -
Hi experts,
How can i get a purchase order NUMBER PDF formate .
when i save the PURCHASE order allways the file name is Purchase order.
but we need it like PO-4500096
with PO number ... is thre any settings where can i take thi table and fealds to save PO in PDF with number..
Regards,
Anthyodaya.Thank you fo r the reply,
when i save po now getting allways same file name like ( purchas order)
but the problem is I need to save PO as PDF formate with PO number in PDF file name like ( PO450094)
depends on po number ..
How can i get a purchase order NUMBER PDF formate .
when i save the PURCHASE order allways the file name is Purchase order.
but we need it like PO-4500096
with PO number ... is thre any settings where can i take thi table and fealds to save PO in PDF with number -
'How to restrict change in Quantity/Price in saved Purchase Order in SAP B1'
Dear All,
How can I restrict a user from changing Quantity or Price in a saved Purchase Order in SAP B1 8.81 PL 0?
Regards.Try This TN SP
If @object_type='22' and @transaction_type='U'
BEGIN
If Exists (SELECT T0.docnum FROM [dbo].[OPOR] T0
INNER JOIN [dbo].[POR1] T1 ON T1.DOCENTRY = T0.docENTRY
WHERE T0.DOCENTRY = @list_of_cols_val_tab_del)
BEGIN
Select @error = -1,
@error_message = 'Update not possible'
End
End
Regards
Kennedy -
What is the BADI while SAVING purchase order using me22n?
what is the BADI while SAVING purchase order using me22n?
while i will save purchase order through me22n, badi should be fire what is badi for that?
regards,
dushyant.Dushyant,
Hopefully you know how to implement the BADI ME_PROCESS_PO_CUST now.
The following are the codes that you can put in the method "Post".
DATA: LW_HEADER TYPE MEPOHEADER,
LW_POSTED_HEADER TYPE MEPOHEADER,
LW_VALID TYPE MMPUR_BOOL,
ITAB_ITEM TYPE PURCHASE_ORDER_ITEMS,
LW_ITEM TYPE MEPOITEM,
ITEM_INTERFACE TYPE PURCHASE_ORDER_ITEM,
ITAB_ACCT TYPE PURCHASE_ORDER_ACCOUNTINGS,
ACCT_INTERFACE TYPE PURCHASE_ORDER_ACCOUNTING,
LW_ACCT TYPE MEPOACCOUNTING,
LW_POSTED_ACCT TYPE MEPOACCOUNTING,
W_ACCT_CHANGED TYPE C,
W_GRANT_AMT TYPE EKPO-NETWR,
W_FINANCE_AMT TYPE EKPO-NETWR,
W_FLAG TYPE C.
Check if PO header data is valid
CLEAR LW_VALID.
CALL METHOD IM_HEADER->IS_VALID
RECEIVING
RE_VALID = LW_VALID.
CHECK LW_VALID = 'X'.
PO header data is valid
Get the newly updated PO header data
CLEAR LW_HEADER.
CALL METHOD IM_HEADER->GET_DATA
RECEIVING
RE_DATA = LW_HEADER.
Get the posted PO header data
CLEAR LW_POSTED_HEADER.
CALL METHOD IM_HEADER->GET_PERSISTENT_DATA
IMPORTING
EX_DATA = LW_POSTED_HEADER
EXCEPTIONS
NO_DATA = 1.
IF SY-SUBRC <> 0.
CLEAR LW_POSTED_HEADER.
ENDIF.
Get PO line items
REFRESH ITAB_ITEM.
CALL METHOD IM_HEADER->GET_ITEMS
RECEIVING
RE_ITEMS = ITAB_ITEM.
LOOP AT ITAB_ITEM INTO ITEM_INTERFACE.
Check if PO line item is valid
CLEAR LW_VALID.
CALL METHOD ITEM_INTERFACE-ITEM->IS_VALID
RECEIVING
RE_VALID = LW_VALID.
IF LW_VALID <> 'X'.
This PO line item is not valid
CLEAR W_ACCT_CHANGED.
EXIT.
ENDIF.
CLEAR LW_ITEM.
CALL METHOD ITEM_INTERFACE-ITEM->GET_DATA
RECEIVING
RE_DATA = LW_ITEM.
Get the account interface
REFRESH ITAB_ACCT.
CALL METHOD ITEM_INTERFACE-ITEM->GET_ACCOUNTINGS
RECEIVING
RE_ACCOUNTINGS = ITAB_ACCT.
LOOP AT ITAB_ACCT INTO ACCT_INTERFACE.
CLEAR LW_ACCT.
Get the newly updated PO item data
CALL METHOD ACCT_INTERFACE-ACCOUNTING->GET_DATA
RECEIVING
RE_DATA = LW_ACCT.
CLEAR LW_POSTED_ACCT.
Get the posted PO item data
CALL METHOD ACCT_INTERFACE-ACCOUNTING->GET_PERSISTENT_DATA
IMPORTING
EX_DATA = LW_POSTED_ACCT
EXCEPTIONS
NO_DATA = 1.
IF SY-SUBRC > 0.
CLEAR LW_POSTED_ACCT.
ENDIF.
IF LW_ACCT-LOEKZ <> LW_POSTED_ACCT-LOEKZ OR
LW_ACCT-KOSTL <> LW_POSTED_ACCT-KOSTL OR
LW_ACCT-PRCTR <> LW_POSTED_ACCT-PRCTR OR
LW_ACCT-PS_PSP_PNR <> LW_POSTED_ACCT-PS_PSP_PNR.
Account assignment was changed
We will force this PO to go through workflow
W_ACCT_CHANGED = 'Y'.
ENDIF.
ENDLOOP.
ENDLOOP. -
Is it possible to change the vendor in a saved Purchase order
Is it possible to change the vendor in a saved Purchase order
Regards
AmitHello, Amit,
no, but you can change the partner functions in the PO, like "Invoicing Party", "Vendor", "Goods Supplier" -- depends on you customizing for partner schemas.
However, this should be used only in case when during the purchase order lifecycle the partner has been changed (as result of merger, bankrupcy, factoring); otherwise, it is much easier to simply delete the PO and create a new one.
Kind Regards
TomT -
Update ZPURCHASE THROUGH BADI .. at the time of saving Purchase Order
Dear All Gurus,
I have a situation wherein i have to save the Purchase Order Details in My DB table (ZPURCHASE ) at the time of Purchase Order Creation through BADI...
Fields of ZPURCHASE are (Mandt,EBELN,BUKRS)
Can some one guide me how can i achieve this..
I tried doing it through User Exits.. i have written a piece of code when saving the purchase order but my problem is .. The purchase order numbers are generated only after SAVE is complete..
The other alternative i want to try is through BADI.
Looking forward for your reply.
Thanks !!> I have a situation wherein i have to save the Purchase Order Details in My DB table (ZPURCHASE ) at the time of Purchase Order Creation through BADI...
> Fields of ZPURCHASE are (Mandt,EBELN,BUKRS)
I have no solution for your actual problem (wrong forum, you should try the MM forum) but I wonder why you just don't use the data that is already there in EKKO and EKPO?
Markus -
Stoping process of saving purchase order(ME21/ME21N) in the user exit.
Hi,
I am using user exit "EXIT_SAPMM06E_016" of purchase order. While creating PO and after user enters 1st line item or more items and presses save button, then this user exit will be called.
Now my requirement is I have to check "item delivery date" , if it is more than 300 days from creation date then I have to show popup for warning the user for the same and if user want to make the changes then this user exit should stops the process of saving the PO and returns and allows to change the PO.
Please help me in this.
how I can stop the saving process.
Thanks,
DeepakHi Deepak,
You can do it in IM_ITEM method
DATA: ls_mepoitem TYPE mepoitem.
ls_mepoitem = im_item->get_data( ).
if you check ls_mepoitem-quantity field it will give your required value....pls Go through the documentation below for the method
Documentation for the method
Processing of Item Data
Functionality
The PROCESS_ITEM method enables you to change the item data and check it
for correctness.
Parameters
The following parameters are available:
o IM_ITEM - Document item
The interface reference is of the category
IF_PURCHASE_ORDER_ITEM_MM. You can use all methods defined there.
Note
Please note the general hints on Error Handling.
If you wish to mark the document item as invalid, use the
INVALIDATE() method of the IF_PURCHASE_ORDER_ITEM_MM interface.
Regards
Byju -
Hi Gurus,
What is the procedure to get purchase order print out in the form of PDF
Regards
VivekUse RSTXPDFT4 in SE38 / SA38 Program To convert po into PDF Format with Spool Request Number.
Regards,
Ashok -
Disable Purchase Order (PO) PDF Print button
Hi,
We are using SRM 550.
When a user views/changes a PO in the browser they can use the Preview Purchase Order button to view the PO as a PDF document.
This is OK, but we want to disable users from printing the form using the Adobe PDF print button as there is no print log recorded for this action and so the audit trail is compromised.
I have heard that this can be disabled by SAP when the PDF is generated does anyone know how this is acheived.
Thanks in advance
Allen Brooks
SRM BPO
Sunderland City CouncilHi Allen
field control you can do either via below badi or templates.
BBP_UI_CONTROL_BADI BAdI
BBP_PO_UI_CTRL - field control in Purchase order
you must control the output preview button to disable . if you still finding problem then only this note is applicable . got it.
You do not want to provide the output preview button in the purchase order using the BBP_UI_CONTROL_BADI BAdI, however, this appears as soon as you go to the output area in the header data of the purchase order. However, the button no longer has the label "Output preview", instead it just has the label "Preview".
This problem is caused by a program error: The display area contains a hidden "preview" button (the button is invisible but nevertheless it exists in the GUI) (Function group BBP_OUTPUT, screen 1100). This has the same name as the button for the "output preview" that exists separately in the button area of the purchase order (Function group BBP_PO_UI_ITS screen 2200). In the described case, the data of the output button is used for the purchase order button.
Solution
This note ensures that the output button does not exist (that is, not even in the GUI) if a calling application (in this case, purchase order) requires the generic output screen using the BBPS_OUTPUT_PUT_PBO function module without the preview button (IV_WITH_PREVIEW = ' '). Therefore, the data of the output button cannot be used for the purchase order button. This correction is available with Support Package 04 (SAPKIBKT04). For an advance correction, use Transaction SNOTE to implement the correction instructions attached to this note. -
Material Price warning before saving Purchase Order
Hi everyone,
While saving the Purchase Order ..I want the system shud prompt (as Warning Mesage) the current MAP of material so that user doesnot put any erratic price..
I had done it last but cud not recollect the settings......
Will anyone help me to tell how this can be done...
Regards
Vikrant...Hi Yogesh/Dhruba/Arif/Stephen..
At first Thanks to everyone of you for contributing.....
Yes i am able to do the needful.........But yes theres one more thing which we have to maintain....
In Spro-MMpurchasing-Purchase order-Set tolerance limit--- tolerance Key PE
Here for specific company code you have to maintain the price variance tolerance then only this setting i.e version 00/06/205 works...
I our case for the company code there was no price variance limit maintained...
I maintained it and now its working....
Thought of sharing this with all of you
Regards
Vikrant......... -
User exit at the time of saving purchase order
Hi experts
There are some plants for which we need to auto GR. Is there any user exit available which will check these plants in PO at the time of saving PO document and do auto GR.
RegardsEnhancement
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MM06E011 Activate PReq Block
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
User exit for me21n -
User exit or BADI while saving purchase order
Hello,
I want to use an user exit or BADI while saving of purchase order. The objective is to check the material group of the line item while saving. We don´t want to allow to save purchase orders for one material group.
Can you please guide me.
Thanks
SrinivasanHi
The Business Add-In (BAdI) ME_PROCESS_PO_CUST enables you to extend the business logic of the Enjoy purchase order on an individual basis.
You can thus influence the dialog transactions ME21N, ME22N, ME23N, and ME29N, and the BAPIs BAPI_PO_CREATE1 and BAPI_PO_CHANGE.
Typical applications for this BAdI include:
Processing of own objects
Processing of additional data on standard objects
Implementation of additional checks and derivationsChange of data in standard fields
Change in field selection
you can use this BADI for checking the material group
Thanks & Regards
Kishore -
What are the Exists are available after saving purchase order
Actually My requirement is, When I am clicking on Save button of purchase order, it should send a mail to some person. I know the procedure sending mail through ABAP. But, I don't know where exactly I have to incorporate that code. Please help finding a function exit or user exit in this situation. It's urget please help me out.
Hi,
Check out the exits :
MM06E004
MM06E008
MMFAB001 to implement ur workflow logic.
or try this out (iam not sure)
Cretae a OUTPUT type such that set a medium as Email in MESSAGES tab of Purcahse Order Cretaion.
whenever PO is cretaed , it will trigger output type and will checak the Medium (i.e email) .
This is just a hint ..try this atlast if no other way
Regards,
Naveen -
Issue while saving Purchase Order
Dear all
I am trying to save a Purchase order, the taxes in Purchase order -> Invoice -> Taxes are not getting populated corectly.
Is there any user exit/Badi to populate the same.
Thanks in advance.
Regards
Dineshif tax rate not triggered in po mean, some where wrong in ur tax process , pls check the blw
If its Taxinn procedure,
1- check in FTXP the tax code is created towards ur tax procedure and country
2- check in FV12 for the condition types say JMOP,JEC1 and others, whthere tax rate and validity are defined properly.
3- for JMX1 cond type , keep its 100%
4- check in obbg , the tax proce is assinged to ur country or not??
let me knw, if u r not able to solve???
Maybe you are looking for
-
How to set up multiple hard drives for video editing?
I have recently purchase a new custom built PC for video editing with Premiere. I have 3 seperate HDD's as I read on one of the forums that I should set up the hard drives as follows: one for OS/programs one for media one for pagefile/scratch/rendors
-
Why can I not see shared applications on iTunes on a Mac but can on Itunes under Windows
Hello 1. I have a Mac Laptop, a Windows 7 laptop and an IPAD Air. I have an application on the IPad that shares files. 2. On both the Windows and Mac machines, I have the latest versions of ITunes installed. 3. With Image and IPhoto, I can browse the
-
Acrobat won't open PDF made in ID CS5
Hi There, I recently upgraded to CS5 and am having trouble opening PDFs I make using the Export command in InDesign. It makes the PDF, but then Acrobat gives me the following error when I dbl clk the file to open it: Acrobat could not open '2010 Supp
-
Cannot export to Compressor from Final Cut Pro 5.1
This message shows up "A file of this name already existed" when I export to Compressor from final Cut Pro 5.1 Please help...
-
What is wrong with itunes 11? it does not work
I have downloaded the latest version of itunes. As soon as I start it it tries to download something called "Tap Paradise cove" and boasts a 43 hour download. Nothing happens if I try to stop it. No buttons on itunes work. It seems to lock up up t