BAPI & FM to read the Orders, Stock & Pegging Structureu0085
TC /SAPAPO/RRP3 Product View)
I am debugging the Context option in Product view to get the details of BAPI & FM to read the Orders, Stock & Pegging Structure
I have the List of it as follows:
BAPI_POSRVAPS_GETLIST2 To Read the Planned Orders
/SAPAPO/DM_ORDKEY_SELECT_ORDNO - To get GUID of the Order from LC
For Pegging Structure
/SAPAPO/RRP_GET_PRIMARY_REQMTS
/SAPAPO/RRP_LC_ORDER_GET_DATA
Please let me know if you have any idea about the BAPI for Pegging Structure
Try /SAPAPO/OM_ORDER_GETDATA
/Shibu
Thanks for rewarding points if this is helpful
Similar Messages
-
Dear experts,
Could any body tell me how the pricing is read in the crm order ,could you tell me which function module is doing that.
ThanksHi,
Use the FM:CRM_PRIDOC_READ_OW to read the order price details.
Pass the order guid in import parameter IV_HEADER_GUID
Regards,
PePe -
Hi,
I have an Issue.......
We want sales order stock to be blocked immediately after creating a sales order..... and it should result in such a way that, in MMBE the ordered stock should be reduced from "unrestricted stock" and should be moved to "open sales order stock"... this all should be done immediately after saving sales order.......
Do we have any settings in Availability check...
For better understanding XYZ has placed a order 11245 (order No) with quantity 50 pcs.
lets say we have a unrestricted stock of 250 pcs...
Here what should happen is this "unrestricted use stock" of 250 should be reduced by 50 and moved on to "order stock".
Once the stock is moved from Unrestricted to order stock then the stock will be 200 and 50 respectively....
This all should happen immediately after saving a sales order...
Please dont suggest MB1B with movement type 413 as I already know, this becomes a manual process....
Please help... highly rewarded......
Regards
BageerathDear Bageerath
Assuming that your issue is not yet solved, you can try with this suggestion.
Go to material master, select MRP3 view and see what Strategy group is maintained there. Now go to OPPS, select the strategy what you noticed in material master and against that maintain Requirement Class 40. Assuming that your scenario is Make To stock, from SD point of view, your requirement would be fulfilled that is as and when sale order is created, stock will be allocated to that order and you can see in MMBE.
But for Make To Stock, we should not use this Requirement Class. So, please check with PP people, test this scenario and post the outcome.
thanks
G. Lakshmipathi -
V_V2 and V_R2 Replanning the orders
Have looked into the transaction V_R2 and with this transaction we see how many orders and can evaluate the order stock for a special material. V_V2 is used to make the real replanning and it seems that this can only be used for orders not yet confirmed. Is there any transaction or is it possible with this 2 transaction to also get a replanning for orders already confirmed or is it only CO06 that can be used for replanning the orderstock for a certain material.
Motive behind the question:
The shortage of material for the moment is a big problem but sometimes it happens that the supplier has been able to supply us with shorter delivery time even though the purchase order is confirmed with longer leadtime. Our orderplanners want to have a tool to make replanning for all orders with a certain material and it should be easy to update the confirmation for these orders.
In CO06 they have to manually update order for order.
Do you have any solution for our problems ?Dear Expert
Will you please explain me the comparative analysis of these three transaction
Regards
Vinay -
Sales Order Stock Configuration across the Supply Chain
Dear Colleagues,
here's my query. This is more related to configuring Make To Order on R/3 Side.
As a Requirement, my client would want that across the supply chain, to trace the stocks relevant for a particular Sales Order. One way I came across was using Sales Order Stock.
The Product Flow Network is like :
Plant > BSR > WH1 > WH2 > Invoicing Point.
(- No Planned Movement Doc in Plant-BSR) > STO(B-W) > InterCo PO(W1-W2) > STO(W2-Inv. Point)
What I would like to know is that using MTO strategy and Sales Order Stock, how can we configure the following scenario?
1. Sales Order is Created with Account Assignment
2. InterCompany STO and InterPlant STO can be created with Account Assignment Category Type 'E' and reference to the Sales Order-Item No.
3. Using STOs at BSR, Propogate the Demand to Plant, create a Planned Order with Account Assignment and Sales Order Reference.
4. Production and subsequent GR to Sales Order Stock at BSR
5. Subsqeuent Deliveries only against the Relevant STOs and GR to Sales Order Stock at all locations in the network.
I would like to highlight that the need for identification of linking SO to Production Order is only from the stage of SKU-production order at the plant to utpo final delivery from the Invoicing plant.
regards,
Sudhir
Edited by: Sudhir Gulati on Jul 23, 2008 12:05 PMTypically MTO situation is better modeled in PPDS since it does pegging through the network. In SNP we typically do dynamic pegging and hence it will be difficult to link the sales order all the way to production order. Having said that SNP does take into account available resource for planning some of which could have been consumed by MTO orders. This perhaps may not be helpful to your scenario.
As I said dynamic pegging is done with SNP. So when you use SNP in the network, you can basically check the product view to see the supply-demand links. (/sapapo/rrp3) These links are indicative and you should be able to use them for tracing purposes. -
Read the Internal Order GUID of the Batch
Hi,
In Product view, Reciept/Req element is showing one element 0000653225/0001/CC/(01.01.1970). If we go to context option, It is showing the Pegging structure.
I am working on one report in which User enter the number 0000653225 and Output comes in the form of the Pegging structure.
I am not getting the Internal Order number of 0000653225 usinf the function module '/SAPAPO/DM_ORDKEY_SELECT_ORDNO'. While this Function module returns the Internal Order GUID of all other Reciept/Req elements.
Appreciate If anyone help me on getting the above.
Thanks in Advance
PradeepHi,
I can see the Order in the Product view...it meant it exist in the system. But in the tables /sapapo/ordkey & /sapapo/ordmap, No order is pouplated wiith the Order type '00'.
I guess we have to read this order in another way. But I don't know.
Thanks
Pradeep -
BAPI for meter reading order (MRO) Reversal
Hi Experts,
Please let me know if there is any FM or BAPI for meter reading order reversal, Similar to EL37
Regards
BikasHello Bikas,
Though this is an old post, thought of replying for the sake of googlers who might look for a solution for your query...the below code works!
*---Begin Of Code
TYPES : BEGIN OF ty_meter_orders_data,
anlage TYPE eablg-anlage,
adatsoll TYPE eablg-adatsoll,
ablesgr TYPE eablg-ablesgr,
END OF ty_meter_orders_data.
DATA : lt_meter_orders_data TYPE STANDARD TABLE OF ty_meter_orders_data,
xy_ieabl_delete TYPE eabl_tab,
xy_ieablg_delete TYPE eablg_tab,
xy_ietrg_delete TYPE etrg_tab,
x_anlage type anlage,
x_retro_upd_date type adatsoll,
y_return type char1.
DATA : y_obj TYPE isu17_meterread.
*--Get the needed data for reversal
SELECT a~anlage
a~adatsoll
a~ablesgr
FROM eablg AS a
INNER JOIN eabl AS b ON a~ablbelnr = b~ablbelnr
INTO TABLE lt_meter_orders_data
WHERE a~anlage = x_anlage AND
a~adatsoll >= x_retro_upd_date AND
b~ablstat = '0'. "MR Order
IF sy-subrc = 0.
SORT lt_meter_orders_data BY anlage ablesgr adatsoll.
DELETE ADJACENT DUPLICATES FROM lt_meter_orders_data COMPARING anlage ablesgr adatsoll.
SORT lt_meter_orders_data BY adatsoll DESCENDING.
LOOP AT lt_meter_orders_data ASSIGNING FIELD-SYMBOL(<fs_meter_orders_data>).
CALL FUNCTION 'ISU_O_METERREAD_OPEN'
EXPORTING
x_anlage = <fs_meter_orders_data>-anlage
x_adatsoll = <fs_meter_orders_data>-adatsoll
x_ablesgr = <fs_meter_orders_data>-ablesgr
x_select2 = '5'
x_wmode = '6'
IMPORTING
y_obj = y_obj
EXCEPTIONS
not_found = 1
foreign_lock = 2
internal_error = 3
input_error = 4
existing = 5
number_error = 6
general_fault = 7
system_error = 8
manual_abort = 9
gasdat_not_found = 10
no_mrrel_registers = 11
internal_warning = 12
not_authorized = 13
not_qualified = 14
anpstorno_not_allowed = 15
already_billed = 16
dev_already_prep = 17
OTHERS = 18.
IF sy-subrc = 0.
CALL FUNCTION 'ISU_O_METERREAD_ACTION'
EXPORTING
x_okcode = 'PSAV'
CHANGING
xy_obj = y_obj
EXCEPTIONS
cancelled = 1
failed = 2
action_not_supported = 3
system_error = 4
input_error = 5
not_customized = 6
OTHERS = 7.
IF sy-subrc = 0.
CALL FUNCTION 'ISU_O_METERREAD_ACTION'
EXPORTING
x_okcode = 'SAVE'
TABLES
yt_eabl_delete = xy_ieabl_delete[]
yt_eablg_delete = xy_ieablg_delete[]
yt_etrg_delete = xy_ietrg_delete[]
CHANGING
xy_obj = y_obj
EXCEPTIONS
cancelled = 1
failed = 2
action_not_supported = 3
system_error = 4
input_error = 5
not_customized = 6
OTHERS = 7.
IF sy-subrc = 0.
COMMIT WORK.
ENDIF.
ENDIF.
CALL FUNCTION 'ISU_O_METERREAD_CLOSE'
CHANGING
xy_obj = y_obj.
* Implement suitable error handling here
ELSE.
y_return = 'E'.
ENDIF.
ENDLOOP.
IF y_return <> 'E'.
y_return = 'S'.
ENDIF.
ELSE
* RAISE no_mtr_read_ordrs_found.
ENDIF.
*---End of Code
Thanks.
Mohammed. -
Account Determination for the Procurement of Sales Order Stock
Dear All,
I am trying to a procure stock with reference to a sales order(with Account Assignment Cat E in PO),System is not picking/posting the stock into BSX inventory Account upon Goods Receipt.
The requirement is to post the sales order stock procured on to the Inventory Account BSX and to be shown seperately as Sales order stock.
Please advice.
Regards
KarthikHi,
Go to sales order VA03, here under "Procurement" Tab, check the "RqTy" (Requirement type for e.g. KE)
Now go to OVZH, here check the requirement class for Requirement type KE, it will be "040" for e.g.
Now go to SPRO > Sales and Distribution > Basic Functions > Account Assignment/Costing > Maintain Requirements Classes For Costing/Account Assignment > Here for Requirement Class "040", enter following;
Acct assignment cat. E
Valuation M (Separate valuation with ref. to sales document/project)
Then do the cycle again and check. -
Reading the Stock requirment List
Hello Every one,
I had some questions reading the stock requirement list. When I am placing the curser on a planned order and expanding the overview tree for the lower levels, system breaks down the requirement to the lower levels. Agreend But why does the system repeat the same set of materials more than once in the overview tree showing the dependent requirements twice in both the lists? Is there any standard sequence in which the Stock requirement list can be evaluated?
Any help on this is greatly appreciated.
Sincerely,
AjiDear Dogboy,
I am facing the same problem. Let I will explain in detail...
I am using AFS material. There is a requirement for Pant large size 200 quantity and small size 100 quantity. When I run system raises
For one line item of pant large size system create planned order no 1223 for 200 quantity
and for another line item pant small size system create planned order no 1223 for 100 quantity.
Now, in MD04, when i place the cursor in planned order 1223 of first line item and expanding the overview tree, system shows requirement as 200 quantity.
When I place the cursor in the second line item and expands the overview tree, system shows requirement as 200 instead of 100.
Is this happening due to AFS material?
Regards / US -
Standar report to see the sale order stock collectively
Dear Gurus,
Is there any standard report available to see the sales order stock collectively.
I can see the sale order stock in MMBE. But disadvantage is, at a time i can see a single material only.
I would like to see the sale order stock for more than 1 materials.
For example MB52- Collective inventory stock can be seenDear,
You could check sales order stock using MB52. Tick Also Select Special Stock and fill special stock indicator ='E'
You can check in MMBE t.code by enter material and execute....& see ur slaes order stock in On-order stock segment also try in CO09
Regards,
R.Brahmankar -
While creating the Transfer Order system is not picking Sale order stock?
Hi All,
In the B2B process the system is not picking the stock from from sale order stock while creating the transfer order? Please suggest.
Summary : Here we are creating the PR in the sale order and STO is created using the same PR to procure the materials from the WM plant to sale order plant. Since here intialy we are moving the stock to our sale order in WM plant and then picking the same. But while creating the Transfer order system is not picking the sale order stock in WM plant.
Regards.C S Javali
Check in schedule line in transaction flow whether Transfer Req /assembly is checked or not
Regards
Pradeep -
How to transfer the stock form Project stock to Sale order stock
Hi
How to transfer the stock form Project stock to Sale order stock
I tried to do this with movement type 413Q
System is giving me error
Valuated project stock not allowed with customer stock.
Message no. KI346
How to do this
Thanks
NKYou can use Mov Type 412-Q
412 Q Transfer posting project to own - reversal
Thanks
Rajesh -
How to know the excess stock with in a sales order and line item
Hi,
i am running an MRP against a sales order and sales order line item. the materials are getting planned based on the requirement. but due to some reasons the production orders are confirmed with out consumption of the actual required quantity of the components. so the stock is kept ideal in the sales order though it is not required further.
do to some othere reasons also the excess stock of componenets exist. the PR or POs may also exist for the materials though they are not required further.
i am in need of a report for the excess stock or excess PR or Purchase order for a sales order.
please give me logic to find the excess things in that sales order and sales order line item. the Expensional message 26 is there in stock requirement list . but it does not give the excess quantity existing.
regards
madanhi rajesh,
thanks for your reply. please tell me the logic to see when only partial quantity of sale sorder are delivered and also when no delivery is made also.
but manufactured and placed in stock.
please tell me the tables to follow and logic of going ahead with them.
regards
madan -
How to read the Variance Analysis report S_ALR_87013139, Pdt cost by Order
Hi,
Could someone tell me how to read the variance analysis report, S_ALR_87013139 - Cumulative for product cost by order. The report has the following fields, Target (Debits), Actual (Debits), Scrap, Var. Without Scrap, Work in Process(WIP), Control Costs.
I am looking to find how the numbers add up.
Thanks for your help.
Ram
Message was edited by:
Ram RThanks Sridhar,
When I analyse the report S_ALR_87013139 - Cumulative , for a product for a period (with no scrap), I get the following
Target (Deb) - 46,855.55
Act (Deb) - 58,315.87
Scrap - 0.00
Var W/O- Scrap - 11,269
WIP- 0
Control Cost - 0
Here Actual - Target is not equal to Variance. What could be the issue?
Could you please tell me how SAP would update this report with target & actual costs with respect to open production orders, carried over from previous periods.
Thanks,
Ram -
Read the characteristics of a planned order in APO
how can we read the characteristics of a planned order in APO.What Function Module can be used for this?
how can we manually schedule the order activities based on the characteristics. Can we use the function module
/SAPAPO/OM_ACT_SCHEDULE by copying and making some changes in it for this purpose?Hi,
if there are any orders in your system with characteristics (in planning version 000) then this report will find them:
report get_char.
data:
ls_genp type /sapapo/om_gen_params,
lt_orderid type /sapapo/om_orderid_tab,
lt_char type /sapapo/om_charact_val_tab.
ls_genp-simversion = '000'.
call function '/SAPAPO/OM_ORDER_GET_ALL'
exporting
is_gen_params = ls_genp
iv_simsession = ''
importing
et_orders = lt_orderid.
call function '/SAPAPO/OM_ORDER_GET_DATA'
exporting
is_gen_params = ls_genp
iv_simsession = ''
it_order = lt_orderid
importing
et_charact_val_acts = lt_char.
Best regards
Thomas
Maybe you are looking for
-
About to Switch from Mac to PC: Tell Me I'm Not Crazy!
Well, after 17 years of being a loyal mac owner I'm about to pull the trigger on buying parts to build a pc workstation. I've used pc's for onsite jobs before and have fielded some pc tech support questions from independent clients, but I've never ac
-
Hello everyone, I have an older laptop and I have been told that I can only access the Internet with dialup because the computer does not have a network card. Is there one available for the PowerBook G3. Better yet, can I get a wireless card? Thank y
-
What i need to write when i buy with VISA - ( country - ? AAO? or .... ) in Kazakhstan ????
-
How to generate Flow Chart from Program Source Code easily and automatically.
It is very crucial to have a clear mind when faced with abstract codes for software engineers and program developers. As always, the programmers have had an overall structure in your mind and then process the design with source code. The structure c
-
How to save a screenshot while VI is running in LabVIEW 8.5
I am wondering how to save the screenshot of PC while the VI is running in LabVIEW 8.5.1? Thank you.