Order qty field in bapi and exit
Hi All,
Pls resolve my issue......
I am creating the sales order through 'VA01' t-code.Now based on some conditions I will create a new sales order through BAPI_SALESDOCU_CREATEFROMDATA1 in t-code. I could not found the order quantity field in tables of BAPI thus I am not able to update the order quatity(kwmeng in vbap) for new sales order. Somebody suggested me that I need to update the schedule line item req_qty(its not working).
*Second Issues:*++
I am writing the code in SAVE DOCUMENT user exit , this is going into infinite loop. Can anybody suggest me the correct EXIT too.
Points will be given
Thanks in advance.
Hi Friend,
For the first point:
Pass quantity in TARGET_QTY of ITEM parameter
and REQ_QTY of SCHEDULE line parameter of the specified BAPI.
It will solve ur problem.
Please clarify little bit on second point.
Regards
Krishnendu
Similar Messages
-
Total qty field in OACT and PCH1 tables
Hi,
What field in the OACT and PCH1 tables will give me a total quantity of pieces on the a/p invoice or purchase order, respectively?
Thanks,
ShelbyHi
Are you trying add the fields that are present in Suda query.?
You can just use Ctrl Click on the colum and it gives you a total .
Otherwise ,try this
you need to add field and same to group if you are using sum
SELECT T1.DocNum AS 'Document Number',T1.CardName , T1.DocDate,T1.Comments,SUM(T1.TotalExpns) AS 'Total Freight Charges',
SUM(T0.Quantity) AS 'Quantity'
FROM [dbo].[PCH1] T0 INNER JOIN [dbo].[OPCH] T1 ON T1.[DocEntry] = T0.DocEntry
WHERE T1.DocType = 'I'
GROUP By T1.DocNum,T1.Cardname,T1.DocDate,T1.Comments
Hope this help
bishal
Edited by: Bishal Adhikari on Mar 6, 2009 1:21 PM -
Sales Order Qty Field Disabled
Hi Gurus,
Good Day to all!
We have this Sales Order Type which whenever i use, the Order Quantity is always disabled. Other SO Document type does not behave like this. Can i ask if this is caused by a configuration in the system? I checked the user-exist in the SO and did not find anything related to the SO type. Please help.
Appreciate your reply.
Thanks and Best Regards,
JV NunezHi there!
Thanks for the reply.
I tried SDH0 but i'm sad to say that it did not answer my question. Tcode used to create a Sales Order is VA01. Only this particular Sales document type makes the ordr qty grey out. Other doc types works fine and requires to input a qty. Is this problem not related to item category or the sales doc type?
Thanks and Best Regards,
JV Nunez -
Report on pending order qty,opening stock, and closing stock
Any standard Report available on pending order qty against opening stock, and closing stock.
Points assured
MohanHi Mohan
There is no report in standard SAP for stock in transit that is what you are refering to Pending order Qty & opening stock.
You can get report in ME2M, ME2L for pending PO's.
In MD04 you will get all these stock, PO Qty, & Closing stock but this is for individual material this has to be made customized report in reporting format same thing we have done in one of our project.
Regards -
Min Order Qty(MOQ) , and Std Packing Qty (SPQ)
Hi
I have requirement In In MRP, That is MOQ, and SPQ, Min order qty we can Specify in MRP1, but the problem is Std Packing qty(SPQ),
Scenario, : My client MIN order qty is 5000 pcs , and std packing qty is 500.
If the Req Cross
More than 5000 and Less than 5500 , Plo/Pur Req should create for 5500,
More than 5500 and Less than 6000 , Plo/Pur Req should create for 6000,
etc
Thanks in advacne
MadhuHi daval
As you told i have specified , MIn ord qty asn Std packing qty but the out come is quit diff Please expalin y system giving ouput like this,
Eg:1) IF i Give MOQ: 100 and Rounding value 5
My re Dep qty is 80 it is creating Pur Req for 100
2) IF i Give MOQ: 100 and Rounding value 15
My re qty is 80 it is creating Pur Req for 100
3) IF i Give MOQ: 100 and Rounding value 18
My re qty is 80 it is creating Pur Req for 100
4) IF i Give MOQ: 100 and Rounding value 25
My re qty is 80 it is creating Pur Req for 100
5) IF i Give MOQ: 100 and Rounding value 29
My re qty is 80 it is creating Pur Req for 100
6) IF i Give MOQ: 100 and Rounding value 35
My re qty is 80 it is creating Pur Req for 105
7) IF i Give MOQ: 100 and Rounding value 40
My re qty is 80 it is creating Pur Req for 100
8) IF i Give MOQ: 100 and Rounding value 45
My re qty is 80 it is creating Pur Req for 100
9) IF i Give MOQ: 100 and Rounding value 52
My re qty is 80 it is creating Pur Req for 102
10) IF i Give MOQ: 100 and Rounding value 60
My re qty is 80 it is creating Pur Req for 120
11) IF i Give MOQ: 100 and Rounding value 67
My re qty is 80 it is creating Pur Req for 134
12) IF i Give MOQ: 100 and Rounding value 74
My re qty is 80 it is creating Pur Req for 148
13) IF i Give MOQ: 100 and Rounding value 75
My re qty is 80 it is creating Pur Req for 150
14) IF i Give MOQ: 100 and Rounding value 78
My re qty is 80 it is creating Pur Req for 156
15) IF i Give MOQ: 100 and Rounding value 80
My re qty is 80 it is creating Pur Req for 100
16) IF i Give MOQ: 100 and Rounding value 85
My re qty is 80 it is creating Pur Req for 100
Can u please expalin how the rounding value is Caluclating in the above senario, It is not Meeting our requirement
MY req Is
eg : MIN order qty is100, ans std packing qty is 55, Dep Req is 80, it should Plan for create Min Order qty 100
MIN order qty is100, ans std packing qty is 55, Dep Req is 110 , it should Plan for 155 qTY
MIN order qty is 75 , ans std packing qty is 10, Dep Req is 40 , it should Plan for create Min Order qty 75
MIN order qty is 75 , ans std packing qty is 10 , Dep Req is 76 , it should Plan for qty 85
MIN order qty is 500 , ans std packing qty is 250, Dep Req is 498 , it should Plan for create Min Order qty 500
MIN order qty is500 , ans std packing qty is 250 , Dep Req is 502 , it should Plan for 750
First it should check Min order qty , if dep req is less than Min order qty it should create req for For Min order qty ,
if the req is more than Min order qty then it should create Req By considering min order qty+Std Packing qty.
Thnaks and In advance ,
Reg
Madhu
Edited by: MADHU SUDHANA on Sep 25, 2009 10:04 AM
Edited by: MADHU SUDHANA on Sep 25, 2009 10:34 AM -
Show Order Qty, Shipped out Qty, Open Qty for each SCHEDULE line of Orders?
HI Experts,
I need to show the
Order Qty
Shipped Qty
OPEN quantities(Un Shipped quantities)
at each SCHEDULE line level for all Sales orders.
So, am pulling the date like,
Order qty from VBEP-WMENG and
Open Qta from VBBE-OMENG
Then am calculating like,
Shipped Qty = VBEP-WMENG - VBBE-OMENG
But, still some SCHEDULE lines r missing in VBBE table!!
so, pls. let me know that,
1) Is there any other alternative ideas for my requirement?
2) Why some SCHEDULE lines r missing in VBBE table?
thanqTry this function module:
CALL FUNCTION 'RV_SHIPMENT_VIEW'
EXPORTING
shipment_number = tknum
option_tvtk = 'X'
option_ttds = 'X'
language = sy-langu
option_items = 'X'
option_stawn_read = 'X'
option_segments = 'X'
option_partners = 'X'
option_messages = 'X'
option_package_dialog = 'X'
option_flow = 'X'
activity = 'V'
IMPORTING
f_vttkvb = vttkvb
f_tvtk = tvtk
f_tvtkt = tvtkt
f_ttds = ttds
f_ttdst = ttdst
TABLES
f_vttp = i_vttpvb
f_trlk = i_vtrlk
f_trlp = i_vtrlp
f_vtts = i_vttsvb
f_vtsp = i_vtspvb
EXCEPTIONS
not_found = 1
delivery_missing = 3
OTHERS = 99. -
Min.order Qty from Info record in PR in MRP
Hi,
Is there any setting by which , while running MRP, system will take min.order quantity from info record (instead of material master) ?.
If not , then is there any way to achieve the same?Hi Csaba Szommer
You are right, If you try to convent PR in to PO, and if you have maintained min.order qty in info record, you get message ( error / warning ) as per your message setting.
Your question is also valid that if the same material is being procured by many vendors, and each vendor might have different min. order qty, Hence it has to be picked from info record only.
But I have tried with all the possibilites. While converting PR into PO, based on system message you can correct the Quantity, but if MRP generates PR ,based on the min.order qty in info record, then no need to handle such messages.
You can try also, maintain different min. order qty in Material master and info record, it will always take from Material master and never from info record.
But Logically, it should take from info record.
That is why I wanted to make the system take info record min.order.qty.
So it would solve the problem if you know some setting that takes min.order.qty from info record.
( ref: I am aware of planned del. time , there is one checkbox in plant parametes, if you select that , system will take planned del.time from info record , if you don't, system will take it from material master. So if you know any such setting for min.order.qty, pls let me know. I could not find any such possibilities)
Thanks -
Sales Order Number Field in f-29
Dear Sap gurus,
While i am posting in f-29 system asking date,company code , Customer 2000 specil g/l k amount 300 Bank a/c g/l 250000 amount 500 Text: Cus.adv payment and display document overview in this one i need sales odrer number field how can i get this one. obc4 also like g001 is sales order number field is optional and ob41 in this one field is optional.
Regards
KanthHi,
Enable the filed for the GL accounts assigned to customer account and the spl GL being posted to and also check if the Field status for the posting key 19 that i allows the field. I am seeing the field as ready for input in the screen please check.
Regards
K.R -
Disabling the Qty field for Input for Sub items in Sales Order and Delivery
Hi..
I have a requirement, where by we need to disable the qty field vbap-kwmeng for input for sub items of the BOM.
I am planning to use the user exit USEREXIT_FIELD_MODIFICATION...in the include MV45AFZZ for sales orders.
But i need to disable the input only after the BOM Explosion and item category determination in the sales order.
Can i Use the same exit ?? what additional conditions i need to take into account.
also we need to disable the delivery quantity field also for the sub items of this sales bom.
I see that this User exit is not available in delivery procesing. How to acheive the required functionality in the delivery processing...
your advice is much appreciated in this matter.
Regards
Srinihi,
Route is determined
1.Country of Departure & Departure Zone taken from Shipping Point
2.Country of Destination & receiving Zone from Ship to party
3.Shipping condition from CMR
4.Transportation Group from MMR
5.Weight Group which is optional.
Check the above.
Route is determined in delivery.
ASHA -
Bapi for sfg dependent dem,snp planned order qty, and ppds planned orde qty
Hi Gurus,
I am not much familiar with APO, so please help me,
Input details:
Field Value
Planning Version 000
Source Location * 1001 Single/Multi Value
Product * 1000061 Single/Multi Value
Production Planner * PRC Single/Multi Value
Start Date *
End Date *
o/p:
Source Location Date Semi-Finished Material Material Description SFG Dependent Demand SNP Planned Orders qty PPDS Planned order Qty Total SFG Variance due to Lot size Total SFG Variance reference to dependent demand
1001 15-Jul-10 1000041PP PRIMARY FF MILK 3% FAT 340 412 420 8 80
1001 15-Jul-10 1000041PP PRIMARY FF MILK 3% FAT
1001 15-Jul-10 1000041PP PRIMARY FF MILK 3% FAT
Is there any bapi to fetch the data as shown in o/p.
ThanksHi Phani,
Tryout the below BAPIs
IF10503 (object)
BUS10503
Regards
R. Senthil Mareeswaran. -
Delivery Qty and OPEN Qty Field in SALES Order Delivery Reports.
Dear All Experts.
Please Help me for which field put for Delivery QTY. and it is necessary to calculate OPEN QTY. or we can put directly from field.
i used this field for Order Qty : WMENG.
Please Guide me.
Thnks With Regards :
Bhavesh Panchal.Delivery qty - LIPS-LFIMG.
You cannot get open quantity directly.
use this way.
Delivery qty - LIPS-LFIMG.
order qty - VBAP-KWMENG.
open qty = delivery qty - order qty. -
User exit for sale order qty change
Hi all,
In our industry we are creating Sale Order for MTO Scenario by using T.Code VA01 . Most of the time after taking the MRP run and raising PO for BOM components, Users are changing the qty in the sale order . eg. and due to that it is becoming difficult to make necessary change in production programe. .Now please give me solution/ userexit so that anybody cannot change the sale order qty and it must be check the authorised userid to do necessary change in sale order.
I am waiting for your valuable suggestion.
Thanks & RegardsHi LIMAYE,
You can use user exit include 'MV45AFZZ'.
Make necessary changes in FORM USEREXIT_MOVE_FIELD_TO_VBAP.
XVBAP will contain the old values before making the changes. You can comapare the quantity wtih VBAP field. -
Sales order simulation bapi and material price group???
Hello every one...
I am calling BAPI_SALESORDER_SIMULATE to get the pricing simulation of a sales order, My requirement is that I want to enter Material Pricing group (KONDM) so that pricing be simulated according to the material pricing group I enter..... but the simulation bapi does not provide this field,,, I cannot use sales order create from data2 bapi,, as it does not provide condition table as output, which is also my core requirement,,, my question is that is there some bapi/fm where I can provide material pricing group along with other info and retrieve complete simulation of sales order pricing with condition details aswell....
thanksManaged it using abap memory and prepare hearder info user exit routine
-
User exit to change total qty field in co01
Dear Friends ,
i need to increase total qty field by 5 in co01 transaction in general tab . which exit or badi should be used to accomplish the task .
Thanks
Amit RanjanHi,
try from these exits-----
Exit Name Description
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for prod. process order
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines
regards,
Prashant -
Outline Agreements - min order qty and regular vendor flag
As a part of E Source Integration with ECC we are planning to leverageusing Outline Agreement(Contract Type MK) to store
Price and other Business Terms for Material / Vendor combinations. Currently we are
using Purchase Information Record with minimum order quantity and
regular vendor flag functionalities, and these are maintained manually.
We intend to use Minimum Order qty and Regular Vendor Flag
indicator in Outline Agreement as well, however noticed that these fields are
not available in the screens. Does anyone know if these fields can be enabled in an outline agreement?Guys
thanks for reply..
But I thnik my question was not fully clear as the aswers didn't make sense to me...
As a logistics consultant .I know that I can maintain Min Order qty for a material + vendor at PIR level..
My question ..if I buy 10 items in a PO from a sinle vendor..is there any option to restrict Min qrder qty for these combination of materials..
or in other words vendor says he dont care about number of items ,but the lot lot should be min..10 cartons only..
appropriate points will be rewarded.
thanks in advance.
Maybe you are looking for
-
If you think the battery life on a PB is "amazing" then you should try an iPad. Maybe I have a dud but on many days my PB dies after only 3-4 hours of use and a few more hours on standby.
-
[Solved] How to force enable rounded corners in a theme on GNOME 3.16
Hello I just recently started using arch (and I regret why didnt I use it earlier -.-, such a great OS). I put up Gnome 13.16.2 as my desktop environment particularly because I like its interface (rounded corners, the ui etc. Kinda reminds me of my f
-
Insert into cursor one at a time
Hello, Is it possible to insert one value per cycle execution on a cursor? For example: c_anuncios cursor_anuncios; c_result my_result_cursor; BEGIN LOOP EXIT WHEN(c_anunciantes%NOTFOUND); --get one comparison value FETCH c_a
-
Help: Export format from FCP for DVD Studio
What settings do I export my 3 minute film so I can use DVD Studio Pro? (What size do I want if I want my film to be wide screen just like a professional DVD movie you buy at your nearest store?) Thank You!
-
Inconsistent icon sizes within same folder view
Subject says it all - each of the folders (as you could probably surmise) are just the extra documentation and such from some of the apps I use. But I don't know why the one folder's icon is smaller than the others in the same folder/view - that just