How to Debugg workflow for Article Creation using MM41 In IS Retails System
Existing system they are using business BUS1001006,Event Created for triggering workflow when you create article using transaction code MM41.
I could see one more business object named ZBUS100106 for triggering workflow when you Create an article.
I just want to debugg the workflow to add some additional validations to trigger workflow when i can create article using transaction code MM41.
Let me know how to debugg the workflow.
Thanks in Advance.
ZBUS100106 is nothing but Custom Business Object of BUS100106 creating by extending BUS100106.
You can debug Business Object code thru putting breakpoint in Code and executing the Business Object thru SWO1.
For your requirement you could possibly use SWB_COND Tcode so as to limit workflow lanches.
Refer [this|http://mailman.mit.edu/pipermail/sap-wug/2003-November/011005.html].
Regards
Shital
Similar Messages
-
Function module for Article creation (transaction MM41)
Hello,
I have been trying to create an article which is normally done using transaction MM41.
I am trying to use BAPI_MATERIAL_SAVEDATA to do this, but since article creation is different from regular material creation, there are fields that are not available, for example article category (MARA-ATTYP).
Another problem encountered with the BAPI is that the industry section is a required input. For MM41 it is not a required field.
Therefore, is there an available function module aside from the BAPI mentioned above that can perform article creation?
If the BAPI above is sufficient, how can I properly populate the necessary fields?
Additional information: requirement is developed in 4.6c.
provide the code I've been working on if asked.
Thanks in advance!Hello Harsh
To extend the article to another distribution channel you need to populate the salesdata/salesdatax structures of the BAPI. For example:
CLEAR wa_salesdata.
wa_salesdata-material = material.
wa_salesdata-sales_org = salesorg.
wa_salesdata-distr_chan = dstchan.
wa_salesdata-item_cat = itemcat.
wa_salesdata-matl_stats = '1'.
APPEND wa_salesdata TO i_salesdata.
CLEAR wa_salesdatax.
wa_salesdata-material = material.
wa_salesdata-sales_org = salesorg.
wa_salesdata-distr_chan = dstchan.
wa_salesdatax-item_cat = 'X'.
wa_salesdatax-matl_stats = 'X'.
APPEND wa_salesdatax TO i_salesdatax.
I believe the important data you need to have are material, sales org, and distribution channel.
Hope this helps. -
How to change workflow for expired qualification in HR Module
Hi,
My question how to change workflow for expired qualification in HR Module.We need to when date is expired tcode OOQA that system will check and that time workflow should be triggred.
I have serached sap help but i am not understand please below mention URL for SAP help
Link: [http://help.sap.com/saphelp_47x200/helpdata/en/ee/f4c9cafbab11d29ea40000e8215202/frameset.htm]
Please explain step by step how to trigrred workflow for expired qualification?
Please this problem is high and try to solve it.
Thx!
SachinHi,
Why do you want to trigger a wflow and what do you want to do with this trigger. Can you give more details of your exact requirements.
But, if you are looking for how to trigger, you can write a small ABAP pgm and schedule it as a job every night. THis job basically reads the table P1000-ENDDA for expiry date and if it reached today, then you can either trigger the wflow with SAP_WAPI_START_WORKFLOW or use SAP_WAPI_CREATE_EVENT to raise your custom event(for Business Obj. BUS7018, i think this is your BO and there are no std events right now, so you will ahve to add your custom event by extending BUS7018 to ZBUS7018).
Hope I am clear and this helps and if you need more details, reply.
venu -
BAPI for ARTICLE creation in IS-Retail
I am creating an Article using BAPI_MATERIAL_MAINTAINDATA_RT by passing below parameters for Basic view.
1.material type
2.merchandise category
3.material category
4.description
5.uom
6.transportation grp
7.loading grp.
8.valuation class
9.tax class
Also marked X in respective places in structures clientdatax,plantdatax,headdatax etc.
Anyhow still it showing errors like "key field of table MARA missing"
I am able to create article from MM41 using above 9 fields.
What fields shd be passed to this BAPI to create an ARTICLE?
OR ANY OTHER BAPI/RFC FM EXIST TO CREATE ARTICLE?
Please help me in this regard.
Regards,
KiranHi Bjorn,
I have to call BAPI for Article creation from Portal front end.
so I cant use BAPI_RETAILMATERIAL_CREATE as it goes to MM41 when we execute.
So I am using BAPI_MATERIAL_MAINTAINDATA_RT to create article.
I passed all mandatory data which is required to create a article with basic view.
Using MM41, I am able to create but with this BAPI iam unable to create article.
Could you please tell me what are the required parameters to be passed in addition to my fields which I specified below:
I passed
HEADDATA--material type,merch.category, material category,basic view marked x.
MATERIAL DESC--material description
CLIENT DATA--uom,transportation grp, tax class
CLIENTDATAX---marked X in above fields
PLANTDATA-loading grp
PLANTDATAX-marked x for above field
ADDL CLIENTDATA--valuation class
ADDLCLIENTDATAX--marked X for v class
Please help me in this regard.
Regards,
Kiran. -
How to write code for font family using swing?
how to write code for font family using swing?
i tried this code.but i got only font styles.but i need font family.observ this code
import java.awt.*;
import java.awt.event.*;
public class fontSelect extends java.awt.Dialog implements AdjustmentListener, ItemListener, TextListener, ActionListener {
public Font selectedFont; //to get result
public boolean isSelected = false;
public Color selectedBackground, selectedForeground;
public fontSelect(Frame parent, boolean modal) {
super(parent, modal);
String fntName[] = getToolkit().getFontList();
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] names = ge.getAvailableFontFamilyNames();
//{{INIT_CONTROLS
setLayout(null);
setVisible(false);
//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(insets().left + insets().right + 380,insets().top + insets().bottom + 282);
setBackground(java.awt.Color.lightGray);
fontList = new java.awt.Choice();
//fontList = new java.awt.List(0,false);
add(fontList);
fontList.setBounds(insets().left +25,insets().top + 50,137,144);
//label1 = new java.awt.Label("Example:-");
//label1.setBounds(insets().left + 220,insets().top + 36,84,30);
//add(label1);
exampleText = new java.awt.TextField();
//exampleText.setText("sample string ");
//exampleText.setBounds(insets().left + 40,insets().top + 50,84,21);
//add(exampleText);
label2 = new java.awt.Label("Font Family:-");
label2.setBounds(insets().left + 25,insets().top + 30,70,19);
add(label2);
isBold = new java.awt.Checkbox("Bold");
isBold.setBounds(insets().left + 320,insets().top + 90,60,18);
isBold.setFont(new Font("Times New Roman", Font.BOLD, 12));
add(isBold);
isItalic = new java.awt.Checkbox("Italic");
isItalic.setBounds(insets().left + 250,insets().top + 90,48,17);
isItalic.setFont(new Font("Times New Roman", Font.ITALIC, 12));
add(isItalic);
showFont = new java.awt.Label("samplestring ",Label.CENTER);
showFont.setBounds(insets().left + 240,insets().top +50,120,30);
showFont.setBackground(java.awt.Color.white);
add(showFont);
label11 = new java.awt.Label("Size:-");
label11.setBounds(insets().left + 290,insets().top + 120,70,19);
add(label11);
fontSize = new java.awt.Choice();
add(fontSize);
//label11 = new java.awt.Label("Example string");
fontSize.setBounds(insets().left + 290,insets().top + 140,60,23);
fontSize.setBackground(java.awt.Color.white);
btnSelect = new java.awt.Button();
btnSelect.setLabel("Select");
btnSelect.setBounds(insets().left + 280,insets().top + 190,87,24);
add(btnSelect);
btnCancel = new java.awt.Button();
btnCancel.setLabel("Cancel");
btnCancel.setBounds(insets().left + 280,insets().top + 230,91,24);
add(btnCancel);
label3 = new java.awt.Label("Background:-");
label3.setBounds(insets().left + 24,insets().top + 90,94,18);
add(label3);
rBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
rBackground.setBounds(insets().left + 24,insets().top +110 ,197,21);
add(rBackground);
gBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
gBackground.setBounds(insets().left + 24,insets().top + 135,197,21);
add(gBackground);
bBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
bBackground.setBounds(insets().left + 24,insets().top + 160,197,21);
add(bBackground);
label4 = new java.awt.Label("R");
label4.setBounds(insets().left + 12,insets().top + 110,12,18);
label4.setFont(new Font("Times New Roman", Font.BOLD, 12));
label4.setForeground(java.awt.Color.red);
add(label4);
label5 = new java.awt.Label("G");
label5.setBounds(insets().left + 12,insets().top + 135,12,18);
label5.setFont(new Font("Times New Roman", Font.BOLD, 12));
label5.setForeground(new Color(-16744448));
add(label5);
label6 = new java.awt.Label("B");
label6.setBounds(insets().left + 12,insets().top + 160,12,18);
label6.setFont(new Font("Times New Roman", Font.BOLD, 12));
label6.setForeground(java.awt.Color.blue);
add(label6);
rBackValue = new java.awt.Label("255");
rBackValue.setBounds(insets().left + 225,insets().top + 110,24,12);
rBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
rBackValue.setForeground(java.awt.Color.red);
add(rBackValue);
gBackValue = new java.awt.Label("255");
gBackValue.setBounds(insets().left + 225,insets().top + 135,24,12);
gBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
gBackValue.setForeground(new Color(-16744384));
add(gBackValue);
bBackValue = new java.awt.Label("255");
bBackValue.setBounds(insets().left + 225,insets().top + 160,24,12);
bBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
bBackValue.setForeground(java.awt.Color.blue);
add(bBackValue);
label7 = new java.awt.Label("Foreground:-");
label7.setBounds(insets().left + 20,insets().top + 185,94,18);
add(label7);
rForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
rForeground.setBounds(insets().left + 20,insets().top + 205,197,21);
add(rForeground);
gForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
gForeground.setBounds(insets().left + 20,insets().top + 230,197,21);
add(gForeground);
bForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
bForeground.setBounds(insets().left + 20,insets().top + 255,197,21);
add(bForeground);
label8 = new java.awt.Label("R");
label8.setBounds(insets().left + 10,insets().top + 205,12,18);
label8.setFont(new Font("Times New Roman", Font.BOLD, 12));
label8.setForeground(java.awt.Color.red);
add(label8);
label9 = new java.awt.Label("G");
label9.setBounds(insets().left + 10,insets().top + 230,12,18);
label9.setFont(new Font("Times New Roman", Font.BOLD, 12));
label9.setForeground(new Color(-16744448));
add(label9);
label10 = new java.awt.Label("B");
label10.setBounds(insets().left + 10,insets().top + 255,12,18);
label10.setFont(new Font("Times New Roman", Font.BOLD, 12));
label10.setForeground(java.awt.Color.blue);
add(label10);
rForeValue = new java.awt.Label("255");
rForeValue.setBounds(insets().left + 220,insets().top + 205,24,12);
rForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
rForeValue.setForeground(java.awt.Color.red);
add(rForeValue);
gForeValue = new java.awt.Label("255");
gForeValue.setBounds(insets().left + 220,insets().top + 230,24,12);
gForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
gForeValue.setForeground(new Color(-16744384));
add(gForeValue);
bForeValue = new java.awt.Label("255");
bForeValue.setBounds(insets().left + 220,insets().top + 255,24,12);
bForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
bForeValue.setForeground(java.awt.Color.blue);
add(bForeValue);
setTitle("Choosing font");
//{{REGISTER_LISTENERS
exampleText.addTextListener(this);
btnSelect.addActionListener(this);
btnCancel.addActionListener(this);
isBold.addItemListener(this);
fontList.addItemListener(this);
isItalic.addItemListener(this);
fontSize.addItemListener(this);
rBackground.addAdjustmentListener(this);
gBackground.addAdjustmentListener(this);
bBackground.addAdjustmentListener(this);
rForeground.addAdjustmentListener(this);
gForeground.addAdjustmentListener(this);
bForeground.addAdjustmentListener(this);
for (int i = 0; i < (int)fntName.length; i++)
fontList.addItem(fntName);
showFont.setFont(new Font(fntName[0], Font.PLAIN, 12));
// GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
//String[] names = ge.getAvailableFontFamilyNames();
for ( int i=0; i<names.length; i++ )
System.out.println( names[i] );
selectedBackground = showFont.getBackground();
selectedForeground = showFont.getForeground();
int i = 8;
do {
fontSize.addItem(""+i);
if (i<=30) i+=2;
else if (i<=70) i+=4;
else i+=8;
} while (i<150);
try {
fontSize.select(2);
} catch (IllegalArgumentException e) { }
//{{DECLARE_CONTROLS
//java.awt.List fontList;
java.awt.Label label11;
java.awt.Label label1;
java.awt.TextField exampleText;
java.awt.Label label2;
java.awt.Checkbox isBold;
java.awt.Checkbox isItalic;
java.awt.Label showFont;
java.awt.Choice fontSize;
java.awt.Choice fontList;
java.awt.Button btnSelect;
java.awt.Button btnCancel;
java.awt.Label label3;
java.awt.Scrollbar rBackground;
java.awt.Scrollbar gBackground;
java.awt.Scrollbar bBackground;
java.awt.Label label4;
java.awt.Label label5;
java.awt.Label label6;
java.awt.Label rBackValue;
java.awt.Label gBackValue;
java.awt.Label bBackValue;
java.awt.Label label7;
java.awt.Scrollbar rForeground;
java.awt.Scrollbar gForeground;
java.awt.Scrollbar bForeground;
java.awt.Label label8;
java.awt.Label label9;
java.awt.Label label10;
java.awt.Label rForeValue;
java.awt.Label gForeValue;
java.awt.Label bForeValue;
private Font constructFont() {
int l;
try {
l = Integer.parseInt(fontSize.getSelectedItem());
} catch (NumberFormatException e) {l = 12;}
selectedFont = new Font(fontList.getItem(fontList.getSelectedIndex()>=0?fontList.getSelectedIndex():0 ), (isBold.getState()?Font.BOLD:0)+(isItalic.getState()?Font.ITALIC:0), l);
selectedBackground = new Color(rBackground.getValue(), gBackground.getValue(), bBackground.getValue());
selectedForeground = new Color(rForeground.getValue(), gForeground.getValue(), bForeground.getValue());
return (selectedFont);
public void textValueChanged(java.awt.event.TextEvent event) {
Object object = event.getSource();
if (object == exampleText) showFont.setText(exampleText.getText());
public void actionPerformed(java.awt.event.ActionEvent event) {
Object object = event.getSource();
if (object == btnSelect) {
isSelected = true;
selectedFont = constructFont();
dispose();
} else if (object == btnCancel) {
selectedFont = null;
selectedBackground = null;
selectedForeground = null;
dispose();
public void itemStateChanged(java.awt.event.ItemEvent event) {
Object object = event.getSource();
if (object == isBold) showFont.setFont(constructFont());
else if (object == fontList) showFont.setFont(constructFont());
else if (object == isItalic) showFont.setFont(constructFont());
else if (object == fontSize) showFont.setFont(constructFont());
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
Object object = event.getSource();
constructFont();
showFont.setBackground(new Color(rBackground.getValue(), gBackground.getValue(), bBackground.getValue()));
showFont.setForeground(new Color(rForeground.getValue(), gForeground.getValue(), bForeground.getValue()));
if (object == rBackground) rBackValue.setText(""+rBackground.getValue());
else if (object == gBackground) gBackValue.setText(""+gBackground.getValue());
else if (object == bBackground) bBackValue.setText(""+bBackground.getValue());
else if (object == rForeground) rForeValue.setText(""+rForeground.getValue());
else if (object == gForeground) gForeValue.setText(""+gForeground.getValue());
else if (object == bForeground) bForeValue.setText(""+bForeground.getValue());Okay, that's better. It would have been nice if the code was formatted, and if there was about 20% of that code. (Your example could have been just one JLabel and nothing else, for example.)
Anyway, now that you've posted that code, what is your question about it? I see you are calling a "getAvailableFontFamilyNames" method; do you have a question about that? If so, what is the question? -
Workflow for Vendor Creation through a portal.
Hi All Workflow Experts,
I have a scenario here.In my project vendor is created through a portal.On submit button from portal the workflow is to be triggered.I have to design the workflow process.So can you please guide me through what all should i consider while i design this workflow?
This is my first workflow assignment so if you explain in detail it will be a great help.
I will just pen down what all scenarios i can think of:
1.Start workflow after vendor creation or modification.
2.Check whether approver are maintained in Org structure through standard FMu2019s.
3.Check If approvers are maintained ?
4.If yes,approve or reject the vendor.
5.If no,get the agents from the custom table who can take an action on this.
This is what i can think of.
Please guide me.
Thanks in Advance,
Saket.The corresponding BO related with the vendor creation or changing is LFA1 but this Business object doeanot have any events that are related to Create and Change , so try to create a ZLFA1 and add you own events or make use of delegation concept where you will create a delegation for LFA1.
For your first isssue
Start workflow after vendor creation or modification
EXIT_SAPMF02K_001 Vendors: User Exit for Checks prior to Saving is the user exit where in you can call the workflow when ever you change or create , because this user exit will trigger when ever you try to save the vendor. so i think you can make use of this user exit
For your second Issue
Check whether approver are maintained in Org structure through standard FMu2019s.
Make use of SWI_GET_USERS_OF_ORG_UNIT this fucntion mdoule to get the user of the ORG unit
or you can create a Rule(for determining the agents dynamically) to find the approvers. -
Hi
I would like to implement the Work Flow for User Creation, i.e.whenever the admin creates the user id, it should go to manager for approval and after that it pwd should be delivered to the respective user.
Can any one guide me on how to implement the same. Also I would like to know the use of customisation under Set Approval Indicator in IMG settings.
Suitable points will be awarded.
Regards,
PKMHi,
Pls refer the foll link:
http://help.sap.com/saphelp_srm40/helpdata/en/5a/af5f0b85d011d2b42d006094b92d37/content.htm
BR,
Disha.
Pls reward points for useful answers. -
Unable to set IP address for VM creation using createVmBasedOnTemplate
Hi,
I'm trying to create VM using LifeCycleService - createVmBasedOnTemplate api
The VM gets created and i m able to power on
The ethernet cards are inactive when i checked thorugh console and IP address is not set
So i'm unable to login to the VM using the IP address
Below is the code snippet for reference
// CreateLifeCycleServiceClient lifeCycleServiceClient
LifecycleService.TemplateVmConfig templateVMConfig = new VirtualMachineController.LifecycleService.TemplateVmConfig();
templateVMConfig.serverPoolName = "server pool name";
templateVMConfig.templateName = "mytemplate";
templateVMConfig.consolePassword = "password1";
templateVMConfig.guestLogin = "guestuser1";
templateVMConfig.guestLoginPassword = "password1";
templateVMConfig.vmName = "rhel5_sample";
templateVMConfig.haEnable = false;
LifecycleService.NICConfig nic = new VirtualMachineController.LifecycleService.NICConfig();
nic.name = "VIF0";
nic.bridge = "xenbr0";
nic.ipAddress = "10.10.10.227";
nic.subnetMask = "255.255.255.128";
nic.defaultGateway = "10.10.10.129";
nic.domainName = "localhost.localdomain";
nic.hostName = "rhel5_sample";
nic.macAddress = "00:16:3E:09:56:C2";
nic.dnsServer = "";
nic.frontEndName = "rhel5_sample";
nic.qosEnabled = true;
nic.rateLimit = 100;
LifecycleService.NetworkConfType oNetworkConfType = new LifecycleService.NetworkConfType();
oNetworkConfType.type = "Static";
nic.networkConfType = oNetworkConfType;
LifecycleService.NetworkType oNetworkType = new VirtualMachineController.LifecycleService.NetworkType();
oNetworkType.networkType = "ioemu";
nic.networkType = oNetworkType;
//nic.set
LifecycleService.NICConfig\[] vifs = new VirtualMachineController.LifecycleService.NICConfig[] { nic };
templateVMConfig.vif = vifs;
vm = lifeCycleServiceClient.createVmBasedOnTemplate(templateVMConfig);
Please help
Edited by: user12180212 on Nov 6, 2009 5:16 AM
Edited by: user12180212 on Nov 6, 2009 5:17 AM
Edited by: user12180212 on Nov 6, 2009 5:18 AMHi,
I checked out the log file but there were no exceptions
Am i missing something to set the IpAddress ?
Log - for vm creation
"2009-11-09 07:15:10" INFO=> new_async_task_ext: success. ->cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3') => 875AD9EC47EC43E599CC7482ACB861E9
"2009-11-09 07:15:10" INFO=> cp_vm: '/OVS/seed_pool/RHEL5_1C1G_149' -> '/OVS/running_pool/575_SampleVM3'
"2009-11-09 07:15:11" INFO=> directcall_in_asyncenv: success. utl_get_vm_size ('/OVS/seed_pool/RHEL5_1C1G_149', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
"2009-11-09 07:15:11" INFO=> directcall_in_asyncenv: success. utl_get_storage_repos ('875AD9EC47EC43E599CC7482ACB861E9',) => success:repos=/OVS;free_space=301273
"2009-11-09 07:15:11" INFO=> utl_cp_vm: vm('/OVS/seed_pool/RHEL5_1C1G_149') -> vm('/OVS/running_pool/575_SampleVM3') start...
"2009-11-09 07:19:25" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
"2009-11-09 07:19:25" INFO=> xen_clear_vif_mac: success. vm('/OVS/running_pool/575_SampleVM3')
"2009-11-09 07:19:25" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
"2009-11-09 07:19:25" INFO=> xen_remove_shared_disk: success. vm('/OVS/running_pool/575_SampleVM3').
"2009-11-09 07:19:25" INFO=> regenuln_uuid: /OVS/running_pool/575_SampleVM3/vm.cfg.
"2009-11-09 07:19:25" DEBUG=> regenuln_uuid: System.img.
"2009-11-09 07:19:26" DEBUG=> regenuln_uuid: mount -o loop System.img /tmp/tmpJ8Ag17ovs_mount_point failed.
"2009-11-09 07:19:26" INFO=> xen_update_uuid: success. vm('/OVS/running_pool/575_SampleVM3/vm.cfg') uuid=65104130-1e5e-18cf-163a-460b853e0c85
"2009-11-09 07:19:26" INFO=> utl_cp_vm: vm (/OVS/running_pool/575_SampleVM3) created!
"2009-11-09 07:19:26" INFO=> directcall_in_asyncenv: success. utl_cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
"2009-11-09 07:19:26" INFO=> cp_vm: '/OVS/seed_pool/RHEL5_1C1G_149' -> '/OVS/running_pool/575_SampleVM3' => success:size=10241
"2009-11-09 07:19:26" INFO=> directcall_in_asyncenv: success. cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
"2009-11-09 07:20:12" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
"2009-11-09 07:20:12" INFO=> xen_set_vifs: success. vm('/OVS/running_pool/575_SampleVM3') set vif_cfg=00:16:3E:09:56:C2,xenbr0,ioemu, mode=setall, scope=cfg
"2009-11-09 07:20:12" INFO=> set_vm_vifs: vm('/OVS/running_pool/575_SampleVM3') vif_cfg=00:16:3E:09:56:C2,xenbr0,ioemu scope=cfg => rs=success
"2009-11-09 07:20:12" INFO=> xen_set_vm_vnc_password: success. vm_path('/OVS/running_pool/575_SampleVM3')
"2009-11-09 07:20:12" INFO=> set_vm_vnc_password: success. vm_path('/OVS/running_pool/575_SampleVM3') => success
"2009-11-09 07:20:12" INFO=> set_vm_policy: vm('/OVS/running_pool/575_SampleVM3') policy=[] append=False=> success.
Log when VM is powered on
"2009-11-09 07:34:21" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
"2009-11-09 07:34:21" INFO=> xen_correct_cfg: success. vm('/OVS/running_pool/575_SampleVM3') => cfg_file('/OVS/running_pool/575_SampleVM3/vm.cfg')
"2009-11-09 07:34:24" INFO=> xen_start_vm: success. vm('/OVS/running_pool/575_SampleVM3')
"2009-11-09 07:34:24" INFO=> start_vm: vm('/OVS/running_pool/575_SampleVM3') on srv('10.237.214.149') => success
"2009-11-09 07:34:24" INFO=> start_vm: success. vm('/OVS/running_pool/575_SampleVM3') ip='' -
Need Sample Code for Vendor creation using JAVA API
Hi,
I have a scenario like Vendor creation using <b>Java API</b>.
1.I have Vendors (Main) Table.
2.I have <b>look up</b> tables like Account Group.
3.Also <b>Qualifier table</b>(Phone numbers) too.
Could you please give me the sample code which helps me to create Vendor records using Java API?
<b>I need Code samples which should cover all of the above scenario.</b>
<b>Marks will be given for the relevent answers.</b>
Best Regards
PK DevarajHi Devraj,
I hope the below code might solve all your problem:-
//Adding Qualified field
//Creating empty record in Qualifed table
//Adding No Qualifiers
Record qualified_record = RecordFactory.createEmptyRecord(new TableId(<TableId>));
try {
qualified_record.setFieldValue(new FieldId(<fieldId of NoQualifier), new StringValue(<StringValue>));//Adding No Qualifier
catch (IllegalArgumentException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
catch (MdmValueTypeException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
//Creating Record in Qualified table
CreateRecordCommand create_command = new CreateRecordCommand(connections);
create_command.setSession(sessionId);
create_command.setRecord(qualified_record);
try
create_command.execute();
catch(Exception e)
System.out.println(e.toString());
RecordId record_id = create_command.getRecord().getId();
//Adding the new record to Qualifed Lookup value and setting the Yes Qualifiers
QualifiedLookupValue lookup_value = new QualifiedLookupValue();
int link = lookup_value.createQualifiedLink(new QualifiedLinkValue(record_id));
//Adding Yes Qualifiers
lookup_value.setQualifierFieldValue(0 , new FieldId(<FieldID of Yes Qualifier>) , new StringValue(<StringValue>));
//Now adding LookUP values
//Fetch the RecordID of the value selected by user using the following function
public RecordId getRecordID(ConnectionPool connections , String sessionID , String value , String Fieldid , String tableid)
ResultDefinition rsd = new ResultDefinition(new TableId(tableid));
rsd.addSelectField(new FieldId(Fieldid));
StringValue [] val = new StringValue[1];
val[0] = new StringValue(value);
RetrieveRecordsByValueCommand val_command = new RetrieveRecordsByValueCommand(connections);
val_command.setSession(sessionID);
val_command.setResultDefinition(rsd);
val_command.setFieldId(new FieldId(Fieldid));
val_command.setFieldValues(val);
try
val_command.execute();
catch(Exception e)
RecordResultSet result_set = val_command.getRecords();
RecordId id = null;
if(result_set.getCount()>0)
for(int i = 0 ; i < result_set.getCount() ; i++)
id = result_set.getRecord(i).getId();
return id;
//Finally creating the record in Main table
com.sap.mdm.data.Record empty_record = RecordFactory.createEmptyRecord(new TableId("T1"));
try {
empty_record.setFieldValue(new FieldId(<FieldId of text field in Main table>),new StringValue(<StringValue>));
empty_record.setFieldValue(new FieldId(<FieldId of lookup field in Main table>), new LookupValue(<RecordID of the value retrieved using the above getRecordID function>));
empty_record.setFieldValue(new FieldId(<FieldId of Qualified field in Main table>), new QualifiedLookupValue(<lookup_value>));//QualifiedLookUp value Retrieved above
} catch (IllegalArgumentException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (MdmValueTypeException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
//Actually creating the record in Main table
CreateRecordCommand create_main_command = new CreateRecordCommand(connections);
create_main_command.setSession(sessionId);
create_main_command.setRecord(empty_record);
try
create_main_command.execute();
catch(Exception e)
System.out.println(e.toString());
Thanks
Namrata -
How to set value for Dropdown control using Querystring filter wepart
Hi,
I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
I am able to set value for textbox control using Query String Filer web part.
But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
How to load the values in dropdown control on form load and set a value using Query String filter webpart?
Thanks,
dhijitHi,
According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
Now it would be filter by the value you have set.
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
How to Create Placement for contingent worker using API in 11i?
We need to Create Placement for contingent workers using an API or program without using EBS forms.
On the People form, there is an Action - Create Placement that does just what we need. We can select an Ex-contingent worker, create placement, and save. This creates a new Period Of Placement (PDP) record for the contingent worker with a new primary assignment. The result is the contingent worker can have multiple periods of placement to reflect different jobs they have worked on, for example one contract from Jan 10 - April 4, another from May 1 - 20, and a third starting Aug 7 without an end (yet).
There are several APIs we find in the Integration Repository for 11i dealing with Contingent Workers, Assignments, and changing a Period of Placement, but we can't find any for creating a PDP.
Thank you if you can advise on how to do this.
SkipWe need to Create Placement for contingent workers using an API or program without using EBS forms.
On the People form, there is an Action - Create Placement that does just what we need. We can select an Ex-contingent worker, create placement, and save. This creates a new Period Of Placement (PDP) record for the contingent worker with a new primary assignment. The result is the contingent worker can have multiple periods of placement to reflect different jobs they have worked on, for example one contract from Jan 10 - April 4, another from May 1 - 20, and a third starting Aug 7 without an end (yet).
There are several APIs we find in the Integration Repository for 11i dealing with Contingent Workers, Assignments, and changing a Period of Placement, but we can't find any for creating a PDP.
Thank you if you can advise on how to do this.
Skip -
How to trigger workflow for already created purchase order ?
HELLO EXPERTS
let me clear my scenario first . i have 1 purchase order whose workflow is not triggered . means it is showing me message no workflow that have already worked for this object.i have created 1 more purchase order taking reference of this purchase order means both are same same message for this po also. it was happening because event linkage for the business object bus2012 is not activated but now it is enabled and i have created third purchase order with reference to above po means this third po is also same as above 2 no change other than po number but for this workdflow is getting triggered . now i want to trigger workflow for orignal first po but for my first po it is showing me same message that no workflow that have already worked for this object. what i have to do to trigger workflow for this po. i have performed this steps in test system. i have workflow numberHello !
You can trigger the workflow from SWUE.Enter bus2012 and created for object type and event respectively.
Click object key button where enter the purchase order number which have been already created.
But, why do you want to trigger the workflow again for already created purchase order ?
Regards,
S.Suresh -
How to customize DMS for EH&S using KPRO
Hi all,
I am triing to configure DMS for EH&S using KPRO. It seems there are some specificities link to EH&S for using DMS with Kpro.
Id like to find documentations and / or help to know the different steps to achieve for configure DMS for EH&S using KPRO.
Anybody can tell me the different steps to do and / or give me some documentations?
Thanks
/LudoHello Ludo,
As Documentum is a separate document storage system, it requires a connector (Standard Interface) to connect to SAP-DMS.
As I am not expert in this field so will not be able to help you but still I have some information like, Documentum will be used as the Main Application & all data & objects will be created or linked to SAP objects in the Background and the Content Services for SAP application integrates the Documentum content management system with the SAP R/3 system. It is an interface to the SAP R/3 system based on SAPu2019s standard DMS and ArchiveLink interfaces.
I think your question is more relevant for DMS forum. May be you can post your theread there, so that you can get right answer or may be on this forum someone else can help you who has worked on this scenario.
Regards,
Niraj -
How to increase memory for building project using ant in ECLIPSE
Hi All,
for all java projects and java applications in eclipse i am giving -Xms and -Xmx to increase heap memory.
But the same failed when i run ant. it says Out of Memory Error.eventhough i had 1GB ram in system.
How to increase memory for Building through ANT.
Thanks,
J.Kathireven if this is not a eclipse forum
In the package explorer view or navigator view right click on the build file select "Run as / Ant Build ...". On the JRE Tab you can enter the VM Aguments like -Xmx512m
Consult the java dokumentation how to set the memory of the jvm. -
How can I get ITunes to stop using 100% of my CPU system resources
When ITunes is up, it uses 100% of my CPU resources, making everything else operate at a snail's pace. I'm not even doing anything with ITunes, but it still seems to hog my machine, a desktop computer running WIndows XP. (When Itunes is closed CPU usage goes down to 4%-25% or thereabouts on average.)
What can I do to stop this? It is very frustrating that Apple would make a program that does this without reason.
DavidClose your iTunes,
Go to command Prompt -
(Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
(Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
In the "Command Prompt" screen, type in
netsh winsock reset
Hit "ENTER" key
Restart your computer.
If you do get a prompt after restart windows to remap LSP, just click NO.
Now launch your iTunes and see if CPU issue is resolved..
If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
http://support.apple.com/kb/TS4123?viewlocale=en_US
Maybe you are looking for
-
How to place the components dynamically in page facets.
I have created a page template Logo | Header | User Area | | | | Menu| Content Area 1 | Content Area 2 | | | | | | | | | | | | | | | | | | | | Content Area 3 | Content Area 4 | | | | | | | | | | Footer I am a new bee. i need to create a system that c
-
Hi forum, I have been trying to get the outlook plugin for the enterprise calendar server working. The calendar part itself works to some extent but the end users are not happy because each time they startup outlook the addressbook server complains.
-
2.1 Version Problems(fact)
I know now for a fact that 2.1 version has problems, I know you might says, yes we all know that, but let me tell you what happen to me. I was having problems with my first phone that I got on 07/11/08, after upgrading to 2.1 the phone in my house us
-
Banner does not appear in web preview
I have a banner image that I put at the top of my webpage it looks great in DW. However when I go to web preview in Firefox or IE it does not appear on the page in the browser, just the title bayshore. Can someone please let me know how to fix this.
-
Where is this: " / in the code?
http://www.simplyorganicskincare.com/ContactUs.html I transfered this site from Yahoo to Host Gator and fell into a pile of mush. None of the links were right, I think about 10,000 had to be changed. Anyway... Where is this in the code? " /> it's rig