Function module to hold and release lock on MARD table entry
Hi Gurus,
Can you please tell me Function module to HOLD lock on MARD table and the Function Module to release lock on MARD table entry.
Thanks and Regards,
Sudipto
Look via SE11 lock objects, use F4 for tables MAR*, the best for your request is on MARC table with object EMMARCS, so use FM ENQUEUE_EMMARCS and DEQUEUE_EMMARCS.
Regards,
Raymond
Similar Messages
-
Function Module to Reject PO Release
Hello All,
One can reject a PO Release using ME29N, does anybody know of a function module or sequence of function modules to achieve this ? The only BAPI available is for Release, but I couldnt find anything on rejecting release.
I havent tried a BDC, not sure if it will work with Enjoy Screens. Any experiences ?
Regards,
Parag.As per standard SAP practice, rejection is only possible for Purchase Requisitions only. Your requirement is called as release cancel.
There is only one function module available for both release and cancel and you can make use of the same:
EXIT_SAPLEBNF_005
Thanks,
Shree -
Function module WWW_ALV_CALL is not released for the Internet
Hi
I am facing this error Function module WWW_ALV_CALL is not released for the Internet and Only user SAP can release the function module.
Best Regards
GAGANhi,
This Web based calls are not available anymore in Netweaver 2004s/7.0.
More information in SAP-Note: 910202
Hope this helps
regards
Tobias -
Function module like ENQUEUE and DEQUEUE for function location.
Hi All,
I should be highly appreciate if any one help me for locking function module like ENQUEUE and DEQUEUE
for function location.
Thanks
ShawHi,
You can either use the standard way of locking by using :
data:lv_varkey TYPE rstable-varkey.
concatenate functional_location sy-mandt into lv_varkey .
* Lock table
CALL FUNCTION 'ENQUEUE_E_TABLEE'
EXPORTING
mode_rstable = 'E'
tabname = 'IFLOS'
varkey = lv_varkey
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
* Unlock table
CALL FUNCTION 'DEQUEUE_E_TABLEE'
EXPORTING
mode_rstable = 'E'
tabname = 'IFLOS'
varkey = lv_varkey.
Or,
As mentioned above create a lock object via transaction SE11.
Go to transaction se11:
--> Enter lock object name e.g EZ_IFLOS
--> Click on create
--> Enter description
--> Click on tables tab
--> Enter 'IFLOS' as table name
--> select lock mode
--. click on save and activate.
2 function modules will be created as DEQUEUE_EZ_IFLOS and ENQUEUE_EZ_IFLOS .
Regards. -
Function Modules for Data and Time
Hi all,
I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or dd.mm.yyyy</b> and time in<b> HH:MM:SS</b> formats.
Thanks in advanceHi Ranjith,
i think this will b usefull for you..
SAP Bar Chart Function Modules and what they are used for
Function module
Used for
BARC_GRAPHIC_PBO
Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
BARC_GRAPHIC_PAI
Analyzing data returned by the graphic
BARC_SET_TIME_AXIS
Setting start and end of time axis
BARC_SET_OPTIONS
Setting options
BARC_ADD_CHART
Creating a chart
BARC_SET_CHART_ATTRIB
Setting chart attributes
BARC_ADD_SECTION
Creating a section on the time axis
BARC_SET_SECTION_ATTRIB
Setting section attributes
BARC_ADD_RIBBON
Adding a ribbon to the time axis
BARC_SET_RIBBON_ATTRIB
Setting attributes for ribbons in the chart
BARC_ADD_GRID
Adding a time grid
BARC_SET_GRID_ATTRIB
Setting grid attributes
BARC_ADD_LAYER
Adding a layer (graphic elements)
BARC_SET_LAYER_ATTRIB
Setting layer attributes
BARC_ADD_LINE
Adding a line
BARC_ADD_CALENDAR
Creating a calendar
BARC_SET_CALENDAR_ATTRIB
Setting attributes for a calendar
BARC_ADD_TIME_PROFILE
Creating time profiles
BARC_SET_TIME_PROFILE_ATTRIB
Setting attributes for time profile
BARC_ADD_INTERVAL
Adding a time interval
BARC_SET_INTERVAL_ATTRIB
Setting time interval attributes
BARC_ADD_TIME_OBJECT
Creating a time object
BARC_CONVERT_DATE
Creating a date string in bar chart format
BARC_REVERT_DATE
Converting a date string in bar chart format to date and time
BARC_ADD_DATELINE
Creating a date line
BARC_SET_DATELINE_ATTRIB
Setting dateline attributes
BARC_GET_PROFILE_CONTENTS
Obtaining profile contents for customizing a chart
BARC_GET_COLUMN_WIDTH
Selecting new column width
BARC_SET_COLUMN_WIDTH
Setting the column width
BARC_GET_TEXTINDEX
Obtaining the text index of a field
BARC_SET_LABELS
Positioning the chart display
BARC_SET_COLUMN_ATTRIB
Setting column attributes
BARC_SET_ROW_ATTRIB
Setting row attributes
BARC_SET_ROW_HEIGHT
Setting the line height
BARC_SET_MAXCHARTS
Setting the maximum number of charts sent
<b>If its usefull reward points
</b> -
Function modules for material and description
Hi,
Pls let me know the function module for material and description.
Regards,
BalaHi,
Please use FM: MD_MATERIAL_GET_TEXT
Reagrds
Raju -
Function module to create and change delivery
Hi,
I need to create a function module to create and change delivery using the same function module.
For this I want to call the bapi's BAPI_OUTB_DELIVERY_CREATE_SLS
and BAPI_OUTB_DELIVERY_CHANGE.
So what are the variables I need to declare in source code of my function module.
Can anybody please suggest me.
thanks,
SudheerHi Sudheer,
Check this out
In the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS
You need to provide
SHIP_POINT - Goods receiving point for the returned goods.
DUE_DATE - Delivery creation date selected as december 12
9999 unless specified.
DEBUG_FLAG makes analysis of the process earlier .
call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
DESTINATION logsys
EXPORTING
SHIP_POINT = 'MD01'
DUE_DATE = sy-datum
DEBUG_FLG = 'X'
importing
*delivery = lf_vbeln
*num_deliveries = lf_num
*tables
*sales_order_items = lt_order
*extension_in = lt_extin
*deliveries = lt_deli
*created_items = lt_itm
*extension_out = lt_extout
*return = lt_return
For the BAPI_OUTB_DELIVERY_CHANGE.
Please read the documentation of the function provided there.
A Wiki To support your need.
Link: [Wiki|https://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+%28VL02%29]
hope your query resolves soon.
Have a best day ahead. -
Program or Function module to delete data from Open Hub Destination Table
Hi All,
Can anybody suggest me a Program or Function module to delete data from Open Hub Destination Table.
Thanks & Regards,
Vinay KumarYou can simply goto t-code SE14 mention the open hub destination table and Delete data by clicking on "Activate and Adjust database" with radio button "Delete Data".
Regards,
Arminder -
Function Module for Excise and VAT Calculation
Dear All,
I required one Function module for calculation of Excise % and amount of Invoice Verification Document.
We are use TAXINN tax procedure. I am try to make Purchases Register where we required the Break up of Full tax amount as basic excise duty, Education Cess, S&H Education Cess and VAT Amount.
Thanks
MukeshHi,
Locks are usually appliend on Tables. So you could find the table names affecting.
Then you could goto SE11 and n Lock objects search for table name
Once you identify the lock object. Display. Goto->Lock Modules.
You will get 2 module names one for enqueue and 1 for dequeue.
e.g. Lock object EBKK_ACCNT.
and FMs are DEQUEUE_EBKK_ACCNT and ENQUEUE_EBKK_ACCNT
Hope this helps.
Regards
Megha -
Function Module to get TR released to PC4
Hi all,
I need a Function module to read the TR that are released to Quality systems and Production systems.
I will pass a table of TR as input parameter to the function module. And the function module should return a table of values containing those TR from the input passed that were imported into Production system or Quality systems.
If possible please describe the function module with their usage.
Best Regards,
SureshHi,
Check these function modules... if any of them is helpful to you...
SL_RFC_TRINT_CHECK_TRANSP_DISP
SL_RFC_TRINT_READ_WBOCONFIG
SCTM_GET_OPEN_TRANSPORTS_RFC
SLW_TRAN2_COPY_ASSIGNMENT_RFC
SLW_TRAN2_DEVC_LANG_GET_L_RFC
SLW_TRAN2_DEVC_LANG_GET_RFC
TR_OBJECTS_OF_REQ_AN_TASKS_RFC
TR_RFC_READ_PROJECT
Regards
Siddarth -
Request having function group released but function module attribute shows not released
Hi experts,
I am a beginner.
There is a transport request in which my function group and other objects were present . This transport request and its task were released . But if i check the attributes section of the function module that is present in that function group , it shows not released .
Is there some problem ? did the function module not get released with its group? It wasn't showing anywhere in the request even though i had added it during creation.
Here is the image :
Thanks,
UnnatiHi,
Those two meanings of 'released' are unrelated. Don't worry about it.
Also, a function module sometimes does not explicitly appear in a transport request, if the function group is already in there.
cheers
Paul -
Function Module giving pruchase requisition release code ?
Hi everyone !!
I am using the FM BAPI_REQUISITION_RELEASE_GEN in order to realease a purchase requisition, this works well as I give it a hard-coded value for input parameter REL_CODE.
However in our company an intricate set of release strategies imposes that I should have a dynamic value for this release code.
So I've been looking for a function module that would return the possible values of the release codes with either the requisition number as input or other parameters found in table EBAN !
Anyone has any suggestions as to which FM or BAPI I could use to achieve this goal?
Best regards !
CedEven i passed only currency then also i got the below errors.
1-> No instance of object type PurchaseOrder has been created. External reference:
2-> PO header data still faulty
3-> No master record exists for vendor 100017
4-> Vendor 100017 does not exist
5-> Can delivery date be met?
how to rectify these errors. Is it any functional problem or data passing problem
header-comp_code = wa_dbtab-bukrs.
header-doc_type = wa_dbtab-bsart. "Standard Order
header-creat_date = sy-datum.
header-vendor = wa_dbtab-lifnr.
header-purch_org = wa_dbtab-ekorg.
header-pur_group = wa_dbtab-ekgrp.
header-currency = wa_dbtab-currency.
*POPULATE HEADER FLAG.
headerx-comp_code = c_x.
headerx-doc_type = c_x.
headerx-creat_date = c_x.
headerx-vendor = c_x.
headerx-purch_org = c_x.
headerx-pur_group = c_x.
headerX-currency = c_x.
headerX-currency_iso = c_x.
ENDIF.
*POPULATE ITEM DATA.
item-po_item = wa_dbtab-item.
item-material = wa_dbtab-matnr.
item-plant = wa_dbtab-werks.
item-matl_group = wa_dbtab-mat_grp.
item-quantity = wa_dbtab-menge.
item-net_price = wa_dbtab-netwr.
APPEND item.
CLEAR item.
*POPULATE ITEM FLAG TABLE
itemx-po_item = wa_dbtab-item.
itemx-po_itemx = c_x.
itemx-material = c_x.
itemx-plant = c_x .
itemx-matl_group = c_x.
itemx-quantity = c_x .
itemx-net_price = c_x.
APPEND itemx.
CLEAR itemx. -
Call Function Module in UDF and return Value
Hi All,
Does anyone have Michal's PDF located at the following url:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
Everyone references this for Mapping Lookups but the link has been broken for some time.
I am looking at calling a function module in my SAP system during mapping to check some values. I have SP14 and wanted to use the LookupApi.
Cheers,
JoeHi Joe,
Please go through the following Blogs which also includes the Blog you were searching for... They all talk about mapping lookups...
/people/michal.krawczyk2/blog/2005/09/15/xi-rfc-mapping-lookups-from-bc-to-xi
/people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
/people/francesco.bersani/blog/2007/03/05/data-lookup-optimized
Regards,
Abhy Thomas -
Function module(first name and last name as a parameter with table)
hi,
i just want to know how i match input value in function module with the self created ztable first name and last name as a parameter in function module(import).
regards
Ankurthanks for your help actually i am concatename first_name last_name into full_name
import parameter
FIRST_NAME like ZANKUR-FNAME first name
LAST_NAME like ZANKUR-LNAME last name
export parameter
full_name like zankur full name
excaption
error if name not matched
source code
concatename first_name last_name into full_name -
Function modules for F881 and F889
Hi,
is there some function module ( or ? ) to create records by F881 and F889, i don't want to use batch input method...
thanks for your help.
PedroHi Ranjith,
i think this will b usefull for you..
SAP Bar Chart Function Modules and what they are used for
Function module
Used for
BARC_GRAPHIC_PBO
Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
BARC_GRAPHIC_PAI
Analyzing data returned by the graphic
BARC_SET_TIME_AXIS
Setting start and end of time axis
BARC_SET_OPTIONS
Setting options
BARC_ADD_CHART
Creating a chart
BARC_SET_CHART_ATTRIB
Setting chart attributes
BARC_ADD_SECTION
Creating a section on the time axis
BARC_SET_SECTION_ATTRIB
Setting section attributes
BARC_ADD_RIBBON
Adding a ribbon to the time axis
BARC_SET_RIBBON_ATTRIB
Setting attributes for ribbons in the chart
BARC_ADD_GRID
Adding a time grid
BARC_SET_GRID_ATTRIB
Setting grid attributes
BARC_ADD_LAYER
Adding a layer (graphic elements)
BARC_SET_LAYER_ATTRIB
Setting layer attributes
BARC_ADD_LINE
Adding a line
BARC_ADD_CALENDAR
Creating a calendar
BARC_SET_CALENDAR_ATTRIB
Setting attributes for a calendar
BARC_ADD_TIME_PROFILE
Creating time profiles
BARC_SET_TIME_PROFILE_ATTRIB
Setting attributes for time profile
BARC_ADD_INTERVAL
Adding a time interval
BARC_SET_INTERVAL_ATTRIB
Setting time interval attributes
BARC_ADD_TIME_OBJECT
Creating a time object
BARC_CONVERT_DATE
Creating a date string in bar chart format
BARC_REVERT_DATE
Converting a date string in bar chart format to date and time
BARC_ADD_DATELINE
Creating a date line
BARC_SET_DATELINE_ATTRIB
Setting dateline attributes
BARC_GET_PROFILE_CONTENTS
Obtaining profile contents for customizing a chart
BARC_GET_COLUMN_WIDTH
Selecting new column width
BARC_SET_COLUMN_WIDTH
Setting the column width
BARC_GET_TEXTINDEX
Obtaining the text index of a field
BARC_SET_LABELS
Positioning the chart display
BARC_SET_COLUMN_ATTRIB
Setting column attributes
BARC_SET_ROW_ATTRIB
Setting row attributes
BARC_SET_ROW_HEIGHT
Setting the line height
BARC_SET_MAXCHARTS
Setting the maximum number of charts sent
<b>If its usefull reward points
</b>
Maybe you are looking for
-
How can I import contacts into phone from Excel fi...
I have an N97 Mini. And I have an Excel file on my computer which lists my contacts. In separate columns I have their first names, last names, phone numbers, email addresses.I would like to import this file into my phone's contacts in one go, i.e. wi
-
Unable to create 5.1 instance from console
I'm using the admin server bundled with 5.1SP2 to manage a single 5.1 directory instance and a single 4.16 directory instance. I also use version 5.1 of the directory console. Until now this has worked fine. However, now I need to build another 5.1 i
-
Can we define a trriger with sql to GML automaticly ?
hello, i just need to know if we can define a trriger with sql to GML ? thanks, best regards , lama Edited by: user11255382 on 25 juin 2009 12:18
-
I am looking to have a DB whose sole purpose is to house and maintain jobs for several other databases using the DBMS_JOB package. Can this be done? If so, how? Should I begin my queries like: execute immedate 'connect username/password@remote_db;';
-
Exported in different language
My exported file is in two different languages. How do I get it to just be in English. I made sure English was selected.