Script:How to access Master Agreement collaborators
Hi
I am trying to catch 1st collaborator name from "master agreement collaborator list" using Java Beanshell. I am using the below mentioned code:
agreementBean = doc.getRootParentIBean();
contractHome=IBeanHomeLocator.lookup(session,ContractIBeanHomeIfc.sHOME_NAME); // get hold of current master agmt
CollaboratorCollection = agreementBean.getCollaborators(); // to get all collaborators assigned to a master agreement
collectionsize = CollaboratorCollection.size();
if(collectionsize >0){
Collectionbean= CollaboratorCollection.get(0) // Set pointer to 1st collaborator
DisplayName= Collectionbean.getDisplayName(); // Get name of 1st collaborator
I am facing error with DisplayName. is "getDIsplayName" the correct method to fetch name of the first collaborator? Where can I get list of methods for collaborator variable?
Regards
Mudit Saini
Hi Devesh
Thanks for your reply. You are right
. contractHome=IBeanHomeLocator.lookup(session,ContractIBeanHomeIfc.sHOME_NAME) was not working properly so I removed it and instead I used agreementBean = doc.getRootParentIBean() and the script is now working fine.
Now I am able to get the name of the first collaborator from master agreement. Next step for me is to compare this name with user account name and for the same I am using the below mentioned code:
import com.frictionless.api.usermgmt.masterdata.UserAccountIBeanIfc;
import com.frictionless.api.ibean.OrderedSubordinateCollectionIfc;
import com.frictionless.api.contracts.*;
import java.util.*;
import java.text.SimpleDateFormat;
import com.frictionless.api.contracts.ContractIBeanIfc;
import com.frictionless.api.ibean.OrderedSubordinateCollectionIfc;
agreementBean = doc.getRootParentIBean();
CollaboratorCollection = agreementBean.getCollaborators();
collectionsize = CollaboratorCollection.size();
if(collectionsize >0)
Collectionbean= CollaboratorCollection.get(0);
CollectionName= Collectionbean.getDisplayName();
UserHome=IBeanHomeLocator.lookup(session, com.frictionless.api.usermgmt.masterdata.UserAccountIBeanIfc.sHOME_NAME); // to get access to user account bean
UserBean=UserHome.find(CollectionName); // to find collaborator name in user account
UserName= UserBean.getDisplayName();
Now the problem here is it seems IBeanHomeLocator.lookup(session, com.frictionless.api.usermgmt.masterdata.UserAccountIBeanIfc.sHOME_NAME) doesn't work with user account bean.I am getting the following error:
Sourced file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.UserAccountIBeanIfc; import com. . . . '' : No static field or inner class: sHOME_NAME of interface com.frictionless.api.usermgmt.masterdata.UserAccountIBeanIfc
Is there any other method to get access to user account bean?
Regards
Mudit Saini
Edited by: Mudit_UCB on May 13, 2011 8:15 AM
Edited by: Mudit_UCB on May 13, 2011 8:16 AM
Edited by: Mudit_UCB on May 13, 2011 8:21 AM
Similar Messages
-
How to access Master Data in ERP2005 for SD
Hi All,
I installed ERP2005 in my system with MS SQL.
I do not know how to Access the Master Data in the system for SD.
Can anybody guide me.
Thank you,
Ravi.Hi Ravi,
Firstly, have you created any Master Data. If yes, you will be able to access the same.
Sales Order Management Transactions Codes:
<b>GENERAL ORDER MANAGEMENT</b>
Reviewing Document Flow VA03
Searching for a Customer Sales Order by Serial Number ZV11
Order Inquiry ZV33
<b>SALES ORDER PROCESSING</b>
Creating Sales Order VA01
Maintaining a Sales Order VA02
Displaying a Sales Order VA03
Releasing an Order or Delivery from Credit Hold: Non-Flooring VKM1
Releasing an Order or Delivery from Flooring Hold ZKM1
Manually Pre-authorizing Blocked Credit Card Orders Z.14
Display List of RMAs by Customer VA05
Confirm RMA Goods Receipt VL02
Generate list of open return orders for deletion VA05
Display Customer returns eligibility MCSI
Removing a Billing Block (Approving Credit/Debit Requests) V.23
<u><b>PRICING MASTER DATA</b></u>
Create Pricing VK11
Creating a Sales Deal VB21
Maintaining a Sales Deal VB22
Displaying a Sales Deal VB23
Maintaining Prices VK12
Displaying Prices VK13
<u><b>MATERIAL MASTER DATA</b></u>
Creating Material Substitution Master Data VB11
Maintaining/Deleting Material Substitution Master Data VB12
Displaying Material Substitution Master Data VB13
Creating a Bundled Master MM01
Creating a Sales BOM CS01
Maintaining a Sales BOM CS02
Displaying a Sales BOM CS03
<u><b>CUSTOMER MASTER DATA</b></u>
Creating Partner Records XD01
Maintaining Customer Master Data XD02
Displaying Customer Master Data XD03
Deactivating a Partner VD06
CUSTOMER CREDIT INFO
Creating/Maintaining New Customer Credit Information FD32
Displaying Customer Credit Information FD33
Blocking or Unblocking a Customer VD05
<b>SHIPPING</b>
Creating a Delivery VL01
Displaying a Delivery VL03
Deleting a Delivery VL02
Shipment Inquiry / Display VT03
Adjusting Transfer Order - Confirmation Quantity LT12
Collectively Confirm Transfer Order LT25
Batch Shipment Confirmation VL19
Creating Service Provider/Carrier Master Data XK01
Maintaining Serive Provider/Carrier Master Data XK02
Displaying Service Provider/Carrier Master Data XK03
Maintaining Product Master/Serial # Profile/Unit of Measure/Shipping Unit MM02
IDoc Inquiry WE02 / WE05
Workflow Instructions
<b>BILLING</b>
Invoicing a Customer Shipment VF01
Reprinting an Invoice VF31
Releasing a Sales Order for Billing V.23
Creating an Invoice by Using the Billing Due List VF04
Checking Open Billing Documents VF05
Create Credit/Debit Memo FB01
<b>A/R</b>
Controlling Total Debit/Credit bkgs F.03
Generate FI Account balance F.08
Generate Month-to-date Inv. register F.02
Process payments FBZ1
Rqst Individual Customer Corresp. FB12
Generate Customer Correspondence F.61
Enter Batch totals under Control ttl FB07
Display G/L Acct. totals FBL3
Reverse Posted Amounts FB08
Customer Refunds FBL6
Customer Refund to other than Payer FB05
Clearing Debit/Credit on Cust. acct. FB1D
Customer Balance in Local Currency F.23
G/L Account Balance Report F.08
Create Invoice - legal entity adjust FB01
Generate Cust. Acct. statements F.27
Generate Dunning Letters F150
Generate Billing Due List VF04
Generate Blocked Billing Doc list VFX3
Inq. via Credit Release Screen VKM1
List orders by partner VA05
Past Due invoices by customer FD11
Check number info by G/L account FBL3
Display customer Line items FBL5
TREASURY - CASH APPLICATION:
Post Customer payments FF68
Verify if A/R is updated FB03
Hope The above details helps you.
Regards,
Rajesh Banka -
How to change Master Agreements search channel in Workbench
Hi All,
When we search in Master Agreements search channel in workbench then it displays a report just below that search, and when we click on that then it displays Master Agreement Search Agreement Detail.
In this details sub-agreement payment terms are not coming because Class id is different, but when I look into standard report : Master Agreement Search Agreement Detail, there query is having class id 1003.
Is it possible to replace this standard query in report or if we can replace this report in Master Agreements search channel in workbench.
Please advise.
Regards,
Prabhat PandeyI see. I think SAP does not allow the standard FCI queries to be linked to Custom ones from the Setup --> Reports section.
In this case, you will first need to create a CUSTOM version of FCI-ConSearchMore and then link the custom version of FCI-ConSearchAgrDetail to this via the Setup--> Report section.
Then in the Setup--> Desktop Channel, you would need to go into the Master Agreement Search link and update the Parameter Definitions section with the new custom queries. This will ensure that in the Workbench page of the user, the desired results will be displayed.
Hope this helps,
Thanks,
Vikram Shukla -
After Effects CS5.5 jsx script: How to access Cue Point Time???
var myComp = app.project.activeItem;
if (myComp && myComp instanceof CompItem){
var selLayers = myComp.selectedLayers;
var myMarker = selLayers[0].property("Marker");
var curMarker = myMarker.keyValue(1);
var curTime = myMarker.keyTime(1);
curMarker.time = "00:00:00:01";
myMarker.setValueAtKey(1,curMarker);
Hello, as I want to extract the hh:mm:ss:ff time data from a video embedded with XMP metadata in After Effects in batch.
I wonder how I can get access to a cue point time and duration?
I know properties like
curMarker.comment
curMarker.cuePointName
curMarker.chapter
Yet, I failed in getting access to time, duration...
Could someone who knows it point me to a Adobe Javascript reference?
I couldn't find one online.
Many thanks!Yes, I want to read the timecodes and make use of them in the following tasks:
My actual job is to batch extract the timecode (hh:mm:ss:ff) and copy them and paste on a text file.
My intention is to:
1. batch copy the timecodes
2. batch paste on a text file
3. Compare the timecodes with cuepoint time value
Because as you may know from my last question here, I want to figure out
how to convert Cue Point XML time (in milliseconds) to hh:mm:ss:ff so that
I can generate an Encore Subtitle Text.
The workflow is like:
From a Cue Point XML (exported from Flash / Soundbooth):
<CuePoint>
<Time>1002</Time>
<Type>navigation</Type>
<Value>First</Value>
</CuePoint>
<CuePoint>
<Time>1002</Time>
<Type>navigation</Type>
<Value>Second</Value>
</CuePoint>
To an Encore Text:
1 hh:mm:ss:ff hh:mm:ss:ff First
2 hh:mm:ss:ff hh:mm:ss:ff Second
The problem I have got hung up is that I do not know the exact relationship between Cue Point XML Time and hh:mm:ss:ff in Encore Subtitle
Now I reach the stage that I know how to convert
From CuePoint Time to hh:mm:ss:sss (Milliseconds)
But not hh:mm:ss:ff (Frames)
Originally I wished Adobe auto does the Cuepoints to Encore subtitles job for me. Yet it seems not possible without scripting.
I hope I've been explaining it in a clear manner.
Thanks for your reply. -
How to access structure in VBScript both Structure and it's only member has the same name
Hello,
I VB Script how to access the structure's member if both the structure and the only member has the same name,
Example,
Structure name is User and it has only one member called "User" with the Datatype of String.
When I call using User.User = "Some Text", it is giving me error so I couldn't assign any value to it.
Kindly help me.
NallasivanI am using VB Script to Access SAP web Services, the sap web service has a method called user change, there are 3 mandatory parameters username, password and passwordX.
Here username is string so I can assign value without any problem, password is a type of Bapipwd. Bapipwd is a structure and it has a member called Bapipwd. To access that from VB script I have to use
Bapipwd.Bapipwd = "Password".
But when I try to put the statement Bapipwd.Bapipwd = "password" it shows an error message that "Bapipwd doesnt have member called Bapipwd".
The passwordX also a structure in SAP with the name of Bapipwdx and it has a member "Bapipwd"
If I user Bapipwdx.Bapipwd="X" it is working fine. Because both the structure and it's member name is different. But Bapipwd.Bapipwd is not working and it gives "Bapipwd doestn't have member Bapipwd"
I suspect this is due to both the structure and its member has the same name. Kindly help me to access the structure. -
How to make extended field mandatory in Master Agreement
Hello All,
I am new to SAP CLM, and I have requirement where one extended field in master agreement needs to be made as mandatory field.
I tried in extension definition but check box to make it required is disabled and I am unable to find other way to do it.
Can some one help me and Please let me know how make extended fields mandatory in CLM.
Regards,
PrabhatHi
This could be achieved using Page Customization.Go to Setup-> User Interface-> Page Customization, open master agreement object (create new with UI ID:contracts.contract.ui.buyside.default if doesn't exist ) and add a new customization for extended field with Property set to Required.
Regards
Mudit Saini -
When trying to access photo stream on Apple TV, I am getting the error message terms and conditions have changed, but when I go into iCloud on my Mac the new terms and conditions are not appearing - How can I manually agree to them ?
Welcome to the Apple Community.
The following article(s) may help you.
Photo Stream ToU's -
How to access a JAVA Script variable in JSP Code
How to access a JAVA Script variable in JSP Code. I have been unable todo this.
Plz Suggest a way.
Thanks
Soumyatry to do this code
String s=request.getParameter("javascriptvariablename"); -
How to get Payment Term description in a MAster Agreement
Hi,
I am able to get the PAYMENT TERMS for a Master Agreement
code:
payment_term_str= doc.getPayTermsRef() ;
term_id = payment_term_str.getDisplayName() ;
how I will get the Payment Terms Description ?
Thanks in advance.
Regards,
Swastikimport com.frictionless.api.common.types.TypeFactory;
paymentHome=IBeanHomeLocator.lookup(session,doc.getPayTermsRef());
paymentBean=paymentHome.find(doc.getPayTermsRef());
resourceID=paymentBean.getDocumentDescriptionId();
rRef=TypeFactory.createResourceReference(resourceID);
paymentDescription=rRef.getValue(session);
Hope this helps.
Regards,
Immanuel -
How to accessing item renderers in action script??
Hi
I am working on itemrenderes in Flex!
I have link button component as item renderer inside one of the data grid column, please find my piece as below!
Now how do we make that item render invisible once we click on it!
We need to make that link button invisible to the user!
Let me know how to access like this!
public function onClick():void {
// we use our custom component as the template for the popup window
var confirmWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, ConfirmationPopUp, true));
// you will only need to take care of the yes response since you don't have to do anything
// if the response was a no
confirmWindow.addEventListener("selectedYes", function():void {
//Alert.show("Can be Upgraded to an Alarm");
upGradeEventToAnAlarm();
confirmWindow.addEventListener("selectedNo", function():void {
public function upGradeEventToAnAlarm():void
eventRO = new RemoteObject();
eventRO.destination = "eventBrowser";
eventRO.upGradeEventToAlarm.addEventListener("result",getResultHandler);
eventRO.addEventListener("fault", getFaultHandler);
eventRO.upGradeEventToAlarm(eventsDataGrid.selectedItem.id);
private function getResultHandler(event:ResultEvent):void
//eventsDataGrid.dataProvider.removeItemAt(eventsDataGrid.selectedIndex)
if(event.result == true)
Here I need to access the link button which is clicked and need to make invisible
Alert.show("Successfully Upgraded to an alarm");
else
Alert.show("Cannot be Upgraded to an alarm");
//Fault Handler.
private function getFaultHandler(event:FaultEvent):void
Alert.show(event.fault.faultString, 'Error');
]]>
</mx:Script>
<mx:TabNavigator x="24" y="25" width="95%" height="90%"
styleName="MyTabNavigator" horizontalGap="-20" backgroundColor="#e6e4e5">
<mx:Canvas label="View" width="100%" height="100%" >
<mx:DataGrid id="eventsDataGrid" dataProvider="{myModel.eventsList}"
height="90%" width="98%" x="10" y="23" >
<mx:columns>
<!-- <mx:DataGridColumn id="iconFlagID" headerText="IconFlag"
dataField="iconFlag" visible="false"/>-->
<mx:DataGridColumn headerText="EventID" dataField="id" visible="false"/>
<mx:DataGridColumn headerText="Event Name" dataField="eventName"/>
<mx:DataGridColumn id="catFieldId" headerText="Category"
dataField="category"/>
<mx:DataGridColumn headerText="AlarmName" dataField="alarmName"/>
<mx:DataGridColumn headerText="Severity" dataField="severity"/>
<mx:DataGridColumn headerText="Source" dataField="source"/>
<mx:DataGridColumn headerText="Updated Time" dataField="updateTime"/>
<mx:DataGridColumn headerText="Description" dataField="description"/>
<mx:DataGridColumn id="upgradeLinkButtonId"
headerText="Upgrade To Alarm" dataField="iconFlag">
<mx:itemRenderer>
<mx:Component>
<mx:Box height="100%" width="100%">
<mx:LinkButton id="eventsLinkButtonID" textDecoration="underline"
icon="@Embed(source='assets/eventsBrowser/images[97]1.JPG')"
click="outerDocument.onClick();" visible="{!data.iconFlag}"
textAlign="center" includeInLayout="true">
</mx:LinkButton>
</mx:Box>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
Thanks in advance
Aruna.S.N.Hi Prashant
Thanks for your reply!
But where my viewStack need to be declared??
Is it inside dataGridColumn if so its giving error as comonent declaration is not allowed here!
Tell me how to go about!
Thanks in advance
Aruna.S.N. -
Script for setting Inco-terms in Master Agreement Setup
Hi All,
We have a requirement to create a follow-on child Master Agreement from a Parent MA. So we are writting a toolbar script to craete this follow-on Master Agreement. The problem we are facing is , we are not able to populate inco-terms (delivery terms) from the setup of Parent to Child Master Agreement.
Although Master Agreement Setup has APIs but it seems there is no method which can allow us to get and set the values of inco-term in the collection (DEL_TERM_COLLN ) which is present in the setup of Master Agreement.
Can you please throw some light on this issue, if it would be possible to set incoterms values in Master Agreement Setup.
Thanks in Advance!
Regards,Hello,
If the IAPI doesnu2019t have the getter and setter, I would suggest raising a OSS message with SAP.
Regards,
Vikram -
How to get Organizational Unit of a Master Agreement?
HI,
I am trying to retrieve value of Organization Unit of a Master Agreement but I am getting some code: name.
ownerObj=doc.getDocumentOwnerUserReference();
ownerHome=IBeanHomeLocator.lookup(session,ownerObj);
ownerBean=ownerHome.find(ownerObj);
throw doc.createApplicationException("VENDOR_VISIBLE", "Supplier name is "+
ownerBean.getOrganization());
Please suggest.
Thanks,
SaloniHi Solani,
You were getting the error beacuse we don't have any field like org unit in the Contract Document and the method you used is not there in the API's.If you want to access the Master Agreement Org unit in Contract document then you have to get the MA bean and then you can fetch Org unit in your contract document.
Code as follows:-
masterBean = doc.getParentIBean();// to get the MA bean
orgunit = masterBean.getOrganizationalUnitRef(); //this wil give the orunit of the MA
businessUnitHome=IBeanHomeLocator.lookup(session,orgunit);
businessUnitBean=businessUnitHome.find(orgunit);
Hope this will work for you.
Thanks,
Ankur Goyal
Edited by: ankur_goyal03 on Oct 15, 2011 8:23 AM -
Master Agreement Validate Script
Dear Team,
Do we have any method that can be used in Master Agreement Validate Script to capture the action, once Delete document button is hit in Master Agreement.
Thanks,
RajeshHello Rajesh,
We had a similar request in the past and my investigations revealed that there is only a limited use of this:
1. Yes, you can capture the 'delete' action in MA using: doc.getFieldMetadata("DELETED_BY").get(doc)
2. The 'problem': capture action takes place in ESO core, meaning that:
2.1 - Not possible to apply further validations and raise an error message (error msg is bypassed and a generic one displayed)
2.2 - Possible to use only for sending notifications, updating other documents, etc (any action that will not throw an exception ... PS: use try-catch)
Regards,
Bogdan Toma -
How to access system variables in Script Component in data flow task in SSIS
Hi,
I am new to SSIS. Can someone tell me how to access system variable in Script Component in SSIS using C# code.
ThanksYou can use the System.Environment.GetEnvironmentVariable(...) to read the variables. An example is here:
http://msdn.microsoft.com/en-us/library/y6k3c7b0.aspx
Vikash Kumar Singh || www.singhvikash.in -
How to change the standard query "Create a Master Agreement" by a custom one
Hello Sourcing CLM experts,
I would need to replace the standard query displayed when the user tries to create a Master Agreement by a custom query to filter the MA types according to some criteria:
According to this post: Re: Create security profile for a document template in SAP Sourcing, I've tried to achieve it by doing the following steps:
Create a new query as a copy of exsiting query FCI-ContractTypes
Modify query group FCI-ContractTypesBP to include my custom query instead of the standard one to only list the MAType "Standard Master Agreement"
Following you can see the change done into the query group FCI-ContractTypesBP:
However, standard query has not been replaced and same set of MA Types are listed.
Therefore, I would like to ask you:
Is it possible to do this kind of modifications? If so, which query group need to be modified?
If it is not possible, is there any other way to achieve that requirement?
Thanks in advance for your time and support!
Best regards,
IsaacHello again experts,
If this query cannot be modified, is there any option to disable button below? Or at lease, to disable the query group to avoid the listing of MA Types when it is pressed?
The reason is because we are going to set up the system in the way that only it will be possible to create Master Agreements from Template. However, if user keep on using that button he will be able to create MA from document types.
Any ideas?
Thanks again and best regards,
Isaac
Maybe you are looking for
-
Delete SO after deleing PO line item in Individual Purchase order
"Individual Purchase order" if i create SO with individual PO then PR is created automatically and i convert this PR to PO if i want to delete So line item i can't because it's linked to PO. I deleted this PO line item and i tried again to delete SO
-
Image size difference making PDF's in Bridge
Making PDF's in Bridge on a Mac. The image size I am using is 199 x 300 pixels (5.3 x 8 cm) and when I add a horizontal image to the output preview box, the images retain that size, however, when I add the vertical images to the preview box, althoug
-
How to set the default focus to a particular jtextfield
hi, i'm trying to set the focus to the specified Jtextfield by default. i tried with reqestFocus() method,grabFocus() method,getCursor() method but all in vain. can anyone suggest me a solution please. very urgent request please thanks in advance reg
-
RFC call during mapping?!
Hi @ all, I have a question I like to call a RFC function during mapping. Is this possible and if - how to do that :-)?? THX Matt
-
I have single App (year subscription) Premiere pro. Audio Import Question
Can I not import my own MP3's to put over my videos with this subscription? I appreciate any assistance that you may be able to provide me on this.