Linking purchases orders with workflow
Hi, I am fairly new to SAP so please bear with me.
I am trying to write a report of purchase orders and their approvers.
So far I have gotten most of my data from tables EKPO and EBAN. Now I need to get the approver name, I assume that it is in workflow and in particular the table SWWWIHEAD. However I won't know how the purchase order tables and the workflow tables relate.
Can anyone please shed some light on the matter or direct me to somewhere I can find the information?
Hello,
Instead of accessing the workflow tables, you're better off using the SAP_WAPI function modules.
Here are some that may be useful to you:
SAP_WAPI_WORKITEMS_TO_OBJECT
- given an object instance, findthe related workitems
SAP_WAPI_GET_WORKITEM_DETAIL
- givena workitem, find more info
First you have to figure out which BOR object you're dealing with and what the key is.
regards
Rick Bakker
Hanabi Technology
Similar Messages
-
Link purchase order with request for quotation
Hi:
I would like to know is there any FM or table where I can get the request for quotation with the purchase order or viceversa?
Any clue will be great.
Points for helpfull answers.Check the below Links :
http://www.copacustomhelp.state.pa.us/infopak/nav/procurement/purchase%20ordering/file251/index.htm
http://www.sap-img.com/materials/what-is-request-for-quotation.htm
Check with table EKKO -EBELN (BSTYP = 'F',then this is purchase order )
EKKO-ANGNR-> take this field ,this is quotation number
Thanks
Seshu -
How to block the creation of a Sales Orders without a linked Purchase Order
Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
IF @transaction_type = 'A' AND @object_type='17'
BEGIN
IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
BEGIN
SET @error = 1
SET @error_message = 'Purchase Order Missing...'
END
END
This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
Thanks...Hi Yail,
I think you can't close the purchase order with the stored procedure.
Try to catch the Event when the user click on Cancel button.
So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
You can block the cancel button and force the user to create the purchase order.
Hope i help you
Best regards
Michael -
Purchase Order with Invoice Plan
Hi,
I need to understand working with Invoicing plans for a Purchase Order. Especially the service PO for the rents and other related services.
How the PO is linked to the Invoice Plan and how the process happens in SAP?
Thanks in advance!Creating an Invoicing Plan
The following procedure describes how to create an invoicing plan with the pre-Enjoy ordering transactions (ME21, ME22, ME23).
The procedure described is also applicable u2013 with certain restrictions u2013 to the Enjoy purchase order (ME21N, ME22N, ME23N).
If you are using the Enjoy purchase order, you will find:
· The Invoicing Plan button and the indicators for GR-based invoice verification (GR-Based IV), service-based invoice verification (Srv.-Based IV), evaluated receipt settlement (ERS), and invoice receipt (Inv. Receipt) among the item details on the Invoice tab page.
· The account assignment among the item details on the Account Assignment tab page
· The Goods Receipt and GR Non-Valuatedindicators among the item details on the Delivery tab page
Prerequisites
Vendor Master Record
Before you can use the invoicing plan with automatic settlement, the Evaluated Receipt Settlement Delivery indicator must be set on the Purchasing Data screen in the vendor master record.
(If you wish to enter invoicing dates manually, this is not necessary.)
Purchase Order
● We recommend using a framework order (that is a purchase order with a validity period and a reason for rejection). The invoicing plan can adopt the validity period specified in the PO header.
● PO items for which you wish to use an invoicing plan must have account assignment irrespective of whether a material with a master record, a material described by a short text, or an external service is involved.
● The GR/IR control facility must be set up in such a way that no goods receipt (or, in the case of services, no service entry) is expected - only an incoming invoice. If you wish to have automatic settlement, you must also set the Evaluated Receipt Settlement indicator.
If you nevertheless wish to allow service entry sheets for the item (e.g. for information purposes only), you must set the GR Non-Val. indicator.
Customizing
Under Purchase Order à Invoicing Plan in Customizing for Purchasing, you can maintain data such as the desired invoicing plan types, date categories, and date descriptions.
Procedure
1. Create a purchase order with account assignment (framework order).
Click to access the item overview (or the overview of service lines if you chose item category D for services).
2. Enter the desired material or service, the quantity, and the price.
3. Select the desired item and click Account Assignments to access the account assignment screen. Enter the account assignment for this item.
4. Click to access the item detail screen. Check that the GR/IR control indicators are set correctly on the item detail screen.
○ The GR and GR-Based Invoice Verification or Service-Based Invoice Verification indicators must not be set.
○ IR must be set.
○ You must set ERS if you wish to have Evaluated Receipt Settlement.
○ If you wish to have service entry sheets purely for information, for example, allow non-valuated goods receipt (i.e. select the GR Non-Val and GR indicators).
5. Choose Item ® Invoicing Plan. A window appears, in which the invoicing plan types predefined in Customizing are suggested. Choose the desired invoicing plan type and click Continue.
You can use the following invoicing plan types:
○ Periodic Invoicing Plan
■ You use the periodic invoicing plan if the total value of the PO item is to be invoiced in each period.
■ The system creates the invoicing dates automatically on the basis of the settings in Customizing.
■ The invoicing date and the amount to be invoiced are shown for each settlement period (e.g. month). In the case of the periodic invoicing plan, the amount represents the total value of the PO item.
■ You can change the suggested dates and block individual dates for automatic invoicing if necessary.
■ You can enter the start and end dates for the invoicing plan.
■ With the Dates from and Dates to fields, you can determine that an invoicing plan does not contain invoicing dates extending over the entire validity period of the purchase order but only for a certain period within that validity period. (E.g. within a validity period from 1.1. to 12.31, only dates within the period 1.1. to 06.30.)
■ With the Horizon field, you control how far into the future dates can be created. If you enter a date rule that adds six months to the current date here, invoicing dates will be created for just half a year in advance in each case.
The system automatically creates new dates if you change the invoicing plan or when you invoke the transaction for Updating Periodic Invoicing Plans. See Generating Further Invoicing Plan Dates
■ The In Advance indicator allows you to specify whether the invoice is to be created with regard to a prior or subsequent period. (E.g. at the beginning of February, either in advance for the month of February or in arrears for the month of January).
■ In addition, fields with information on the existing invoicing plan are displayed (e.g. the calendar upon which the date determination process is based).
○ Partial Invoicing Plan
■ You use the partial invoicing plan if the total value of the PO item is to be invoiced in several partial amounts.
■ You get an empty date overview in which you can manually enter the desired dates.
■ If you work with a reference invoicing plan, the system automatically generates dates in accordance with the reference plan.
You have the following options:
● You create a reference invoicing plan in Customizing for the invoicing plan type.
● You enter an existing invoicing plan as reference plan directly in the invoicing plan for the PO item.
■ You can flag a date in field B (Billing/Invoicing Rule) as follows:
● As a down payment (percentage or value)
● As an invoicing date (percentage or value)
● As a final invoice
6. Click to return to the item overview.
7. Click to save the purchase order item with the invoicing plan.
You can then start the automatic invoice creation process during invoice verification.
For more information, refer to the section Settlement of Amounts Due Under Invoicing Plans.
Once assigned to an item, the invoicing plan type (e.g. partial invoicing plan) cannot be changed. If you wish to assign a different invoicing plan type, you must delete the item and create a new one.
Generating Further Invoicing Plan Dates
If you have assigned a periodic invoicing plan to a PO item but have not initially defined invoicing dates covering the entire validity period of the purchase order, you can generate further dates in due course.
You have created a PO item with a periodic invoicing plan for a certain planned procurement. The purchase order is valid from 1.1. to 12.31. When creating the invoicing plan, you specified one invoicing date per month for the first half of the year. You have not yet planned any dates for the second half of the year because you do not wish information from the invoicing plan to be passed on to purchase order commitments at this stage, for example.
By mid-June, it is clear that the PO is to proceed as envisaged, and you therefore wish to schedule invoicing dates for the remainder of its validity period.
Procedure
To schedule further invoicing dates, proceed as follows:
Choose Purchase order ® Follow-on functions ® Period. invoicing plan
Specify the purchase orders for which invoicing dates are to be generated in the invoicing plan and perform the function.
A log can be created if desired.
Result
The system adds further dates on the basis of information such as the validity period or horizon from Customizing, the purchase order, and the invoicing plan.
regards,
indranil -
Purchase order release workflow - urgent
Hi friends
When iam creating purchase order it trigger the workflow WS20000075 for releasing purchase order in that purpose what can i do..
How can i set the Agents
How can i trigger the events - i think in that purpose using pftc we trigger the workflow.. so i need clear steps from beginning onwards..
my exact requirement
once i create purchase order, the workflow will be triggered..
after that the mail goes to the approver.. if he/she click that mail purchase order release statement want to be open.. after that he/she release purchase order it will goes to the next level..anyone give the step by step procedure..for that
Thanks
Gowrishankaryes prabakar.. but iam confused..
You can get step by step workflow for PO using standard workflow
Release of Purchase Order :WS20000075
And for two levels of approvals you have to configure in SPRO the path is
Purchase Order:
SPRO> Material Management->Purchasing->/Purchase order-->Release procedure ---> Procedure with classification ---> set up procedure with classification ---> double click on Release strategies and Workflow.
If you don't know about this configuration, you have to confirm with your MM consultant.
after finish this iam triggering events using pftc
in that pftc iam choosing business object bus 2012 for po release..
i think thats enuf..
After that it is possible to trigger workflow.. when iam create purchase order..
Thanks
Gowrishankar -
Program for Creating Purchase Order with reference to purchase requisition
Hi ,
I need to Create purchase Order with reference to Purchase requisition,
in my case i need to automize the Process which is happening in MD04,
Can you please suggest me ?
Thanks ,
MuraliHi,
Plz check this link. It will be helpful to you.
Purchase order creation with reference to PR
We can also create the PO Using the BAPI_PO_CREATE1 function module.
In this function module fill up the all necessary Details.
With details in Item Table we haveto give the Fields PREQ_NO and PREQ_ITEM for each item .
then it will creates the PO with PREQ.
Thanks & Regards,
Sarita Singh Rathour
Edited by: Sarita Rathour on Aug 3, 2009 7:01 AM -
WHATS THE FLOW OF A PURCHASE ORDER WITH REGARS TO MATERIAL MANAGEMENT ?
WHATS THE FLOW OF A PURCHASE ORDER WITH REGARDS TO MATERIAL MANAGEMENT ?
Hi
see the MM flow with related Transaction codes
MM Cycle:
Purchase Requisition-> Staff in an orgn places Pur requisition for want of some goods/products - ME51
Request for Quotation(RFQ)-> The Purchase dept in the orgn calls/requests for the quotation for the products against which PR was raised. - ME41
Vendor Evaluation->After receving the RFQ's, after comparison a Vendor is finalised based on the terms and conditions.
Purchase Order(PO)-> Pur order was issued to that vendor asking him to supply the goods/products -ME21N
Goods Receipt Note(GRN)->Vendor supplies the material/Products to the orgn-
MB01
Goods Issue (GI) -> People receives their respective itesm for which they have placed the Requisitions
Invoice Verification-> ALong with the Material Vendor submits a Invoice for which the Company Pays the amount - .MIRO
Data to FI -> data will be posted to FI as per the vendor invoices
you better go through all these links u will get all the info what ever u need
for mm
http://www.sapgenie.com/abap/tables_mm.htm
http://www.sap-img.com/sap-download/sap-tables.zip
http://www.allsaplinks.com/material_management.html
http://www.training-classes.com/course_hierarchy/courses/2614_SAP_R_3_MM_Invoice_Verification_-_Rel_4_x.php
http://www.sapfriends.com/sapstuff.html
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSMAT/PSMAT.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAARCMM/CAARCMM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MYSAP/SR_MM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOMDMM/LOMDMM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMMM/BCBMTWFMMM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMIVMVAL/MMIVMVAL.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMWMLVS/MMWMLVS.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMISVE/MMISVE.pdf
Reward points if useful
regards
Anji -
Goods receipt for purchase order with account assignment 'K'
Hello All,
There are couple of purchase orders with acc.*** "K". On doing the GR for these PO's they have been done with mvt type 103 & mvt typ 105.
I understand that material has been directly consumed to the respective cost center.
How do track the internal movement for these materials??
I need to view the stock for these materials at the cost center as in MMBE the stock is seen as ZERO.
All these materials are with QM proc ACTIVE. So a goods receipt is done 105, then the inspection lot is cleared. However, in this case as the material is directly consumed, it is NOT displayed in QA32.
Is the above procedure correct??? Is it better to receive stock against mvt type 101 & then do a 201 mvt ??
Request your inputs.....
Regards,
Manoj ReddyAccount assignment inventories are not maintained. To maintain a report for cost center receiving/issuing you need to make a customized report with help of ABAP.
Other way is to pull report in MB51, with selection criteria COST CENTER and it will give you result of stocks available on cost center. For stocks received on cost center, you can pull report with cost center and movement 101.
201 is used for goods issue to cost center from warehouse, the stock you receive from PO against 101 is directly charged to cost center, so no need to issue later to cost center.
Edited by: Afshad Irani on May 17, 2010 2:17 PM -
Report to Purchase Orders with Good Receipt and pending for Invioce Receipt
Hello,
I'm looking a report bring me Purchase Orders with Goods Receipt and waiting for Invioce Verificacion (MIRO).
I appreciate any help.
Regards,
HectorHi,
ME2N - In selection screen, enter Selection parameters as
WE102 i.e. Goods receipt exists and in output screen put a filter on "Still to be invoiced (qty)" and "Still to be invoiced (val.)" as not equal to zero OR greater than Zero.
OR use RECHNUNG i.e. Open invoices and execute the report
OR Use MB5S - GR/IR Balances -
Hi,
Is it Possible to create purchase order with negative Quantity, right now it is issuing msg "negative Quantity will not be allowed for service based invoice verification".
If yes please suggest the config steps.
Regards,
Raninot possible.
negative stock can be maintained for storage location for goods issue -
Error while creating purchase order with account assignment category "A"
Dear All,
At the time of creating purchase order with account assignment category A - Asset its throwing error as " GL Account 123400 can not be used"
how to resolve this issue"
Edited by: Matt on Sep 16, 2010 10:09 AM - removed bold tagsHI,
Assign all assets GL to Asset Class
spro --> financial accounting new -->assets accounting --> assets accounting (lean Implementation) --> organization structures --> Assign GL
Hope Help U !
Regards,
Pardeep Malik -
Default a gl account in account in a purchase order with account assignment
Hi all
I need default a gl account in account in a purchase order with account assignment P. can somebody help me. They have used a gl account which is not correct.
ThanksHi,
Please refer posted tread in the forum
default G/L account for purchasing documents
Regards,
Santosh -
Validity start & end, in Purchase Order with limit
Hi All,
We are using a model of SAP with one type of Purchase Order: we have created a new type of purchase order (ZFOA), that we use for all purchase orders.
Now we want to use ZFOA also for Blanket Purchase Order, instead of the standard type proposed for this scope by SAP (FO).
We have inserted Validity Start & Validiti End as Optional Entry in Customizing.
( IMG - MM - Purchasing - Purchase Ordrer - Define Screen Layout at Document Level).
We have inserted them as Optional Entries, and not as Required Entries, because they are Required only for Blanket Purchase Order. (and we use ZFOA for all ours types of Purchase Order)
So i want to know if it's possible to connect the obligatory requirement of these two entries to:
- ZFOA (type of Purchase Order)
- B (Item category in Purchase Order)
In this way:
1) when i create a PO (ZFOA) without item category B --> Validity date & Validity End are not obligatory fields
2) when i create a PO (ZFOA) with item category B ---> Validity date & Validity End are obligatory !!
Have you got any Solutions??
Best regards
AlbaThanks very much!
Now i found in MM SAP Manual (SCM 520, Purchasing) a similar example, and it could seem possible:
When creating a standard purchase order with the standard item category, the following field selection key is determined for the Material group field:
Field selection key ME21N (Create/Change Purchase Order transaction):
The Material Group field is an optional field.
Field selection key AKTH(Create activity category):
The Material Group field is an optional field.
Field selection key NBF (purchasing document type NB):
The Material Group field is an optional field.
Field selection key PT0F (item category Standard):
The Material Group field is a mandatory (required-entry) field.
The combination of field selection keys ME21N, AKTH and NBF means that the field is an optional field. Because the Material Group field is defined as a mandatory field in the field selection key PT0F however, this means that the field requires an entry when a purchase order is being created.
I have the same problem for Validity start field, but why if i do all of this things, the field remain not mandatory?
Thanks in advance
Best regards
ALba
Edited by: Alba Battolini on Apr 22, 2009 9:21 AM -
Acct determination for Account-assigned purchase order with keys not define
Hi,
I'm trying to post an IDOC of type BBPIV through XI to an R/3 system.
The posted idoc in R/3 is in status 51 (Application document not posted) with the error message "Acct determination for Account-assigned purchase order with keys not defined in chart of acts WP2P"
As per my understanding this is something related to FI.
Long text of the error is "The system cannot generate an automatic posting because there is no account determination defined for Account-assigned purchase order with keys in chart of accounts WP2P.
Correct the account determination for Account-assigned purchase order"
Please help me how to solve this.
Regards,
RashmiHiya,
This looks like its a MM posting / transaction.
You need to go to OBYC and maintain the account assignment. If you provide the business scenario (GR into Stock, Subcontracting, etc.) for the process, I may be able to help.
VKOA is for SD account assignment and I don't believe you can use that here.
Cheers. -
Purchase order with zero quantity
Hi all,
When a replenishment delivery is ceated in product view, APO automatically creates purchase order with zero quantity and the replenishment delivery's receipt element. APO does not transfer the purchase order to R/3. Do you have an idea about the problem?
Thanks,
BurakPlese try to send change pointer through /SAPAPO/C5 - Process Change Pointers .
Also check your publication setting in Spro.( Maintain Distribution defination )
Manish
Maybe you are looking for
-
Get File name from incoming IDoc
HI All, I am in an IDOC to File scenario using Fcc. (R/3 --> XI --> 3rd party) I need to use the idoc-number(EDI_DC40-Docnum) as my output file name. I planned using variable substitution but there it expects me to get the idoc number from payload w
-
Weblogic 12c console doesn't update with datasources defined
Hi Guys, I've observed this behaviour.. which seems to me as a bug somewhere.. Here is what happens.. 1. I define a datasource 2. Then I try to create JDBCStore for JMS messages.. I don't see my defined datasource in step-1 in the dropdown list.. 3.
-
Cool time-lapse created in Photoshop CS6 beta
Anthony Scime used the Photoshop CS6 beta to create an evocative time-lapse illustration inspired by the upcoming Blade Runner sequel: If you can't see the embedded video above, check it out on YouTube at http://youtu.be/1BH33YdG75k. Tip of the hat t
-
How to calculate line amount?
I need help in calculating the amount column. Please advise and thank you in advanced!
-
I currently use PSE 11 & have purchased PSE 13, I use a Dell XPS8300 that is was purchased in 2011 and has a 2TB HD, however, it is 75%full. I have several large catalogs, all located on drive C (My Catalog, Scrapbooking Supplies, Etc), I would lik