NOt able to update business parameter value in albpm6.0.5
My code snippet is :
String now = (String) Time.now();
processCorrelationArg = now;
BusinessParameter.updateValue(name : "CEO_PROCESS_SERVICE_LAST_RUN", value : now);
if I try to access this business param in other activity it won't receive updated value.
Please Help.
I'm not sure about your use case, but you might want to consider not using a business parameter for this. I'm a big fan of business parameters, but if I'm trying to expose a variable globally that all processes can read or update (guessing this is what you are doing) you might instead consider using a ServerSession value. It's done like this:
// this gets the value currently stored that could have been updated by any process
whenItWasLastRun as String
whenItWasLastRun = ServerSession.retrieveValueFrom(name : "ceoProcessLastRun")To set the value, do this:
myDate as Time
myDate = 'now'
myTimeString as String
myTimeString = myDate.format("dd MMM yyyy")
// set the value so it can be read by any process
putValueIn ServerSession
using name = "ceoProcessLastRun",
value = myTimeString In answer to your question though, here's logic that updates a business parameter. The input and display statements below are just in there so you can see something interactively happening when you are testing. Don't use the display or input statements in production.
object as Object
object = BusinessParameter.getValue(name : "CREDIT_SCORE")
newVal as String
newVal = String(object)
input "Credit score is: " : newVal
object = Object(newVal)
updateValue BusinessParameter
using name = "CREDIT_SCORE",
value = object
object = BusinessParameter.getValue(name : "CREDIT_SCORE")
display "Credit score is: " + String(object)Dan
Similar Messages
-
Not able to update PO in SRM 7.0
Hello,
I am not able to update PO using BBP_PD_PO_UPDATE.
The way I am using all FM's in my program is as below
1. BBP_PD_PO_GETDETAIL
2. BBP_PD_PO_UPDATE - Importing parameter lv_changed returning value X but not saving the data
3 BBP_PD_PO_SAVE - Paasing GUID as GUID returned in UPDATE FM
4. COMMIT WORK AND WAIT.
any pointers to solve my problem
Thanks,
Arun.Always check the ET_MESSAGES when calling the update. If there are "A" type of messages, it's not going to update. If there are "E" type of messages, depending on your "SAVE" or "HOLD" flag, it might not update either.
-
Not able to update the project using 'BAPI_PROJECT_MAINTAIN'.
I want to create a project , with reference to an already existing project.
I am using 'BAPI_PROJECT_GETINFO' to get the data of the existing project.
The bapi gives the following:
1) e_project_definition.
2) e_wbs_element_table.
3) e_wbs_hierarchie_table
I am passing the u2018e_project_definitionu2019 to 'BAPI_PROJECTDEF_CREATE' to create project.The project is created successfully.
But I am not able to update the project with u2018e_wbs_element_tableu2019
and u2018e_wbs_hierarchie_tableu2019. I am using 'BAPI_PROJECT_MAINTAIN' to update the project.
The program is not giving an error, but it is also not updating the E_WBS_ELEMENT_TABLE and E_WBS_HIERARCHIE_TABLE.
I am attaching the code below.
*& Report ZTEST_PC.
DATA: project_definition TYPE bapipr-project_definition,
with_activities TYPE bapipr-with_activities,
with_milestones TYPE bapipr-with_milestones,
with_subtree TYPE bapipr-with_subtree,
e_project_definition TYPE bapi_project_definition_ex,
return TYPE bapireturn1.
DATA: i_wbs_element_table TYPE TABLE OF bapi_wbs_elements,
e_wbs_element_table TYPE TABLE OF bapi_wbs_element_exp,
e_wbs_milestone_table TYPE TABLE OF bapi_wbs_milestone_exp,
e_wbs_hierarchie_table TYPE TABLE OF bapi_wbs_hierarchie,
e_activity_table TYPE TABLE OF bapi_network_activity_exp,
e_message_table TYPE TABLE OF bapi_meth_message.
DATA: wa_wbs_element_table TYPE bapi_wbs_element_exp,
wa_wbs_hierarchie_table TYPE bapi_wbs_hierarchie.
DATA: l_new_proj_no TYPE prpss-posid.
DATA: l_project_definition TYPE bapi_project_definition.
DATA: l_project_definition_upd TYPE bapi_project_definition_up.
DATA: l_project_definition_stru TYPE bapi_project_definition.
DATA :l_pspnr TYPE ps_intnr,
l_pspid TYPE ps_pspid,
l_pro_def(9) TYPE c.
DATA :l_proj TYPE proj.
DATA :l_len TYPE i VALUE '0'.
DATA: lt_dd03l TYPE TABLE OF dd03l,
ls_dd03l TYPE dd03l.
DATA: fieldname(50), fieldname1(50) TYPE c.
DATA: p_ddic_name(40), struc(40), fun_struc(50) TYPE c.
FIELD-SYMBOLS: <struc>, <c>, <sc>, <def_field> TYPE any.
DATA : i_method_project TYPE TABLE OF bapi_method_project,
wa_method_project TYPE bapi_method_project.
DATA : l_index TYPE bapi_method_project-refnumber.
DATA : it_wbs_element_table TYPE TABLE OF bapi_wbs_element,
it_wbs_hierarchie_table TYPE TABLE OF bapi_wbs_hierarchie.
DATA : wl_wbs_element_table TYPE bapi_wbs_element,
wl_wbs_hierarchie_table TYPE bapi_wbs_hierarchie.
DATA : l_wbs_element_table_update TYPE bapi_wbs_element_update.
DATA : i_wbs_element_table_update TYPE TABLE OF bapi_wbs_element_update.
Get the project info of the Project 'C01.10995'
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
EXPORTING
input = 'C01.10995'
IMPORTING
output = project_definition.
CALL FUNCTION 'BAPI_PROJECT_GETINFO'
EXPORTING
project_definition = project_definition
IMPORTING
e_project_definition = e_project_definition
return = return
TABLES
i_wbs_element_table = i_wbs_element_table
e_wbs_element_table = e_wbs_element_table
e_wbs_milestone_table = e_wbs_milestone_table
e_wbs_hierarchie_table = e_wbs_hierarchie_table
e_activity_table = e_activity_table
e_message_table = e_message_table.
Automate the process the process to get the next number for the func module 'CN_SUCHE_FREIE_NUMMER'.
CLEAR : l_pspnr, l_pspnr, l_pspid, l_pro_def.
SELECT MAX( pspnr ) FROM proj INTO l_pspnr.
SELECT SINGLE * FROM proj INTO l_proj WHERE pspnr EQ l_pspnr.
l_pspid = l_proj-pspid.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT'
EXPORTING
input = l_pspid
IMPORTING
output = l_pspid.
l_pro_def = l_pspid+4(5) + 1.
CONDENSE l_pro_def.
CONCATENATE 'C01.' l_pro_def INTO l_pspid .
function module to generate the nect free number between the given range.
CALL FUNCTION 'CN_SUCHE_FREIE_NUMMER'
EXPORTING
search_imp = '2'
prps_s_imp = l_pspid
prps_e_imp = 'C01.29999'
no_dialog = 'X'
IMPORTING
prps_exp = l_new_proj_no.
IF sy-subrc <> 0.
EXIT.
ENDIF.
Update the fields of 'l_project_definition_upd' as 'X' for the fields which has values in 'E_PROJECT_DEFINITION'.
Get the New Project Number.
MOVE-CORRESPONDING e_project_definition TO l_project_definition.
l_project_definition-project_definition = l_project_definition-project_definition+0(3).
l_new_proj_no = l_new_proj_no+4(5).
CONCATENATE l_project_definition-project_definition '.' l_new_proj_no INTO l_project_definition-project_definition.
TRANSLATE l_project_definition-project_definition TO UPPER CASE.
MOVE-CORRESPONDING l_project_definition TO l_project_definition_stru.
Create the New project with the New project Number.
CALL FUNCTION 'BAPI_PROJECTDEF_CREATE'
EXPORTING
project_definition_stru = l_project_definition_stru.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ' '.
Populate internal table i_method_project for the bapi_project_maintain func module.
CLEAR : wa_wbs_element_table,wl_wbs_element_table,wa_wbs_hierarchie_table,
wl_wbs_hierarchie_table, it_wbs_element_table, it_wbs_hierarchie_table.
CLEAR : wa_method_project, i_method_project, l_index .
l_index = 0.
LOOP AT e_wbs_element_table INTO wa_wbs_element_table.
MOVE-CORRESPONDING wa_wbs_element_table TO wl_wbs_element_table .
APPEND wl_wbs_element_table TO it_wbs_element_table .
wa_method_project-objecttype = 'WBS_ELEMENT'.
wa_method_project-method = 'CREATE'.
wa_method_project-objectkey = wa_wbs_element_table-wbs_element.
l_len = strlen( wa_wbs_element_table-wbs_element ).
Setting Levels as reference number.
CASE l_len.
WHEN '9'.
l_index = 1.
WHEN '12'.
l_index = 2.
WHEN '15'.
l_index = 3.
WHEN '18'.
l_index = 4.
ENDCASE.
wa_method_project-refnumber = l_index .
TRANSLATE wa_method_project-objectkey TO UPPER CASE.
APPEND wa_method_project TO i_method_project.
CLEAR :wa_method_project, l_index.
ENDLOOP.
l_index = l_index + 1.
wa_method_project-refnumber = ' '. "l_index .
wa_method_project-objecttype = ' '. "'WBS_ELEMENT'.
wa_method_project-method = 'SAVE'.
wa_method_project-objectkey = ' '.
APPEND wa_method_project TO i_method_project.
CLEAR wa_method_project.
LOOP AT e_wbs_hierarchie_table INTO wa_wbs_hierarchie_table.
MOVE-CORRESPONDING wa_wbs_hierarchie_table TO wl_wbs_hierarchie_table.
APPEND wl_wbs_hierarchie_table TO it_wbs_hierarchie_table.
ENDLOOP.
Update the fields of 'l_project_definition_upd' as 'X' for the fields which has values in 'E_PROJECT_DEFINITION' respectively.
CLEAR : l_project_definition_upd.
p_ddic_name = 'BAPI_PROJECT_DEFINITION_UP'.
struc = 'l_project_definition_upd'.
fun_struc = 'E_PROJECT_DEFINITION'.
TRANSLATE: p_ddic_name TO UPPER CASE,
struc TO UPPER CASE.
SELECT * FROM dd03l INTO TABLE lt_dd03l WHERE tabname = p_ddic_name.
LOOP AT lt_dd03l INTO ls_dd03l.
ASSIGN ls_dd03l-fieldname TO <c>.
fieldname = ls_dd03l-fieldname .
CONCATENATE fun_struc '-' fieldname INTO fieldname.
ASSIGN (struc) TO <struc>.
ASSIGN COMPONENT <c> OF STRUCTURE <struc> TO <sc>.
ASSIGN (fieldname) TO <def_field>.
IF NOT <def_field> IS INITIAL .
<sc> = 'X'.
ENDIF.
ENDLOOP.
Update the fields of 'l_wbs_element_table_update' as 'X' for the fields which has values in 'e_wbs_element_table' respectively.
READ TABLE e_wbs_element_table INTO wa_wbs_element_table INDEX '1'.
CLEAR : l_wbs_element_table_update, fieldname1, p_ddic_name, struc, fun_struc .
p_ddic_name = 'BAPI_WBS_ELEMENT_UPDATE'.
struc = 'l_wbs_element_table_update'.
fun_struc = 'WA_WBS_ELEMENT_TABLE'.
TRANSLATE: p_ddic_name TO UPPER CASE,
struc TO UPPER CASE.
SELECT * FROM dd03l INTO TABLE lt_dd03l WHERE tabname = p_ddic_name.
LOOP AT lt_dd03l INTO ls_dd03l.
ASSIGN ls_dd03l-fieldname TO <c>.
fieldname = ls_dd03l-fieldname .
CONCATENATE fun_struc '-' fieldname INTO fieldname.
ASSIGN (struc) TO <struc>.
ASSIGN COMPONENT <c> OF STRUCTURE <struc> TO <sc>.
ASSIGN (fieldname) TO <def_field>.
IF NOT <def_field> IS INITIAL .
<sc> = 'X'.
ENDIF.
ENDLOOP.
Append the value of l_wbs_element_table_update TO the table i_wbs_element_table_update for Bapi_project_maintain.
CLEAR i_wbs_element_table_update.
APPEND l_wbs_element_table_update TO i_wbs_element_table_update.
CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
EXPORTING
i_project_definition = l_project_definition
i_project_definition_upd = l_project_definition_upd
TABLES
i_method_project = i_method_project
i_wbs_element_table_update = i_wbs_element_table_update
i_wbs_element_table = it_wbs_element_table.
i_wbs_hierarchie_table = it_wbs_hierarchie_table.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ' '.
Please help me to solve the issue.I am not sure why it is not working?? Try for any other alternate function modules.
But i see one issue with your coding, always check the return table message type and use commit work, instead of sy-subrc check. This fails for BAPI's -
Not able to create a parameter of type STRING_TABLE in BOR
Hi All,
I want to send a table of type STRING_TABLE from webdynpro to workflow.
I have created this table of type STRING_TABLE in webdynpro as well as in workflow successfully.
But i am not able to create a parameter of type STRING_TABLE in BOR event as well as method.
It is giving me error as "Data type STRING_TABLE can not be used".
So how can i send my internal table value of STRING_TABLE type into workflow?
Regards,
AmarHi,
I agree Vinoth in certain aspects. It is not possibly the best idea to try to store a string table in workflow container. There are certain limitations in the container (255 characters) in certain situations and you might find yourself in problems in the future. So, consider converting the string data into some other format - OR you could also check if you can limit somehow the lenght in WDA (but of course then you will still have the same problem about the string table data type).
If you want to try to it, you should be able to create your own table type of string. I don't remember the details but there might be something "special" about the STRING_TABLE (only available in WDA or whatever), and that's why you are seeing the error. So, try to create your own table type that has string data type as an row. Then use that.
But as I said, you might see some problems. For example, if you try to read the container with SAP_WAPI_READ_CONTAINER, it will just return you the first 255 characters of each row, etc. There are ways to overcome these kind of problems, but just to let you know, they might not be that simple.
Regards,
Karri -
Not able to update more than 10,000 records in CT04 for a characteristic
Hi all,
We are not able to update more than 10,000 records in CT04 for a certain characteristic.
Is there any possible way to do this?
Please advise...its a production issue.
Thanks.Hello ,
Please consider using a check table for the characteristic involved if you are working with large
number of values assigned
With a check table you have a possibility to work with a huge amount of values , also the performance should improve
Please refer to the link
http://help.sap.com/saphelp_erp60_sp/helpdata/en/ec/62ae27416a11d1896d0000e8322d00/frameset.htm
Section - Entering a Check Table
Hopefully the information helps
Thanks
Enda. -
Business Parameter value access through PAPI Client
I'm new to Oracle BPM. Currently working on PAPI client development and requires a value from a Business Parameter "InterestRate".
Could somebody help me out. Is it possible to get the Business Parameter value from a PAPI client.
ThanksI could be wrong, but I think the Business Parameters are stored in the FDI. I've never had the need to hit it from Java, but I believe a couple folks on this forum might be able to give you a pointer on the FDI API.
Dan -
HT4623 why am I not able to update my os to ios7,
Why am I not able to update to ios7?
Could be several reasons, the first being not enough available memory. You also could be trying to update on a computer where iTunes is not up to the required release. You could be having trouble accessing a very busy server. Point being ...you need to say a little more about your specific problem to receive helpful advice.
-
Remote Object - not able to get the returned value from java method
Hi ,
I am developing one sample flex aplication that connects to the java code and displays the returned value from the
java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
lastResult is giving null . I am able to see the sysout messages in server console.
I am using flex 3.2 and blazeds server and java 1.5
Here is the code what I have written.
<?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
<mx:Script><![CDATA[
import mx.controls.Alert;
import mx.binding.utils.ChangeWatcher;
import mx.rpc.events.ResultEvent;
import mx.messaging.*;
import mx.messaging.channels.*
public function initApp():void {
var cs:ChannelSet = new ChannelSet();
var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf"); cs.addChannel(customChannel);
remoteObj.channelSet = cs;
public function writeToConsole():void { remoteObj.writeToConsole(
"hello from Flash client");
var returnedVal:String = remoteObj.setName().lastResult; Alert.show(returnedVal);
//[Bindable]
// private var returnedVal:String;
]]>
</mx:Script>
<mx:RemoteObject id="remoteObj" destination="sro" />
<mx:Form width="437" height="281">
<mx:FormItem>
</mx:FormItem>
<mx:Button label="Write To Server Console" click="writeToConsole()"/>
</mx:Form>
</mx:WindowedApplication>
Java code
public
public SimpleRemoteObject(){
super(); }
class SimpleRemoteObject {
public void writeToConsole(String msg) { System.out.println("SimpleRemoteObject.write: " + msg); }
public String setName(){ System.
out.println("Name changed in Java");
return "Name changed in Java";
And I have configured destination in remote-config.xml
<destination id="sro">
<properties>
<source>SimpleRemoteObject</source>
<scope>application</scope>
</properties>
</destination>
Please help me .You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
In this you define what you wish to do.
More importantly in the remote object you need to define which method you wish to call using the method class like this
<mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1" >
<Method name="javaMethodName" result="r2" fault="f2"/>
<mx:RemoteObject>
r2 is the function where you get the result back from java and can use it to send the alert. -
I have an ipad2 that has ios4.3.5 that I'm trying to update to iOS 6. I'm not able to update because of unidentifiable apps. I'm assuming that these are apps I tried to get but couldn't open because I needed iOS 5 or higher. These apps are still in my app store always needing updates, but I can't open or update because I don't have iOS 5. I can't delete them either because they can't be opened or aren't on my screen to hold/let wiggle/X. I need to remove these apps, but can't figure out how. Please someone tell me how
If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
iOS 4: Updating your device to iOS 5 or Later
http://support.apple.com/kb/HT4972
How to install iOS 6
http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
iOS: How to update your iPhone, iPad, or iPod touch
http://support.apple.com/kb/HT4623
If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily. Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
Tip 2 - If you are updating using wifi, locate your iPad close to your router so you don't get a wifi dropout (can cause update corruption).
Cheers, Tom -
I have the iPhone 5s. I synced it with my Mac and got all the old apps from my old phone. I was not able to update any of the apps on the old phone and they will not update on the new iPhone 5s either! What can I do?
Hey there rmflint,
It sounds like you are wanting to update the Apps that were synced over from your computer to your new iPhone 5s. If you are clicking Updates in the App Store in the bottom right corner, would you mind clarifying what happens when you are trying to update them?
App Store at a glance
http://help.apple.com/iphone/7/#/iph3dfd8c19
Thank you for using Apple Support Communities.
Take care,
Sterling -
How do i delete an old iCloud account from phone when I forget my password and I'm not able to reset it because my security questions do not match?! Help!! Currently not able to update any apps or icloud info...
If your device is signed into an old ID of yours that is an earlier version of the ID you want to sign in with, do the following:
If you are using iMessage and FaceTime, make sure you are signed into these services with your current ID. If they are signed into the old ID, go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with your current ID.
Then temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. (You should not have to verify the old email account so it doesn’t matter if you no longer have access to it.) Now go to Settings>iCloud, turn off Find My iDevice and enter your current password when prompted (even though it prompts you for the password for your old ID). Then save any photo stream photos that you wish to keep to your camera roll (unless you are using iCloud Photo Library). When finished go to Settings>iCloud, tap Sign Out (or Delete Account if you are not running iOS 8) and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address back to the way it was. Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password (your data will download back to your device). -
In Apple store I was not able to update my software and ther was an error whenever i tried to update it ,error is 13
Did u try to delete ~/Library/Cookies/com.apple.appstore.plist yet?
Just an FIY, my first post are not steps, they are different ways of fixing the problem.
I.E.
Try #1. ->>Didnt work. Then Try #2. --> if that doesnt contact this post again. I will try to help you as much as I can before the need to reformat is considered. -
I am not able to update my apps because every time I am doing this, it is asking for a password which I have never used and the person who used it is in no more contact. how can i get my id instead of his??
Apps can only be updated using the same Apple ID and password they were originally purchased with.
-
Hello my iPhone 5s is not able to restore it from settings also and from iTunes also and I'm not able to update to ios8 also pls help me someone I wnt to update it and restore it when I restore it's shows update to ios8 when I do that it will start download and after few time it got error and stops there pls suggest me something
Hey alkarim2008,
If you are having an issue with being unable to update or restore your iPhone, I would suggest that you troubleshoot using the steps in this article -
Resolve iOS update and restore errors in iTunes - Apple Support
Thanks for using Apple Support Communities.
Happy computing,
Brett L -
Could not able to show a scalar value in Page Header/Group Header of the re
Hi,
I could not able to show a scalar value in Page Header/Group Header of the report which is returned from Sub-report. But I am able to display it in both Group Footer and Page Footer.
I used shared variable in formula filed of both main and sub report and both are placed in the main and sub-report.
Please do needful.
Thanks & Regards,
Mani G.S.You can only show Shared variables in main report in a location after the subreport has executed.
If you want to show values in page header or group header you must place subreport in a section above these. This is unlikely to be possible so you will have to live with displaying results in Group/page footer.
Alternatively you can execute subreport twice, once where subreport is hidden in a section above page/group header and pass summary figure you require and then again where you currently have subreport so you can see details as required.
Ian
Maybe you are looking for
-
How do I get the airplay icon to stay in my menu bar?
I have a macbook pro, and I mirrored my entire desktop to my apple TV for a moment. So I have all the correct software, but the icon won't stay in my menu bar. I opened a video and the connection from computer to TV was lost. How do I get it to stay
-
I lost my bookmarks from my previous Firefox version with the Yosemite upgrade
When I upgraded to Yosemite on my Mac, I lost all my previous Firefox bookmarks. I have tried to look through the help sections and can't fix this problem. All my bookmark toolbar tabs were incorrect as well, but I was able to replace them. I may hav
-
How do I get facebook phone numbers into my iphone contacts list?
I switched from a droid to an iPhone recently and with the droid all of my facebook contacts with phone numbers were synced into my phone and I can't figure out how to do that with my iPhone. I know that you can sync exsisting contacts with their fac
-
Macbinary file in home directory
Hello, I have noted lately that there is a mac binary file in my home directory, does anyone know what is this for? I did not notice this file a month and half ago. Everything else is ok with my mac but I am very curious about this file. I tried open
-
$1.32 left from my gift card...What can i do with it?
I was given a gift card for christmas and i only have $1.32 left on it but i have noticed singles are $1.69. What do i do with my left over credit??