Open PO & STO's
can anyone guide me how to see only open purchase orders & stock transfer orders, by giving range of dates
i have tried inME2N, my requirement is i sud see only open PO's
Edited by: mahesh patil on Apr 30, 2008 9:53 AM
Dear
In ME2n.
edit-->dynamic selections
expond the purchse order item folder and findout the following fields
Delivery complete
Final invoice
double cilc on that
it will come to a option screen where you make the selection option
Delivery complete not = X
Final invoice not = X
enter the document date and execute...you will get what you wanted.
Similar Messages
-
Open PIR quantity, unconverted Pld orders and open Prod/ STO orders
Dear all,
How to deal with open PIR quantity, unconverted planned orders and open production/ STO orders in the next MRP run? Do we need to delete/ reduce them manually?
Thanks and Regards,
RaghuHi Shiva,
Thanks for your immediate response. I have still some confusion.
Last month, I have material A with Production order quantity of 30000.
'A' has a component 'B' which is an in-house produced material. Three planned orders each of 10000 were generated for B. Of these two planned orders were converted to production orders. One is still in planned order form.
This month I am not going to use this planned order of B. I get new requirement for A. So during MRP run I get the planned orders for B also.
For the last month requirement, as I have not converted one planned order of B to prod order, there will an open quantity of A prod order in this plant and open STO quantity in another plant. Again the PIR will also be not reduced to the same extent. If I reduce the PIR manually or through some reorganization, what about the open quantity of prod order and STO
I think I can TECO the prod order of A. Is there any such thing for STO also?
Thanks and Regards,
Raghu -
STO Isuue ..counted as inventory
Dear members,
I have got an issue with Stock transport orders from plant to plant.
there are many items in the STO document. All the items are having Goods receipt, goods issue and delivary note, but for a ceratin materail there is no goods issue and goods receipt.
it is showing as open on STO, it is counted in inventory, we wanted to remove it ..
please let me know, how can I do that.
Thanks in Advance.
Regards
VenkatHi
have you tried using the BADI
MB_DOCUMENT_BADI
All material document data from the following tables is transferred to this business add-in:
MKPF (material document header)
MSEG (material document items)
VM07M (update data)
The methods differ according to the time at which they are called up:
The method MB_DOCUMENT_BEFORE_UPDATE is called up before the FI document is created. This means that it is called up even if the program is terminated by an error during the subsequent processing. The update of data in separate tables should always be contained in function modules that are called up with the addition 'in update task'. This ensures that all the data is updated consistently.
The method MB_DOCUMENT_UPDATE is not carried out until update. This means that all updates are carried out immediately in their own tables and do not have to be contained in 'update task' in function modules. For performance reasons, you should not re-read the tables or carry out any time-consuming routines at this point.
For Transaction MI04 - You can write the logic in checking the data
Thanks & Regards
Kishore -
Change in supplying plant in STO
Hi,
With ME21N, i'm doing STO and giving supplying plant and receiving plant and saved.
immediately with ME22N, I have opened same STO and found supplying plant field disabled.
I want to change supplying plant.
Can anybody guide me for this?
Regards,
Samir WadajkarDear,
This is not SAP standard practice. e.g. If you once create sandard purchase order with vendor 'X' and save the PO. And after some time can u change the Vendor 'X' to 'Y'. It is not possible becoz of whenever u create PO that time SAP system give the PO document number. In that Document number it cantain master data like vendor master & material master. U can change material master but not the vendor master that is maintained on header level. This is not standard practice in Material management. If this things are open then everybody change the vendor code after creation of PO.
So create another STO and block or delete first one. -
FM "*MD_STOCK_REQUIREMENTS_LIST_API"*
Hi experts,
plz guide me a way to retrieve the following data based on Material Plant, and storage location.
As FM "MD_STOCK_REQUIREMENTS_LIST_API" will take longer time as it is not having date as importing parameter
1) Any alternative..??
2) Docuementation of this FM?
Material Number
Material Description
Plant
Storage Location
Special Stock
Unrestricted Use Stock Qty- Total
Quality Inspection Stock Qty-Total
Block Stock Qty u2013 Total
In Transit Stock Qty - Total
Reservation Qty - Total
Open Outgoing Sales Order and STO Qty - Total
Open Outgoing Delivery Qty - Total
Open Incoming STO Qty - Total
Open Incoming Delivery(Not Post Goods Issue) Qty - Total
Available Quantity (Static)
Base Unit of MeasureHi
To get a list of Stocks/Requirements in SAP, you can use the Function Module given below.SAP ABAP Function Module to get Stocks/Requirements List. This is as same as MD04. You will not have date as selection (Even it is not there in MD04). It is online data like MD04
MD_STOCK_REQUIREMENTS_LIST_API
The Function Module MD_STOCK_REQUIREMENTS_LIST_API takes the following inputs
PLSCN Planning scenario in long-term planning
MATNR Material
WERKS Plant
BERID MRP Area
ERGBZ Selection rule
AFIBZ Name of display filter
INPER Internal period indicator
DISPLAY_LIST_MDPSX
DISPLAY_LIST_MDEZX
DISPLAY_LIST_MDSUX
The following Parameters are exported.
Material number, Plant, Deletion Flag, Material description, Material type, Material group, Base unit of measure, Plant-Specific Material Status, MRP type, Procurement Type, Special procurement type, Mixed MRP indicator, Low-level code, Dependent requirements ind. for individual and coll. reqmts, Indicator for Requirements Grouping, MRP controller, Purchasing group, Indicator: MRP controller is buyer (deactivated), In-house production time, Processing time, Setup and teardown time, Interoperation time, Base quantity, Scheduling Margin Key for Floats, Planned delivery time in days, Goods receipt processing time in days, Total replenishment lead time (in workdays), Indicator: automatic fixing of planned orders, Lot size (materials planning), Fixed lot size, Minimum lot size, Maximum lot size, Rounding value for purchase order quantity, Maximum stock level, Assembly scrap in percent, Safety stock, Reorder point, Ordering costs, Storage costs indicator, Forecast indicator, Period indicator, Splitting Indicator, Discontinuation indicator, Effective-Out Date,, Follow-up material, Method for Selecting Alternative Bills of Material, Valuation class, Price control indicator, Moving average price/periodic unit price, Standard price, Price unit, Stock in transfer (plant to plant) and Exception messages
For more Details of the fields see the following
Structure
MT61D
MDPS
MDEZ
MDSU
Transparent Table
MDKP
Regards
Antony -
Change in Stock Transfer order
hello,
Once the stock transfer is created, goods is being issued from the supplying plant..after that good is received at receiving plant...
now if again i go to me22n and open the STO and change the quantity, systems allows me to do so..whereas ideally if the GI and GR is done, STO should not be changed or should not be allowed to change the quantity..
Please give me suggestion,,
thanx in Advance..Hi,
as per me you can change price and qty in PO after GRN and In Voice also.its SAP stander
Regards
Kailas Ugale -
How to Deliever the PO using T_Code VL10B ?
Sap Specialist,
How to Deliever the PO using T_Code VL10B ?
I have Created PO with type UD - Stock Transport Order.
I want to Shipping one Plant to another Plant.Hello Vasanth,
In the t-code VL10B ( Purchase orders fast delivery),
- Give your shiping point or delivering plant
- Select the second tab Purchase orders and put the PO number (Stock Transport Order) and execute
- It will list out the open PO (STO)
- Select the line item with your purchase order and click on "Background" (if you want to check the STO before creating you can double click on lineitem)
Hope this helps.
Regards
Arif Mansuri
Reward if answer is helpful. -
STO mail : pdf attachment has an error 'file damage' when try to open it
Dear expert,
I need to send an e-mail to the vendor with the sto list as attachment at the email.
I managed to send email to external addresee and made the pdf attachment, BUT somehow when I open the attachment it has an error says "Adobe Reader could not open xx.pdf because it is either not a supported file type or because the file has been damaged(for axample, it was sent as an email attachment and wasn't corectly decoded)."
Really need your experties to help me. Here is my abap coding to send email and do the pdf attachment at the new ouptput type to send email.
TYPES: BEGIN OF lty_drad,
doknr TYPE drad-doknr,
END OF lty_drad,
BEGIN OF lty_recpt,
smtp_addr TYPE ad_smtpadr,
END OF lty_recpt.
DATA: lt_doc TYPE STANDARD TABLE OF docs,
lt_recpt TYPE STANDARD TABLE OF lty_recpt,
lt_tline LIKE tline OCCURS 0 WITH HEADER LINE,
lt_data TYPE solix_tab,
lt_docu TYPE STANDARD TABLE OF lty_drad,
lt_docfiles TYPE STANDARD TABLE OF bapi_doc_files2,
lw_tline LIKE LINE OF lt_tline,
lw_docu LIKE LINE OF lt_docu,
lw_docfiles LIKE LINE OF lt_docfiles,
lw_objdes TYPE tnati-objdes,
lt_text TYPE bcsy_text,
lw_recpt TYPE adr6-smtp_addr,
lw_adrnr TYPE lfa1-adrnr,
lw_object TYPE drad-objky,
lw_doknr TYPE drad-doknr,
lw_return TYPE bapiret2,
lw_xcontent TYPE xstring,
client TYPE REF TO if_http_client,
url TYPE string,
lw_subrc TYPE sysubrc,
response TYPE REF TO if_http_response,
lw_message1 TYPE string,
sent_to_all TYPE os_boolean,
bin_filesize type i.
CONSTANTS: lc_dokar_srm TYPE drad-dokar VALUE 'SRM',
lc_type TYPE so_obj_tp VALUE 'RAW'.
CLASS-DEFINITIONS
DATA: send_request TYPE REF TO cl_bcs.
DATA: document TYPE REF TO cl_document_bcs.
DATA: sender TYPE REF TO cl_sapuser_bcs.
DATA: recipient TYPE REF TO if_recipient_bcs.
DATA: exception_info TYPE REF TO if_os_exception_info,
bcs_exception TYPE REF TO cx_bcs.
RANGES: lr_po_pr FOR drad-objky.
DATA: lw_banfn TYPE ekpo-banfn,
lw_bnfpo TYPE ekpo-bnfpo.
IF nast-nacha = '5'. "8
Create recipient and check if exist
Get email ID
start commented by sapnislina 21.12.06
SELECT SINGLE adrnr FROM lfa1 INTO lw_adrnr
WHERE lifnr = p_ekko-lifnr.
IF sy-subrc NE 0.
PERFORM protocol_update
USING '303' 'Address of Vendor:' ekko-lifnr 'not found' space
p_retco = sy-subrc.
EXIT.
ENDIF.
end commented by sapnislina 21.12.06
SELECT smtp_addr INTO CORRESPONDING FIELDS OF TABLE lt_recpt
FROM adr6
WHERE addrnumber = p_ekko-adrnr. "lw_adrnr.
IF lt_recpt[] IS INITIAL.
PERFORM protocol_update
USING '303' 'Email address(es) does not exist for vendor'
p_ekko-lifnr space space.
p_retco = sy-subrc.
EXIT.
ENDIF.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
use_otf_mc_cmd = 'X'
IMPORTING
bin_filesize = bin_filesize
TABLES
otf = otfdata[]
doctab_archive = lt_doc
lines = lt_tline
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
IF sy-subrc <> 0.
PERFORM protocol_update
USING '303' 'PO Convertion from OTF to PDF failed'
space space space.
p_retco = sy-subrc.
EXIT.
ENDIF.
Get object description from mail title of output types
SELECT SINGLE objdes INTO lw_objdes
FROM tnati
WHERE spras = sy-langu
AND kappl = nast-kappl
AND kschl = nast-kschl.
CONCATENATE lw_objdes ekko-ebeln INTO lw_objdes SEPARATED BY
space
DATA L_TXT(255) TYPE C.
DATA L_TXT2(255) TYPE C.
CONCATENATE 'STO' EKPO-EBELN 'Created for' EKPO-WERKS '/'
EKPO-LGORT
'Supply Plant' EKKO-RESWK into l_txt separated by space.
lw_objdes = l_txt.
CONCATENATE 'STO' EKKO-EBELN INTO L_TXT2 SEPARATED BY SPACE.
APPEND L_TXT2 TO LT_TEXT.
APPEND lw_objdes TO lt_text.
Instantiate
CLASS cl_cam_address_bcs DEFINITION LOAD.
CLASS cl_abap_char_utilities DEFINITION LOAD.
insert by sapnislina 22.12.06
DATA : CONTENT_OUT TYPE SOLIX,
LINE_WIDTH_SRC TYPE I,
POS_OUT TYPE I,
POS_IN TYPE I,
LEN_OUT TYPE I.
DATA OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF CONTENT_IN,
LINE TYPE TLINE,
DUMMY TYPE TLINE,
END OF CONTENT_IN.
TYPES PDF_RAW TYPE X LENGTH 268.
FIELD-SYMBOLS <PDF_BIN> TYPE PDF_RAW.
DESCRIBE FIELD CONTENT_IN-LINE LENGTH LINE_WIDTH_SRC IN BYTE MODE.
REFRESH lt_data.
CLEAR CONTENT_OUT.
POS_OUT = 0.
LOOP AT OTFDATA INTO CONTENT_IN-LINE.
ASSIGN CONTENT_IN TO <PDF_BIN> CASTING.
MOVE <PDF_BIN> TO CONTENT_OUT-LINE+POS_OUT.
ADD LINE_WIDTH_SRC TO POS_OUT.
WHILE POS_OUT >= 255.
APPEND CONTENT_OUT TO lt_data.
CLEAR CONTENT_OUT.
SUBTRACT 255 FROM POS_OUT.
IF POS_OUT > 0.
POS_IN = LINE_WIDTH_SRC - POS_OUT.
MOVE <PDF_BIN>+POS_IN TO CONTENT_OUT-LINE.
ENDIF.
ENDWHILE.
ENDLOOP.
IF POS_OUT > 0.
APPEND CONTENT_OUT TO lt_data.
ENDIF.
end inserted by sapnislina 22.12.06
starting to create attachment to mail
TRY.
CLEAR send_request .
Create persistent send request
send_request = cl_bcs=>create_persistent( ).
Build the document
document = cl_document_bcs=>create_document(
i_type = lc_type "RAW
i_text = lt_text "def of output type
i_length = '12'
i_subject = lw_objdes ).
Attached the document object
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = lw_objdes "definition of output
type
i_attachment_size = '12'
i_att_content_hex = lt_data.
completed first part to attached PO (pdf format) as attachment
Now attach the PO related attachments to the mail..
.... need to read from table DRAD and get all the attachment per PO
at run time
REFRESH: lr_po_pr."lt_return.
CLEAR: lr_po_pr,lw_return.
MOVE 'ICP' TO lr_po_pr.
CLEAR: lw_object.
completed second part for PO related attachments
Now prepare to send mail
Add document to send request
CALL METHOD send_request->set_document( document ).
Get sender object
sender = cl_sapuser_bcs=>create( sy-uname ).
Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
LOOP AT lt_recpt INTO lw_recpt
WHERE NOT smtp_addr IS INITIAL.
recipient = cl_cam_address_bcs=>create_internet_address(
lw_recpt ).
Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'.
CLEAR recipient.
ENDLOOP.
Send the document
CALL METHOD send_request->send
RECEIVING
result = sent_to_all.
Catch any exception
CATCH cx_bcs INTO bcs_exception.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = bcs_exception->msgid
msg_nr = bcs_exception->msgno
msg_ty = bcs_exception->msgty
msg_v1 = bcs_exception->msgv1
msg_v2 = bcs_exception->msgv2
msg_v3 = bcs_exception->msgv3
msg_v4 = bcs_exception->msgv4
EXCEPTIONS
OTHERS = 1.
p_retco = sy-subrc.
ENDTRY.
ENDIF.
IF NOT result-tdfaxid IS INITIAL OR " 422131
NOT result-tdmailid IS INITIAL. " 422131
CLEAR syst-msgv1. " 422131
IF NOT result-tdfaxid IS INITIAL. " 422131
syst-msgv1 = result-tdfaxid. " 422131
ELSEIF result-tdmailid IS INITIAL. " 422131
syst-msgv1 = result-tdmailid. " 422131
ENDIF. " 422131
CALL FUNCTION 'NAST_PROTOCOL_UPDATE' " 422131
EXPORTING " 422131
msg_arbgb = 'VN' " 422131
msg_nr = '095' " 422131
msg_ty = 'I' " 422131
msg_v1 = syst-msgv1 " 422131
EXCEPTIONS " 422131
OTHERS = 1. " 422131
ENDIF. " 422131
IF result-userexit EQ 'C' OR
result-userexit EQ 'E'.
p_retco = '9'.
ENDIF.
ENDFORM. " ENDE
end inserted
Regards
NislinaHi Nislina,
Could you please let me know how do you solve this issue.
Code:
if lt_binary[] is not initial.
* add attachment to document
call method document->add_attachment
exporting
i_attachment_type = 'PDF'
i_attachment_subject = 'My Attachment'
i_att_content_hex = lt_binary.
endif.
Thanks & Regard's
Sateesh -
How to get the stock of STO Report with suppling Plant/receiving Plant/open
How to get the stock of STO Report with suppling Plant/receiving Plant/open/close qty.
MB5T gives you Details of STO which have stok in transit.
ME2W gives you supplying plant wise STO details. Also in ME2W , in the ALV report output, if you select the "delivery Schedule line" icon , you will get details such as , STO qty, Issued qty , undelivered qty etc. -
Open STO reports with route determination
How to get Reports for open STOs with route determination.
ME2N will find the open STO's but I agree finding them based on route is not standard
or even vl10g can be used to find STO's needing deliveries
after delivery creation data based on route can be found in many way's
hope that helps -
Dear Friends,
I am having one requirement as follows.
The program is to build in such a fashion , that if there are any open items in STO
ie. In one STO there are 3 items having 100 , 200 , 300 quantities...
<b>First item</b> 10 .. quantity 100..... PGI Done for 100 ( balance Nill )
<b>Second Item</b> 20... quantity 200..... PGI Done for 100 ( Open Deliv / Shipment ) - (100 ).. Then system has to mark for deletion for ( open deliveries and Shipment cost , Handling unit ).........
<b>Third item</b> 30 -
quantity 300...( Open Deliveries 300 ) ..Then system has to mark for deletion for ( open deliveries , and PO line item )
How we can approach to this solution...
Is there anyBAPI available or LSMW for each phase we have to consider or BDC..
Thanx and Regards,
AmitavHi Rajesh,
I think SAP help says that the period for which you are planning to delete or archive data may have to be locked.
Check the following links:
For Archiving
http://help.sap.com/saphelp_47x200/helpdata/en/8d/3e55ec462a11d189000000e8323d3a/frameset.htm -
PO/STO - Open Orders Query
Hello,
A particular business scenario is being worked out in which Particular Order types of a PO/STO need not be considered as open orders as they are promotional stock and need not be considered for replenishment.
Any ideas on how do we exclude particular orders being part of "Open Orders"
Regards
Prashant KedarePlease maintain Material with material type NLAG- Material will not be relevant for MRP
Else Please maintain source list for all such materials with NON MRP relevant.
By these steps, material/ PO/ STO will not be counted for MD04 specifically for such materials
Raghavan -
Reg:list of stock tranporting order(STO) deliveries whose GR is open
Hi All,
please respond ,
i search this question in forums,this question was repeated
but unanswerd, my requirement is.
get the list of deliveries for STO and whose GR is open
is there any standard bapi to get like this...
if there is no bapi for this let me know the table names to maintain GR status for deliveries, so that i will generate my own function module.
( please dont suggest me to use transaction VL06I and so,
i want bapi or table names)
Thank you
Sumalatha.Hi lakshmi kumar thanks for u r reply,
but i didn't get you, please tell me the table names
for holding delivery orders and status for GR (for STO).
Thank you
Sumalatha. -
Reg:table which contains open STO's and P2P orders
Hi,
Can any body please tell me the table which contains open STO's and P2P orders.
Thanks&Regards,
Usha.Please refer to table EKPO where field ELIKZ is not equal to "X".
Regards
Bhavesh Mistry -
STO with field Shipping point grayed, how to open it ?
Dear friends ,
Does anyone knows how to open the field "Shipping point" in the Stock Transport Order (STO) ?
When I'm creating one STO via ME21N this field come grayed and we need to set as modifiable.
best regards,
Alefrom OSS Note 498143 - FAQ: Stock transfer with delivery in purchasing
Why is it not possible to change the shipping data in the purchase order?
Answer:
This function was implemented in Release R/3 Enterprise for EnjoySAP transactions ME21N/ME22N and was not provided prior to this. The following fields from the delivery data are also grouped together: VSBED,VSTEL,LFART,ROUTE, and LPRIO. This means you can only protect all of these fields or change all of these fields together. It can be implemented in a customer system Release 4.6B/4.6C as part of remote consulting, see also Note 769579.
Alternatively, you can define the shipping data by modifying the standard release; for more information, see Note 303453.
Maybe you are looking for
-
How do i include a JAR file in my JSP page?
-
Ipod + Water = not working
Ok so I dropped my Video 5th Generation Ipod in a bucket of water while it was one and in a case. I quickly got it out of the water, dried it with a cloth and then blow-dried it (I know apparently its not good but i hadnt seen the msg here before it
-
Bookmarks Disappear After Import
I just set up a new user (1st time having done so) on my 2010 iMac running OS 10.9.5 with Safari 7.1. I imported bookmarks from the Windows XP version of Firefox into Safari and all seemed to be fine. The bookmarks worked every time without a problem
-
TS3716 how do i resolve an r6034 error with my ipod classic
My ipod was connecting fine with my desktop pc last night but today it won't connect. I am getting an error C:\programfiles(x86)\itunes\itunes.exe Then I get another message saying r6034 has occurred. Anyone any ideas what the problemm is and how to
-
Printing out a multidimentional array
It has 8 columns and 5 rows multiarray[8][5] how do I get it to print in order?