Is there any function module to lock t024 table
is there lock object for t024 table?otherwise any fm for locking t024 table?
Hi Naren,
<b>Good ... check out the following documentation
Lock objects are used to lock the database table while making the modifications on the database table.
you can create your own lock objects using SE11.
if you create lock objects on any table system will create two function modules.
1.ENQUEUE....
2.DEQUEUE.....
first one is used to lock the table
second one used to removing lock on the table.
lock Table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
tabname = table_name
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
Unlock Table
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
tabname = table_name
check this link :
http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
_SCOPE = 1: The lock is not sent to the update program. The lock is removed when the transaction is ended.
_SCOPE = 2: The lock is sent to the update program. The update program is responsible for removing the lock. The dialog program which requested the lock no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.
_SCOPE = 3: The lock
Re: lock objects
Managingin lock entries
http://help.sap.com/saphelp_nw04/helpdata/en/37/a2e3ae344411d3acb00000e83539c3/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cb/168237d30d974be10000009b38f8cf/frameset.htm</b>
Good Luck and thanks
AK
Similar Messages
-
Is there any function module to assign Object to Transport request (Task)?
Hi There,
My requirement is to assign an object to desired task of the transport request. I found one FM called TR_EXT_INSERT_IN_REQUEST. But it has some limitations.
Limitations of FM : TR_EXT_INSERT_IN_REQUEST
1. It will assign the given object to given Transport request. But not to the task of a transport request. This FM will not allow assigning objects to the task. It will allow only to request.
2. Object entry present in transport request table e071. But, I can't find any version in version management. Moreover, the object is not locked under that particular request.
Can any one let me know, is there any function module to fullfill the requirement without above mentioned limitations?
Requirement :
1. Given object should be assigned to given task of TR.
2. Need FM to activate the Object and object texts.
3. After assigning to the request, It should show the vesion in version management and object should be locked under particular Task/ Request.
Your help would be greatly appreciated and <<removed by moderator>> Thanks in advance.
Have a nice day!!
Thanks and Regards,
Neelima. D
Edited by: kishan P on Jan 5, 2012 2:21 PM@ Dear Nabheet & Karuna
The object is not in local folder. I am aware of the process of assigning the object to request manually.
I want that to be done automatically. I wont prefer writing BDC for this.
@ Dear Keshav,
Thank you for the function module. But TR_INSERT_REQUEST_WITH_TASKS will create a tarnsport request with tasks.
@ Dear All,
My requirement is to assign the object to Task automatically. Not creating the request or Task. Task & Request are
present already. -
Is there any Function module available for GR IR for purchase order
Hi
Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
One way to create a custom fuction to fetch the details from MSEG and BKPF.
Can somebody suggest a better solution.
Thanks in advance.
Ruhi HiraWhich table in BAPI_PO_GETDETAILS exactly has these information ?
PO_HEADER_TEXTS
PO_ITEMS
PO_ITEM_ACCOUNT_ASSIGNMENT
PO_ITEM_SCHEDULES
PO_ITEM_CONFIRMATIONS
PO_ITEM_TEXTS
PO_ITEM_HISTORY
PO_ITEM_HISTORY_TOTALS
PO_ITEM_LIMITS
PO_ITEM_CONTRACT_LIMITS
PO_ITEM_SERVICES
PO_ITEM_SRV_ACCASS_VALUES
RETURN
PO_SERVICES_TEXTS
EXTENSIONOUT
NFMETALLITMS
Regards
Ruhi Hira -
Is there any function modules or BAPI's
Is there any function modules or BAPI's that would delete the original partner and then add a new partner.Iam using BAP
bapi_alm_notif_data_modify
But iam not able to change partner in notification header
Please give your input for sovling itDear Rama,
In the bapi_alm_notif_data_modify, there are 2 structure
NOTIFPARTNR STRUCTURE BAPI2080_NOTPARTNRI OPTIONAL
NOTIFPARTNR_X STRUCTURE BAPI2080_NOTPARTNRI_X OPTIONAL
Pass yr partner value in NOTIFPARTNR, and against the value make it "X" in the NOTIFPARTNR_X , then u can change the partner value.
Give point if helpfull
Thanks -
Is there any function module for getting distribution list name
Hi all,
Is there any function module for getting distribution list name when there is same description for two distribution list name.
or
help me how to fetch the correct distribution name when there is same description.
In order to send mails.
Tell me ASAP.
thanks
sagar.http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
list of Fms -
Is there any function module to get the variables used in a query?
Hi experts
Please, do you know if is there any function module to get the variables used in a query?
Thanks and regards
LuisHi Srini
Yes, I have checked the tables but I need a function module
Thanks anyway!
Luis -
Is there any function module to give absolute value of a number?
Hi,
Is there any function module to give absolute value of a number?
That has similar functionality to the Built in Function ABS.
Please let me know.
Thanks,
cshi,
why are you looking for any function module.
You can easily get it by mathematical function ABS .
Syntax : <Turget Variable> = ABS <Source Variable>
\[removed by moderator\]
Anirban Bhattacharjee
Edited by: Jan Stallkamp on Jun 27, 2008 4:19 PM -
Is there any function module to convert the date format
Dear ABAPers,
Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.
I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.
Thanks & Regards,
Ashok.hi,
create custom function module or copy the below code in the report ..and use it
the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000
FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.
""Local interface:
*" IMPORTING
*" VALUE(DATE) LIKE SY-DATUM
*" EXPORTING
*" VALUE(FORMATTED_DATE)
*" EXCEPTIONS
*" INVALID_DATE
TABLES: TTDTG.
DATA: BEGIN OF T_DATE,
YYYY(4) TYPE C,
MM(2) TYPE C,
DD(2) TYPE C,
END OF T_DATE.
DATA: DAY(3) TYPE N.
DATA: VARNAME LIKE TTDTG-VARNAME.
IF DATE IS INITIAL.
CLEAR FORMATTED_DATE.
EXIT.
ENDIF.
check document date format
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
DATE = DATE
EXCEPTIONS
PLAUSIBILITY_CHECK_FAILED = 1.
IF SY-SUBRC NE 0.
RAISE INVALID_DATE.
ENDIF.
MOVE DATE TO T_DATE.
CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.
SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.
WRITE T_DATE-DD TO DAY.
CONCATENATE DAY ',' INTO DAY.
CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE
SEPARATED BY SPACE.
ENDFUNCTION.
the output is :--Convert a DATE field into a full format date eg. March 23, 2000
Regards,
Prabhudas -
Is there any function module to convert date format?
Is there any function module to convert date format from mm/dd/yyyy to dd.mm.yyyy or sy-datum?
Hi,
wirte statement converts any date fomat in system date fromat
WRITE w_DateTO w_date_sys.
Regards,
Sriram -
QM : is there any function module to find inspection lot characterstics
Hi All,
is there any function module to find all characterstics for an inspection lot.
i need exact data which qe51n transaction is fetching .
thanks in adv ,
VarmaHi uvs,
1. we can use the fm BAPI_INSPOPER_GETCHAR.
regards,
amit m. -
Is there any function module? Fiscal week no problem
Hi friends,
I want how to get physical week for given date.
Ie for 01-04-2009 week no is 1.
Is there any function module?
Pls suggest
Regards
MoosaHi,
Use the below code.
DATA: v_ersda TYPE sy-datum VALUE '20090618'.
DATA: v_month(2) TYPE c,
v_week(2) TYPE c,
v_full_week LIKE scal-week.
MOVE v_ersda+4(2) TO v_month.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
date = v_ersda
IMPORTING
week = v_full_week
EXCEPTIONS
date_invalid = 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.
MOVE v_full_week+4(2) TO v_week.
WRITE:/5 'Month = ', v_month.
WRITE:/5 'Week = ', v_week.
Regards,
Kumar Bandanadham -
Is there any function module that brings out profile planner
Hello experts,
Is there any function module that brings out profile planner (I want to set planner profile as u201CSAP800u201D. I am using 7KE1 transaction.
Example: I know, the FM - K_KOKRS_SET_BATCHINPUT will set the controlling area to 'CTIC' for the entire batch input process.
Thanks in advance.look at these fms..
CACS_PROFILE_PARTNER_READ
CACS_PROFILE_SHOW -
Is there any function module which will upload storage locations for a mat
Hi gurus,
Is there any function module or BAPI to extend the storage locations of material which is done through <b>MMSC</b> transaction. I need to write a program to upload new storage locations for some materials.Please advise.
Thanks ,
Sam.You can do this using the BAPI_MATERIAL_SAVEDATA
Regards,
Rich Heilman -
Is there any function module getting the cpu type?
Is there any function module getting the cpu type?
I guess the database server...
I would like to get the SAP system cpu type as done in transaction st06 under system information.
Thanks. -
Is there any function module for purchase order change
Hi Experts,
Is there any function module for purchase order change or i need to do new recording in me22n.
Thanks,
SenthilHi
Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
Regards,
Viven
Maybe you are looking for
-
Streaming Video, iTunes rentals are too dark. Help!
Using a 2013 Macbook Air, pretty much fully loaded. I'm noticing that movies purchased on iTunes, as well as Handbrake rips of my own DVDS, and streaming through both Amazon Prime and Netflix, using MS Silverlight and Quicktime... all videos are too
-
System Requirements Mac Web Premium Suite cs5
Hi, does anyone know what the system requirements will be for the cs5 upgrade? thank you....
-
Finding last char in the string
Hi i need to find out whether the last char of a string is '/' (forward slash). please let me know if there's a FM to do that. Other post me the logic for this ASAP. thanks
-
Passcode "ok" button is too small
Any way to make this button "larger" and more distinct. I have a 5-digit passcode, so I need to press "OK" everytime to enter the code. The "OK" soft button is very small and hard to select
-
Need the logic to retrieve the data from the table
Hi , I have a table with the following data ID Dept Sal 100 a 10 100 b 20 100 c 30 100 d 40 200 b 20 200 c 30 200 d 40 300 c 30 300 d 40 400 d 40 I want to retrieve the ID's from the above table based on the below logic.. a) If an ID is in Dept 'a' d