Blend functions fail for three simple trapezoidal profiles
Ashamedly, I'm double posting
I placed this in the Motion Control forum, where it belongs, but it's had pitiful recognition (according to the view counter), so I'm hoping there are others walking the LabVIEW fourms with experience using the NI Motion profile blending functions?
Thanks everyone
Thoric (CLA, CLED, CTD and LabVIEW Champion)
Hi Thoric,
National Instruments motion control is so advanced that stepping back in time is no big deal. I hope you enjoy the feature.
In all seriousness, though, this is a bug and, depending on your end goal, may have a suitable workaround.
Goal #1: You want to perform an online blended move with NI motion. If this is the case, you can construct your blended move in the Motion Assistant environment (which can handle 3 blended moves) and then generate LabVIEW code once you have the trajectory you want. This will generate NI-Motion code for the 3 (or more) blended moves. You will not get an array of velocities, positions, and accelerations, but you will be able to send the proper commands to the NI Motion board and it will use the trajectory you specified.
Goal #2: You want the arrays of velocities, positions, and accelerations. If you only care about the actual arrays of setpoints, you can use SoftMotion instead. I have attached an example that you will run on My Computer. It currently allows you to blend three single axis moves together, but it could be expanded to do more. Let me know if you have any questions about the example (and please excuse its messiness!).
Thanks,
Paul B.
Motion Control R&D
Attachments:
Blending Mode.zip 129 KB
Similar Messages
-
Delay login for sometime if users fails for three times in apex
i have a requirement in apex 4.1,
suppose a user login to it and if he fails for three times consequetively than he will not able to login for next 30 minutes.this is the function i am using for doing authentication.
i want to show timer at the top of the login page as user fails to login for three times continously..same functionality which is present in Apex 4.2.
create or replace
FUNCTION LWM_CHECK_CREDENTIALS(P_USERNAME IN VARCHAR2,P_PASSWORD IN VARCHAR2)
RETURN boolean
IS
LC_USERNAME_1 LWN_LOGIN.USERNAME%TYPE;
LC_PASSWORD_1 LWN_LOGIN.PASSWORD%TYPE;
LN_COUNT NUMBER:=0;
LN_COUNT1 NUMBER;
LC_SQLERRM VARCHAR2(500);
LN_COUNT2 NUMBER;
BEGIN
SELECT USERNAME,PASSWORD INTO LC_USERNAME_1, LC_PASSWORD_1
FROM LWN_LOGIN
WHERE UPPER( USERNAME) = UPPER(P_USERNAME)
AND PASSWORD = (P_PASSWORD);
UPDATE LWN_LOGIN SET COUNT= LN_COUNT
WHERE UPPER(USERNAME)=UPPER(P_USERNAME);
-- apex_util.set_authentication_result(0);
RETURN true;
EXCEPTION
WHEN OTHERS THEN
SELECT COUNT INTO LN_COUNT1
FROM LWN_LOGIN
WHERE UPPER(USERNAME)=UPPER(P_USERNAME);
if ln_count1 <=2 then
UPDATE LWN_LOGIN SET COUNT = LN_COUNT1 +1 ,
TIMESTAMP = SYSTIMESTAMP --to_char(SYSdate,' HH24:MI:SS')
WHERE UPPER(USERNAME)=UPPER(P_USERNAME);
end if;
LC_SQLERRM:=SQLERRM;
SELECT COUNT INTO LN_COUNT2 FROM LWN_LOGIN
WHERE UPPER(USERNAME)=UPPER(P_USERNAME);
IF LN_COUNT2=3 THEN
--APEX_UTIL.SET_AUTHENTICATION_RESULT(6);
DBMS_LOCK.SLEEP(6);
-- null;
--INSERT INTO XXSAQUIB_TEST(A,B,C) VALUES(LC_SQLERRM,LN_COUNT2,'max attempt');
end if;
return false;
END;
Can any one provide me any link related to this which is helpful for me.
Thanks in advance.
Edited by: 969314 on 05-Nov-2012 03:17
Edited by: 969314 on 05-Nov-2012 04:02Hi,
When your authentication fails, stamp a "last failure" time on the record. Then check in your authorization that if the number of attempts is > X then the last failure timestamp must be less than sysdate - 30 mins.
Then set the message text to be something like "you cannot log in for (x) minutes" where (x) is calculated based on sysdate and the last failure date. -
Remote enabled Function module for a simple report program
Hi Experts ,
I have to convert a Simple list report program to a remote enabled function module, so that it can be used from the online applications.
One option that comes to my mind is to create some import parameters for all the selection screen fields and then the result will be fetched in the export tables in function module. and call that report program using call transaction or submit program.
I Dont know whether this is a best solution or not, can you please help me with your suggestions?
Regards,
Ashish ShahHi,
You can use the SUBMIT statment in the Function module , then in the report program you need to EXPORT the Result to the list then use the IMPORT option in the function moduel then pass the data to the TABLE parameters so that the data will be avilable in the table parameters
Regards
Sudheer -
Background job fails for BDC profile creation and role assignment
Hi Experts,
I have created a BDC Function module for Tcode 'PFCG' for profile creation and role assignment, and called this FM in my zprogram. the problem is that when i run this program in foreground it executes succesfully, but if i schedule it in background it fails throwing error in job log 'Role 'Z...' does not contain any active authorizations'. But i have created one more program to create authorization objects which runs before this zprogram.I have also checked the authorization object in 'RSECADMIN', it reflects active. I dont understand whats happening exactly when it runs background.
Below is the process of job
1. ZMIS_AUTH_OBJECT_CREATE
Variant : auth-create
2. ZMIS_AUTH_ASSIGN_TO_ROLE
Variant : auth-assign
The problem is in second program, runs in foreground but fails in background.
Code which i have written in my second program
***BDC for Profile creation and assignment to Roles
CALL FUNCTION 'ZROLE'
EXPORTING
ctu = 'X'
mode = p_mode
UPDATE = 'L'
* GROUP =
* USER =
* KEEP =
* HOLDDATE =
nodata = '/'
agr_name_neu_001 = wa_role-role_name
text_002 = wa_role-desc
text_003 = wa_role-desc
text_004 = wa_role-desc
value_01_005 = 'T-ML330881'
h_fval_low_01_006 = wa_role-auth
profn_007 = lv_profile
ptext_008 = lv_text1
* IMPORTING
* SUBRC =
TABLES
messtab = temp_message.
***Generation of Profile created
CALL FUNCTION 'PRGN_AUTO_GENERATE_PROFILE_NEW'
EXPORTING
activity_group = wa_role-role_name
* PROFILE_NAME =
* PROFILE_TEXT =
no_dialog = ' '
rebuild_auth_data = ''
org_levels_with_star = ' '
fill_empty_fields_with_star = 'X'
template = ' '
check_profgen_tables = 'X'
generate_profile = 'X'
authority_check_pfcg = 'X'
EXCEPTIONS
activity_group_does_not_exist = 1
activity_group_enqueued = 2
profile_name_exists = 3
profile_not_in_namespace = 4
no_auth_for_prof_creation = 5
no_auth_for_role_change = 6
no_auth_for_auth_maint = 7
no_auth_for_gen = 8
no_auths = 9
open_auths = 10
too_many_auths = 11
profgen_tables_not_updated = 12
error_when_generating_profile = 13
OTHERS = 14 .
Experts please help me out its very urgent. your help is appreciated and rewarded. Thanking you in advance.
Regards,
ChetanHi Praveen,
Yeah definately, my requirement is that I have to access of some BI reports to certain users, so contract data will be downlaoded from ECC on application server, need to read that file from application server and for the each contract i ahould create a authorization object, role creation and assigning of role to the user and profile generation and activation.
To achieve this i have written two programs
1) ZMIS_AUTH_OBJECT_CREATE- This program will create the Authorization Object using BDC and Role creation Using the BAPI
"" Creation of Authorization Object
CALL FUNCTION 'ZAUTHOBJ'
EXPORTING
ctu = 'X'
mode = p_mode
UPDATE = 'L'
* GROUP =
* USER =
* KEEP =
* HOLDDATE =
nodata = '/'
g_authname_001 = 'ZDUMMY_MIS'
g_targetauth_002 = wa_tab-auth
g_authtxt_003 = wa_tab-short_desc
g_authtxtmd_004 = wa_tab-med_desc
marked_04_005 = 'X'
g_authtxt_006 = wa_tab-short_desc
g_authtxtmd_007 = wa_tab-med_desc
tctiobjnm_04_008 = 'ZBUS_UNIT'
g_authtxt_009 = wa_tab-short_desc
g_authtxtmd_010 = wa_tab-med_desc
marked_05_011 = ''
opt_01_012 = 'EQ'
low_01_013 = wa_tab-bu
g_authtxt_014 = wa_tab-short_desc
g_authtxtmd_015 = wa_tab-med_desc
marked_04_016 = 'X'
g_authtxt_017 = wa_tab-short_desc
g_authtxtmd_018 = wa_tab-med_desc
tctiobjnm_04_019 = 'ZCONTRCT'
g_authtxt_020 = wa_tab-short_desc
g_authtxtmd_021 = wa_tab-med_desc
marked_05_022 = ''
opt_01_023 = 'EQ'
low_01_024 = lv_contract
g_authtxt_025 = wa_tab-short_desc
g_authtxtmd_026 = wa_tab-med_desc
g_authtxt_027 = wa_tab-short_desc
g_authtxtmd_028 = wa_tab-med_desc
g_authname_029 = wa_tab-auth
* IMPORTING
* SUBRC =
TABLES
messtab = temp_message.
"" Creation of role
LOOP AT it_role INTO wa_role.
CLEAR wa_text.
wa_text-text = wa_role-desc.
wa_text-langu = 'E'.
APPEND wa_text TO it_text.
wa_jobrole-agr_name = wa_role-role_name.
wa_parentrole-agr_name = 'ZM_CT_DUMMY_MIS'.
wa_method-usmethod = 'CHANGE'.
CALL FUNCTION 'ZBAPI_JOBROLE_CLONE'
EXPORTING
jobrole = wa_jobrole
parent = wa_parentrole
method = wa_method
TABLES
* RETURN =
shorttext = it_text
* LONGTEXT =
* MENU_NODES =
* MENU_TEXTS =.
ENDLOOP.
2) ZMIS_AUTH_ASSIGN_TO_ROLE - This program will generate the profile created assign it to the role.
""*BDC for Profile creation and assignment to Roles
CALL FUNCTION 'ZROLE'
EXPORTING
ctu = 'X'
mode = p_mode
UPDATE = 'L'
* GROUP =
* USER =
* KEEP =
* HOLDDATE =
nodata = '/'
agr_name_neu_001 = wa_role-role_name
text_002 = wa_role-desc
text_003 = wa_role-desc
text_004 = wa_role-desc
value_01_005 = 'T-ML330881'
h_fval_low_01_006 = wa_role-auth
profn_007 = lv_profile
ptext_008 = lv_text1
* IMPORTING
* SUBRC =
TABLES
messtab = temp_message .
COMMIT WORK AND WAIT.
""*Generation of Profile created
LOOP AT it_role INTO wa_role.
CALL FUNCTION 'PRGN_AUTO_GENERATE_PROFILE_NEW'
EXPORTING
activity_group = wa_role-role_name
* PROFILE_NAME =
* PROFILE_TEXT =
no_dialog = ' '
rebuild_auth_data = ''
org_levels_with_star = ' '
fill_empty_fields_with_star = 'X'
template = ' '
check_profgen_tables = 'X'
generate_profile = 'X'
authority_check_pfcg = 'X'
EXCEPTIONS
activity_group_does_not_exist = 1
activity_group_enqueued = 2
profile_name_exists = 3
profile_not_in_namespace = 4
no_auth_for_prof_creation = 5
no_auth_for_role_change = 6
no_auth_for_auth_maint = 7
no_auth_for_gen = 8
no_auths = 9
open_auths = 10
too_many_auths = 11
profgen_tables_not_updated = 12
error_when_generating_profile = 13
OTHERS = 14
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDLOOP.
For creating authorization objects, role & profile i have created one dummy auth, dummy role & dummy profile respectively.
i have created dummy objects to copy the roles from dummy object and assign the same to new Auth obj, role & profile.
Let me know what needs to be done. because these both the programs run perfectly in foreground, but fails in background.
Regards,
Chetan -
Hello Community
Edit My Profile in My Site displayed an error that "An unexpected error occurred" with a
Correlation ID. I have tried to read the logs in the 14 hive Logs folder but unsuccessfully.
I was able to understand Event Viewer logs, there was supposed to be 4 possibilities
one was wheter UPS was running, the other was clearing the cache and the other 2 I also fixed
I even recreated the Search Service Application, Metadata and UPS but when I fixed the problems
the error still occurred.
Then I used a Powershell command that displayed output but the Output doesn't make sense
because it is saying the login failed associated with the database that was created by the Search
Service application when it was created.
But how can that username be related to the Search Service database? Below is the output:
Area : SharePoint Foundation
Category : Logging Correlation Data
Level : Medium
EventID : xmnv
Message : Name=Request (GET:http://site/_layouts/EditProfile.aspx?accountname=Server1%User1)
Area : SharePoint Foundation
Category : Logging Correlation Data
Level : Medium
EventID : xmnv
Message : Site=/
Area : SharePoint Server
Category : Database
Level : High
EventID : 880i
Message : System.Data.SqlClient.SqlException: Cannot open database "SrchSvc_DB_5e06e8c82d5446e39da18d70a5a7e78e" r
equested by the login. The login failed. Login failed for user Server1\User1. at System.Data.SqlCli
ent.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlCli
ent.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser
.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkC
opyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLog
in(Boolean enlistOK) at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo server
Info, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) a
t System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean re
directedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnecti
onString connectionOptions, String newPassword, Boolean redirectedUserInstance) at System.Data.SqlClient
.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Ob
ject providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) at Sy
stem.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProvi
derInfo, DbConnectionPool pool, DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionF
actory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions opti
ons) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) at System.
Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) at System.Data.ProviderB
ase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFa
ctory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenCo
nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.S
qlConnection.Open() at Microsoft.Office.Server.Data.SqlSession.OpenConnection()
Area : SharePoint Server
Category : Database
Level : High
EventID : 880k
Message : at Microsoft.Office.Server.Data.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQu
eryData monitoringData, Boolean retryForDeadLock) at Microsoft.Office.Server.Data.SqlSession.ExecuteRead
er(SqlCommand command, Boolean retryForDeadLock) at Microsoft.Office.Server.Search.Administration.Schema
Database.GetSchemaHighLevelInfo() at Microsoft.Office.Server.Search.Administration.Schema.get_LastChange
Time() at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.SynchronizeManagedPropertyM
appings(Guid partitionID, SearchServiceApplicationProxy searchAppProxy) at Microsoft.Office.Server.Admin
istration.UserProfileApplicationProxy.GetManagedPropertyMapping(Guid partitionID, String propertyName) a
t Microsoft.Office.Server.UserProfiles.Co...
Area : SharePoint Server
Category : Database
Level : High
EventID : 880j
Message : SqlError: 'Cannot open database "SrchSvc_DB_5e06e8c82d5446e39da18d70a5a7e78e" requested by the login. Th
e login failed.' Source: '.Net SqlClient Data Provider' Number: 4060 State: 1 Class: 11 Procedure: '' Lin
eNumber: 65536 Server: Server1\Servers
Area : SharePoint Server
Category : Database
Level : High
EventID : 880j
Message : SqlError: 'Login failed for user Server1\User1.' Source: '.Net SqlClient Data Provider' Number: 18456
State: 1 Class: 14 Procedure: '' LineNumber: 65536 Server: Server1\Servers
Area : SharePoint Server
Category : Database
Level : High
EventID : tzku
Message : ConnectionString: 'Data Source=Server1\Servers;Initial Catalog=SrchSvc_DB_5e06e8c82d5446e39da18d70a5a
7e78e;Integrated Security=True;Enlist=False;Connect Timeout=15' ConnectionState: Closed ConnectionTimeout
: 15
Area : SharePoint Foundation
Category : Runtime
Level : Unexpected
EventID : tkau
Message : System.Data.SqlClient.SqlException: Cannot open database "SrchSvc_DB_5e06e8c82d5446e39da18d70a5a7e78e" r
equested by the login. The login failed. Login failed for user Server1\User1. at System.Data.SqlClie
nt.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClie
nt.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.
Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCo
pyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogi
n(Boolean enlistOK) at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverI
nfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) at
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean red
irectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectio
nString connectionOptions, String newPassword, Boolean redirectedUserInstance) at System.Data.SqlClient.
SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Obj
ect providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) at Sys
tem.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProvid
erInfo, DbConnectionPool pool, DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionFa
ctory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions optio
ns) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) at System.D
ata.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) at System.Data.ProviderBa
se.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFac
tory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenCon
nection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.Sq
lConnection.Open() at Microsoft.Office.Server.Data.SqlSession.OpenConnection() at Microsoft.Office.S
erver.Data.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringDat
a, Boolean retryForDeadLock) at Microsoft.Office.Server.Data.SqlSession.ExecuteReader(SqlCommand command
, Boolean retryForDeadLock) at Microsoft.Office.Server.Search.Administration.SchemaDatabase.GetSchemaHig
hLevelInfo() at Microsoft.Office.Server.Search.Administration.Schema.get_LastChangeTime() at Microso
ft.Office.Server.Administration.UserProfileApplicationProxy.SynchronizeManagedPropertyMappings(Guid partitio
nID, SearchServiceApplicationProxy searchAppProxy) at Microsoft.Office.Server.Administration.UserProfile
ApplicationProxy.GetManagedPropertyMapping(Guid partitionID, String propertyName) at Microsoft.Office.Se
rver.UserProfiles.CoreProperty.GetManagedPropertyMapping(String propertyName) at Microsoft.Office.Server
.UserProfiles.CoreProperty.get_ManagedPropertyName() at Microsoft.SharePoint.Portal.WebControls.ProfileP
ropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property
prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch) at Microsoft.SharePoint.Porta
l.WebControls.ProfileUI.LoadProfileTable() at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadCont
rol(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.
Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control
.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.U
I.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint
, Boolean includeStagesAfterAsyncPoint)
Area : SharePoint Foundation
Category : Monitoring
Level : Medium
EventID : b4ly
Message : Leaving Monitored Scope (Request (GET:http://site/_layouts/EditProfile.aspx?accountname=Server1%User1)). Execution Time=88.6628049095625
What does that username have to do with the database created by Search Service Application creation
and why can't I "Edit my profile" in My Profile?
Thank you
ShabeautUse Netmon to analyze the traffic and understand more on same
Check available DISK SPACE on SharePoint Servers and SQL Server. On SQL Instance especially check if any databases have set Size limits.
Did we modify something on EditProfile.aspx page. Any custom solution deployed related to search
or mysite
http://blogs.msmvps.com/brianmadsen/2011/12/06/sharepoint-2010-connectiontimeout-issues-from-wfe-to-profile-db/
add the SQL Server details into the hosts file on the WFE server.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/7efeefce-129e-4a03-9ff7-900d6168952b/moss-event-id-3351-login-failed-for-user-nt-authorityanonymous-logon?forum=sharepointadminlegacy
Running Windows sharepoint services vss writer service under AD farm account (instead of Local system) is the solution of my issue!
http://social.technet.microsoft.com/Forums/sharepoint/en-US/ca7d53d8-88e2-4a82-9978-8695a7074e5d/application-pool-identity-does-not-have-access-to-profiledb?forum=sharepointadminprevious
If this helped you resolve your issue, please mark it Answered -
I live in the US but am in Paris for three months. I can't access itunes. I tried reinstalling but got this error: Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services." I followed the Apple troubleshooting advice--delete temp files, uninstall itunes, shut down computer, restart, reinstall. What's the problem and, especially, what's the fix? Walter Cohen
I, too am having the same issues as above like the many others. For days i have been trying to uninstall reinstall as per troubleshooting but to no avail.Apple, you need to fix this!
-
Hi
while trying to execute CHECKDB in Db13 i was getting the following error message
My Operating system is windows 2003 database oracle 10g
already referred to notes 952080, 134592 and subsequent notes
E:\ORACLE\NPE\ORIGLOGA\CNTRL\CNTRLNPE.DBF 26066944 4 FILE NOLINK
E:\ORACLE\NPE\ORIGLOGB\CNTRL\CNTRLNPE.DBF 26066944 4 FILE NOLINK
D:\ORACLE\NPE\SAPDATA1\CNTRL\CNTRLNPE.DBF 26066944 3 FILE NOLINK
BR0982I Database disk volumes
Directory / Raw disk Device Total[KB] Free[KB] Used[%] MaxNeed[KB] MaxMiss[KB]
BR0252E Function _stat() failed for 'D:\oracle\EO1\102' at location BrDiskStatGet-1
BR0253E errno 2: No such file or directory
BR0277E Determination of disk volume status for D:\oracle\EO1\102 failed
BR0806I End of BRCONNECT processing: ceadprqb.chk 2009-03-17 18.06.25
BR0280I BRCONNECT time stamp: 2009-03-17 18.06.25
BR0804I BRCONNECT terminated with errors
if any faced simlar problem, please give let me know if you have a solution.
Regards
HMHello,
this type of error happens when there are permission problems. Check permission of BRtools
Check the permission of files..Check the link below for more information :
http://www-01.ibm.com/support/docview.wss?rs=667&context=SSZHVN&dc=DB560&dc=DB520&uid=swg21327498&loc=en_US&cs=UTF-8&lang=en&rss=ct667tivoli
Thanks
Anju -
BR0252E Function mkdir() failed for adding the data file
Dear experts.
I assigned new file to data file, i face below error
BR0280I BRSPACE time stamp: 2010-12-15 10.38.26
BR0681I Enter string value for "file" (<file>|<sapdata>|<N>) [/oracle/DBP/sapdata7/sr3_70/sr3.data69]:
/oracle/DBP/sapdata8/sr3_70/sr3.data69
BR0280I BRSPACE time stamp: 2010-12-15 10.38.46
BR0683I New value for "file": '/oracle/DBP/sapdata8/sr3_70/sr3.data69'
Error
BR0252E Function mkdir() failed for '/oracle/DBP/sapdata8/sr3_70' at location BrDirCreate-1
BR0253E errno 13: Permission denied
Regards,
kalees>>BR0252E Function mkdir() failed for '/oracle/DBP/sapdata8/sr3_70' at location BrDirCreate-1
Make sure the sapdata8 is owned by ora<SID> and dba group.
and you are adding the datafile using ora<SID> userID. -
Hi all,
I am working on setting up the DB13/BRTOOLS integration.
I am trying to run a db check from sidadm user through brtools and getting the below error.
BR0280I BRTOOLS time stamp: 2014-04-24 09.35.56
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0252E Function fopen() failed for '/oracle/PB1/sapbackup/.user.pas' at location BrToolCall-2
BR0253E errno 13: Permission denied
I changed the permissions for br* to 755 as below
but still I am getting the same error.
ustrlxpb1db80:pb1adm 73> ls -l br*
-rwxr-xr-x 1 pb1adm sapsys 5736689 Sep 7 2011 brarchive
-rwxr-xr-x 1 pb1adm sapsys 5854578 Sep 7 2011 brbackup
-rwxr-xr-x 1 pb1adm sapsys 7577045 Sep 7 2011 brconnect
-rwxr-xr-x 1 pb1adm sapsys 6279708 Sep 7 2011 brrecover
-rwxr-xr-x 1 pb1adm sapsys 2227868 Sep 2 2011 brrestore
-rwxr-xr-x 1 pb1adm sapsys 8033945 Sep 7 2011 brspace
-rwxr-xr-x 1 pb1adm sapsys 3090793 Sep 2 2011 brtools
What might be the issue?
Thanks
vimalHi Gaurav,
Thanks for your information.
I changed the persmissions for sapbackup and sapcheck to 775 and I can able to start the dbcheck via brtools through sidadm user.
But it got stuck with a below sql error , with insufficient privileges
BR0280I BRTOOLS time stamp: 2014-04-24 10.36.06
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0801I BRCONNECT 7.20 (17)
BR0805I Start of BRCONNECT processing: censafis.chk 2014-04-24 10.36.06
BR0484I BRCONNECT log file: /oracle/PB1/sapcheck/censafis.chk
BR0477I Oracle pfile /oracle/PB1/112_64/dbs/initPB1.ora created from spfile /oracle/PB1/112_64/dbs/spfilePB1.ora
BR0280I BRCONNECT time stamp: 2014-04-24 10.36.08
BR0813I Schema owners found in database PB1:
APPQOSSYS, DBSNMP, DIP, OPS$ORAPB1, OPS$PB1ADM, OPS$SAPSERVICEPB1, ORACLE_OCM, OUTLN, SAPSR3*, SYS,
SYSTEM
BR0280I BRCONNECT time stamp: 2014-04-24 10.36.09
BR0814I Number of tables/partitions in schema of owner SAPSR3: 25128/247
BR0836I Number of tables treated as info cubes for owner SAPSR3: 1676
BR0814I Number of tables/partitions in schema of owner SYS: 890/298
BR0814I Number of tables/partitions in schema of owner SYSTEM: 151/39
BR0280I BRCONNECT time stamp: 2014-04-24 10.36.12
BR0815I Number of indexes/partitions in schema of owner SAPSR3: 33103/502
BR0815I Number of indexes/partitions in schema of owner SYS: 965/242
BR0815I Number of indexes/partitions in schema of owner SYSTEM: 212/52
BR0280I BRCONNECT time stamp: 2014-04-24 10.36.13
BR0816I Number of segments in schema of owner DBSNMP: 8
BR0816I Number of segments in schema of owner OPS$PB1ADM: 1
BR0816I Number of segments in schema of owner OUTLN: 9
BR0816I Number of segments/LOBs in schema of owner SAPSR3: 21553/2395
BR0816I Number of segments/LOBs in schema of owner SYS: 2714/144
BR0816I Number of segments/LOBs in schema of owner SYSTEM: 407/22
BR0280I BRCONNECT time stamp: 2014-04-24 10.36.13
BR0961I Number of conditions found in DBCHECKORA: 128
BR0280I BRCONNECT time stamp: 2014-04-24 10.36.13
BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
'PREPARE stmt_5 FROM'
'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'
ORA-01031: insufficient privileges
BR0806I End of BRCONNECT processing: censafis.chk 2014-04-24 10.36.13
BR0280I BRCONNECT time stamp: 2014-04-24 10.36.13
BR0804I BRCONNECT terminated with errors
BR0292I Execution of BRCONNECT finished with return code 3
Thanks
Vimal -
Cisco 4402 LAP1131 Interference Profile Failed for Base Radio MAC:
Dropped connections every day, few times a day.
WLC Was working perfectly fine for about a year then had some dropped connections.
Upgraded to the latest firmaware and also default it to the factory and reconfigured it.
Same problem!
Cisco 4402
Software Version 7.0.98.0
8x Cisco: AIR-LAP1131AG-A-K9 also v/7.0.98.0
Interference Profile Failed for Base Radio MAC:This is a threshold parameter: "Interference Profile failed" along with some others. All this does is send alerts to the WLC log, to your syslog or to your WCS/NCS or Prime Infrastructure management tool. You need to adjust these for your environment if you see too many alerts being triggered. Interference can be a main issue in downtown big citites and you would bump the value up to reduce the number of alerts you see. Yes interference will cause issues, but this is an alert threshold and will not fix your interference, just tell you that you have interference due to hitting the X value.
Thanks,
Scott
*****Help out other by using the rating system and marking answered questions as "Answered"***** -
APP-FND-02900: Validation failed for Subfunction function type
Hi,
I am new to registering a custom form in E-biz 11.5.10. I am getting the below error when registering a new custom form in E-biz 11.5.10
1. Created the .fmb and moved to TOP and created the .fmx file
2. Create the form in the Applicatin Developer resp. Application -> form
*3. For creation of new function in Function --> Description entered the details and then in the form tab after enter details, I am getting the below error message when selecting SAVEbutton*
APP-FND-02900: Validation failed for Subfunction function type. Form should not contain value.
Best Regards,
Mahesh.user8564931 wrote:
Hi,
I am new to registering a custom form in E-biz 11.5.10. I am getting the below error when registering a new custom form in E-biz 11.5.10
1. Created the .fmb and moved to TOP and created the .fmx file
2. Create the form in the Applicatin Developer resp. Application -> form
*3. For creation of new function in Function --> Description entered the details and then in the form tab after enter details, I am getting the below error message when selecting SAVEbutton*
APP-FND-02900: Validation failed for Subfunction function type. Form should not contain value.
Best Regards,
Mahesh.Please do not post duplicates -- APP-FND-02900: Unable to Create New cusom Form function in E-biz 11.5.10 -
"failed to get function context for the data region"
Hello,
Is it possible to use {function::} inside a spry:when? It works, but it also shows an error:
"getValueFromDataSet: Failed to get function context for the paceSetter region."
excerpt:
<div spry:choose="spry:choose">
<div spry:when="'{function::diff4700}' < '0'"><span class="psNegative">{function::diff4700}</span></div>
the spry:when looks to see if the number returned by function::diff4700 is a negative number, then adds a span class to change it to red. Code works the way I want it to, but can't make the error message go away.
thank you for any assistance or ideas to make error go awayHello,
Is it possible to use {function::} inside a spry:when? It works, but it also shows an error:
"getValueFromDataSet: Failed to get function context for the paceSetter region."
excerpt:
<div spry:choose="spry:choose">
<div spry:when="'{function::diff4700}' < '0'"><span class="psNegative">{function::diff4700}</span></div>
the spry:when looks to see if the number returned by function::diff4700 is a negative number, then adds a span class to change it to red. Code works the way I want it to, but can't make the error message go away.
thank you for any assistance or ideas to make error go away -
I can't get inline to work for this simple function.
I thought I understood [Inline] but my app says otherwise.
I've been using [Inline] with great success for a few months now; however, this quick snippet of code won't [Inline] properly. I know this because I've ran numerous tests with the function looped 100,000 times and I'll get around 400ms with [Inline] and 400ms without [Inline].
I could just be really sleepy and frustrated, but I thought I'd try and learn so that I wouldn't make the same mistake again. So here are the guts of the function in question:
var shared:int = 0;
var length:int = goodRegions[index].length;
for ( var i:int = 0; i < length; ++i ) {
rect = goodRegions[index][i];
mRect.x = rect.x + masterX;
mRect.width = rect.width;
if ( mRect.x + mRect.width > sRect.x ) {
shared = i;
break;
for ( var i:int = shared; i < length; ++i ) {
rect = goodRegions[index][i];
mRect.x = rect.x + masterX;
mRect.y = rect.y + masterY;
mRect.width = rect.width;
mRect.height = rect.height;
if ( sRect.x + sRect.width < mRect.x ) { break; }
There are outside variables I didn't include because they are passed through the function parameters.
I would greatly any help I can get understanding what I'm doing wrong.Ah you know what, I left out a line:
for ( var i:int = shared; i < length; ++i ) {
rect = goodRegions[index][i];
mRect.x = rect.x + masterX;
mRect.y = rect.y + masterY;
mRect.width = rect.width;
mRect.height = rect.height;
if ( CheckForCollisions( mRect, sRect ) ) { <--------------------------- missing from original post
if ( sRect.x + sRect.width < mRect.x ) { break; }
Since posting I've actually played around with the removal of the extra function and it started to work properly. I don't understand why my Collision check was making the function ineligible for [Inline]...
But maybe this would help:
[Inline]
private final function CheckForCollisions( rectA:Rectangle, rectB:Rectangle ):Boolean {
return (( rectA.x < rectB.x + rectB.width - 2 && rectA.x + rectA.width > rectB.x + 2 ) &&
( rectA.y < rectB.y + rectB.height - 2 && rectA.y + rectA.height > rectB.y + 2 ));
Is it inappropriate to use an inline function within another inline function? Oh and I'm multi-threading my physics code, so this is being ran on a separate thread/worker. -
Limit Mask Test Limit Trapezoid Profile
So to one of our proportional valves, we are going to use the gain scheduling set point profile to create a trapezoidal input current to the valve. This trapezoidal input represents one cycle for the rocker arm we are controlling (it is periodic and this profile is repeated for many cycles). I'm creating a fail-safe system and am wanting to create a limit profile that is essentially an offsetted trapezoid of +/- 1 mA. The largest and smallest trapezoids would be the constraints and the middle one would be the input to the system. I want it where if the input current exceeds this inner or outer trapezoid, the system goes into the safe state. I've tried using the Mask and Limit VI and defined my upper and lower limits by making 4 different points for each limit but when I give it my input signal and observe the tested signal, all I see is the input to the system with a horizontal line at y=0 which is the green colored limit. I can get the constant upper and lower limits to work but I'd really like a closer more defined constraint since we are controlling a very big structure. What am I doing wrong? I've attached a picture of the input to the system.
-Thanks
Solved!
Go to Solution.
Attachments:
trapezoid profile.jpg 57 KBHello,
I believe the issue is that you do not have enough datapoints defining your upper and lower limits. You only placed coordinates for the vertices of each trapezoid. The Mask and Limit Testing VI will not automatically generate datapoints between these points it needs a full set of datapoints defining the whole graph.
Your input data has much more datapoints than the actual boundary you've defined, that's why it appears as a line at y = 0. It plots four points on a chart that probably that has much more data points on the input. You should generate trapezoidal signals and wire those signals into the upper and lower limit inputs of the express VI. That way you do not have to fill out all the datapoints manually.
Below I've attached an example LabVIEW project that shows how to do this. I used this example to create a subVI to generate a trapezoidal signal. It uses ramp functions to piece together an array of datapoints that looks like a trapezoid.
I think you should use the "Generate Trapezoid" subVI I included in my project. Generate the upper and lower trapezoids outside the while loop with the same amount of datapoints as you expect from your input data. This should save processing so you don't have to generate the waveform each loop iteration. It will look something like this:
Regards,
Isaac S.
Applications Engineer
National Instruments
Attachments:
TrapezoidalLimits 2010.zip 839 KB -
Function module for calculating sigma balance
Is there any function module available in SAP for calculating sigma balance.
Thanks
Gauravhi
ABAP_DOCU_DOWNLOAD Download ABAP documentation in HTML format.
APPL_LOG_DELETE With this function module you delete logs in the database according to specified selection conditions
APPL_LOG_DISPLAY With this function module you can analyze logs in the database.
APPL_LOG_DISPLAY_INTERN With this function module you can analyze logs in local memory, e.g. when you have only collected log records at runtime and do not want to write to the database.
APPL_LOG_INIT This function module checks whether the specified object or sub-object exists and deletes all existing associated data in local memory.
APPL_LOG_READ_DB With this function module you read the log data in the database for an object or sub-object according to specified selection conditions.
APPL_LOG_READ_INTERN With this function module you read all log data whose log class has at least the specified value, from local memory, for the specified object or sub-object.
APPL_LOG_SET_OBJECT With this function module, you create a new object or sub-object for writing in local memory. With a flag you can control whether the APPL_LOG_WRITE_... messages are written in local memory or are output on the screen.
APPL_LOG_WRITE_DB With this function module you write all data for the specified object or sub-object in local memory to the database. If the log for the object or sub-object in question is new, the log number is returned to the calling program.
APPL_LOG_WRITE_HEADER With this function module, you write the log header data in local memory.
APPL_LOG_WRITE_LOG_PARAMETERS With this function module, you write the name of the log parameters and the associated values for the specified object or sub-object in local memory. If this function module is called repeatedly for the same object or sub-object, the existing parameters are updated accordingly. If you do not specify an object or sub-object with the call, the most recently used is assumed.
APPL_LOG_WRITE_MESSAGE_PARAMS With this function module you write a single message, with parameters, in local memory. Otherwise the function module works like APPL_LOG_WRITE_SINGLE_MESSAGE.
APPL_LOG_WRITE_MESSAGES With this function module you write one or more messages, without parameters, in local memory.
APPL_LOG_WRITE_SINGLE_MESSAGE With this function module you write a single message, without parameters, in local memory. If no header entry has yet been written for the object or sub-object, it is created. If you do not specify an object or sub-object with the call, the most recently used is assumed.
ARFC_GET_TID will return the IP address of the terminal in hex.
BAL_CNTL_CREATE Create Control for log display
BAL_CNTL_FREE Release Control
BAL_CNTL_REFRESH Put new data in log display
BAL_DB_DELETE Delete logs from the database
BAL_DB_DEQUEUE Unlock log
BAL_DB_ENQUEUE Lock log
BAL_DB_LOAD Load logs from the database
BAL_DB_LOAD Load log(s)
BAL_DB_SAVE Save logs in the database
BAL_DB_SAVE Save log(s)
BAL_DB_SAVE_PREPARE Prepare save
BAL_DB_SEARCH Find logs in the database
BAL_DSP_LOG_DISPLAY Display messages in memory
BAL_DSP_LOG_DISPLAY Display Log
BAL_DSP_LOG_PARAMETERS Either output extended long text or call a callback routine (based on the data in BAL_S_LOG-PARAMS)
BAL_DSP_LOG_TECHNICAL_DATA Output all log header data
BAL_DSP_MSG_LONGTEXT Display message long text
BAL_DSP_MSG_PARAMETERS Either output extended long text or call a callback routine (based on the data in BAL_S_MSG-PARAMS)
BAL_DSP_MSG_TECHNICAL_DATA Output technical data of a message such as work area, error number, etc.
BAL_DSP_OUTPUT_FREE End output
BAL_DSP_OUTPUT_INIT Initialize output
BAL_DSP_OUTPUT_SET_DATA Set dataset to be displayed
BAL_DSP_PROFILE_DETLEVEL_GET Message hierarchy in DETLEVEL
BAL_DSP_PROFILE_NO_TREE_GET Display without tree (fullscreen)
BAL_DSP_PROFILE_POPUP_GET Display without tree (popup)
BAL_DSP_PROFILE_SINGLE_LOG_GET Standard profile (SLG1) for one log
BAL_DSP_PROFILE_STANDARD_GET Standard profile (SLG1) for a lot of logs
BAL_GLB_AUTHORIZATION_GET Assign authorization
BAL_GLB_AUTHORIZATION_RESET Reset authorization
BAL_GLB_CONFIG_GET Read configuration
BAL_GLB_CONFIG_SET Set configuration
BAL_GLB_MEMORY_EXPORT Put function group memory in ABAP-MEMORY
BAL_GLB_MEMORY_IMPORT Get function group memory from ABAP-MEMORY
BAL_GLB_MEMORY_REFRESH (Partially) reset global memory
BAL_GLB_MEMORY_REFRESH (Partially) initialize memory
BAL_GLB_MSG_CURRENT_HANDLE_GET Get current message handle
BAL_GLB_MSG_DEFAULTS_GET Get message defaults
BAL_GLB_SEARCH_LOG Find logs in memory
BAL_GLB_SEARCH_MSG Find messages in memory
BAL_LOG_CREATE Create log with header data
BAL_LOG_CREATE Create log with header data
BAL_LOG_DELETE Delete log (from database also at Save)
BAL_LOG_EXIST Check existence of a log in memory
BAL_LOG_HDR_CHANGE Change log header
BAL_LOG_HDR_CHECK Check log header data for consistency
BAL_LOG_HDR_READ Read log header and other data
BAL_LOG_MSG_ADD Put message in log
BAL_LOG_MSG_ADD Put message in log
BAL_LOG_MSG_CHANGE Change message
BAL_LOG_MSG_CHANGE Change message
BAL_LOG_MSG_CHECK Check message data for consistency
BAL_LOG_MSG_CUMULATE Add message cumulated
BAL_LOG_MSG_DELETE Delete message
BAL_LOG_MSG_DELETE Delete message
BAL_LOG_MSG_EXIST Check existence of a message in memory
BAL_LOG_MSG_READ Read message and other data
BAL_LOG_MSG_REPLACE Replace last message
BAL_LOG_REFRESH Delete log from memory
BAL_LOG_REFRESH Delete log from memory
BAL_MSG_DISPLAY_ABAP Output message as ABAP-MESSAGE
BAL_OBJECT_SELECT Read Application Log objects table record
BAL_OBJECT_SUBOBJECT Check whether object and subobject exist and the combination is allowed
BAL_SUBOBJECT_SELECT Read subobject table record
BP_EVENT_RAISE Trigger an event from ABAP/4 program
BP_JOBLOG_READ Fetch job log executions
CHANGEDOCUMENT_READ_HEADERS Get the change document header for a sales document, and put the results in an internal table.
Example:
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
objectclass = 'EINKBELEG'
objectid = l_objectid
username = space
TABLES
i_cdhdr = lt_cdhdr.
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = lt_cdhdr-changenr
TABLES
editpos = lt_editpos.
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
AND f_new = 'L'.
p_desc = text-r01. " Cancel Contract
ENDLOOP.
ENDLOOP.
CHANGEDOCUMENT_READ_POSITIONS Get the details of a change document, and store them in an internal table. This will tell you whether a field was changed, deleted, or updated.
Example:
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
objectclass = 'EINKBELEG'
objectid = l_objectid
username = space
TABLES
i_cdhdr = lt_cdhdr.
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = lt_cdhdr-changenr
TABLES
editpos = lt_editpos.
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
AND f_new = 'L'.
p_desc = text-r01. " Cancel Contract
ENDLOOP.
ENDLOOP.
CLAF_CLASSIFICATION_OF_OBJECTS Return all of the characteristics for a material
CLOI_PUT_SIGN_IN_FRONT Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all character fields), not right justifed as numbers normally are.
CLPB_EXPORT Export a text table to the clipboard (on presentation server)
CLPB_IMPORT Import a Text Table from the Clipboard (on presentation server)
COMMIT_TEXT To load long text into SAP
CONVERSION_EXIT_ALPHA_INPUT converts any number into a string fill with zeroes, with the number at the extreme right
Example:
input = 123
output = 0000000000000...000000000000123
CONVERSION_EXIT_ALPHA_OUTPUT converts any number with zeroes right into a simple integer
Example:
input = 00000000000123
output = 123
CONVERT_ABAPSPOOLJOB_2_PDF convert abap spool output to PDF
CONVERT_OTF Convert SAP documents (SAPScript) to other types.
Example:
CALL FUNCTION "CONVERT_OTF"
EXPORTING FORMAT = "PDF"
IMPORTING BIN_FILESIZE = FILE_LEN
TABLES OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
CONVERT_OTFSPOOLJOB_2_PDF converts a OTF spool to PDF (i.e. Sapscript document)
CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.
CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency
DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
DATE_GET_WEEK will return the week that a date is in.
DATE_IN_FUTURE Calculate a date N days in the future.
DAY_ATTRIBUTES_GET
Return useful information about a day. Will tell you the day of the week as a word (Tuesday), the day of the week (2 would be Tuedsay), whether the day is a holiday, and more.(provided by Francois Henrotte)
DOWNLOAD download a file to the presentation server (PC)
DYNP_VALUES_READ Read the values from a dynpro. This function can be used to read the values from a report's selection screen too (Another example).
DYNP_VALUES_UPDATE Similar to DYNP_VALUES_READ, this function will allow the updating of fields on a dynpro. Very useful when you want to change a field based on the value entered for another field.
ENQUE_SLEEP Wait a specified period of time before continuing processing.
ENQUEUE_ESFUNCTION Lock an abap program so that it cannot be executed.
Example:
Set the parameters as follows:
RELID = 'ZZ'
SRTF2 = 0
SRTF = (your report name)
Please note that you should not use SY-REPID to pass your report name to the function. The value of SY-REPID will change as it is being passed to the function module, and will no longer hold the value of the calling report.
EPS_GET_DIRECTORY_LISTING return a list of filenames from a local or network drive
EPS_GET_FILE_ATTRIBUTES Pass in a filename and a path, and will return attributes for the file
F4_DATE displays a calendar in a popup window and allows user to choose a date, or it can be displayed read only.
F4_IF_FIELD_VALUE_REQUEST Use values from a DDIC table to provide a list of possible values. TABNAME and FIELDNAME are required fields, and when MULTIPLE_CHOICE is selected, more than one value can be returned.
F4IF_INT_TABLE_VALUE_REQUEST F4 help that returns the values selected in an internal table. Very handy when programming your very own F4 help for a field.
Example:
data:
begin of t_values occurs 2,
value like kna1-begru,
end of t_values,
t_return like ddshretval occurs 0 with header line.
t_values = 'PAR*'.
append t_values.
t_values = 'UGG'.
append t_values.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BEGRU'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc = 0.
read table t_return index 1.
o_begru-low = t_return-fieldval.
if o_begru-low = 'PAR*'.
o_begru-option = 'CP'.
else.
o_begru-option = 'EQ'.
endif.
o_begru-sign = 'I'.
append o_begru to s_begru.
else.
o_begru = i_begru.
endif.
F4IF_SHLP_EXIT_EXAMPLE documents the different reasons to use a search help exit, and shows how it is done.
F4IP_INT_TABLE_VALUE_REQUEST This function does not exist in 4.6 and above. Use F4IF_INT_TABLE_VALUE_REQUEST instead.
FILENAME_GET popup to get a filename from a user, returns blank filename if user selects cancel
FORMAT_MESSAGE Takes a message id and number, and puts it into a variable. Works better than WRITE_MESSAGE, since some messages use $ as a place holder, and WRITE_MESSAGE does not accommadate that, it only replaces the ampersands (&) in the message.
FTP_COMMAND Execute a command on the FTP server
FTP_CONNECT Open a connection (and log in) to an FTP server
FTP_DISCONNECT Close the connection (and log off) the FTP server
FU CSAP_MAT_BOM_READ You can use this function module to display simple material BOMs. You cannot display BOM groups (for example, all variants of a variant BOM). as in transaction CS03. Current restrictions: You cannot display long texts. You cannot display sub-items. You cannot display classification data of BOM items for batches. You can only display one alternative or variant. You cannot enter an alternative for module CSAP_MAT_BOM_READ, so you always see alternative 01. The following example came from a posting on the SAP-R3-L mailing list.
Example:
data: begin of tstk2 occurs 0.
include structure stko_api02.
data: end of tstk2.
data: begin of tstp2 occurs 0.
include structure stpo_api02.
data: end of tstp2.
data: begin of tdep_data occurs 0.
include structure csdep_data.
data: end of tdep_data.
data: begin of tdep_descr occurs 0.
include structure csdep_descr.
data: end of tdep_descr.
data: begin of tdep_source occurs 0.
include structure csdep_source.
data: end of tdep_source.
data: begin of tdep_order occurs 0.
include structure csdep_order.
data: end of tdep_order.
data: begin of tdep_doc occurs 0.
include structure csdep_doc.
data: end of tdep_doc.
data: flg_warning like capiflag-flwarning.
call function 'CSAP_MAT_BOM_READ'
exporting
material = 'MAT100'
plant = '0001'
bom_usage = '1'
valid_from = '20.12.1996'
valid_to
importing
fl_warning = flg_warning
tables
t_stko = tstk2
t_stpo = tstp2
t_dep_data = tdep_data
t_dep_descr = tdep_descr
t_dep_source = tdep_source
t_dep_order = tdep_order
t_dep_doc = tdep_doc
exceptions
error = 1.
Function Group GRAP is now obsolete. SAP recommends using functions in function group SFES instead. Below is an overview of the changes.
G_SET_GET_ALL_VALUES Fetch values from a set.
GET_CURRENT_YEAR Get the current fiscal year.
Example:
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
GET_GLOBAL_SYMBOLS Returns a list of all tables, select options, texts, etc for a program. Even includes the text definitions for the selection screen
GET_INCLUDETAB Returns a list of all INCLUDES in a program
GET_JOB_RUNTIME_INFO
Get the current job number from a program. Also returns other useful info about the current job.
GUI_CREATE_DIRECTORY Create a directory on the presentation server
GUI_DELETE_FILE Replaces WS_FILE_DELETE. Delete a file on the presentation server
GUI_DOWNLOAD Replaces WS_DOWNLOAD. Download table from the app server to presentation server
GUI_EXEC Replaces WS_EXECUTE. Start a File or Program Asynchronously with WinExec
GUI_GET_DESKTOP_INFO Replaces WS_QUERY. Delivers Information About the Desktop (client)
GUI_REMOVE_DIRECTORY Delete a directory on the presentation server
GUI_RUN Start a File or Program Asynchronously with ShellExecute
GUI_UPLOAD Replaces WS_UPLOAD. Upoad file from presentation server to the app server
HELP_START Display help for a field. Useful for doing AT SELECTION SCREEN ON VALUE REQUEST for those fields that do not provide F4 help at the DDIC level.
HELP_VALUES_GET_WITH_TABLE Show a list of possible values for F4 popup help on selection screens. This function module pops up a screen that is just like all the other F4 helps, so it looks like the rest of the SAP system. Very useful for providing dropdowns on fields that do not have them predefined.
Example:
tables: t001w.
DATA: lc_werks LIKE t001w-werks,
ltab_fields LIKE help_value OCCURS 0 with header line,
BEGIN OF ltab_values OCCURS 0,
feld(40) TYPE c,
END OF ltab_values.
*-- Set up fields to retrieve data
ltab_fields-tabname = 'T001W'.
ltab_fields-fieldname = 'WERKS'.
ltab_fields-selectflag = 'X'.
APPEND ltab_fields.
ltab_fields-tabname = 'T001W'.
ltab_fields-fieldname = 'NAME1'.
ltab_fields-selectflag = space.
APPEND ltab_fields.
*-- Fill values
select * from t001w.
ltab_values-feld = t001w-werks.
append ltab_values.
ltab_values-feld = t001w-name1.
append ltab_values.
endselect.
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
EXPORTING
fieldname = 'WERKS'
tabname = 'T001W'
title_in_values_list = 'Select a value'
IMPORTING
select_value = lc_werks
TABLES
fields = ltab_fields
valuetab = ltab_values
EXCEPTIONS
field_not_in_ddic = 01
more_then_one_selectfield = 02
no_selectfield = 03.
HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the date is a holiday by checking the parameter HOLIDAY_FOUND.
Example:
data: ld_date like scal-datum default sy-datum,
lc_holiday_cal_id like scal-hcalid default 'CA',
ltab_holiday_attributes like thol occurs 0 with header line,
lc_holiday_found like scal-indicator.
CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
EXPORTING
date = ld_date
holiday_calendar_id = lc_holiday_cal_id
WITH_HOLIDAY_ATTRIBUTES = 'X'
IMPORTING
HOLIDAY_FOUND = lc_holiday_found
tables
holiday_attributes = ltab_holiday_attributes
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
HOLIDAY_CALENDAR_ID_MISSING = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
if sy-subrc = 0 and
lc_holiday_found = 'X'.
write: / ld_date, 'is a holiday'.
else.
write: / ld_date, 'is not a holiday, or there was an error calling the function'.
endif.
HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
HR_DISPLAY_BASIC_LIST is an HR function, but can be used for any data. You pass it data, and column headers, and it provides a table control with the ability to manipulate the data, and send it to Word or Excel. Also see the additional documentation here.
HR_GET_LEAVE_DATA Get all leave information (includes leave entitlement, used holidays/paid out holidays)
HR_IE_NUM_PRSI_WEEKS Return the number of weeks between two dates.
HR_PAYROLL_PERIODS_GET
Get the payroll period for a particular date. (provided by Francois Henrotte)
Example:
DATA: IT_T549Q TYPE T549Q OCCURS 0 WITH HEADER LINE,
IT_ZL TYPE PC2BF OCCURS 0 WITH HEADER LINE.
W_BEGDA = '20010101'.
W_PERNR = '00000001'.
CALL FUNCTION 'HR_PAYROLL_PERIODS_GET'
EXPORTING
get_begda = w_begda
TABLES
get_periods = it_t549q
EXCEPTIONS
no_period_found = 1
no_valid_permo = 2.
CHECK sy-subrc = 0.
CALL FUNCTION 'HR_TIME_RESULTS_GET'
EXPORTING
get_pernr = w_pernr
get_pabrj = it_t549q-pabrj
get_pabrp = it_t549q-pabrp
TABLES
get_zl = it_zl
EXCEPTIONS
no_period_specified = 1
wrong_cluster_version = 2
no_read_authority = 3
cluster_archived = 4
technical_error = 5.
NOTE: it_zl-iftyp = 'A' absence
it_zl-iftyp = 'S' at work
HR_TIME_RESULTS_GET
Get the time results for a payroll period. (provided by Francois Henrotte)
Example:
DATA: IT_T549Q TYPE T549Q OCCURS 0 WITH HEADER LINE,
IT_ZL TYPE PC2BF OCCURS 0 WITH HEADER LINE.
W_BEGDA = '20010101'.
W_PERNR = '00000001'.
CALL FUNCTION 'HR_PAYROLL_PERIODS_GET'
EXPORTING
get_begda = w_begda
TABLES
get_periods = it_t549q
EXCEPTIONS
no_period_found = 1
no_valid_permo = 2.
CHECK sy-subrc = 0.
CALL FUNCTION 'HR_TIME_RESULTS_GET'
EXPORTING
get_pernr = w_pernr
get_pabrj = it_t549q-pabrj
get_pabrp = it_t549q-pabrp
TABLES
get_zl = it_zl
EXCEPTIONS
no_period_specified = 1
wrong_cluster_version = 2
no_read_authority = 3
cluster_archived = 4
technical_error = 5.
NOTE: it_zl-iftyp = 'A' absence
it_zl-iftyp = 'S' at work
INIT_TEXT To load long text into SAP
K_WERKS_OF_BUKRS_FIND Return a list of all plants for a given company code.
LIST_FROM_MEMORY Retrieves the output of a report from memory when the report was executed using SUBMIT... EXPORTING LIST TO MEMORY. See also WRITE_LIST.
LIST_TO_ASCII convert an ABAP report (displayed on screen) from OTF to ASCII format
MBEW_EXTEND
Get the stock position for the previous month. This displays the same info that you see in MM03.
MONTH_NAMES_GET It returns all the month and names in repective language.
MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.
Example:
data: new_date type d.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = -5 " Negative to subtract from old date, positive to add
olddate = sy-datum
IMPORTING
NEWDATE = new_date.
write: / new_date.
MS_EXCEL_OLE_STANDARD_OLE will build a file, and automatically start Excel
OTF_CONVERT wraps several other function modules. Will convert OTF to ASCII or PDF
POPUP_TO_CONFIRM_LOSS_OF_DATA Create a dialog box in which you make a question whether the user wishes to perform a processing step with loss of data.
POPUP_TO_CONFIRM_STEP Create a dialog box in which you make a question whether the user wishes to perform the step.
POPUP_TO_CONFIRM_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point during an action.
POPUP_TO_CONFIRM_WITH_VALUE Create a dialog box in which you make a question whether the user wishes to perform a processing step with a particular object.
POPUP_TO_DECIDE Provide user with several choices as radio buttons
POPUP_TO_DECIDE_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.
POPUP_TO_DISPLAY_TEXT Create a dialog box in which you display a two line message
POPUP_TO_SELECT_MONTH Popup to choose a month
POPUP_WITH_TABLE_DISPLAY Provide a display of a table for user to select one, with the value of the table line returned when selected.
PRICING Return pricing conditions in an internal table. Use structure TCOMK for parameter COMM_HEAD_1, and structure TCOMP for parameter COMM_ITEM_1, and set CALCULATION_TYPE to B. The pricing conditions will be returned in XOMV. You must fill TCOMP, and TCOMK with the appropriate values before callling the function in order for it to work.
PROFILE_GET Read an Entry in an INI File on the frontend
PROFILE_SET Write an Entry in an INI File on the frontend
READ_TEXT To load long text into SAP
REGISTRY_GET Read an Entry from the Registry
REGISTRY_SET Set an entry in the Registry
RFC_ABAP_INSTALL_AND_RUN Runs an ABAP program that is stored in the table PROGRAM when the MODE = 'F'. Table WRITES contains the ouput of the program. Allows you to run a program without having the source code in the target system.
RH_GET_ACTIVE_WF_PLVAR Return the active HR Plan
RH_GET_DATE_DAYNAME return the day based on the date provied
RH_START_EXCEL_WITH_DATA starts Excel with the contents of an internal table. This function finds Excel in the desktop registry. It also uses a local PC working directory to save the file (that's what the 'W' value for data path flag does). Very transparent to user!
RH_STRUC_GET Returns all related org info
RHP0_POPUP_F4_SEARK
is a matchcode for any type of HR Planning object, including the possibility to fill the field that you want
Example:
Examples: search for any organizational structure
F4 = 'X'
PLVAR = '01'
OTYPE = 'O '
search for any persons
F4 = 'X'
PLVAR = '01'
OTYPE = 'P '
MULTI_SELECT = 'X' to allow multiple selection
EASY = 'X' for user-dependent matchcode
Unfortunately, the use of table BASE_OBJIDS is disabled, so you can't specify
a root for the hierarchy you display
RKD_WORD_WRAP Convert a long string or phrase into several lines.
RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
RP_LAST_DAY_OF_MONTHS Determine last day of month
RPY_DYNPRO_READ Read dynpro, including screen flow
RPY_TRANSACTION_READ Given a transaction, return the program and screen or given a program and screen, return the transactions that use the program and screen.
RS_COVERPAGE_SELECTIONS Returns an internal table that contains a formatted list of all the selection parameters entered for a report. Table is ready to print out.
RS_REFRESH_FROM_SELECTOPTIONS Get the current contents of selection screen
RS_SEND_MAIL_FOR_SPOOLLIST Send message from ABAP/4 program to SAPoffice.
RS_VARIANT_CONTENTS Returns the contents of the specified variant in a table.
RSPO_DOWNLOAD_SPOOLJOB Download the spool from a program to a file. Requires spool number.
RSPO_RETURN_ABAP_SPOOLJOB Fetch printer spool according to the spool number informed.
RZL_READ_DIR If the server name is left blank, it reads a directory from local presentation server, otherwise it reads the directory of the remote server
RZL_READ_DIR_LOCAL Read a directory on the Application Server
RZL_READ_FILE Read a file from the presentation server if no server name is given, or read file from remote server. Very useful to avoid authority checks that occur doing an OPEN DATASET. This function using a SAP C program to read the data.
RZL_SLEEP Hang the current application from 1 to 5 seconds.
RZL_SUBMIT Submit a remote report.
RZL_WRITE_FILE_LOCAL Saves table to the presentation server (not PC). Does not use OPEN DATASET, so it does not suffer from authority checks!
SAP_CONVERT_TO_XLS_FORMAT Convert data to Microsoft Excel format.
SAPGUI_PROGRESS_INDICATOR Display a progress bar on the SAP GUI, and give the user some idea of what is happening
SAVE_TEXT To load long text into SAP
SCROLLING_IN_TABLE If you are coding a module pool and using a table control, you can use this function SCROLLING_IN_TABLE to handle any scrolling. (provided by Paul Kjaer)
SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates
SO_NEW_DOCUMENT_ATT_SEND_API1 Send a document as part of an email. The documentation is better than normal for this function, so please read it.
SO_SPLIT_FILE_AND_PATH Split a fully pathed filename into a filename and a path.
SO_SPOOL_READ Fetch printer spool according to the spool number informed. See also RSPO_RETURN_ABAP_SPOOLJOB
SO_WIND_SPOOL_LIST Browse printer spool numbers according to user informed.
SWD_HELP_F4_ORG_OBJECTS
HR Matchcode tailored for organizational units. Includes a button so that you can browse the hierarchy too.
SX_OBJECT_CONVERT_OTF_PDF Conversion From OTF to PDF (SAPScript conversion)
SX_OBJECT_CONVERT_OTF_PRT Conversion From OTF to Printer Format (SAPScript conversion)
SX_OBJECT_CONVERT_OTF_RAW Conversion From OTF to ASCII (SAPScript conversion)
SXPG_CALL_SYSTEM you can check the user's authorization for the specified command and run the command. The command runs on the host system on which the function module is executed. The function module is RFC capable. It can therefore be run on the host system at which a user happens to be active or on another designated host system at which an R/3 server is active.
SXPG_COMMAND_CHECK Check whether the user is authorized to execute the specified command on the target host system with the specified arguments.
SXPG_COMMAND_DEFINITION_GET Read the definition of a single external OS command from the R/3 System's database.
SXPG_COMMAND_EXECUTE Check a user's authorization to use a command, as in SXPG_COMMAND_CHECK. If the authorization check is successful, then execute the command on the target host system.
SXPG_COMMAND_LIST_GET Select a list of external OS command definitions.
TERMINAL_ID_GET Return the terminal id
TH_DELETE_USER Logoff a user. Similar results to using SM04.
TH_ENVIRONMENT Get the UNIX environment
TH_POPUP Display a popup system message on a specific users screen.
TH_REMOTE_TRANSACTION Run a transaction on a remote server. Optionally provide BDC data to be used in the transaction
TH_USER_INFO Give information about the current user (sessions, workstation logged in from, etc)
TH_USER_LIST Show which users are logged into an app server
TMP_GUI_DIRECTORY_LIST_FILES Retrieve all of the files and subdirectories on the Presentation Server (PC) for a given directory.
When a value other than * or . is used for the filter, you will not get any directories, unless they match your wildcard filter. For example, if you entered *.png, then only files and directories that end in png will be returned by the function.
Example:
data: lc_directory like bdschko16-target_dir value 'C:\TEMP\',
lc_filter(20) type c default '.'.
li_file_count type i,
li_dir_count type i,
ltab_dir_table like sdokpath occurs 0 with header line,
ltab_file_file_table like sdokpath occurs 0 with header line.
call function 'TMP_GUI_DIRECTORY_LIST_FILES'
exporting
directory = lc_directory
filter = lc_filter importing
file_count = li_file_count
dir_count = li_dir_count
tables
file_table = ltab_file_table
dir_table = ltab_dir_table
exceptions
cntl_error = 1
others = 2.
UNIT_CONVERSION_SIMPLE convert weights from one UOM to another.
UPLOAD upload a file to the presentation server (PC)
UPLOAD_FILES Will load one or more files from app or presentation server
WEEK_GET_FIRST_DAY For a given week (YYYYMM format), this function returns the date of the Monday of that week.
WRITE_LIST Useful for writing out the list contents that result from the function LIST_FROM_MEMORY.
WS_DOWNLOAD Save Internal Table as File on the Presentation Server
WS_EXCEL Start EXCEL on the PC
WS_EXECUTE execute a program on a windows PC
WS_FILE_DELETE Delete File at the Frontend
WS_FILENAME_GET Call File Selector
WS_MSG Create a dialog box in which you display an one line message
WS_UPLOAD Load Files from the Presentation Server to Internal ABAP Tables
WS_VOLUME_GET Get the label from a frontend device.
WWW_LIST_TO_HTML After running a report, call this function to convert the list output to HTML.
hope it will help you.
Regards,
Sreelatha gullapalli
Maybe you are looking for
-
After downloading Firefox 4, it will not open.
On Mac OS10.4.11 I downloaded Firefox 4 into Applications folder, moved the icon into my menu bar, and attempted to open Firefox. A new 'notice box' appeared, "The application "Firefox" cannot be launched. -10661
-
I have tried using a hard boot and sometimes it worked (last 3 days), but suddenly it won't come on at all. Went to the apple store where they offered to give me a new one at a reduced price. As it is only 13 months old (just past warranty), I'm wond
-
Buffering. Can I do anything to my computer to reduce or eliminate this?
I don't understand buffering. Recently, I watched a video that lasted 20 minutes with no interruption of any kind. This is not uncommon. On the other hand, sometimes the video stops every few seconds and the screen says "buffering". Why is it that so
-
Hello. I try to install EHP4 on ERP 6.0 I have x86_64 windows server with two partitions: drive c: and large drive mounted to c:\oracle\SID Installation interrupts at PREP_GENCHECKS/SPACECHK_OPT with message ERROR> Insufficient free space in the data
-
Average Calculation in Hierarchial ALV
Hi, I need to calculate average mean in hierarchial alv. the standard menu for calculate totals is disabled in both in function module REUSE_ALV_HIERSEQ_LIST_DISPLAY and in the class cl_salv_hierseq_table. Please help with this Regards, Mathivanan.G