Pulling all Purchase Order documents that where changed in last hour.
What is the best method for pulling all purchase order documents that have changed in the last hour? We want to create this program and schedule it as a job that runs every hour.
In the backend our server stores all documents in GMT Time while our users have several time zones. What function or module should we call to get the current time.
Should we be using: sy-uzeit - 3600.
Or will this not produce the required results.
Regards
Try prog :<b>RM07MIGO_PO_HISTORY</b>
Hope thisll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
PS.
<b>Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d!</b>
Similar Messages
-
Purchase Order Document Type and Account Assignment
Hi ,
We have a requirement to control Account Assignment in Purchase Order Item line based on the Document type selected on the Purchase Order header.
Like if user selects Purchase Order document type "ZNB" (Customized created) , then he will only able to select "K" or Blank or "P" as account assignment and similary we want to limit other Account assignments based on the Purchase Document type.
How can we make this Control settings?
Regards
ShreyHi,
You can't really limit the account assignment categories per document type, at least not directly.
You can limit the item categories that can be used for a document type via configuration:
Materials Management > Purchasing > Purchase Order > Define Document Types
Within this transaction you can define which item categories are valid for a specific document type.
You can then define which account assignment categories are valid for each item category
Materials Management > Purchasing > Account Assignment > Define Combination of Item Categories/Account Assignment Categories
BUT
limiting the account assignment categories that are valid for an item category will affect ALL purchase order document types that this item category is valid for. And you can't create your own item categories as this is a SAP standard table that can NOT be altered.
Regards,
Monika -
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. -
SRM 7.0 Output for changed purchase order documents
Hi all,
if we change purchase orders we like to send a PO output document for changed purchase orders only if we change certain PO fields in header or items.
What is the functionality in PO - Header - Output - Order and Send Immediatelly ? We thought that this function is the solution!
But independent we press the button <Order and Send Immediatelly > or button <Order> the system creates allways an output document in any cases of PO field changes which will be sent to a supplier (fax, email). How we can control that a PO document only will be created in cases we define ?
Kind Regards
Edited by: Hermann-Josef Wessels on Mar 28, 2011 6:53 PMHi Jay,
we like to control the output because PO changes for G/L account, cost centre or change from account assigment order to cost centre are not interesting for the supplier and in this cases a PO document should not be sent to the supplier. This was the main reason why we like to use function <Order and Send Immediatelly>.
So I would like to clarify the requirement:
1. Automatic created output document if a new PO will be created
2. Automatic created output document if a PO will be changed but no output if the following fields will be changed:
e.g. for G/L account, cost centre or change from account assigment order to cost centre
So we come back in our discussion to table: BBPV_COMP_FIELDS. There are entries for POO = PO Output and POR = Version comparison for Purchase Order.
Question: Can I use structure name: BBP_PDS_ACC for our requirement. If yes which field-names I have to maintain in detail in this table. If possible I need the entries in detail.
Kind Regards
Edited by: Hermann-Josef Wessels on Mar 30, 2011 9:20 AM -
Change Purchase Order : Document Date
Hi Gurus,
I would like to change Purchase Order: Document Date due to wrong input but I found out this field has been grayed out from change (ME22/ME22N) after save.
Can anyone tell me how to solve this problem?
Thanks & regards,
LoiDear Gurus,
Is there is any effect of changing the PO's Document date? What is the usage of PO's Document date, in which area?
If no effect, can I customize the PO: Document Date field through Application transaction variant function?
Pls adivse.
Thanks & regards,
Loi -
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 -
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.
-
Purchase Order Document Type Defaulting in ME58 while converitn PR to PO
Dear All
While converting Purcahse Requesition to Purchase Order in ME58, System defaults one Purchase order document type . Ofcourse we can overwrite that
But would like to know how this defaulting can be controlled in SAP
Regards
ShyamHi,
If you have maintained an "Order Type" in table T160 (customizing
transaction OMH5) for the entry "ME21", then this value will be
defaulted in the pop-up in transaction ME58. Otherwise, the "Order Type"
of the Requisition will be defaulted.
The following code block of program (Note 125969) is for your reference:
SELECT SINGLE * FROM T160 WHERE TCODE EQ SY-TCODE.
IF SY-SUBRC EQ 0 AND NOT T160-BSART IS INITIAL.
RM06E-BSART = T160-BSART.
ELSE.
SELECT SINGLE * FROM T160 WHERE TCODE EQ 'ME21'.
IF SY-SUBRC EQ 0 AND NOT T160-BSART IS INITIAL.
RM06E-BSART = T160-BSART.
ELSE.
RM06E-BSART = BAT-BSART.
ENDIF.
ENDIF
According to the code above, the system first checks the table T160 for
ME58, if there is no data then for ME21, if there is no data, then it
defaults from PREQ.This is the same as described in the note 114213.
BR
Nadia Orlandi -
Purchase order Document date in AP Downpayment invoice PLD
Dear All,
Is it possible to capture purchase order Document Date in AP Down payment invoice PLD.My client want like this.I have tried,but i am not able to capture this field in AP Down payment invoice PLD.please give me the solution for this,If it is possible.
Thanks,
Silpa.Nhi silpa,
Create a user defined field in row level of marketing documents.
Apply formatted search using query
Select $[OPOR.TaxDate]
select auto refresh
when changing field Document Date in header level.
On copying purchase order to ap downpayment invoice Document date will copy to it.
U can also bring it to PLD by creating database field with table DPO1,column U_XXX
Hope it will solve problem.
Jeyakanthan -
How to configure Item Category in Purchase Order document
Hi
Can someone tell me how to configure the Item Category in Purchase ORder document? This field is displayed next to Account Assignment in PO screen.
Thanks,
Lin-LinI think your issue is screen layout of the PO
please go to
SPRO-MM-Purchasing-Purchase order-Define Screen Layout at Document Level
here you can select the ME21N and double click on it
on field selection of basic data you can make item category is optional than it will be avialable
if still you find the problesm than check your field selection of your document type and change that field selection as above mentioned. -
Material Statuses based on the Purchase order Document type
Hi Experts,
We need to maintain the Plant material status based on the purchase order document type.
Example - If I am using NB for normal purchase orders and ZB for STO procurement then, there should be a material status which should give warning message - 'do not use ' for ZB STO purchase orders and it should allow to create NB purchase orders for that same materials.
Please advise what are the possibilities?
Thanks
Regards
MMHi Gurus,
Thank you for your reply, Please find my replies below
@@ - Mallinath - We need this restrictions for some type of materials ( with specific Material types) which should not be procured through inter company STO process, buying plant should use the normal purchase. for other Material types they should be able to use the inter company STO process.
@@ DEV - We are already using the Spl. Procurement keys for inter company STO process.
Example - Material type ZXYX should not use the inter company STO process, but it should be allowed all other processes.
Please advise how we can control this process?
Thanks
Regards
Raja -
Performance Issue, Unable to pull all production Orders in given statuses
HI All,
I have a requirement to pull all production orders that are in the created or released status and then action some different things in the program such as adjusting dates, etc. The issue I'm having is that as the volume of production orders grows the select statement stops being able to complete and pull these production orders. I've tweaked this before and it was able to work for a few weeks but has now reached it's limit again. I tried using the trace and SE30 to analyze the program as I've read suggested here, however it's been difficult to try adjustments as the program runs in about 3 second in the development environment. Our quality environment, which has roughly half the volume of the production system ran in about 15 seconds. So I am unable to duplicate the issue until the program is moved to production.
Here is the select statement:
SELECT k~aufnr
FROM aufk as k INNER JOIN afko as f ON f~aufnr = k~aufnr
INNER JOIN jest as j ON k~objnr = j~objnr
INTO CORRESPONDING FIELDS OF TABLE it_aufk
WHERE k~aufnr IN s_aufnr "Order Number select option
AND k~werks IN s_werks "Plant select option
AND k~auart EQ u2018PP01u2019 "PP01 std orders only
AND k~kokrs EQ u20181000u2019 "Seneca Controlling Area
AND k~autyp EQ u201810u2019 "PP Production Order
AND k~loekz EQ space "Deletion indicator
AND ( j~stat EQ u2018I001u2019 "CTRD, created status
OR j~stat EQ u2018I002u2019 ) "REL, released status
AND j~inact EQ space. "status not inactive
There are a couple thoughts I have to try, but I don't know of any good way to verify if helping given the volume differences until in production so am looking for feedback. Here's the ideas:
1. Use the field IDAT2 in AUFK to determine if an order is not TECO'd , rather than using the JEST table. Testing this in Dev had increased run time versus how I have it written now, but may be helpful with larger volume and/or if an index is put on this field. Thoughts?
2. Separate the select statements to read AUFK and JEST separately and instead use the FOR ALL ENTRIES command. Seems to be a lot of conflicting thoughts on which works better, thoughts on this particular case?
Also, there is another program that pulls only production orders in Created status, and it doesn't have this same issue.
Thanks in advance for any help,
Kyndal
Edited by: Kyndal Copley on Oct 1, 2009 6:46 PMI have three recommendations for your join.
1) Assuming that fields AUART and KOKRS are always known (constants) I recommend that you move them up in the where clause (like illustrated) to ensure that the system uses index C.
2) AUTYP EQ '10' seems superflous. In addition it seems to increase the search time. Check with your functional consultant if there could be a production order with AUART EQ 'PP01' and AUTYP NE '10'. If you will never encounter this situation it makes more sense to drop the clause AUTYP EQ '10'.
3) INTO CORRESPONDING FIELDS OF TABLE usually takes longer than INTO TABLE. Define the table with AUFK with just field AUFNR so that you can use the clause INTO TABLE.
SELECT k~aufnr
FROM aufk AS k
INNER JOIN afko AS f
ON f~aufnr EQ k~aufnr
INNER JOIN jest AS j
ON k~objnr EQ j~objnr
INTO TABLE it_aufk
WHERE k~auart EQ 'PP01'
AND k~kokrs EQ '1000'
AND k~aufnr IN s_aufnr
AND k~werks IN s_werks
AND k~loekz EQ space
AND ( j~stat EQ 'I001' OR j~stat EQ 'I002' )
AND j~inact EQ space. -
Creating a purchase order form that has a flowable layout" Help Tutorial
Regarding the "Creating a purchase order form that has a flowable layout" Help Tutorial, I can't seem to get the data to pull in for just the PO in question, is there a secret?
Ideally, it should create one form for each PO with the detail lines for each PO on the individual forms. Can we do this?
Many thanks!Hi
If the smartform purchase order is not available in your system
means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
Thanks and Regards
Arun Joseph -
Purchase Order Document type FO?
Hi,
Why we need to use in Purchase Order Document type FO?
With Document type NB also we can make Services ,Right?
ThanksHi
FO - Frame work order Document type is a standard document type , which is used for Blanket Purchases, Purchase of services.
The FO document type has a Validity Start & End date feature whcih is not in the NB document type(You can get the same in NB also after cusotmization)
Services & limits are also presnet. The FO document type is limited to usage for Iterm categories
Standard
B Limit
D Service
All these can be made for NB also, but only after customizing.
Thanks & Regards
Kishore -
Restrict purchase order document type at plant level
Dear,
I would like to restrict the purchase order document type at plant level,
Plz help me.Hi Dear,
at the Plant level you have to use the below given Authorization Objects for the Users in different Plant
M_BEST_BSA Document Type in Purchase Order
M_BEST_WRK Plant in Purchase Order
Give the values of the respective Plant and Order Type for the Respective Users.
For more help you can contact your Security Team.
but before that please check out in the T-Code SU24, if both the Objects are active, if not then ask the ABAP person to activate them.
Hope it helps you.
regards,
yawar Khan
Maybe you are looking for
-
I have recently dropped Earthink as me dial-up provider. I now am using Virgin Mobile Broadband2GO. I was using Safari. I am now using Yahoo! Mail Plus. It suggested I switch to Firefox. I had an older version of Firefox (2.0.0.6) and started using i
-
Hi, I deleted the mail.app in the bid to save space but i want to re-install. I have inserted the install disk and tried to do it that way but the version is too old. in the box i was told to install the combo update which one do i install and will i
-
My Ipod classis won't take a charge. it blinks say's "connect to power" blinks again and say's charging. I wont synco to Itunes. Can anyone help me?
-
Is there a way to relate a specified field in a user table to a field in a Business One table? Edited by: Darius Heydarian on May 2, 2008 2:57 PM Edited by: Philip Eller on May 16, 2008 8:55 AM Edited by: Philip Eller on May 30, 2008 8:45 AM* Edited
-
Flash Player has stopped working...over and over again!
I get this message whenever I try and watch a video, same message for any page that uses flash, same message no matter which browser I'm using. This problem began with version 10, and I was using older versions of Flash Player until the other day whe