How to find userexit for a material to be locked
Dear Expertise,
Good Day.
I have to find out a userexit for a material which will be locked after a sales order is created related to that material. i,e a material will be locked when a sales order is created related to that material.
Can anyone help me out to solve this issue .
Thanks,
Tripod.
Hi,
To find any exit for any transaction follow the following procedure
Goto SE24
Give CLASS name as CL_EXITHANDLER , and go to the method GET_INSTANCE
and put the break point on
CALL METHOD cl_exithandler=>get_class_name_by_interface
EXPORTING
instance = instance
IMPORTING
class_name = class_name
CHANGING
exit_name = exit_name
EXCEPTIONS
no_reference = 1
no_interface_reference = 2
no_exit_interface = 3
data_incons_in_exit_managem = 4
class_not_implement_interface = 5
OTHERS = 6.
and see the exit_name on dedug time, you can get all the exitnames.
Regards
Ramesh
Similar Messages
-
How to Find Vendor for the material before posting a PO
Hi,
I am using BAPI_PO_CREATE1 to post a PO(ME21N), in the order to fill header data I need to give Vendor information. I have filled that data with one ZTable and executed. When i executed the BAPI, it gave me result as "VENDOR is declared as some thing else for the material". Now my Query is how to know the vendor the particular material.
Even MSEG is showing no vendor.Hello Krishna,
I do not think there's any direct assignment between a material and a vendor. And I would be surprised if there's one. Let's say there are 4000 materials and 600 vendors in an R/3 System. Doesn't it sound needless to maintain for each material all the vendors ?
Just go to the Purchasing tab for a material (MM03) and also refer to the Purchasing data for a Vendor (XK03). you will see that there's something called a <i>Purchasing Group</i>, which is common to them both. Now just read the F1 help for this field.
Regards,
Anand Mandalika. -
How to find the quatity of material in backorders
hi
in which table the backorders get saved.
from the v.15 transaction i got the backorders.
i like to know that how to find the quantity of material which is due in the backorders. what are the fields for backorder quantity of material.
regards
kqSolved in this way
*"*"Local Interface:
*" IMPORTING
*" VALUE(SUBCLASS) TYPE KLSCHL
*" EXPORTING
*" VALUE(CLASS) TYPE KLASSE_D
*" TABLES
*" RETURN STRUCTURE BAPIRET2 OPTIONAL
DATA: lv_clint TYPE clint,
lv_clint1 TYPE clint.
CLEAR: lv_clint,lv_clint1,class.
FREE: return.
SELECT SINGLE clint
FROM swor
INTO lv_clint
WHERE kschl = subclass.
IF lv_clint IS NOT INITIAL.
SELECT DISTINCT clint FROM kssk
INTO lv_clint1
WHERE objek = lv_clint.
ENDSELECT.
IF lv_clint1 IS NOT INITIAL.
SELECT SINGLE class
FROM klah
INTO class
WHERE clint = lv_clint1.
ENDIF.
ELSE.
CONCATENATE subclass 'Subclass not found' INTO return-message SEPARATED BY space.
APPEND return.
CLEAR return.
ENDIF.
ENDFUNCTION. -
How to find Transaction for a Known Table maintenance View
Hello Friends,
May I know how to find transaction for a known table maintenance View.
Thanks,
Best Regards,
Sudhanshu GargGoto SE16 Transaction and enter TSTCP Table
Here PARAM = /SM30 VIEWNAME=Table name*;UPDATE=X;
enter table name in bold.
Thanks
Seshu -
Hi ,
I need help how to find driver for my old printer HP 2300d I use USB Cable for my Laptop window 8 (64 bit)
help I am stuck can't print anything.
KimHi, Welcome to hp forums and enjoy your stay, feel yourself like home here!
I am very sorry to hear this, I will try my best to help you, I am always glad to help!
Please follow the steps i provided below:
1. http://windows.microsoft.com/en-ca/windows7/automatically-get-recommended-drivers-and-updates-for-yo...
Now refer to the below link and right click your printer device
2. http://pcsupport.about.com/od/windows-8/a/update-drivers-windows-8.htm
Sorry because of different timezone I might not be able to help/reply you right away.IF that happens I deeply apologize!
**Click the White thumb if you like the answer.**
**Please mark Accept As Solution if it solves your problem and only solves your problem, if you have any more questions please ask, this also helps others to solve related issues.**
Feel yourself like home here, we are all happy to help, if you have an question reply or start a topic or pm me or an expert. -
How to find TCodes for Config Transactions
Hi All,
How do I find the TCode for a Config Activitity node?
For example.
OX09 is for "Maintain Storage Location"
OB52 is for FI Period closing/opening
I know these from google search, but how do find tcodes for other IMG activity nodes?
Thanks in advance!Go to SPRO and in Menu Additional Information Click Display key and IMG activity then Sytem will show the SPRO Transaction along with path
Else Go to Particular Node say Create Purchasing Group and Right Click on Node and Select Display Technical Info and in ID tab the Last four Charecters wud be the Trxn code.
In SPRO-IMG screen Only Few Nodes will Show / have the Transaction codes. -
How 2 find program for smartform
how 2 find program for smartform
Hi,
go to TNAPR table and find the driver program for the layout.
give the layout name, if you know the output type also give it.
OR
go to se71 and go to the layout , check the text elements syntax then it will show the possible driver programs in the window to choose.
that way you can find..
Or else...
Go to the Tcode -> NACE
OR
Go to the T-code 'SMARTFORMs'
Give your form name
go to the general attributes.
Check the Package name.
then go to T-Code-> SE80
there check the program name for a package wise
Regards,
KK
Message was edited by:
Kishore Kumar Karnati -
How Assign a Buyer for Each Material
Dear experts ,
How Assign a Buyer for Each Material , for example,This person is going to buy this material in purchase dept. is there any possiblities
regards,
Rajahello,
u can achieve same results by following simple way
create purchase document types for example for raw material purchase,consumable purchase etc
then assign buyer from personal setting from each buyers computer.
regards
kedar -
How to find out what network an iphone is locked to.
How to find out what network an iphone is locked to.
Assist.The previous owner/seller didn't provide this info?
What does it say at Settings > General > About > Carrier? -
ALE/IDOC:The group data for the material CS94163AOOO is locked by ECPUSER
Dear All,
I have extended the idoc for MATMAS and getting -The group data for the material CS94163AOOO is locked by ECPUSER
error on receving ( production ) server.I have written BDC in Z-function module to upload the data for extended segments after calling IDOC_INPUT_MATMAS01 function module.
When the same scenario executed in development server the material is not getting locked and idoc is posted successfully.
Please guide to resolve the error.
Thanks,
Sanjay Deshpande.
Edited by: sanjay_123 on Nov 1, 2009 4:41 PMHello,
Can you pls try to use ENQUEUE_E_TABLE or FM specific to lock/unlock MARA table during Idoc creation.
and put some WAIT statement before creation.
CALL FUNCTION 'ENQUEUE_EMMARAS'
EXPORTING
MODE_MARA = 'S'
MANDT = SY-MANDT
MATNR = 'CS94163AOOO'
X_MATNR = ' '
_SCOPE = '2'
*_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Then write code for creation of MARA
Unlcok now like this
CALL FUNCTION 'DEQUEUE_EMMARAS'
EXPORTING
MODE_MARA = 'S'
MANDT = SY-MANDT
MATNR = 'CS94163AOOO'
X_MATNR = ' '
_SCOPE = '3'
_SYNCHRON = ' '
_COLLECT = ' '
~Pramod
Edited by: PKUPADHYAY on Nov 1, 2009 5:40 PM -
How to find vendor of the material?
Hi!
I want to know how to find vendor who supplied the material. for eg i am displaying the material in list if user clicks in the material he should be displayed the vendor who supplied the material.
what all the table to access whats the link. Pls reply ASAP.
Thanks,
Imran.Hi
Refer:
<b>http://www.erpgenie.com/sap/abap/tables_mm.htm</b>
For Tables and Relations.
Regards,
Sree -
How to find out if a Material is part of BOM ?
HI Guru's,
I have material XXXXXXX and I am trying to find out if this material is part of BOM ? How can do that? and how can I find out in which hierarchy it's set?
Please can someone help me.
Best Regards,
YasmeenHello,
You can use transaction CS15, and your material as input=> System displays all BOMs to which your material belong
If you have a bom, then use CS12 to explose material and look for your material -
How to find batches for "stock for vendor".
Hi all,
My requirement is as follows.
when we execute MMBE for any material. It will display the stock of material in different Storage locations of the plant with respective matches.
for example:
MATERIAL 12345
PLANT 1234 4663
STOCK PROVIDED TO VENDOR 1962
BATCH1 1960
BATCH2 2 (similarly for others given below)
SCRP
BATCHES QUANTITY
WHYC
BATCHES QUANTITY.
I want to know the batches in the stock provided to vendor.
we can find all batches to material in MSEG and MCH1 tables. but i dont understand how to distinguish between stock provided to vendor and other storage locations.
hope i am able to explain my problem clearly.
can anybody help me on this.
Thanks.Hi!
The vendor consignation stock can be seen in the transaction MB54.
It is stored in the MKOL table.
This kind of stock is phisically stored at your storage place, however, it belongs to the vendor, until your company does not pay for it.
Regards
Tamás
Edited by: Tamás Nyisztor on Jul 29, 2008 4:01 PM -
How to assign knttp for a material
Hi,
i have some materials with out Account assignment cat(KNTTP). I want to know how KNTTP value is assigned for a material i mean during material creation itself or in which transaction we will assign this field for a material.You have to get into SPRO for that. In SPRO, follow the path below
SAP Customizing Implementation Guide
-->Materials Management
-->Purchasing
-->Account Assignment
This is where they define what assignment categories should be used and link them to item categories. Now it is these item categories that are in turn assigned to PO document type in the path below.
SAP Customizing Implementation Guide
-->Materials Management
-->Purchasing
-->Purchase Order
-->Define Document Types
-->Select your document type and then double click on 'Allowed item categories'
It is these item categories that are combined into item category groups and are assigned to the material depending on material type. The assignment of item category group to material type is done in config based on the path below.
SAP Customizing Implementation Guide
-->Logistics - General
-->Material Master
-->Basic Settings
-->Material Types
-->Define Attributes of Article Types
--> Select your material type and display it, you will see the item category group there
Now while creating the purchase order, if you have automatic account assignment category assigned and if it is 'K', then you have to enter account assignment data. It is not just an account number, it can be a cost center, WBS element or some other element. Check with your functional team member for finding out what is appropriate to use. -
Finding Userexit for Tocde MSC1N
Hi,
I'm working on one object where the requirement is that every time a batch is created in a certain plant the system has to classify it automatically by inserting certain values in the classification view.
The information required is:
- Batch Standard (for Pigments) from MARA-FERTH into QM_00002(Characteristics Name)
- Plant (in which batch was created) from the material document (MSEG-WERKS) or batch master (MCHA-WERKS) by which the batch was created into QM_000003
- Valuation type(if material is split valuated) from MSEG-BWART or MCHA-BWTAR into LOBM_BWTAR
EXIT_SAPLV01Z_012 to be used to classify user-defined characteristics in the background when creating a new batch using the central function module VB_CREATE_BATCH during activated batch classification.
And EXIT_SAPLV01Z_014 (SAPLV1ZN )for inserting the characteristics in Classification View.
But in the debug mode for MSC1N the EXIT_SAPLV01Z_014 is not applicable for the same Transaction.
Can any1 help me out to proceed with this.
Thanks in Advance.Hi,
Execute this code to find the Userexit for your txn:
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
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 eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
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.
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.
*---End of Program
Maybe you are looking for
-
Sound no longer working after graphics card installation
Okay, so my problem is: I recently added a graphics card to my windows 8.1 PC. The card itself works fine (a GTX 750Ti), but since installing it my sound no longer works from either port. Things I have already tried: Rebooting (obviously) Taking the
-
Color management - going from 3ds Max to Photoshop
I'm trying to develop a workflow for bringing renders from 3ds Max into Photoshop, and having them look the same in both programs. The issue is that Max isn't color managed, so things can shift. There's a good article on the subject here: http://www.
-
Slow start up after mountain lion update
Hi. I think I have mountain lion system (it is version 10.8.4 on my computer). It is slow to srtat up and takes about 5 minutes to get to the log in page. Is there a way of fixing this improvement?
-
How do i download itunes on windows 8 laptop
how do I download iTunes to my windows 8 Toshiba laptop.
-
Macromedia Flash Player for .swf
Can anyone tell me that is Macromedia Flash Player necessory to open any .swf file on our machine? Or can we open any .swf file without installing any version of Macromedia Flash Player? Thanks in advance :)