Hi All requirement on Purchase Order.Its Urgent
Hi All,
Pls provide me the soure code for the following requirement ASAP. Its urgent.
Program: Z_PO_PRINT_MAIL
Transaction: ZPOP
Purchase order number: (should be a parameter not a select option) (Code the lookup using search help MEKK)
Radio button for: 1. Print Preview
2. Print
3. E-mail
Additional parameters based on above selection:
1. No additional parameters needed
2. Printer (code the F4 to search printers)(default users default printer)
3. E-mail address, cc (should also have same validations as e-mail address)
Description:
On pressing enter, use the Purchase order number to look up vendor number and name and display either to the right or below the purchase order number.
Vendor Number: EKPO-LIFNR
Vendor Name: LFA1-NAME1
1. Print Preview: Use function ME_DISPLAY_PURCHASE_DOCUMENT with 2 parameters only:
I_EBELN = PO Number
I_PREVIEW = X
2. Print: For this we have to do a BDC.Use transaction ME9F. Enter the purchase order number, blank out the rest. Select the first message, hit Message details. Enter a new message via Edit>new Entries. For new entries, you will need to enter NEU for Output type with Medium 1 (Print output). Hit enter. Select the message and click on further data. Set dispatch time to 4. Green arrow back. Select the message and click on Communication method. Enter the Logical destination as the printer, select Print Immediately and Release after output. Green arrow back and save.
3. E-mail: Use the following function modules:
ECP_PO_OTF_CREATE
CONVERT_OTF_2_PDF
SO_NEW_DOCUMENT_ATT_SEND_API1
Hi,
You can explore following link for more details;
http://www.sap-basis-abap.com/sapmo017.htm
http://www.erpgenie.com/sap/sapfunc/purchasing.htm
Bye,
Muralidhara
Similar Messages
-
Problem with Purchase Order receipt - Urgent
Hi all,
Scenario - A purchase order with a six items has been released, four items have been recieved, fifth item was deleted & sixth item is packing & forwarding charges.
Problem - A change was done in the Mtl master for the packing & forwarding charges to ensure that a GR is not required for this item, but the same is not being reflected, as a query of Open PO's still shows this PO as open with the item packing & forwarding not received. How to resolve this?
VivekStephen & Seema,
From your inputs i did get some picture, but here is more details about the problem am facing, maybe you can help me out with this,
The item packing & forwarding chgs has been declared as a material & in the BD-1 view of the Mtl Master, the General Item Category Grp has been set as 'Service w/o Dlvy' & this is causing the GR not to be ticked in the PO & hence it still says item yet to receive. I subsequently changed the status of Gen Itm Category to 'Service w/o Dlvy Confimration' & this ticks the GR. But the issue is, since the change in Material Master is done after the PO release, it is not changing the status in that PO.
And the query i am runing to check the open PO's is a customised query developed using SQ01.
Hope you are clear of my problem now & let me know what i can do -
"All items from purchase order cannot be invoiced"
Hello,<br />
<br />
I'm on a SRM 7.0 SP 5 system (ext-classic scenario). Here i try to create an invoice with reference to a Purchase Order, but none of my Purchase Orders can be used for reference. I get the following warning message 'All items from purchase order cannot be invoiced'.<br />
<br />
- Created via POWL (create with reference -> invoice/credit memo) i always get the warning message 'All items from purchase order cannot be invoiced'. And no items are converted / can be used for invoicing. Additionally when i use the search option 'find purchase order' within the create invoice transaction i can not find any purchase order to use, it shows 'There is no search result' while there are plenty purchase orders marked with 'invoice expected'.<br />
<br />
I am able to create invoices without reference.<br />
<br />
I tried vendors set up only for 'invoice expected' and 'GR', 'invoice expected' / 'GR' / 'GR-based-IV' and 'invoice expected' only none of them works, indicators set on vendor master are correctly used on the created purchase order. Outputting PO doesn't make any difference neither.<br />
<p />
I have not set up the following (do i need to?):<br />
- Deactivated the 'CRME' transaction type, no Credit Memo transaction type has been configured/is active.<br />
- I have not defined the 'INV' transaction type as a follow-on document for my ECPO transaction type within the define transaction type transaction.<br />
- Tollerances<br />
<br />
<b>edit</b> -> i've already searched thorougly for SAP notes but no note seems to cover this particular problem.<br />
<br />
Help is very much appreciatedSolved! Added SYS attribute for back-end system in organisational scheme.
-
Is there any standard report which give all info about purchase order.
hi
is there any standard report which give all information about purchase order.
i need following information from Purchase Order.
Vendor No, vendorname, PO No, basic Excise insurance Frieght.
Thanks.Hi,
Following are reports for PO list.
ME2C Purchase Orders by Material Group
ME2J Purchase Orders for Project
ME2K Purch. Orders by Account Assignment
ME2L Purchase Orders by Vendor
ME2M Purchase Orders by Material
ME2N Purchase Orders by PO Number
Message was edited by:
Vigneswaran S -
Open items for purchase order its very urgent
hi
my requirement is to write extract program for purchase order(me21) to extract only open items.
please provide sample code its very urgent.
thanks in advance.
points will be rewarded.
thanks
hari prasad reddycheck the below report :
REPORT ZMM_OPEN_PO_REPORT no standard page heading
line-size 255
message-id zwave.
======================================================================
Program Name : ZMM_OPEN_PO_REPORT *
Description : This report displays all Open PO Items and output *
would be PO Number,Material number and so on *
Author : Seshu *
Date : 01/24/2007 *
MODIFICATION HISTORY *
DATE | AUTHOR | CHANGE # | DESCRIPTION OF MODIFICATION *
--|||--
01/24/07| Seshu | DEVK921979 | Initial *
D A T A D E C L A R A T I O N P A R T ***
type-pools
type-pools : slis.
Tables
tables : ekko, " Purchase order Header
ekpo, " Purchase order Item
marc. " Material with Plant data
Internal table for output.
data : begin of i_output occurs 0,
ebeln like ekko-ebeln,
matnr like ekpo-matnr,
end of i_output.
ALV Data declaration.
data : v_repid like sy-repid.
ALV Function Module Variables
DATA: gs_layout type slis_layout_alv,
g_exit_caused_by_caller,
gs_exit_caused_by_user type slis_exit_by_user.
DATA: gt_fieldcat type slis_t_fieldcat_alv,
gs_print type slis_print_alv,
gt_events type slis_t_event,
gt_list_top_of_page type slis_t_listheader,
g_status_set type slis_formname value 'PF_STATUS_SET',
g_user_command type slis_formname value 'USER_COMMAND',
g_top_of_page type slis_formname value 'TOP_OF_PAGE',
g_top_of_list type slis_formname value 'TOP_OF_LIST',
g_end_of_list type slis_formname value 'END_OF_LIST',
g_variant LIKE disvariant,
g_save(1) TYPE c,
g_tabname_header TYPE slis_tabname,
g_tabname_item TYPE slis_tabname,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
data : gr_layout_bck type slis_layout_alv.
Ranges
ranges r_eindt for eket-eindt.
initialization.
v_repid = sy-repid.
start-of-selection.
Get the data from EKKO ,EKPO and MARC Table
perform get_data_tables.
end-of-selection.
display the data in the form of ALV
perform display_data.
*& Form get_data_tables
Get the data from EKKO,EKPO and MARC Table
FORM get_data_tables.
clear : i_output.
refresh : i_output.
fill the dates in ranges
r_eindt-low = sy-datum - 7.
r_eindt-high = sy-datum + 14.
r_eindt-option = 'BT'.
r_eindt-sign = 'I'.
append r_eindt.
Get the data from EKKO,EKPO and EKET Tables
select aebeln bmatnr into table i_output
from ekko as a inner join
ekpo as b on aebeln = bebeln
inner join marc as c on cmatnr = bmatnr
inner join mara as d on dmatnr = bmatnr
inner join eket as e on eebeln = aebeln
and eebelp = bebelp
where c~beskz = 'E'
and c~werks = '1000'
and d~mtart = 'FERT'
and b~loekz = space
and b~elikz = space
and e~eindt in r_eindt.
if sy-subrc ne 0.
message e000(zwave) with 'No open purchase order found'.
endif.
ENDFORM. " get_data_tables
*& Form display_data
text
FORM display_data.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = g_user_command
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = gr_layout_bck
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = g_save
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_output
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " display_data
*& Form fieldcat_init
text
-->P_GT_FIELDCAT[] text
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Purchase order number
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'EBELN'.
LS_FIELDCAT-ref_fieldname = 'EBELN'.
LS_FIELDCAT-ref_tabname = 'EKKO'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Purchase Order'.
ls_fieldcat-seltext_M = 'Purchase Order'.
ls_fieldcat-seltext_S = 'Purchase Order'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-ref_fieldname = 'MATNR'.
LS_FIELDCAT-ref_tabname = 'EKPO'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Material'.
ls_fieldcat-seltext_M = 'Material'.
ls_fieldcat-seltext_S = 'Material'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init -
New Purchase Requisition required once Purchase Order Released
Dear Expert,
Here i am creating Purchase Requisition from the project by assigning
material component in Network Activity. All the Material assigned to a
single network have a single Purchase Requisition with different
different Line Item which is acceptable but once the Purchase Order
created and released and a new material component is assigned to the same
network. Now it will added into the same purchase requisition with
separate line item, which is not acceptable since that purchase
requisition was already closed and Purchase Order was released then
system should generate a new Purchase Requisition against the same
Network,
Pls suggest how it could be configure, is there is any setting in config
to full fill this requirement.Hi,
As such there is no config requirement.
Its purely your process needs to be re think.
You are assigning the material to activity and getting PR,PR,GR and all . Once the material is consumed, thinking that activity is also over. In this case, again you are assigning other material to the same activity and you want to have the different purchase requistion not same PR with line item.
option 1, you can have the different PR nos always whenever you are assigning the materials to same activity. If 1 activity requires, 10 materials, you will have 10 PR's which is practically not correct. chnages you can do it in parameter for network type.
Option 2, New materials which is required can have a new network.
Regards
N.Raju -
Rate Contract Purchase Order ! Urgent
Rate contract purchase order
My Client Dont wants to enter quantity in the Purchase Order
The purchase order is called as Rate contract purchase order (Contract for Per Unit rate of material only). Purchase order is created without entering the quantity. It has specific validity period and overall value limit (It is not compulsory). The multiple Deliveries from vendor are accepted (GR) and invoices are posted against this purchase order, for certain period of time.
It is not possible in standard SAP configuration to make Quantity field optional or hide, because this field Mandatory in standard SAP program.
I suggested option of creating Contract and Contract Release orders, but our client doesnt want to create the purchase orders on daily or monthly basis.
Also scheduling agreement option is not working, because schedule lines are not final.
Please suggest me the solution on this issue !Hi Vijay,
to clear your doubt, SAP can make the Quantity display instead of Hide function. It not necessary to put Required, it can be Optional or Display.
This also will work if you have PR for all of your PO, so PO QTY will be copied from PR QTY.
you may need to check your configuration.
IMG-MM-Purchasing-PO-Define Screen Layout at Document Level
Regards,
Maia
Edited by: Maia on Apr 14, 2008 5:24 PM -
Retrieving the Change Texts per Line Item (Purchase Order) - Very urgent
Hi,
How do you retrieve the Change Texts per Line Item (Purchase Order).
Table T166T does not list these values per line item.
Please help. This is very urgent & important.
Best Regards,
Johnif you are lookin out for change of item texts ...
then use the function module ... READ_TEXT.
and 2 tables r used ... STXH and TLINE ....
double click on item data ...
goto PO TEXT tab ....
double click on text ...
from menu ...
goto header ... u'll get 4 fields that u need to consider ...
TDID
TDOBJECT
TDHEAD
TDNAME
ALL THESE U'LL FIND IN STXH
ITEM TEXT is stored in TLINE
Edited by: anjali rana on Mar 5, 2008 4:55 AM -
BADI requirement for Purchase Order
Hello,
I have to find a BADI for Purchase order which will satisfy requirement stated below.
When processing on PO will be done for Goods received and/or Final delivery and/or Final invoice , I need to trigger an Idoc from BADI which will inform another client that flags stated above are set against that PO.
Which BADI can be used to find information of these flag are set on PO as soon as it is processed and which in trun help me to trigger this idoc?
Regards,
Madhuratry with MB_DOCUMENT_BADI
this BADi will get trig for all goods movement transaction.
better u go for user exits, insteed of BADi -
Add output type in requirements for purchase order
Hi,
In a changed purchase order (ME22N), based on business condition (eg: tot po > $100,000), then it should trigger an email output which will send the PO to the user. In output procedure for EF, control RMBEF1, there is requirement 101 (reprint) as an example. It has:
Loop at xnast where kschl = komt1-kschl and objky = msg_objky and vstat eq 0.
Endloop.
Here it seems user manually add a new condition record for ZSND so the loop will work.
However, i need to create an output record for ZSND before i can resend the email on ME22N. Do you think having a new requirement here will enable me to create a new output record for ZSND ? IF the PO is more than $100,000, then i need to create an output type ZSND so it will re-send the PO. User will not manually create the PO.
Pls provide your suggestions.
thanks
joyceIt's difficult to say without seeing how you have it configured, but the breakpoint should be triggered if the requirement is triggered (update debugging not required). Go back to a fresh PO and use Goto -> Determination Analysis from the output screen to view the analysis. This should give you a clue as to what happened. If the output was already issued and you don't have it flagged for 'multiple-issuing' then it won't be triggered again in change mode. Keep in mind that requirement routines do not create outputs; they simply allow them to propose or stop them from proposing based on the criteria in the code. You can access the EKPO data in memory using a field symbol for '(SAPLMEPO)EKPO' (if applicable, check whether this works in BAPI mode - I don't remember) or you can use the message determination user exit in RVCOMFZZ to put the value in KOMKBEA for direct access.
OK, see my answer to your other post - it seems that you added the output manually - that doesn't work...
Edited by: Brad Bohn on May 13, 2010 2:48 PM -
Final Delivery indicator not in all rows of Purchase Order
Hi,
I am constructing a query in BW where i need to filter out Purcahse Orders for which the Final delivery indicator is set.
The Purchase cube has the data coming in from following three datasources:
2lis_02_hdr (Purcahse Order Header)
2lis_02_itm (Purcahse Order Item)
2lis_02_scl (Purcahse Order Schedule line).
The Final delivery indicator is populated from Item and schedule line Datasources.The Purchase cube stores the data in such a way that the final delivery indicator is not set for a Purchase order in all the rows.
Please advice how can i populate the final delivery indicator in the cube for all the rows of a Purchase Order. Also I do not want to reinitialize the data load from R3 or PSA.
Regards
SapnaHi ,
The answer was helpful but my problem was not solved. But in some of the cases the Final delivery indicator is not getting filtered. Also we have Posting date as a Key field in the Info provider.
Now there are various scenarios. For eg:
1. If the Final delivery indicator is set from me23n then the posting date is saved in my Purchase cube AND hence i can sort the Posting date and get the final delivery indicator against the Max posting date.
2. If the Final delivery indicator is set through MIGO screen, then posting date is blank against final delivery indicator. Hence in Purchase cube the Posting date is blank and sorting will not work.
Please advice.
Regards
Sapna -
hi all,
i added new field to the table ekko (screen me21n). and now i want to define pricing conditions of purchase order according to this field. i create table and access sequence for condition type and define a condition record. but when i am creating a purchase order, the condition is not found. i must define a relationship between new field of ekko and condition type. do i have to write a routine for this. if yes how? or what can i do?if you want to determine your price based on the field on the PO then
1) field should be availble at PO level
2) add that field in your condition table (if not available at acondition table selection then usse the oss note 39462
3) define the access seq. based on this table
4) create condition type and add this access seq in the condition
5) add this condition in your pricing procedure (make sure that for this condition Man, Mdt or Stat check box is not checked in Pricing procedure)
6) maintian this condition for price in the tcode MEK1
if oyu done all this then when you create the PO and it match all the criteria of your condition table then system will pull this condition -
Inspection Type 05 require input purchase order number for rejection
Hi Experts,
I have inspection and needed to reject in QA12.
When inputting the stock posting quantity to return, it prompts the reason for rejection, and required to input purchase order number also.
Since that is material return from production(inspection type 05) with no purchase order number, where in SPRO I can check the setting of this and disable this?
Please kindly advise, thanks!
Regards,
DanielHi SujitSND,
I have some materials in inspection lot which is created from material return in production.
This lot is rejected by QA and needed to return to production line.
When inputting the qualtity field RETURN DELIVERY, system forced me to input Purchase Order number which is not available.
My target is to not needing to input purchase order.
Regards,
Daniel -
Plant required in Purchase Order
I'd like for the plant to be an optional field in the purchasing documents (PO, RFQ, PReq, etc.). I've changed the plant field to optional in the IMG (IMG -> MM -> Purchasing -> Purchase Order -> Define screen layout at doc level for ME21N (and others) under Basic Data, Item. Then executed the transactions that I changed above, and the plant is still required.
I understand this is hard coded in the program (plant being required) - however I'm having a difficult time understanding why it is available in the IMG, but then does not work (or it's hard coded).
Any guidance would be appreciated. If we can make this field NOT required, it would improve our processes significantly.
Thanks much!
GinaThanks for the reply.
I know, it's strange.
Here is the requirement. We are releasing at the PO level (cause we update our RFQ and actually compare vendor pricing - then the one that is selected is copied into the PO - then the release kicks in).
Ultimately - our vendors have access to our plants to see who has what for inventory. The vendor decides on the shipment day, which plant to send what/quantities to. Due to the plant being required on the PO, we will have many updates to the quantities, which in effect will kick off the release again.
Ideally, we'd like to leave the plant blank in the PO, then do GR against the PO at whichever plant the vendor ships the items to.
Does this make sense? -
Supplier number required in Purchase order/ requisition
Hi Gurus,
Requirement is to see supplier number in purchase order/ requisition.
If we give supplier number automatically system should pickup the supplier name, if we give name system should pick up the supplier number like customer in sales order form.
I have checked is there any hided field for supplier number not find any field, is there any possibility through Descriptive flex fields to achieve the requirement.
Thanks
AKHi AK,
Your requirement is possible only thru "forms personalisation".
Also you need to link the supplier number with suppier name so that by selecting the supplier number supplier name defaults in the form.
DFF does not help much here...it only captures the supplier number info.
Thanks
-Arif.
Maybe you are looking for
-
The Sims 2 Expansion Packs and iMac Intels
Hi everyone. I have The Sims 2, University, Pets and Open for Business and I have a question. I have downloaded the patches from Aspyr so I'm no longer getting the dreaded PowerPC question at the beginning... however, when I played the Sims on my PC,
-
Hallo, i have developed a client-server application requesting html information from oracle through servlet technology.Until now i am inserting text in the text area of the html form i use to submit requests.Now i want to change the html form, removi
-
Good day. Is there into Pages the possibility to compare two documents? In order to reveal changes.
-
Photoshop CS6 Not Loading: Actions & Preferences Errors
Photoshop CS6 has been working like a dream, and recently it has pushed some very large files. But, upon trying to open Photoshop this morning, I get these two messages: Could not load actions because an unexpected end-of-file was encountered. Could
-
Help me Please with the JSP Array
Hi all, Can anyone please tell me how can i pass a String array to in JSP using HTML hidden input to the next page. I have tried but it is getting something else. Here is my code. This is a JSP page with a HTML form. It is sending SIX (6) STRING ARRA