Update EKPV-KUNNR in shipping tab of ME21N/ME22N
Hello,
I have a requirement where I have to update EKPV-KUNNR with a new value.
I tried to use BADI ME_PROCESS_PO_CUST Method PROCESS_ITEM.
I am using get_shipping_data to get the shipping details and then modifying EKPV-KUNNR and calling set_shipping_data but this is not getting updated.
I found out that in set_shipping_data, there is an old record and new record, and in new record only few fields are changed and because of that old_record is always equal to new_record and that is why my changed customer number is not updated.
Code in set_shipping_data
l_data_old = me->if_purchase_order_item_mm~get_shipping_data( ).
* initial transfer from BAPI interface (old_data always empty)
IF l_parent->for_bapi EQ mmpur_no.
CHECK NOT l_data_old IS INITIAL.
ENDIF.
l_data_new = l_data_old.
MOVE: im_ekpv-vstel TO l_data_new-vstel,
im_ekpv-lprio TO l_data_new-lprio,
im_ekpv-vsbed TO l_data_new-vsbed,
im_ekpv-route TO l_data_new-route,
im_ekpv-ablad TO l_data_new-ablad,
im_ekpv-spe_auth_number TO l_data_new-spe_auth_number,
im_ekpv-spe_src_dlv_no TO l_data_new-spe_src_dlv_no,
im_ekpv-spe_src_exidv TO l_data_new-spe_src_exidv,
im_ekpv-spe_inspout_guid TO l_data_new-spe_inspout_guid,
im_ekpv-spe_follow_up TO l_data_new-spe_follow_up.
IF l_data_new NE l_data_old.
READ TABLE po_ekpv_hash_table INTO wa WITH TABLE KEY item = me.
IF sy-subrc IS INITIAL.
wa-data = l_data_new.
MODIFY TABLE po_ekpv_hash_table FROM wa.
ELSE.
wa-item = me.
wa-data = l_data_new.
INSERT wa INTO TABLE po_ekpv_hash_table.
ENDIF.
ekpv_changed = mmpur_yes.
The issue is that none of the aforementioned fields are being changed so code never goes to l_data_new NE l_data_old where EKPO table is updated.
Can anyone help??
Hi Mehwish,
Yes I debugged it and l_data_old is same as l_data_new but im_ekpv contains changed value of customer number (KUNNR) but this does not affect l_data_new as only
MOVE: im_ekpv-vstel TO l_data_new-vstel,
im_ekpv-lprio TO l_data_new-lprio,
im_ekpv-vsbed TO l_data_new-vsbed,
im_ekpv-route TO l_data_new-route,
im_ekpv-ablad TO l_data_new-ablad,
im_ekpv-spe_auth_number TO l_data_new-spe_auth_number,
im_ekpv-spe_src_dlv_no TO l_data_new-spe_src_dlv_no,
im_ekpv-spe_src_exidv TO l_data_new-spe_src_exidv,
im_ekpv-spe_inspout_guid TO l_data_new-spe_inspout_guid,
im_ekpv-spe_follow_up TO l_data_new-spe_follow_up.
these fields are being moved to l_data_new which remain unchanged.
So if any of the above fields changes then only i_data_new is different from l_data_old which is not happening in my case. Do I need to code somewhere else? Any exit may be?
Similar Messages
-
Greyed out fields to be enabled in delivery schedule tab of ME21N & ME22N
Hi Gurus,
I need to make two fields in PO create and change tcode, to be made editable as they are greyed out for particular document type and item category combination. Please refer screenshots below:
Standard Order:
Framework Order:
I tried settings in 'Define Screen Layout at Document Level' for that field selection as well as in Edit system settings at the item detail level...but still the fields are in disabled mode only. Any help in this regard??
Thanks in advance...Hello Pramod,
As AKPT has pointed out, FO type documents are used for a broad framework type scenario, where most of the details are unknown at the time of releasing the PO.
The system by default allows standard, limit (B) and service (D) for such POs.
If you are trying to change the item category during creation (and not after the PO has history) please look at this IMG -> MM -> Purchasing -> Define Doc types -> Framework order FO -> Allowed Item categories.
I don't think delivery schedules are allowed for FO type orders. -
Custom tab not reflecting in ME21N & ME22N
Hello,
I need to add an additional tab on the Header level of PO. I have implemented the BAdI ME_GUI_PO_CUST & ME_PROCESS_PO_CUST as specified in the sample example.
However, I'm unable to see the custom tab in ME21N & ME22N, whereas I can see the tab in ME23N. I have code in the method FIELDSELECTION_HEADER but it doesn't stop at breakpoints when I run ME21N & ME22N.
When I debug, I can see the breakpoints but the program never reaches them.
Thank you for any help on this and implementing these BAdIs in general. This is the first time I have worked with these BAdIs and it has proved to be very frustrating.
Kind regards,
Chris MowlHi Chris,
Madhu is right. Check the point he suggests. For instance in IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER
DATA: l_persistent TYPE mmpur_bool,
l_changeable TYPE mmpur_bool.
* if the item is already on the database,
* we disallow to change field badi_bsgru
l_persistent = im_header->is_persistent( ).
l_changeable = im_header->is_changeable( ).
* after coding
IF CONDITION IS TRUE.
IF l_changeable = 'X'.
<fs>-fieldstatus = '.'. " READY FOR INPUT
ELSE.
<fs>-fieldstatus = '*'. " view
ENDIF.
ELSE.
<fs>-fieldstatus = '-'. "SUPRESS IT
ENDIF.
Remember note, if all fields that you add are suppressed, then the dynpro will not be viewed.
I hope this helps you
Regards
Eduardo -
Field Exit for ME21N & ME22N transactions
HI Friends,
I need to make the SAP Standard screen field "Overdeliv. Tol." & "Unlimited" to inactive under the Item level data --> Delivery tab in ME21N & ME22N transaction.
Can i do ths? If so give me the steps and Screen exit for the same...For User Exit's
goto to tcode->status->program name->double click on that,
then goto to-> attribute take the package name and
Goto SMOD tcode ->Utilities->give the package name and F8
then a list of exits will display for that tcode as well as that package.
double click on the exit u can see the Fm exit,screen exit,feild exit,include exit. there
u can check the table MODSAP
For BADI's,
1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
2)Goto to tcode->status->program name->double click on that program will display's
then press crtl+F then cl_exithandler
Thank u,
santhosh -
How to update Partner function tab in ME21N Transaction
Dear Guru's,
I have a requirement to call a selection screen in ME21N transaction which will show list of vendors available. the selected vendor in the selection screen should be updated with parnter function 'CR' in the Parnter function tab of ME21N Transaction and EKPA table also.
Thanks & Regards,
Sridhar R Perumalla.Hi,
Use the function module MM_UPDATE_PARTNERS for updation ....and wite the code in ME_PROCESS_PO_CUST badi in process_header method...
in PROCESS_HEADER method use GET_DATA to get the entered vendor number in PO.
Thanks,
Shailaja Ainala. -
Add New Field in Delivery Tab of Me21n -which exit
Hi,
My requirement is to add a new field(Inspection lot) in Delivery tab of me21n
kindly help me in which SCREEN EXIT i have to add the code.
Advance ThksHi,
Check this userexit. MEQUERY1.
if that doesn't workout check one by one from following.
Enhancement
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
MM06E011 Activate PReq Block
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
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
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
M06B0003 Number range and document number
Business Add-in
ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Customer
ME_PROCESS_PO Enhancements for Processing Enjoy Purchase Order: Intern.
ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
ME_PURCHDOC_POSTED Purchasing Document Posted
ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
ME_REQ_POSTED Purchase Requisition Posted
ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
MM_EDI_DELFOR_OUT Enhancements for IDoc Output of SA Releases: Internal
ME_PURCHDOC_POSTED Purchasing Document Posted
ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
ME_REQ_POSTED Purchase Requisition Posted
ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
MM_EDI_DELFOR_OUT Enhancements for IDoc Output of SA Releases: Internal
MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Order
MM_EDI_ORDERS_OUT Enhancements for IDoc Output of Purchase Order: Internal
SMOD_MRFLB001 Control Items for Contract Release Order
ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
MEGUI_LAYOUT BAdI for Enjoy Purchasing GUI
ME_BSART_DET Change document type for automatically generated POs
ME_CCP_ACTIVE_CHECK BAdI to check whether CCP process is active
ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)
ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
ME_CIN_MM06EFKO Copy PO data for use by Country version India
ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
ME_CIP_REF_CHAR Facilitates Reference Characteristics in Purchasing
ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
Assign points if useful. -
Shipping Tab in PO on / off .no error message.
Hi,
we have situation where user creates STO and shipping tab is On / off. sometime it displays sometime does't..we have observed its only happening one particular purchasing group mentioned in header level of STO .no error message shows up.this case is only with one user.we have check the roles with user who can create STO with Shipping tab but no luck. any suggestion is much appreciated.
Thanks,As we know this field doesn't depend on purchase group in standard.
Field selection is depend on document type or transaction variant.
Here, your field selection is differ against purchase group.
I am quite sure you have some development in your program SAPLMEGUI.
Debug the t-code ME21N using this particular purchase group with the help of an ABAP.
You will find the reason. -
VKM3 credit release resets the shipping tab dates
Hi all,
I create sales order today 04.03.2010 and delivery date is in future , say 10.03.2010
I go to scheduling - shipping tab and fix the material available date as 09.03.2010.
Order goes for credit block
I release the order through VKM3
After releasing the order , Scheduling - shipping tab dates are reset to 10.03.2010.
I do not want this to happen.
Any SAP notes to be implemented?
Can any body suggesst on this?
Thanks in advance
SaravananHi,
Check in OVA8 if you are using a userexit (flags of user1 to user3 on). If it's true, debug the code, surely it's not working right. Check if you are running in background the report RVKRED77 periodically. Check too (I think that your problems must be here) if you have any VOFM in the control of documents. I copy some documentation that I have:
"The goal of creating a custom FORM routine for the R/3 Credit Management module is to establish our own rules regarding when a sales order that had been previously on Credit Hold, and then released by a Credit Manager for further processing, should be subjected to the online Credit Management policies a second time if a Sales Order end-user is now trying to save some changes to that sales order. If the sales order is, in fact, subjected to the same online policies a second time, most likely that sales order will end up on Credit Hold a second time."
So, set a break-point and debug it.
Too, check these notes:
Note 18613 - Checklist for Credit Management
SAP Note Number 425523 Collection of consulting notes: Credit update
SAP Note Number 886235 Alternative credit account: Updating open credit values
SAP Note Number 550236 FAQ: Credit Management general questions
SAP Note Number 400311 RVKRED77: Reorganization credit data, new documentation
Regards,
Eduardo -
STPO 2nd line item not getting shipping tab
Hi All,
We have a issue with STP0, user created the STP0( different company code) with 3 line items of same materials. The first line items shipping tab is appering but second & third line items are not getting the shipping tab in item detail
Please help me to resolve the issue.
Thanks and Regards
Chandrashekar.RHi,
Thanks for your update,
First line item and second line item materials are same. i have checked the sales views for the supply plant.
Regards
Chandrashekar.R -
Shipping Tab in Return Purchase Order
Hello expoerts,
I've got a problem regardind "return PO", if I do it in ME21 transaction generates shipping data, and if i do it in transacion ME21n with the same input the shipping data is not generated (shipping tab isn't accessible).
Thx in advance.Hi,
Check this thread [Shipping Tab for Return PO |Re: Shipping Tab for Return PO]
I assume apart from this, in the vendor master returns vendor check box needs to be checked.
Regards -
New Tab on header level for me21n/me22n/me23n
Hi Friends
i have created a new tab on the me21n/me22n/me23n header level using the exit
MM06E005 , The tab is displayed but i am not unable to udate the records into the
EKKO Table whereas i have added my field in the include of EKKO CL_EKKODB
Kindly somebody help me with elaborated steps .
Thanks & Regards
Digvijay RaiHi Digvijay,
Once the data is entered on the screen ..code is written to update the table ie...
flow of data from custom screen for header is OK..but for display and change we need to
import the data in a similar manner to the customer subscreen or the tab added in header level
As you can see the following 3...code must be done in EXIT_SAPMM06E_006/007 to fetch data to customer subscreen for display/change actions..use 006/007 for PBO/PAI actions..
EXIT_SAPMM06E_006 Export data to customer subscreen for header(PBO)....INCLUDE ZXM06U36
EXIT_SAPMM06E_007 Export data to customer subscreen for header(PAI)....INCLUDE ZXM06U38 .
EXIT_SAPMM06E_008 Import data from customer subscreen for header
Pls check and revert..in addition
go to smod->MM06E005-> "documentation" -> Display to read more on documentation about data flows and exits used for it
Hope it helps
Regards
Byju -
hi Gurus,
When i am doing intercompany billing doc type NB in item details i am not getting the Shipping tab,pls help its needful.when i am doing ME21n i am getting this erroe "Not possible to determine shipping point for item 00010"
advance tks
giridhar
Edited by: sapsd80 on Feb 27, 2008 11:57 AMHi
PL. MAKE SURE YOU ARE FOLLOWING STEPS IN YOUR INTER COMPNY STO...
1)Create one Customer Master in XD01 with respect to Supplying Plant Sales Area and assign this Customer no with Receiving Plant in OLME->PO-> set up STO->Define shipping data for plant and for the supplying Plant assign the above sales area.( Make sure,In Customer Master,sales Area Tab: you are maintaining shipping condition)
2) For Receiving Plant Pur. Org and Co.Code Combination create Vendor master in XK01 and in this vendor master assign the Supplying plant in Pur.Org.Data screen->Extras--> Add.Pur.data
3) OLME->PO-> Set up STO------>For your supplying plant assign document type NB, Delivery type NLCC and Checking Rule RP
4)then For your supplying Plant and receiving Plant assign Document type NB
5)Make sure you are maintaining Sales View for the material at supplying Plant and in Sales /Gen plant Data view maintain Availability check, Loading group and Transportation group.
6) In SPRo-->Logistics execution> Shipping->Basic shipping functions->Shipping point Determination>assign shipping points-> For your Loading group,Shipping Condition and Supplying plant combination,Assign shipping point
these are the configuration settings you have to do in background.
Then Create STO from Receing Plant in ME21N with document type NB.
Based on that STO, Create Delivery in VL10B from supplying Plant
Do PGI in VL02N from Supplying plant
Do GR in MIGO at Receiving Plant keeping Outbound delivery as a ref. document.
Now your STO bet. two plants belongs to diff. Co.Codes will be completed.
Reward if useful
Regards
S.baskaran -
Hi,
while creating STO with ME21n transaction, working well with out any errors in DEV & TESTING server. But in PROD Server, shipping tab is not displaying and giving error "Not possible to determine shipping data for material".
Please guide and advise.
Regards
Vijay.Hi Vijay,
Since STO is working fine in Dev and Testing and i assume all your Development request having custamization for STO being transported to PRD then there should not be custamization problem...
pls check the master data...
i guess you want this for STO UB type...pls check
1)Material master is maintained in distribution channel that you have defined for STO and is maintained with shipping data like loading grp
2) Internal customer number of the receiving plant which you assign in custamization has been created in PRD since this is master data while testing you must have created in DEV and Test Server using XD01
Let us know whether this resolves or not
Regards
Jagdish -
Shipping Tab in Stock transfer Purchase order
Hi,
while making a PO,there is Shipping Tab appears in Stock transfer order though all concerned settings are done.
1.Shiiping condition is attched to customer.
2.Ctreate material for both the plant.
3.Create vendor and customer settings.
still the shipping tab is missing in PO ,please suugest me.Hi
Check the shipping point determination setting in
SPRO-Logistics execution-Shipping-Basic shipping functions-Shipping point and goods reciept point determination-Assign shipping points
Also check SPRO-MM-Purchasing-Purchase order-Set up stock transport order-assign delivery type and checking rule
Regards
Sandeep
Edited by: sandeep13 on Apr 16, 2010 11:29 AM -
Shipping tab doesn't appear in PO
Hi MM experts,
When I am creating returns PO (return box checked), the shipping tab is not coming in item detail. System gives below error.
"Not possible to determine shipping point for item"
The most common reason this shipping tab doesn't appear in PO is because a Returns Vendor customer account number has not been maintained on vendor master. But in this case I have checked the vendor and found that Vendor customer account number has been maintained. And the material also has been extended to sales org xxxx, distr.channel xx.
I have checked TVSTZ table, eveything seems to be OK.
Error descr: Message no. 06855, Diagnosis "The system was not able to determine a shipping point for the combination shipping condition , loading group xxx, plant xxxx in the case of item xx."
System Response
It is not possible to create a delivery in the Sales and Distribution component without specifying a shipping point.
I do not know what to do or what is missing??
Can anyone suggest how to proceed to create return PO.
Thanks in advacne
Suresh.Hi,
Please refer SAP note- 831469 - Customer, Shipping Point for Storage Location incorrect for the same.
Also check wether Sales views are maintained for that Material you are using for the STO, Check and maintain the loading group and shipping conditons in MMR sales: General/Plant View for receiving plant
Also Check created SD customer(vendor) by you in system by XD01.
and check for the complete STO config settings
SPRO - MM -- Purchasing -- Purchase order --- Set up stock transport order -- define shipping data for plants
Regards,
Sandesh Sawant
Maybe you are looking for
-
hi, In my client system a custom view is maintained for MM* transactions I have added two custom fields in MARA table as well as this custom view. Now i have to populate value for this two custom fields. i am using "/AFS/BAPI_MATERIAL_SAVEDATA" to up
-
Can't create new User Identity in OAM backed by OID
We installed with the following steps: 1) Downloaded OIM from OTN (10.1.4.0.1) 2) Installed OIM, selecting only OID, onto a dedicated XP server 3) Downloaded OAM from OTN (10.1.4.0.1) 4) Installed Identity Server onto the OID server, updating the OID
-
PDFs showing up blank for other users
Hey all, I'm having some issues. I'm currently on a mac and using Adobe Reader. When I fill out a pdf form, and then I send it out to other people, it shows up blank, as if I never filled out any of the information. However, when I check on other com
-
After effects CS5 quit unexpectedly on launch
I just install a trial version of CS5 creative suite that I download directly from Adobe. After I install successfully, I tried to open after effects and it crash on launch, as well as my other CS5 program, they just crash. Please anyone with any ad
-
Hello! I'm useless at java and am trying to complete a piece of code i just don't get! I'm reading in a text file and don't know how to complete the buffered reader section of it can anyone help! p the code is as follows. // Author: // Date: // The c