Purchase Order Date for Price Determination
Hi Experts,
I need to update the Price Determination Date every time the PO Statistical Date changes, so that it is equal to the PO Statistical Date. Which BADI or User Exit should I be looking at?
ME_Process_PO_Cust, ME_PO_Pricing_Cust, ME_Check_All_Items are what I'm looking at now. Table EKET and EKPO hold the two fields SLFDT and PRDAT.
Does anybody have an idea which BADI I should use?
Points will be awarded to the helpful answers.
Thanks,
K
Solved the problem using BADI Process_PO_Cust in method Process_Item
Similar Messages
-
Purchase order data for ATP category BH and BI not retrieved
Hi Experts,
I have a requirement where I need to extract purchase orders data from the bapi BAPI_POSRVAPS_GETLIST3. I am passing the locations, products and ATP categories AG,EF,BF,BI and BH. However, my bapi works correctly for AG,EF and BF, but it does not retrieve the data for BI and BH categories.
I have debugged the bapi and found that it is unable to retrieve data from the live cache.
Can anybody please help me out and let me know the exact reason for this issue? I have checked the return table of the bapi and it does not give any error message as well.
Looking forward to your reply.
Thanks in advance.
--Warm Regards,
Prajakta K.Hi,
BI (stock transport order) and BH (PreqRel) are demand elements for which there exist corresponding receipt element as BF (Purchase order) and AG (Preq) respectively. BAPI will give data for these categories.Thus you can get data for BI and BH from corresponding BF and AG.
Similarly EF (Dep:Preq) is receipt element and you will not get data for corresponding demand element which is available in the system as EG (Dep:ConRel).
I think BAPI is working fine.
Regards,
~Vaibhav -
MRP - firming Purchase Order dates for MRP run
We are using demand management and MRP to create purchase requisitions for external procurement. It works fine and creates purchase requisitions based on the monthly demand entered in MD61. However, if I have a purchase order with a delivery date of a few months in the future, MRP always asks me to reschedule the order to meet current demand. i.e. it reduces the quantity on a requisition because it expects the rescheduled PO to meet the demand. In addition, it creates a requisition for the full demand a few months out, even though I have a PO delivery on that date (as it expects me to move the PO to the current date) See example below
Does anyone how to get MRP to treat a PO delivery date as fixed or firmed and create requisitions based on this?
We are using MRP type PD, a planning strategy that looks only at LSF in demand management and KSL in SD requirements.
Thanks
Donal
Scenario:
Current Stock: 500 KG
Safety Stock Level: 1000 KG
Demand:
Aug: 1500
Sep: 2000
Oct: 3000
PO del date 01.10.08 : 750 KG
When I run MRP it proposes the following
01.08.08 Requisition: 1250 KG. Aug demand (1500) + deficit below safety stock (500) = 2000 less PO that it is saying I should move to July (750). (I want this qty to be 2000)
01.09.08 Requisition: 2000 KG. Sep demand (2000) - OK
01.10.08 Requisition: 3000 KG. Oct demand (3000). Doesnu2019t look at PO dated 01.10 at all. (I want this qty to be 2,250)OMDW
rescheduling horizon days fixes this. -
Purchase order date posting problems
Hi all,
I have done an interface to post purchase/ sales order into sap. ive populated fields correctly into the segments and executed the fm. its posting all the data except the purchase order date in the header. i dont know why its doing dat. the field is populated into the segments and i can see it. but its not getting reflected in the order created .. can somebody help me with this. ive used date segment e1edk03 qualifier 22 field is iddat.
thanks,
kishore.Hi,
Im using orders 05.. FM idoc_input_orders
Create Document header date segment - E1EDK03
*. I.e. set header level required delivery date
e1edk03-iddat = c_edi_iddat_002.
e1edk03-datum = date_required. "Set the date required
PERFORM add_segment USING c_segnam_e1edk03 e1edk03.
Header Level Customer purchase order date
e1edk03-iddat = c_edi_iddat_022. " default value 22.
e1edk03-datum = cust_po_date.
PERFORM add_segment USING c_segnam_e1edk03 e1edk03.
Header Level Pricing Date
e1edk03-iddat = c_edi_iddat_023.
e1edk03-datum = pricing_date.
PERFORM add_segment USING c_segnam_e1edk03 e1edk03.
Wat i could observe from fm idoc_input_orders fm , fm is not posting in the purchase order date for identifier 22.. u can have a look at it if u want.. include LVEDAF5W
is there any way to post this date plz
thanks -
Tables for sales & purchase order data relating to delivery
hi all,
i am writing a report to download all the delivery data after the delivery is created.i have to download the sales order data & purchase order data relating to this delivery also.
i am using likp & lips table for delivery.which tables i
should use to get the sales order data & PO data for the same delivery (likp-vbeln). i.e i need the sales & purchase order related tables which has link with delivery tables like likp & lips etc.
plz advice me. it is very urgent.
any idea is highly appreaciated.
Regards
pabitrain Addition to NM ,
in case of STO there is no Sales Order , Process will be like this
PO-->Delivery->PGI--->Billing then u have to
link
*getting the History data of the PO
select ebeln
ebelp
belnr
menge
from ekbe
into corresponding fields of table w_ekbe
where ebeln eq w_lips-vgbel
and ebelp eq w_lips-vgpos
and bewtp eq 'L'.
Regards
Prabhu -
Hi ,,
Can any one explain me ,,if you select date of price determination as "GR date".. what exctly this price determination takes place.
As per my understanding ,, it will pick the latest price available in purchase order at the time of GR .,, ie,,, if the price changed later,, while doing GR system will determine the last price on the date of GR..
I would like know what actualy the system does if the price determination miantainted as any one of the below options,,in vendor master or in Info record,,or in Purchase order.
Date of Price Determination
1)Purchase Order Date
2)Delivery Date
3)Current Date
4)Manual
5)GR Date
I am not find any help on this ,,plz suggest me if you know some thing.
HI Stephen,,
Could you please respond on this issue.
Thanking you in advance.
Regards,
Sudhakar babu.Hi shakir,
As per your example... in the PO price determination is maintained as "GR" date... it means while doing goods receipt in Feb,,, system will determine the price as 20 and Gr/ir will be posted for that ..
While posting invoice in march, system will determine the price from GR and post 20 to Vendor A/C.
Is this correct?
If price determination maintained as other options like ,,, current date ,,,in which price system will capture ,,,while doing GR ,, and invoice posting.
Any help regarding complete functionality of each of the price determination dates.
please give some link if possible.
Thanking you,
sudhakar -
NEW FIELDS FOR PRICE DETERMINATION in MM
Hi all experts,
we have added new field in customizing so that in the purchase order in MM we can use new fields for price determination.
However we do not finde the exit or program were we can set a value for these fields.
for instance, we want to differenciate countries belonging to the EU and not. We create a yes/no field and get its value from table T005 where each country has this info. Everything seems to be ok, but our field is not populated into KOM* tables and therefore we don't go through the condition price...
Any ideas? Thanks.Hi,
You can try using Info Record.
Thanks,
Venkat -
Doubt in uploading purchase order data using BDC
Hi friends,
how to upload purchase order data.
1) In both BDC and BAPI which one is preferable?
2) for suppose if it is through BDC, how to use? what are the transactions that we can use(SHDB, ME21N,ME21)?
3) To execute the job in background, is it possible for both call transaction and session method.
Thanks in advance
Sreenivas kIt really depends on the number of records you have. Still for a set of 5,000 records my answer to your questions will be:
1) In both BDC and BAPI which one is preferable? - <b>Go with BDC</b>
2) for suppose if it is through BDC, how to use? what are the transactions that we can use(SHDB, ME21N,ME21)? - <b>Yes, its SHDB for recording, SE38 for abap program and ME21 for PO. Avoid SAP Enjoy transactions for recording as you may end up having problems wiht it.</b>
3) To execute the job in background, is it possible for both call transaction and session method. - <b>If you use call transaction method then you have to schedule the job to run in background or simply run it through F9 instead of F8. In case of session method you can chose to process the session in background. However I would suggest you go with BDC Session method for this.</b>
- Guru
Reward points for helpful answers -
Additional field in the sales order header Purchase Order Data tab
Hi,
I want to add an additional field in the below screen:
VAO1 > Go to > Header > Purchase Order Data >
Under Sold to party section i want to add an additional field.
Is this possible through configuration?
Please let me know.
Thanks in advance
Edited by: Kase on Dec 20, 2011 7:06 AMHi Kase,
Check this below link it might be helpful for your issue
sales order - Additional data B
new fields in sales order
Regards
Pradeep -
Updating Purchase Order data in VBKD table
Hello,
We are trying to update Purchase order data in VBKD table for Sales Order at Item level. When sales Order is created, VBKD has a default record with VBELN = 'sales order number' and Item = '00000'. We want to update BSTKD_E field with Purchase order number for VBELN= 'sales order number' and Item = '00010'.
We wrote our logic in USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_MOVE_FIELDS_TO_VBKD in MV50AFZZ to append new entries in XVBKD with VBELN= 'sales order number' and Item = '00010'. But in this case Sales order is not created with UPDATE TERMINATED message. We are not sure if we can append a new record in XVBKD.
wa_xvbkd = xvbkd.
wa_xvbkd-posnr = wa_xvbap-posnr. "00010
wa_xvbkd-bstkd_e = vbkd-bstkd. "PO no
wa_xvbkd-posex_e = wa_xvbap-posnr. "Purch. order item no
wa_xvbkd-updkz = C_I.
APPEND wa_xvbkd TO xvbkd.
CLEAR wa_xvbkd.
Please advice the suitable way to have a Purchase Order item level data in Sales Order.
Thanks
RohitHi,
You can try these FM to update info record.
ME_DB_UPDATE_INFORECORDS
ME_UPDATE_INFORECORD
ME_UPDATE_INFORECORD_COND
ME_UPDATE_INFORECORD_PD
Check the sample code on BAPI_PO_CHANGE
http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
Regards,
Shiva Kumar -
Purchase Order date vs Invoice date
Hi to all.
In our system we run t-code me21n to create purchase order and later on we run t-code MIRO, MIR7 etc. to post incoming invoice. My question is how do I prevent system from letting end users enter invoice date that has earlier date than purchase order? Let's say purchase order was created on December 3-rd, but end users enter as an "invoice date" in the t-code MIRO December 2-nd and system lets it go through, not even warning message. What I want to accomplish is to create "E" message and not let end-users enter invoice date earlier than purchase order date.
Help is sincerely appreciated.
Regards,
Nazim
Edited by: Nazim Gasimzade on Dec 4, 2008 3:32 PM
Edited by: Nazim Gasimzade on Dec 4, 2008 3:35 PMThanks for your reply.
Our R3 system is designed for government funded organizations. The issue is that government funded organizations are not supposed to have PO entered in the system until they are provided with funds which are quite often get delayed because of all the paper work that has to take place. Suppliers know about it and quite often they supply goods to budget organizations even before PO are in place. Once the budget organization receives the funds that they can spend, they enter PO details and invoice details but it turns out that invoice date is earlier than PO date. At very least we would like to have our system give a "W" message.
Regards,
Nazim -
SAP renamed 'Purchase Order Data' tabs but it is not changed in menu bar
In VA01/VA02/VA03 transactions, SAP has renamed the "Purchase Order Data" tabs at header and item level to "Order Data" but the Goto > Header and Goto > Item menu paths still have "Purchase Order Data" as the name. This is inconsistent. Is there an SAP fix for it?
Try wit this report RSLANG20
Best regards,
Mirek -
Regarding LSMW -- Purchase Order Data
Hi Friends,
I have one requirement i.e purchase order data need to be upload through LSMW via Direct input method.
=============
pls find the belwo flat file structure
old_PO material price qty
P123 M111 10 1
P123 M222 10 1
P123 M333 20 1
===============
Normally if I upload same data into SAP, it will create three purchase orders with different SAP numbers.
I want if old_PO number is matches with the previous record all the materials should be in single transaction and single Purchase order should be created.
Can any body help how to resolve this issue. This is very urgent.
pls explain in detail. I am using LSMW. I don't have no other option.
=====
please don't post any junk amswers.
=====
Thanks in advanceHi Raghunath,
Don't think that this reply is junk one.I cannot explain you in detail but try like this.
In the fifth step of LSMW,You can find Global data definitions & Processing times.
In any of these you can just fetch the values from database with reference to flat file data like..
select PO from ...where PO = source-PO.
if sy-subrc EQ 0.
skip_transaction. Using this function you can skip this record
endif.
Award points if useful.
Thanks,
Ravee.. -
I need help.
I have a database that contains all purchase orders
I'd like to be able to create a report that shows only the most recent order for each supplier
ordered by date. Sounds simple but I have been struggling with this for awhile.
ThanksCreate a group on the supplier name
create a group on the purchase order date - ascending order
place the output fields you want to see on the report in the footer section of the purchase order date.
Suppress the purchase order date header, the detail section and the supplier name footer.
You may need to do a 'top N' group sort to get it to sort by date, as the instructions I'm giving would put it in Supplier order.
Only the last purchase order data will display on the report. If you want to include Supplier specific information, such as address, phone or customer number you can place those fields in the Supplier group header.
This report will pull in all the data but only display the last record for each supplier's last purchase order (assuming they only have one purchase order in a day...if you have more than one in a day you may want to include a purchase order number group and move all the data into that footer).
If you're going to summarize, say, try to get 'total dollars for month', you'll need to use a 'running total' and specify the dates to be used in the Evaluate section formula. -
I Need interactive report to list the purchase orders details for a vendor
I Need interactive report to list the purchase orders details for a vendor that has interactive drill down options to give the detail of vendor from vendor master.
Hi
see this sample report
this is Customer wise sales orders
just make similar report just using LFA1, EKKO and EKPO tables instead of KNA1,VBAK,VBAP
REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
HEADING.
*TABLES DECLARATION
TABLES : KNA1, VBAK, VBAP.
*SELECT OPTIONS
SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
*INITIALIZATION
INITIALIZATION.
CUST_NO-LOW = '01'.
CUST_NO-HIGH = '5000'.
CUST_NO-SIGN = 'I'.
CUST_NO-OPTION = 'BT'.
APPEND CUST_NO.
*SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN ON CUST_NO.
LOOP AT SCREEN.
IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
MESSAGE E001(ZTJ1).
ENDIF.
ENDLOOP.
*BASIC LIST SELECTION
START-OF-SELECTION.
SELECT KUNNR NAME1 ORT01 LAND1 INTO
(KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
FROM KNA1
WHERE KUNNR IN CUST_NO.
WRITE:/1 SY-VLINE,
KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
KNA1-NAME1 UNDER 'NAME',
61 SY-VLINE,
KNA1-ORT01 UNDER 'CITY',
86 SY-VLINE,
KNA1-LAND1 UNDER 'COUNTRY',
103 SY-VLINE.
HIDE: KNA1-KUNNR.
ENDSELECT.
ULINE.
*SECONDARY LIST ACCESS
AT user-command.
IF SY-UCOMM = 'IONE'.
PERFORM SALES_ORD.
ENDIF.
IF SY-UCOMM = 'ITWO'.
PERFORM ITEM_DET.
ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
FORMAT COLOR 1.
WRITE : 'CUSTOMER DETAILS'.
FORMAT COLOR 1 OFF.
ULINE.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'NAME',
61 SY-VLINE,
63 'CITY',
86 SY-VLINE,
88 'COUNTRY',
103 SY-VLINE.
ULINE.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR SECONDARY LISTS
TOP-OF-PAGE DURING LINE-SELECTION.
*TOP OF PAGE FOR 1ST SECONDARY LIST
IF SY-UCOMM = 'IONE'.
ULINE.
FORMAT COLOR 1.
WRITE : 'SALES ORDER DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'SALES ORDER NO.',
40 SY-VLINE,
42 'DATE',
60 SY-VLINE,
62 'CREATOR',
85 SY-VLINE,
87 'DOC DATE',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR 2ND SECONDARY LIST
IF SY-UCOMM = 'ITWO'.
ULINE.
FORMAT COLOR 1.
WRITE : 'ITEM DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'SALES ORDER NO.',
40 SY-VLINE,
42 'SALES ITEM NO.',
60 SY-VLINE,
62 'ORDER QUANTITY',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*END OF PAGE
END-OF-PAGE.
ULINE.
WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
SY-PAGNO.
SKIP.
*& Form SALES_ORD
*& FIRST SECONDARY LIST FORM
FORM SALES_ORD .
SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
(VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
FROM VBAK
WHERE KUNNR = KNA1-KUNNR.
WRITE:/1 SY-VLINE,
VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
40 SY-VLINE,
VBAK-ERDAT UNDER 'DATE',
60 SY-VLINE,
VBAK-ERNAM UNDER 'CREATOR',
85 SY-VLINE,
VBAK-AUDAT UNDER 'DOC DATE',
103 SY-VLINE.
HIDE : VBAK-VBELN.
ENDSELECT.
ULINE.
ENDFORM. " SALES_ORD
*& Form ITEM_DET
*& SECOND SECONDARY LIST FORM
FORM ITEM_DET .
SELECT VBELN POSNR KWMENG INTO
(VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
FROM VBAP
WHERE VBELN = VBAK-VBELN.
WRITE : /1 SY-VLINE,
VBAP-VBELN UNDER 'SALES ORDER NO.',
40 SY-VLINE,
VBAP-POSNR UNDER 'SALES ITEM NO.',
60 SY-VLINE,
VBAP-KWMENG UNDER 'ORDER QUANTITY',
103 SY-VLINE.
ENDSELECT.
ULINE.
ENDFORM. " ITEM_DET
REPORT demo_list_at_pf.
START-OF-SELECTION.
WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
AT pf5.
PERFORM out.
AT pf6.
PERFORM out.
AT pf7.
PERFORM out.
AT pf8.
PERFORM out.
FORM out.
WRITE: 'Secondary List by PF-Key Selection',
/ 'SY-LSIND =', sy-lsind,
/ 'SY-UCOMM =', sy-ucomm.
ENDFORM.
After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
Secondary List by PF-Key Selection
SY-LSIND = 14
SY-UCOMM = PF06
Example for AT USER-COMMAND.
REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
START-OF-SELECTION.
WRITE: 'Basic List',
/ 'SY-LSIND:', sy-lsind.
TOP-OF-PAGE.
WRITE 'Top-of-Page'.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE sy-pfkey.
WHEN 'TEST'.
WRITE 'Self-defined GUI for Function Codes'.
ULINE.
ENDCASE.
AT LINE-SELECTION.
SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
PERFORM out.
sy-lsind = sy-lsind - 1.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'FC1'.
PERFORM out.
WRITE / 'Button FUN 1 was pressed'.
WHEN 'FC2'.
PERFORM out.
WRITE / 'Button FUN 2 was pressed'.
WHEN 'FC3'.
PERFORM out.
WRITE / 'Button FUN 3 was pressed'.
WHEN 'FC4'.
PERFORM out.
WRITE / 'Button FUN 4 was pressed'.
WHEN 'FC5'.
PERFORM out.
WRITE / 'Button FUN 5 was pressed'.
ENDCASE.
sy-lsind = sy-lsind - 1.
FORM out.
WRITE: 'Secondary List',
/ 'SY-LSIND:', sy-lsind,
/ 'SY-PFKEY:', sy-pfkey.
ENDFORM.
When you run the program, the system displays the following basic list with a the page header defined in the program:
You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
Regards
Anji
Maybe you are looking for
-
How can I mount a large sparsebundle (450GB) remotely without it hanging?
I have remote access to my Time Capsule set up and am able to see my files. Files on the drive I have no issue accessing, albeit slowly. Unfortunately, however, the files I need to access are stored in a large backup file. What I'm hoping is that th
-
Adding Licenses for Office 365 Pro Plus and Power BI
Hello. I have one license for Office 365 Pro Plus and one Power BI license. I want to buy another Power BI license to assign to a prospective client so he can log on to my Power BI site and view Power Pivot reports in the browser. I think that I need
-
I did some searches and in the past it sounded like the use of NFS wasn't recommended. Has this stance changed in the latest releases of the Sun Messaging Server? The reason I ask is because I currently rely on NFS with our current email system to di
-
Runtime.exec() - Problem when using cvs-command
I have a problem with the Runtime.getRuntime().exec() - Command. I try to execute a command to export files from our cvs-repository. As you hopefully know, cvs produces a lot of output. When I start my 'cvs export ... '- command from the console-wind
-
Pourquoi la pédale de piano reste en continu?
Bonjour à tous! Bon... sachant que je ne trouve nulle part ma réponse sur le net, j'en viens à écrire un petit message sur ce forum! Voilà mon problème: J'enregistre mes compos piano/chant sur garageband depuis quelques temps déjà. Pour le piano j'ai