Material document automatic fill position with user exit or BADI in MB1B
Hi gurus,
We have this requeriment.
We need to modify a material movement via customizing and enable a new field (Order) in it. (At header's level)
After that, in MB1B, we need that after input a maintenance order in that field, the first position in material document will be filled with material and quantity from the order.
The question in...is there any user-exit or badi that allows me to do this implementation??
A lot of thanks!!
Edited by: Cap_ES on Oct 27, 2009 8:30 AM
As i saw, this requeriment is not possible.
I'll close the post.
Similar Messages
-
User Exit / Enhacement / BADI for MB1B transaction
Hi all,
Movement type -311
Plant 1004
Storage Location - XXX
Now reuirement is like during Transfer posting when user provides Receving Location and Material and Press Enter
batch and qunatity should be automatically populated based on some Selection.
I checked BADI but no BADI is available when user press Enter.
Please suggest me with Enhancement Spot , User Exit for this requirement.\
Thanks in advance.
Harsharandeep SinghHi Harsha,
Try these User Exits/Enhancements.
Following are the BADIs for MB1B transaction:
ARC_MM_MATBEL_CHECK Check Add-On-Specific Criteria for MM_MATBEL
ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL
MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables
MB_CIN_LMBMBU04 posting of gr
MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
MB_DOCUMENT_BADI BAdIs when Creating a Material Document
MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
Following are the user exit for the same:
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
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
Vishnu. -
How to do this issue with user-exit or badi
in migo transaction, after entering some purchase order number. go for item details.
In that in quantity tab, Qty in unit of entry field value should be empty when the purchase order number is entered. how to do this?
plz let me know as soon as possible.
it is urgent requiement .
points will be awarded.
thanking u in advance,
A.srinivas.Hi Arthur,
Try this code ( i had changed only one line of code in your original code)
Set oGoodIssue = oCompanyDI.GetBusinessObject(oInventoryGenExit)
oGoodIssue.DocDate = "12/14/2007"
oGoodIssue.Lines.itemCode = "SR-5155"
oGoodIssue.Lines.WarehouseCode = "R5155KGS"
oGoodIssue.Lines.SerialNumbers.Add
oGoodIssue.Lines.SerialNumbers.SystemSerialNumber = CStr(1)
oGoodIssue.Lines.SerialNumbers.ManufacturerSerialNumber = "SR-0000001"
oGoodIssue.Lines.SerialNumbers.InternalSerialNumber = "SR-0000001"
oGoodIssue.Lines.SerialNumbers.SetCurrentLine 0
retval = oGoodIssue.Add
If retval 0 Then
oCompanyDI.GetLastError errMsg, errMsg2
sbo_application.messageBox errMsg & " (" & errMsg & ")"
Else
sbo_application.messageBox "Success"
End If
Hope it helps you
Regards
Vishnu -
Cost center in FB01 - User exit or BADI
Hi,
I would like to change the cost center field data in transaction FB01 with some other data based upon some conditions.
Please suggest with user exits or badi.
thanks.Thanks for reply.
In the user exits mentioned, checking for cost center value in the import parameter DOC_ITEM_TAB and based on some validations i have changed the it to other value. But this new value is not considered by the program still it is creating with the old value.
The changed value has to be exported from the user exit right? this is not happening as we know dont have cost center field in export or changing parameters
Please suggest -
MRP Run with User Exit key for Follow up material
Dear Gurus,
I want to run MRP only for followup materials by using User exit key. For example i have a material X(with discontinued Indicator as 1) and it's follow material is Y.
So we have a user exit key as ZFL, with coding as shown below. Now when i run MD01 with user exit key ZFL and parametre as 1, it only runs MRP for material X and not for material Y. What else we need to do so that when i run MD01 with user exit key ZFL, it shoudl consider both X and Y.
WHEN 'ZFL'.
DATA : BEGIN OF ITAB5 OCCURS 0,
KZAUS LIKE MT61D-KZAUS,
END OF ITAB5.
TRANSLATE USER_PAR TO UPPER CASE.
SPLIT USER_PAR AT ',' INTO TABLE ITAB5.
IF ITAB5[] IS INITIAL.
EXIT.
ENDIF.
CLEAR: NO_PLANNING, STOP_PLANNING.
READ TABLE ITAB5 WITH KEY KZAUS = MT61D-KZAUS.
IF SY-SUBRC <> 0.
NO_PLANNING = 'X'.
ENDIF.Hi Kumar,
You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
Thanks -
Valuation price with user exit/BADI/Enhancement Spot (In valuation variant)
Hi all,
i am facing problem finding enhancement when creation of sales order of Valuation price with user exit/BADI/Enhancement Spot (In valuation variant)
For refferenece:
When going to t.code VA03, select one item and go to extras in the menu bar and select costing then you find some amounts calculation i.e valuation price automatically.
So when creation of sales order i am giving material and that material price automatically takes from material master and creating sales order.
My customer requirement is to get the valuation price of the input material from Z-table during the sales order cost estimate.
This Z-table contains the material code, plant , grade of the material.
Ex:
Material Plant Grade Price
A 1000 XYZ 25000
A 1000 PQR 35000
A 1000 BCD 45000
Suppose it depends on sales document type and which grade price i have to take.
So first of all i am unable to find enhancement where to change this code to get change the valuation price.
Does anybody have any idea , is there any user exit/BADI/enhancement for this.
So please help me in this issue.
Thanks & Regards,
lokeshgoudpls allow me to post the questions
-
Create TO from material document automatically
Hi Experts,
I'd like to ask for a solution about Create TO from material document automatically.
Business Scenario:
Normally, user will create TO from material document by LT06, then confirm it by LT12. If there is no stock on the shelf at the time when user confirms it, user will put quantity zero when confirmation by LT12, then user will create a new TO according to same material document.
Requirement:
According to scenario above, if there is no stock on the shelf, user wants to create a TO from material document automatically when he confirms the first TO.
here I'd like to ask if there is any solution on it?
We tried to use user exit: EXIT_SAPLL03T_002, and call transaction in it.
but result is: first TO is not confirmed with zero quantity yet, so new TO can not be created.
Please tell if there is any other solution, many thanks.
Best Regards,
H.BHi
To my understanding at the first time when TO is created for the material document and stock is not available using the available user exit in TO confirmation u can forcibly confirm the TO but for the second time TO creation and confirmation there wont be any trigger point( as bcz we have config to create TO immediately ony when mat doc is created) so for that u need to schedule a job for creation and confirm of TO's for the open mat documents.
Regards
Amarnatha -
F110 - Automatic Payment (User Exit, BTE, BADI)
I have requirement after generating payment document by F110 automatic payment. I need to send data to other system.
How to get all payment documents? Can I use a BTE, User Exit or BADI? Kindly help me.Hi ,
You can create a DMEE or genrate Idoc to another system .
If you want to send excel file then you can create a dmee file in transaction DMEE with same formt provided by bank/ another system .
many Thanks -
Valuation price with user Exit on activity types
Hi All,
Our customer could have different activity cost for different products even if they are processed on the same cost center, same activity type and same activity time. So I wonder whether SAP has valuation price with user Exit on activity types as what on material valuation, when we select "U" in the relevant valuation variant. Could anyone knows advise please?
Regards
WalterHi Walter,
an idea might be to include an ABC template into the costing. ABC tempaltes allow a big degree of freedom in determinin which processes to use and in which quantities. To use the product as a cost driver is certainly not an issue. I doubt that you can directly influence the process 'price' to be applied, but to change the quantity could bring the same result.
See the docu for more info:
[http://help.sap.com/saphelp_erp60_sp/helpdata/en/7e/cb7d1443a311d189ee0000e81ddfac/frameset.htm]
best regards,
Udo -
Difference between the different structures while dealing with User-Exits
While dealing with User-Exits, we come across the different structures/Tables like XVBAP,YVBAP,TVBAP,IVBAP,*VBAP....
What is the difference between them ?Usually X<tablename> and Y<tablename> are used in change document management to determine records updated (Y is old values and X new ones). (Look at transaction SCDO)
T<tablename is an internal table read from database and I<tablename> is an import table parameter of the same structure. <tablename> is an equivalent of <tablename> declared with statement TABLES and contains usually the "old" value.
Look at exit documentation. start at [User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm]
Regards -
Material desc automatically filled when enter material number using SM30
Hi all,
I have created Z table with fields material number(MATNR) and material description. Iam maintaing table using SM 30 transaction. If I enter material number the material description automatically filled when press enter button.
Is there any solution for this
Thanks
SudarsanaHello,
whenever you create a maintainance for a table an SAP program is generated which will have the name SAPL(name of the function group to which the table is assigned)....you can go directly to the program inside SM30 by clicking on the top menu -> system -> status ->program name and screen number
inside SM30 go to the screen where you have to see the description(based on 1step and 2step ) and note the screen number and program name
once you go the program -> go to the particular screen -> and confirm the screen
inside the PAI or PBO
write the code :
if Material number is not initial.
select and put material description into the screen field for text.
else.
clear the value for text in screen field
endif.
Disadvantages : whenever you create a new maintainance by using the table maintainance generator the code is over written
solution:the screen code will be always over written..but inside the SAPL program when you create the PBO/PAI make an include and save it...when regenerating the include will not be over written but you will have to go to the screen flow logic and give the name of the PBO/PAI modules
A table once finalised will not require regenerating the maintainance again but this is a draw back ...but the solution just provided is the widely accepted and followed one
Reward if useful
Regards
Byju -
hallow
did some one have a exaple (document) how to do user exit?
RegardsHi
User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
The naming standard of function modules for functionmodule exits is:
EXIT_<program name><3 digit suffix>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION <3 digit suffix>
To find a Exit.
Goto Transaction -- Find The Package
SMOD >f4>Use the Package here to Find the Exits In the Package.
Else if you Want to search by Application Area wise ,
There is one more tab to find the Exits in the Respective Application Area.
Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
Now Run ur Transaction to Check if it Triggers.
Thats it..
Suppose you need to find out all the user exits related to a tcode.
1. Execute the Tcode.
2. Open the SAP program.
3. Get the Development Class.
4. Execute Tcode SE84.
5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'
6. Enter the Development class and execute.
Check out this thread..
The specified item was not found.
1. Type the transaction : system->status-> <PROG. NAME>
2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.
3. Open CMOD utilities->SAP enhancements
EDIT->All selections
4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.
5. The displayed list contains the enhancements names for the transaction You were looking for.
6. Create a project in CMOD and the code in default include->activate.
http://www.erpgenie.com/sap/abap/code/abap26.htm
which gives the list of exits for a tcode
http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
For information on Exits, check these links
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.planetsap.com/userexit_main_page.htm
User-Exits
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/ab038.htm
http://www.planetsap.com/userexit_main_page.htm
http://www.sap-basis-abap.com/sapab013.htm
http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
These links will help you to learn more on user exits.
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
http://www.planetsap.com/userexit_main_page.htm
http://www.allsaplinks.com/user_exit.html
www.sap-img.com/abap/what-is-user-exits.htm
Also please check these threads for more details about user exits.
Re: Screen exit
user exit and customer exit
user exit
1. Document on UserExits in FI/CO
http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
2. Finding User Exits...
http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits
3. List of all User Exits...
http://www.planetsap.com/userexit_main_page.htm
1. Customer exits: Implemented as Function Modules within z includes. Anybody can change it and no access key is required.
2. User Exit: Implemented as subroutines within includes (any include except y or z includes). You need access for the specific include and then you can any subroutine (user exit) within that Include.
BADIs are the enhanced version of user exits where the same logic is implemented via classes and object (OOP)
Enchancement point is the latest once introduces with ECC6.0 . Not very sure about that but you can change it without any access key.
Please go through the following link which will help you understand the exits in a much better way:
http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/content.htm
http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
http://sap.niraj.tripod.com/id21.html
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
http://www.sap-img.com/ab038.htm
User Exits.
http://www.erpgenie.com/sap/abap/code/abap26.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
customer exits
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
Menu Exit.
http://www.sappoint.com/abap/spmp.pdf
http://www.sappoint.com/abap/userexit.pdf
http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
1. Previously there were only user-exits.
2. Then came the concept of customer-exits.
3. user exits were nothing but subroutines
FORM/PERFORM
called from standard programs.
4. The FORM defintion was placed inside
an empty include file.
5. So It was called EVERYTIME.
and we need to MODIFY/REPAIR the
standard include .
6. Then it came with concept of customer-exit
7. It consists of calling a FUNCTION MODULE,
which is called only if
the user-exit is ACTIVATED (other wise not called)
In this case, the code in put inside
a pre-defined Z include.
8. Functionality of both is same, howerver
we can note the following important differences
a) Customer exit is called only if activated.
(hence, it does not waste resources)
b) in customer exit, REPAIR does not happen
to the standard include.
Exits are basically the hooks whcih SAP has provided to add your own code. There are two types of Exits:
<b>Reward points for useful Answers</b>
Regards
Anji -
User Exit or BADI for Material,BOM,Customer,Vendor
Dear All,
I have requirement where if User A changes a Material X .It should go for approval by workflow.
When the Material X is waiting for approval no other User should be able to change the material .It should give him a message
and restrict him from changing the Material.
Is there any User Exit or BADI to restrict him from changing the material. The exit or BADI should be called as soon as the Material is entered in MM02.
I need exit or BADI for BOM, Vendor and Customer also.
Thank you.Hi,
You can go to Transaction SE80 and check in Function Group MATF. There have been two User Exits which are called during MM02 Transaction execution (via Analysis Transaction SE30) - MATERIAL_FIELD_SELECTION_NEW and MATERIAL_FIELD_SELECTION_COMB.
BAdI called by FM MATERIAL_FIELD_SELECTION_NEW.
Thanks and Regards,
Prabhakar Dharmala -
Please help me with user-exits or baids for TCode : FOE2 & FOE1
Hi Experts
Please help me with user-exits or baids for TCode : FOE2 & FOE1.
I found these but not picking values from VIMI01,VIOB03 and VIOB41.
User-exits
FVCH0001 CH-specific enhancements: Esp. POR
ISRE0001 Determine bank procedure account no.
ISRE0002 IPD reporting data retrieval
Business Add-in
FVD_HANDLE_FORMULA Processing of Condition FormulasHi,
ASk your basis regarding the CI_CSKB table active issue, and first of all i dont see any table with the name CI_CSKB.
And check this exit-COOMKS03 whether it works for your screen exits.
Cheers!!
VEnk@
Edited by: Venkat Reddy on Nov 4, 2008 5:59 PM -
Issue with user exit ZXPADU01 and ZXPADU02
Hi,
I am trying to change the existing record for the info type 0015 for an employee in Pa30 transaction.
my requirement is i need old value and new value when i am changing the existing record in info type 0015.
When i kept break point in user exit ZXPADU01 it is not triggering it is triggering only when we creating the record.
i tried with user exit ZXPADU02 it is not working as per my requirement.
My requirement is :whenever i am changing the existing record(modifying record) i need old value and new value.
Anybody can suggest me how to fix this issue.
Thanks,
MaheedharDear Maheedhar,
The best way to achieve this requirement is to use the PAI user exit ZXPADU02 import parameter PSAVE. The PSAVE parameter contains the PBO original / initial record, before any changes take place.
The INNNN parameter contains the current PAI record as usual, in order to be used for customer check and new values. Thus, you've got both the old and the new record in place, and you can make your comparison according to the business requirements:
Maybe you are looking for
-
HP Pavilion dv2700 Windows Vista 32-bit speakers and microphone
Hi, I would like to seek expert opinion on the following two issues: 1. I am having this issue with audio playback on my notebook PC. I see that when I play any audio file from the Internet or even the sample audio clips on Windows, the audio is outp
-
Hi All, Please help me. I have an issue where users are not able to use Outlook 2010 to view free/busy information and cannot set Out Of Office automatic reply. But they are can set Out Of Office automatic reply from OWA. My exchange server is Ms Exc
-
Hi Could someone please help me in coding a report program where the output should be in cXML?
-
How to get Default Activity(Infotype 0315) using BAPI
Hi Everyone, I have a task to get Default Activity by Personal number for my third party application. Unfortunately function HR_READ_INFOTYPE is not allowed for Remote Call. Is there any simple way how to get this value from system using BAPI? E.e. u
-
Hide button in ribbon bar in dispform.aspx
Is there any way to hide or remove the "Edit Item" button in the ribbon bar of the dispform.aspx in a single list? I know that giving the user "read only" permission would grey out the button but this is not the intended approach. Hiding the complete