Regd: ME21N T-Code
Hi,
In ME21N T-Code if i want to retrive the values of the fields.
Statistics-relevant delivery date - EEIND
Open Qty - OBMNG
Schedule Lines - ETENR
Schedule Qty - MENGE
Deliver Date - EEIND
G.R. Qty - WEMNG
which Databse table should i refer.I checked in the tables EKKO and EKPO but i cud not find these fileds.
Pls do suggest me.
Thanks & Regds.
Ramesh.
Hi Ravikumar Allampallam,
My require ment is to Calculate the Vendor Performance Based on Change in Delivery Date (Item Level) and Statistics-relevant delivery date (Header Level).
For that the fields EEIND, OBMNG is relevant.
From ur help i found MENGE, WEMNG and ETENR fileds in EKET but i need this Change in Deliver Date Filed with that 1ly i can calculate the vendor performance.
Pls suggest me.
Thanks & Regds.
Ramesh.
Similar Messages
-
Add custom Push button in ME21N T-Code?
Dear ABAP Experts,
I have a requirement , when the user will create PO(in Standard ME21N t-code) Delivery/Invoice tab user want to add new push button 'NEW_DATA' . When the user click on 'NEW_DATA' Push button then one new screen will appear. In that new screen(which had some input and check box fields which are field manually).
At the end ,whenever the user click on SAVE Icon then all these new screen details will save in custom (Z or Y) table.
How can i do this Issue ?
Thanks & Regards,
K.Chinna..Dear Sreekanth,
In SAPLMEGUI program you suggested me that do SHD0 and add GUIXT to add new button.
What is SHD0 and GUIXT ?
How can i do this ? please explain me step by step ?
Regards,
K.Chinna -
Enhancement for ME21N t-code ?
Dear ABAP Experts..,
I have a requirement that in ME21N t-code Delivery / Invoice tab there is a field called Payment Terms. If user select Payment Terms as '0010'
then he wants to new screen which have different entries .
How can i do this issue when the user is selected Payment Terms as '0010' to generate new Tab in header part ?
Thaks & Regards.
K. Chinna..!Hi,
Use this user exit MM06E005 Or BADI
ME_GUI_PO_CUST
ME_PROCESS_PO_CUST
and write your code based on requirement .
Regards,
kumar. -
Hi All,
while recording( in ME21) atlast im gettin an error like netprice is grtr than 0, eventhough netprice is positive value only,
while using me21n, cant craete prog, dunno why,
im getin hectic with this one,
I need code for ME21 / ME21N (purchase order create),
plz anyone help me,
thanks in advance,
hema.phi
check this code
report zgmimm_me21 no standard page heading line-size 255.
tables: t100.
type-pools: truxs.
types: begin of i_upload,
lifnr like ekko-lifnr, "Vendor Number
bukrs like ekko-bukrs, "Order type
bedat like ekko-bedat, "Purchase Order Date
ekorg like ekko-ekorg, "Purchasing organization
ausnr like ekko-ausnr, "Purchase order
ekgrp like ekko-ekgrp, "Purchasing group
eddat like ekko-bedat, "Delivery date
werks like ekpo-werks, "Plant
lgort like ekpo-lgort, "Storage location
zterm like ekko-zterm, "Payment terms
ematn like ekpo-ematn, "Material
menge like ekpo-menge, "PO Quantity
lewed like ekpo-lewed, "Latest GR Date
end of i_upload.
data: begin of i_input occurs 0,
pbg(10) type c,
bldat(07) type c, "001
BLDAT like BKPF-BUDAT,
hkont(10) type c,
kostl(10) type c,
wrbtr(11) type c,
dbcrflag(01) type c,
sgtxt(32) type c,
end of i_input.
data: v_counter(2) type n.
data: v_mod type i.
data: v_ebelp like ekpo-ebelp.
data: v_fname(132) type c.
data: v_fname1(132) type c.
data: v_tabix like sy-tabix.
data : ws_text(200) type c.
data : wa_mag(1).
data: begin of int_msg occurs 0,
cnt type i,
massage(1) type c,
text(200) type c,
end of int_msg.
data : begin of i_final occurs 0,
lifnr like ekko-lifnr, "Vendor Number
bukrs like ekko-bukrs, "Order type
bedat(10),
ekorg like ekko-ekorg, "Purchasing organization
ausnr like ekko-ausnr, "Purchase order
ekgrp like ekko-ekgrp, "Purchasing group
eddat(10),
werks like ekpo-werks, "Plant
lgort like ekpo-lgort, "Storage location
zterm like ekko-zterm, "Payment terms
ematn like ekpo-ematn, "Material
menge type char15, "PO Quantity
lewed(10),
TAX_CODE type mwskz,
GR_BASEDIV,
end of i_final.
data: it_datatab type standard table of i_upload,
wa_datatab type i_upload.
data: it_raw type truxs_t_text_data.
data: begin of bdcdata occurs 0.
include structure bdcdata.
data: end of bdcdata.
data: begin of messtab occurs 0.
include structure bdcmsgcoll.
data: end of messtab.
data: begin of t_input occurs 0.
include structure i_input.
data: end of t_input.
data: begin of i_local_output occurs 0,
text(2800) type c,
end of i_local_output.
data: begin of i_error occurs 0.
include structure i_input.
data: text(50) type c.
data: end of i_error.
data : _datum1(10).
data : t_datum1(10).
data: msgno like sy-msgno,
msgid like sy-msgid,
msgty like sy-msgty,
message like message.
*Data : TEXT(50) Type c value 'File Shoud be in Excel Format'.
data: wa_head type bapimepoheader,
wa_headx type bapimepoheaderx,
i_return type bapiret2 occurs 0 with header line,
i_item type bapimepoitem occurs 0 with header line,
i_itemx type bapimepoitemx occurs 0 with header line,
i_sch type bapimeposchedule occurs 0 with header line,
i_schx type bapimeposchedulx occurs 0 with header line.
SELECTION SCREEN
parameters: p_file type rlgrap-filename obligatory modif id app.
Write : /3 Text.
START OF SELECTION
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
field_name = 'P_FILE'
importing
file_name = p_file.
start-of-selection.
perform data_from_excel_to_sap.
perform pass_data_to_final_int_tab.
perform fill_bdc_data.
perform fill_bapi_parameters.
perform call_po_create_bapi.
*& Form DATA_FROM_EXCEL_TO
text
--> p1 text
<-- p2 text
form data_from_excel_to_sap.
call function 'TEXT_CONVERT_XLS_TO_SAP'
exporting
I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw " WORK TABLE
i_filename = p_file
tables
i_tab_converted_data = it_datatab[] "ACTUAL DATA
exceptions
conversion_failed = 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. " DATA_FROM_EXCEL_TO
*& Form PASS_DATA_TO_FINAL_INTERNAL_TA
text
--> p1 text
<-- p2 text
form pass_data_to_final_int_tab.
loop at it_datatab into wa_datatab.
move wa_datatab-lifnr to i_final-lifnr. "Vendor Number
move wa_datatab-bukrs to i_final-bukrs. "Order type
move wa_datatab-bedat to i_final-bedat. "Purchase Order Date
concatenate i_final-bedat6(2) '.' i_final-bedat4(2) '.20'
i_final-bedat+2(2) into _datum1.
i_final-bedat = _datum1.
move wa_datatab-ekorg to i_final-ekorg. "Purchasing organization
move wa_datatab-ausnr to i_final-ausnr. "Purchase order
move wa_datatab-ekgrp to i_final-ekgrp. "Purchasing group
move wa_datatab-eddat to i_final-eddat. "Delivery date
concatenate i_final-eddat6(2) '.' i_final-eddat4(2) '.20'
i_final-eddat+2(2) into _datum1.
i_final-eddat = _datum1.
move wa_datatab-werks to i_final-werks. "Plant
move wa_datatab-lgort to i_final-lgort. "Storage location
move wa_datatab-zterm to i_final-zterm. "Payment terms
move wa_datatab-ematn to i_final-ematn. "Material
move wa_datatab-menge to i_final-menge. "PO Quantity
move wa_datatab-lewed to i_final-lewed. "Latest GR Date
***Value Hard coaded considering this Program is only for Import.
I_FINAL-TAX_CODE = 'V0'.
I_FINAL-GR_BASEDIV = ' '.
concatenate i_final-lewed6(2) '.' i_final-lewed4(2) '.20'
i_final-lewed+2(2) into _datum1.
i_final-lewed = _datum1.
append i_final.
endloop.
endform. " PASS_DATA_TO_FINAL_INTERNAL_TA
*& Form FILL_BDC_DATA
text
--> p1 text
<-- p2 text
form fill_bdc_data.
read table i_final index 1.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0100',
' ' 'BDC_CURSOR' 'RM06E-MATKL',
' ' 'BDC_OKCODE' '=KOPF',
' ' 'EKKO-LIFNR' i_final-lifnr,
' ' 'RM06E-BSART' i_final-bukrs,
' ' 'RM06E-BEDAT' i_final-bedat,
' ' 'RM06E-BSTNR' i_final-ausnr,
' ' 'EKKO-EKORG' i_final-ekorg,
' ' 'EKKO-EKGRP' i_final-ekgrp,
' ' 'RM06E-EEIND' i_final-eddat,
' ' 'RM06E-LPEIN' 'T',
' ' 'RM06E-WERKS' i_final-werks,
' ' 'RM06E-LGORT' i_final-lgort.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0101',
' ' 'BDC_OKCODE' '=AB',
' ' 'EKKO-ZTERM' i_final-zterm.
move: '01' to v_counter.
loop at i_final.
move: sy-tabix to v_tabix.
concatenate 'EKPO-EMATN(' v_counter ')' into v_fname.
concatenate 'EKPO-MENGE(' v_counter ')' into v_fname1.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0120',
' ' 'BDC_OKCODE' '=DETZ',
' ' 'RM06E-EBELP' '5',
' ' v_fname i_final-ematn,
' ' v_fname1 i_final-menge.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0112',
' ' 'BDC_CURSOR' 'EKPO-LEWED',
' ' 'BDC_OKCODE' '/00',
' ' 'EKPO-LEWED' i_final-lewed,
' ' 'EKPO-PRDAT' i_final-bedat.
' ' 'EKPO-IPRKZ' 'D'.
v_mod = v_counter mod 5.
if v_mod eq 0.
clear v_ebelp.
move: v_tabix to v_ebelp.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0120',
' ' 'BDC_OKCODE' '/00',
' ' 'RM06E-EBELP' v_ebelp.
v_counter = '02'.
else.
v_counter = v_counter + 1.
endif.
endloop.
loop at i_final.
clear: v_fname.
v_counter = sy-tabix.
v_ebelp = sy-tabix.
concatenate 'RM06E-TCSELFLAG(' '01' ')' into v_fname.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0120',
' ' 'RM06E-EBELP' v_ebelp,
' ' 'BDC_OKCODE' '/00'.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0120',
' ' 'BDC_CURSOR' 'RM06E-BSTPO(01)',
' ' 'BDC_OKCODE' '=DETZ',
' ' 'RM06E-EBELP' v_ebelp,
' ' v_fname 'X'.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0112',
' ' 'BDC_CURSOR' 'EKPO-LEWED',
' ' 'BDC_OKCODE' '/00',
' ' 'EKPO-PLIFZ' '91',
' ' 'EKPO-GEWEI' 'KG',
' ' 'EKPO-PRDAT' i_final-bedat,
' ' 'EKPO-IPRKZ' 'D',
' ' 'EKPO-LEWED' i_final-lewed.
endloop.
perform f0510_bdcdata using :
'X' 'SAPMM06E' '0120',
' ' 'BDC_CURSOR' 'RM06E-BSTPO(10)',
' ' 'BDC_OKCODE' '=BU',
' ' 'RM06E-EBELP' '1'.
perform f0510_bdcdata using :
'X' 'SAPLSPO1' '0300',
' ' 'BDC_OKCODE' '=YES'.
call transaction 'ME21' using bdcdata messages into messtab
mode 'A' update 'S'.
perform f000_process_errors.
clear: bdcdata, messtab.
refresh: bdcdata, messtab.
loop at int_msg.
write:/ int_msg-text.
endloop.
endform. " FILL_BDC_DATA
*& Form F0510_BDCDATA
text
-->dynbegin text
-->name text
-->value text
form f0510_bdcdata using value(dynbegin)
value(name)
value(value).
if dynbegin = 'X'.
clear bdcdata.
move: name to bdcdata-program,
value to bdcdata-dynpro,
'X' to bdcdata-dynbegin.
append bdcdata.
else.
clear bdcdata.
move: name to bdcdata-fnam,
value to bdcdata-fval.
append bdcdata.
endif.
endform. " F0510_BDCDATA
*& Form F000_PROCESS_ERRORS
text
--> p1 text
<-- p2 text
form f000_process_errors.
loop at messtab.
clear t100.
select single * from t100 where sprsl = messtab-msgspra
and arbgb = messtab-msgid
and msgnr = messtab-msgnr.
ws_text = t100-text.
wa_mag = messtab-msgtyp.
if ws_text cs '&1'.
replace '&1' with messtab-msgv1 into ws_text.
replace '&2' with messtab-msgv2 into ws_text.
replace '&3' with messtab-msgv3 into ws_text.
replace '&4' with messtab-msgv4 into ws_text.
else.
replace '&' with messtab-msgv1 into ws_text.
replace '&' with messtab-msgv2 into ws_text.
replace '&' with messtab-msgv3 into ws_text.
replace '&' with messtab-msgv4 into ws_text.
endif.
condense ws_text.
move ws_text to int_msg-text.
move wa_mag to int_msg-massage.
append int_msg.
endloop.
delete int_msg where massage = 'W'.
endform. " F000_PROCESS_ERRORS
*& Form fill_bapi_parameters
Subroutine to fill BAPI Parameters
form fill_bapi_parameters.
clear: wa_head, wa_headx, i_return, i_item, i_itemx, i_sch, i_schx.
perform fill_bapi_header.
perform fill_bapi_items.
endform. " fill_bapi_parameters
*& Form fill_bapi_header
Subroutine to fill the bapi header
form fill_bapi_header.
read table i_final index 1.
check sy-subrc eq 0.
move: i_final-ausnr to wa_head-po_number,
i_final-bukrs to wa_head-doc_type,
i_final-zterm to wa_head-pmnttrms,
i_final-ekorg to wa_head-purch_org,
i_final-ekgrp to wa_head-pur_group,
'FOB' to wa_head-incoterms1,
'Free On Board' to wa_head-incoterms2.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = i_final-lifnr
importing
output = i_final-lifnr.
move: i_final-lifnr to wa_head-vendor.
concatenate i_final-bedat+6(4)
i_final-bedat+3(2)
i_final-bedat(2) into wa_head-doc_date.
move: 'X' to wa_headx-po_number,
'X' to wa_headx-doc_type,
'X' to wa_headx-vendor,
'X' to wa_headx-pmnttrms,
'X' to wa_headx-purch_org,
'X' to wa_headx-pur_group,
'X' to wa_headx-doc_date,
'X' to wa_headx-incoterms1,
'X' to wa_headx-incoterms2.
endform. " fill_bapi_header
*& Form fill_bapi_items
Subroutine to fill the bapi items
form fill_bapi_items.
loop at i_final.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = i_final-ematn
importing
output = i_final-ematn.
move: sy-tabix to i_item-po_item,
i_final-ematn to i_item-material,
i_final-werks to i_item-plant,
i_final-lgort to i_item-stge_loc,
i_final-menge to i_item-quantity.
I_ITEM-TAX_CODE = I_FINAL-TAX_CODE.
I_ITEM-GR_BASEDIV = I_FINAL-GR_BASEDIV.
concatenate i_final-lewed+6(4)
i_final-lewed+3(2)
i_final-lewed(2) into i_item-gr_to_date.
move: sy-tabix to i_itemx-po_item,
'X' to i_itemx-po_itemx,
'X' to i_itemx-material,
'X' to i_itemx-plant,
'X' to i_itemx-stge_loc,
'X' to i_itemx-quantity,
'X' to i_itemx-gr_to_date.
move: 'X' TO i_itemx-TAX_CODE ,
'X' TO i_itemx-GR_BASEDIV.
append: i_item, i_itemx.
move: sy-tabix to i_sch-po_item,
'0001' to i_sch-sched_line,
'D' to i_sch-del_datcat_ext.
i_final-menge to i_sch-quantity.
concatenate i_final-eddat(2)
i_final-eddat+3(2)
i_final-eddat+6(4) into i_sch-delivery_date.
move: sy-tabix to i_schx-po_item,
'0001' to i_schx-sched_line,
'X' to i_schx-po_itemx,
'X' to i_schx-sched_linex,
'X' to i_schx-quantity,
'X' to i_schx-delivery_date,
'X' to i_schx-del_datcat_ext.
append: i_sch, i_schx.
endloop.
endform. " fill_bapi_items
*& Form call_po_create_bapi
Subroutine to call PO CREATE BAPI
form call_po_create_bapi.
call function 'BAPI_PO_CREATE1'
exporting
poheader = wa_head
poheaderx = wa_headx
tables
return = i_return
poitem = i_item
poitemx = i_itemx
poschedule = i_sch
poschedulex = i_schx.
read table i_return with key type = 'S'
id = '06'
number = '017'.
if sy-subrc eq 0.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
write:/ i_return-message.
else.
delete i_return where type = 'S'.
delete i_return where type = 'I'.
delete i_return where type = 'W'.
write:/ 'Following Errors occured in PO Creation:'.
skip.
loop at i_return.
write:/ i_return-message.
endloop.
endif.
endform. " call_po_create_bapi
thanks
sitaram -
I wannat use DROPDOWN LIST in ME21N(TAX CODE)
hi dear
i wannt to know the best solution use DROPDOWNLIST in ME21N, ME22...ME23.... with TAX code.
is there any SCREEN EXIT or BADI?
plz help me..Hi,
System displys the list based on your tax procedure.
i.e When you press the F4 help on tax code field system lists all
tax codes which are maintained in tax procedure.
The dropdown doesn't show all possible entries but only those that
make sense.
Probably, in FI-customizing the flag is set in field "Plants
abroad activated?". In that case you have to maintain the field
"Reporting cntry" for the tax codes belonging to your tax calculation
procedure (i. e. TAXF) because if nothing is maintained nothing is
shown in input help.
It is not possible to exclude the entries by user.
hope this information will clarify your issue.
Best regards
Erika -
Hi,
When creating a PO i have this error message :
"In case of evaluated receipt settlement, please enter tax code"
More details :
Message no. 06750
Diagnosis
Evaluated receipt settlement (ERS) has been defined for this PO item. To
permit implementation of this procedure, the tax code must be
maintained.
Procedure
Maintain the tax code.
Please how to Maintain this tax code
i hope ur help
RegardsERS is Automatic Invoice Reciept in MM.
Create a tax code in FTXP Transaction
and assign it in Purchase order,
Item Details, (Bottom Screen)
Invoice Tab... -
International version Issue on Me21n T-code
Hi, Gurus~
I am not sure I should ask this quesiton here, but I do meet another issue against the International Version address. As you know for some Asia country like China or Japan, we may use our own character, and this usually maintained in International Version add., and a English Name(pronouciation), will be maintained on the default page. For some transaction, if we do some settings, the system will fetch the international version directly. But for Me21n, create Purchasing Order, it will still display the English letter name on the screen. Do any of you have the previous experiences on this? Or a user-Exit program need to add?
Thx~!Hi,
Actually these are language add ons and there are levels in these installing langauage is concerned.
when i worked for bulgaria and turkey, my experiance was that turkish language was installed fulling to all the levels and now all the words are coming in turkish when i log on in TR language.
But when it comes to bulgarian languages as this language is up to a certain level we have can see part of the screen in english and part of it in bulgarian. We cannot do anything with this as SAP as to release the full versions/levels of langauge installation.
Thanks & Regards,
Kiran -
Hi,
I need to keep check point in me21n t.code, (i.e) when user save or checks the PO is should check whether GE-Bsd IV field is ticked for Domestic PO.
in MM06E005 exit, i used fm EXIT_SAPMM06E_012
DATA: IT_HPO TYPE MEPO1222-EKORG, "Pur. Org.
IT_IPO TYPE MEPO1317-WEBRE. "GR-Bsd-IV
DATA: OK_CODE LIKE SY-UCOMM.
CASE OK_CODE.
WHEN 'MECHECKDOC' or 'MESAVE'.
CLEAR OK_CODE.
IF IT_HPO = 'DOM'.
IF IT_IPO = ' '.
*****some messge
ENDIF.
ENDCASE.
kindly suggest what's wrong in it or any other FM i should it.
thksHey,
Use the Babi : ME_PROCESS_PO_CUST
Method :CHECK
Sample Code
DATA: LS_MEPOHEADER TYPE MEPOHEADER.
DATA: LT_MEPOITEM TYPE STANDARD TABLE OF MEPOITEM,
LS_MEPOITEM TYPE MEPOITEM.
DATA: ITEM TYPE STANDARD TABLE OF PURCHASE_ORDER_ITEM.
LS_MEPOHEADER = IM_HEADER->GET_DATA( ).
ITEM = IM_HEADER->GET_ITEMS( ).
LOOP AT ITEM ASSIGNING <FS_ITEM>.
LS_MEPOITEM = <FS_ITEM>-ITEM->GET_DATA( ).
Write your validation here .
ENDLOOP.
Regards,
Saravanan M -
Goods receipt not possible for delivery 80016425: error code 4 in MIGO
Hi friends,
I created STO from ME21N tr.code(document type:UB), then I created outbound delivery from VL10B tr.code based on STO.
After that, goods issue is made by vl02n.Lastly , when I want to make a goods receipt based on outbound delivery from MIGO
(with mvmt type:101),it gives me error about"Goods receipt not possible for delivery 80016425: error code 4 in MIGO tr.code" .
Take your opinionsHi,
Error 4 indicates there is/are no delivery item/items.
Check following options:
option-1--->Check material number extended to the both plants with storage locations
option-2--->Check the material received already WRT the delivery
option-3---> Check confirmation control key in material that needed in creation of an inbound delivery to have GR process
option-4--->Check The latest goods receipt date in STO
option-5--->Check(done any setting) if any billing to be done after PGI and then can do GR WRT delivery
Regards,
Biju K -
Hi,
Need your help for solving an issue related to ME21N ( Purchase Order Creation)
I am having ZVRL(say) condition type that is mandatory and is defined in pricing schema ZVVA01(say).ZVVA01 is further attached to purchase organisation 4000 (say).
I am having a document type ZVVN . I want to save the purchase order without ZVRL (Defined as Mandatory condition) for particular document type ZVVN. But as ZVRL is mandatory condition , So system does not allow me to save the purchase order.
For solution following option have been ruled out by the client-
1) Through a separate vendor schema with different purchase organization.
2) Entering any value like .01 or .002 for the mandatory condition type that is for ZVRL.
Other than above two, Can anyone please tell me if there is any exit/badi/ or pricing routine available through which we can avoid mandatory ZVRL condtion for particular document type ZVVN at the time of saving and changing the Purchase order.
Thanks
Deepak GuptaHi,
Check all user exit for ME21N
Transaction Code - ME21N Create Purchase Order
Exit Name Description
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processin
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
See which is suitable for your requirement. -
PO creation using ME57, company code is lost
Hi
I am creating PO using ME57, but I am loosing company code so I cannot call partner funcation PI.
But if I creat PO using ME21N, and copy same PR there, then company code is getting copied automatically.
So I am not understanding why system is "NOT" transfering company code while creating Purchase Order using ME57 for same purchasing requisition.
Thanks and Regards
Umesh
Message was edited by:
umesh bhosaleHi Umesh,
ME57 transaction code used for Assign and Process. This transaction code will display all open PRs with different company codes.
To get Company code in your selection criteria, you have to un-tick Company Code while creating your own variants. By default this will be protected and Hidden Std. setting.
To default your company code, use your Variants or restrict your selection criteria only for your Plants.
In ME21/ME21N transaction code, organization elements will be entered using Header - Org.Data.
Bye,
Muralidhara -
How to set Custom screen in ME21N when Payment Terms as particular value ?
Dear ABAP Experts,
I created one Custom Tab under Header level in me21n using screen exit MM06E005.
It's working fine. but My requirement is, whenever user will select Payment term as '0001' in Delivery / Invoice Tab then my Custom tab will open in ME21N t-code . My Custom tab will have different input fields which are entered manually, those values will store in Custom table(Z-table) when the user press save button.
So, How to do this?Hi,
The ME2xN transactions reads the user settings from table ESDUS using function module ES_READ_USER_SETTINGS, and save them at the end of the transaction using function module ES_APPEND_USER_SETTINGS.
You need to overwrite the displayed header tab number using ES_APPEND_USER_SETTINGS just at the beginning of the transaction. I think that a godd point to do this is in the subroutine INIT_TRANSACTION of report RM_MEPO_GUI. You can do this using the enhacement framework. I have tested it and it works for me. This is the code you should insert:
FORM init_transaction CHANGING ch_document TYPE mepo_document
ch_exit TYPE mmpur_bool
ch_requisitions TYPE mereq_t_eban_mem
ch_requisition_acc TYPE mereq_t_ebkn.
"""""""""""""""""""""""""""""$"$\SE:(1 ) Forma INIT_TRANSACTION, Inicio D
*$*$-Start: (1 )-----------------------------$*$*
ENHANCEMENT 1 ZTEST. "active version
*Expand header------
CALL FUNCTION 'ES_APPEND_USER_SETTINGS'
EXPORTING
iaction = 'PurchaseOrder'
ielement = 'DYN_4000-BUTTON TOGGLE_STATE'
iactive = '2'.
*Move to 2nd tab ----
CALL FUNCTION 'ES_APPEND_USER_SETTINGS'
EXPORTING
iaction = 'PurchaseOrder'
ielement = 'HEADER-TABSTRIP SUBVIEW_INDEX'
iactive = '2'.
ENDENHANCEMENT.
*$*$-End: (1 )-----------------------------$*$*
DATA: l_ebeln TYPE ekko-ebeln,
l_ebelp TYPE ekpo-ebelp, -
Exit for ME21N - Change value on SAVE
Hi everyone,
i'm looking for an exit or BADI in ME21N that allows me to change a specific value in table eket.
The idea is that after the SAVE, the field EINDT of EKET must be changed.
I had aldready tried to use some exits, but not even one worked.
Here's the list i tried:
EXIT_SAPMM06E_006
EXIT_SAPMM06E_007
EXIT_SAPMM06E_008
EXIT_SAPMM06E_009
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
EXIT_SAPMM06E_014
EXIT_SAPMM06E_016
EXIT_SAPMM06E_017
EXIT_SAPMM06E_018
Can anyone help me please?
Best regards,
Pedro
Message was edited by:
Pedro Rosa
Message was edited by:
Pedro Rosa
Message was edited by:
Pedro RosaCheck all available for ME21N
Transaction Code - ME21N Create Purchase Order
Exit Name Description
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
No of Exits: 35
Reward points if useful.........
Minal -
Creating po in me21n with copy from other po
Can any one tell the procedure to create PO copying from other PO.
Edited by: Csaba Szommer on Jan 18, 2012 8:06 AMHi,
Option 1: Goto ME21N, In item Overview move to right side to 4th last column "Purchasing Doc." enter your PO number & press enter, PO will get copied if 1 item is there , otherwise if more than 1 item in PO then it will ask for which item Number you want to copy.
Option 2: Enter ME21N T.Code
Click u201CDocument Overview onu201D
Click u201CSelection Variantu201D and Select Purchase Orders and Enter your PO No. & execute
you will be able to view in document overview the PO No & Item No,
Select the PO you need to copy & Click u201CAdoptu201D and you will see all PO details related copy to new PO which you can save.
Option 3: Enter ME21N T.Code
Click u201CDocument Overview onu201D
Click u201CSelection Variantu201D and Select Purchase Orders and Enter your PO No. & execute
you will be able to view in document overview the PO No & Item No,
Now select 1st item and press Shift button(or you can also use Ctrl button on your keyboard for randomly selecting the line item) & with mouse select all line items and click 'Adopt' button (next to selection variant button).
All the 100 items will get copied in the New PO.
Refer below link for clarification,
[Copying old PO to New PO|Re: Copy the Purchase Order] -
Ecatt: ME21N (document overview)
Hello ecatt experts,
I have one question concerning the recording of ME21N with ecatt (sapgui).
When creating a PO with ME21N I want to link it to a purchase requisition.
To choose a puchase requisistion I use the document overview.
The problem which I am facing is, that ecatt doesn't replay the selection of a PR in the document overview.
Does someone has a solution to this issue ?
Is sapgui recording correct (or do I maybe have to use web dynpro recording ) ?>
srinivas wrote:
> In ME21N T-code, while Creating Purchase order. I want DOCUMENT OVERVIEW always ON.
>
> Sometimes when other users work with the T-code, it gets off and script is failing .
>
> Is it possible to make the scripting independent of the changes. OR How can I keep DOCUMENT OVERVIEW always ON by the scripting.
>
> Please do the needful.
>
> Regards
> Srinivas,K
Hi Srinivas,
You can handle this case in two ways.
Please record in such a way that the document overview is on.Make this screen as optional.You can do in SAPGUI recording more effectively.
There are some tables where the user-settings get saved after single time execution of these t-codes.You have to place a piece of code that clear those settings within ABAP---ENDABAP commands in the eCATT editor before script execution commands.This will clear the settings and it shows the same way on how you recorded.
ABAP
Code to clear settings.
ENDABAP.
sapgui (script commands)
Please let me know if you have any queries.
Regards,
SSN.
Maybe you are looking for
-
I-Trigue L3800 IR/Volume Problem
Hi there !! Sorry for my bad english i am coming from germany. I have Problems with my new I-Trigue L3800 Speaker System. If i turn on the system via IR the volume goes up to the maximum. If i try to choose up/down volume it goes automaticly up or do
-
Downloading an App in someone else's ID?
If I download an App in someone else's Apple ID, like some sort of Apple update, will I have to log into their account everytime to do stuff on my computer? Thanks!
-
Hi all, I want to produce a native 16:9 DVD with Motion content. I have set the resolution to 720x480, is this correct for DVD widescreen PAL Thanks in advance Declan
-
Suppose I have 2 tables A and B. There are about 40 table columns for table A and 30 table column for table B. Table A can insert, update and delete the record from table B. Table A can insert, update about 15 table columns into table B. I create dat
-
Hi Experts, I'm new to ABAP and SAP. I've been asked to develop a function module to fetch following fields. Order#, PO#, ShipTo, Entry Date, Start Date-Complete Date, Vendor Name, Units, Invoice# There will be only 1 input field and that will accept