Mblnr field for mb1c user exit on save
Hello All,
Im using user exit, "EXIT_SAPMM07M_001" in enhancement package "MBCF0002".
I want to use MBLNR field but when i run program and fall into this user exit, i check local variables but MBLNR field is empty.
How can i get this field?
Any ideas?
Hi,
It has 'I_MSEG' structure which 'mblnr' field. did you check this field. it should have value because that is main key in determining material document.
i think my understanding of the issue is in right path.
Thx,
krishna
Similar Messages
-
USER-EXIT on SAVE event for IE01
Hi,
I need USER-EXIT on SAVE event for t-code IE01.
EXIT IEQM0003 work only first time after pressing "SAVE".
IF i press "SAVE" second time equipment will be created.
Edited by: andriy.hulyk on Jan 26, 2012 12:45 PMHere is my code:
IF DATA_ILOA-TPLNR IS INITIAL.
AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
ID 'ZZFLC' FIELD '*'.
CASE SY-SUBRC.
WHEN 0."SAP-ALL User
EXIT."OK
WHEN 12."User without restriction
EXIT."OK
WHEN OTHERS.
AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
ID 'ZZFLC' FIELD '01'.
CASE SY-SUBRC.
WHEN 0."Create eq. only with FL for some work centers
MESSAGE E250(ZPM) WITH 'test' RAISING POSTING_NOT_ALLOWED_EXT.
ENDCASE.
ENDCASE.
ENDIF.
If i press "SAVE" firs time it work great. But next pressing just create new equipment. My restriction does not work( -
Hi,
Is there any user-exit at save for transaction KL01.
Here is my requirement.
Where ever am employee is hired in HR ( transaction PA40; Action = Hire) i have to automatically create an Activity Type ( t.code : KL01 ). I am doing this in user-exit PBAS0001, component EXIT_SAPFP50M_002 on HR side.
The next this is, once activity type is created using transaction KL01, i have to automatically trigger a activity type planning, transaction KP26.
So, i need a user exit at Save in transaction KL01, so that i can trigger KP26 from there. I found one exit COOMKS02, but i its not triggeting from KL01.
Does any one know any user-exit in KL01 which trigger at save. Please let me know
Thanks,
PratikHi Sharad,
Thanks for your reply.
I always have an option for executing both KL01 and KP26 fron PBAS0001, but what i was thinking that if there is any exit available at save in KL01, i can trigger KP26 from there.
If i could not find any exit, i will call both KL01 and KP26 from PBAS0001 itself.
Thanks,
Pratik -
MIRO - User Exit during SAVE: Read items & Update header
Hi there!
During MIRO after pressing save...
I search for an user-exit or BAdI, to READ ITEM DATA and UPDATE HEADER DATA (XBLNR) after SAVE but before UPDATE.
I have searched this forum, but with no luck. Many more then me seem to have the same problem. The most common answer have been to try BAdI INVOICE_UPDATE, but that BAdI only give READ access and NO UPDATE, so no luck there..
To summarize all my searching here and findings... I list all exits I have tested...
User-Exits
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
BADI - When saving in MIRO the following BAdI were passed...
PPA_CUST_BADI
/CCIS/FICLRDC_ENH
INVOICE_UPDATE << only read no update
ME_DP_CLEARING
AC_DOCUMENT
FI_LIMIT_PROCESS
AC_QUANTITY_GET
FMRE_BUS_PROCESS
EXIT_XFMPRI_001
CO_DOCUMENT_INFO
INVOICE_UPDATE (method change_before_update ) << only read no update
MRM_RANSACT_DEFAULT
MRM_HEADER_DEFAULT
Other BAdI's
MRM_HEADER_CHECK - Bara ingående värden för kontroll
MRM_HEADER_DEFAULT - Tyvärr sätter bara XBLNR precis när man går in i MIRO...dvs för tidigt.
MRM_ERS_HDAT_MODIFY - EJ anropad...
Would be greatful for any ideas on this matter...
Best regards
HenrikHello Henrik,
In BADI INVOICE_UPDATE there are 3 methods CHANGE_AT_SAVE, CHANGE_BEFORE_UPDATE and CHANGE_IN_UPDATE.
Of these CHANGE_AT_SAVE is called before INSERT / UPDATE statements are executed. We can use this to update RBKP-XBLNR.
We can't use CHANGE_BEFORE_UPDATE and CHANGE_IN_UPDATE methods as they are called after INSERT / UPDATE statements are executed and before COMMIT.
You can update RBKP-XBLNR through INVOICE_UPDATE~CHANGE_AT_SAVE method using call stack technique like below. You can replace 'VALUE' in the below code with the value based on your calculation using other variables like s_rbkp_new, ti_rseg_new etc.
method IF_EX_INVOICE_UPDATE~CHANGE_AT_SAVE.
DATA: lv_name_xblnr(30) TYPE c VALUE '(SAPLMRMP)RBKPV'.
FIELD-SYMBOLS: <fs_rbkpv> TYPE mrm_rbkpv.
ASSIGN (lv_name_xblnr) TO <fs_rbkpv>.
IF <fs_rbkpv> IS ASSIGNED.
<fs_rbkpv>-xblnr = 'VALUE'.
ENDIF.
endmethod.
Best regards,
Vishnu Tallapragada -
User exit on SAVE event in tranasaction CS01
Hi all,
Please tell me user exit on save event in transaction cs01.
Thank you.Hi,
Check the following user exits.
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0009 Order/WBS BOM, determine URL page
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0013 Customer-specific processing of an explosion for BOM browser
hope it helps
Regards
Rajesh Kumar -
Hi!
I want to know if there is an user exit for the SAVE button in tcode MB1C.
I tried the following exits BUT NONE of the include passes the save button.
Please help me so I can put my new logic after user clicks the save buttong.
Thanks!
Exit Name Description
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
Edited by: ravolarte on Jun 8, 2009 11:00 AMcheck BADI
MB_DOCUMENT_UPDATE
mb_migo_badi
mb_document_badi
Check User Exit
EXIT_SAPLMBMB_001 -
FB60 Looking for user exit at Save
hello all,
i need to do some verification on the company code and wbs. It would be best if i could find a user exit when the Save button is executed. Does anyone have any ideas ?
thanks ScottThe below program gives all the user exits..try the program and awards points if it was useful
*& Report ZUSER
REPORT ZUSER no standard page heading.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Thanks and regards. -
COR2 User Exit at Save for Process Order Manipulation
I am trying to find a User Exit where I can manipulate fields at the item level, specifically batch or CHARG.
PPCO0007 seems to only have the header fields, batch is an item level field. Other exits seem to already save the order prior to my making the change.
Any suggestions will help.
Thank-You.Dear,
User exit ZXVBZU02 assign value to RESB-CHARG first
BAdI WORKORDER_UPDATE, and put break-points in method AT_SAVE, AT_RELEASE, IN_UPDATE
Please refer this thread,
User exit for transaction code COR2
Regards,
R.Brahmankar -
User exit after save for purchase order create/change
After generating the purchase order no (ME21) i need to save that PO no into a custom table.....can u plz tell me such user exit where i can do this???
Hi,
BADI ME_PROCESS_PO_CUST.
1. Method to implement would be POST.
2. Method POST has parameter IM_HEADER which is in reference to IF_PURCHASE_ORDER_MM.
3. This reference has method GET_CONDITIONS.
4. call this method to get conditions data.
5. Make all the changes based on the logic and use method SET_CONDITIONS to change the values.
User exit will be MM06E005.
EXIT_SAPMM06E_012.
<b>Reward points</b>
Regards -
User exit after save for purchase order?
After generating the purchase order no (ME21) i need to save that PO no into a custom table.....can u plz tell me such user exit where i can do this???
Hello,
Use the exit
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
VAsanth -
User exit when save production order
Hello,
I have to fill the OVERHEAD KEY field value in production order header at runtime based on some calculation. So I need a user exit which can be used to save the value of overhead key.
I already tried the exits PPCO0001, PPCO0007, PPCO0006, PPCO0012, and PPCO0018 but these all are not working for me as I am trying to insert or change the value of Overhead key(ZSCHL) but at the last value is not changing at all .
Please suggest me if you have any solution.
Thank you in advance!!!
Rock,My question was:
I need a user exit, using which I can change the value of overhead key at runtime.
suppose I am creating a production order with a sales order (CO08), and overhead key value is NULL currently.....but at the time when I save that production order based on sales order type I have to enter the value of overhead key.....for that I need a user exit where I can change the value of overhead key
at runtime.
I already tried the exits PPCO0001, PPCO0007, PPCO0006, PPCO0012, and PPCO0018 but these all are not working for me as I am trying to insert or change the value of Overhead key(ZSCHL) but at the last value is not changing at all .
Please suggest me if you have any solution.
Thank you in advance!!!
Rock, -
Asset master user exit at save
Hi!
Can anyone tell me, which user-exit is running at the save moment, while creating or modifying an asset master data (AS01, AS02 transaction)?
Only the user exit is interesting me, which is running when the user is pressing the "SAVE" button, random user-exit lists are unwanted.
Thank you
TamáHi,
Following are exits available for AS01. Just put break point in each exit and test it at the time saving asset whether it is triggering it or no. Then you will come to know the exact one.
TRAN0001 User exit for asset transfer
AAPM0001 Integration of asset accounting and plant maintenance
AFAR0003 External changeover method
AFAR0004 Determination of proportional values for retirement
AINT0004 Change amount posted for certain areas
AINT0005 Dummy for extended syntax check. Do not use.
AISA0001 Assign Inventory Number
AIST0001 Exchange number range in master data maintenance
AIST0002 Customer fields in asset master
AMSP0002 Determine relationship type for two company codes
Reward points if helpful.
Regards,
CS. -
Hi SDN,
I am posting document using MB1C transaction. I want to update SGTXT and EXBWR fields in MSEG table while updating; is it possible..? Which user exit can be used to achieve this..?
Regds,
Vinsa.RHi,
check the enhancement : <b>MBCF0002</b>
documentation :
The user exit MBCF0002 includes a function module that is called up when
you enter a goods movement for each item.
It enables you to fill in the item text in the material document item,
depending on the following data:
o MKPF (Material document header)
o MSEG (Material document item)
o VM07M (Additional data for material document item)
o DM07M (Additional data for material document item)
The item text is also stored in the accounting document.
Examples
Goods receipt for a purchase order assigned to an account: since the
purchase order number does not contain a material number, the material
description entered in the purchase order is used as an item text (field
MSEG-SGTXT).
Example of source text:
IF I_MSEG-MATNR IS INITIAL.
E_SGTXT = I_DM07M-MAKTX.
ENDIF.
If the material description is to be used as the item text for all goods
movements, the source text has the following line only:
E_SGTXT = I_DM07M-MAKTX.
Regards,
Sandeep Kaushik -
What is the name of the table for finding user exit !
What is the table name to find the user exit !
Hi,
Goto to the table tstc and enter the transaction code for
which u want to find out the User-Exits. Check out the
program name from the result. Goto SE38 and dee that
program in display mode. Then search for the string Call
Cutomer-Funtion. All the result of search are the user
exits defined there for that transaction.
SAP user exits (enhancement names that we see in SMOD transaction) are all stored in the table MODSAP. The field NAME contains the enhancement name and the field MEMBER contains the name of the function module that will be called if the customer enhancement exists and is active. The customer enhancement projects are stored in the table MODACT. There, the NAME field is the name of the project and MEMBER is the name of SAP enhancement (that from the MODSAP).
So, if you are in some include, you can use where-used-list to get to the function module name. Then you find the SAP enhancement name from the MODSAP by supplying the function module. And finally, you find the customer enhancement projects by querying the MODACT with the SAP enhancement in the field MEMBER.
cheers,
vasavi.
kindly reward if helpful. -
Hi Experts.
Can anyone tell me how to know the enhancement for a particular user-exit.
Rgds,
SimranHi,
If you know the User-Exit name for eg:EXIT_SAPFP50M_002, Goto SE11 and check the table MODSAPVIEW giving this (EXIT_SAPFP50M_002) in the MEMBER field, you will find the Enhacement Name in the Name filed.
But is the thing you need to know or finding an user exit for a SAP transaction..?
SK
Maybe you are looking for
-
Satellite U400-15B hangs on Internet and Touch media keys issue
Hi All, Had two issues with my U400-15B which I am hoping to resolve. 1) The first issue is that I have noticed that my internet occasionally seems to hang on Internet Explorer when using website's which have a couple of images e.t.c. It will freeze
-
How to Create Business Partner with fix number in t-code :BP
Dear SIr, Normally I will set number range for auto to create Business Partner. In case , If we would like to crea How to Create Business Partner with fix number in t-code :BP , howe to do? Please kindly advise. THnak you and best regards, Vimol
-
How to reformat my iPod nano???
Hi, My nano is formatted to Mac which is not recognised whenever I plug into a PC. How do I reformat my iPod to Windows?? Pls help.. thanks..
-
For a READ TABLE how to build a dynamic WITH KEY condition?
Hi All, I have a Z table with 6 fields. The first field is the Plant and is the key field. This field can be matched with the field from selection screen. Now I have 4 character fields which can contain various values. Now I have another field at the
-
CFMEDIAPLAYER Shows Conn Error When I Use It
I have ColdFusion 9 installed and have been trying out some of the new tags. In trying to use cfmediaplayer I am not able to play an FLV video located on the same site as the calling page. The tag is this: <cfmediaplayer autoplay="false" name="George