Activate linkedbutton in a matrix through code?
Hi... Anyone know if it is possible to activate a linked button in a matrix through code?
Observations:
1 - In normal linked buttons i just use the click method... works fine
2 - In matrix the columns click method just focus the cell
3 - The colums extended object (Linked Button does not have a click event)
Anyone know how this can be done at all?
hi,
The Click event of Cell Item with click type 'SAPbouiCOM.BoCellClickType.ct_Linked' Activates Linked Press event.
oForm = oApplication.Forms.Item(FormUID)
oMatrix = oForm.Items.Item("7").Specific oMatrix.Columns.Item(<colid>).Cells.Item(<rowno>).Click(SAPbouiCOM.BoCellClickType.ct_Linked)
HTH
With Regards
B.Ravi Shankar
Similar Messages
-
How to fill values in the system matrix through code
hi
All
i want to fill the system matrix in the sales order in such a way that
Items will be filled in system matrix in the lost focust event of the Customer Code selection in the Sales order Document
how can i fill the system matrix through code
one thing that first column(ItemCode) of the system matrix column is a Icombbox type
Now i need to fill out item code using code
can any one suggest the answer
thanks in advancemadhu,
You need to catch the Validate event, when pVal.BeforeAction = False for form items 4 (CardCode) and 54 (CardName) of the Sales Order form.
Concerning the form's matrix, you can fill it but you cannot change it (you cannot change the ItemCode column into a ComboBox. Is is a EditText)
Fill a System matrix's Cell with the following code:
Dim oMatrix As SAPbouiCOM.Matrix = oForm.Items.Item("38").Specific
oMatrix.Columns.Item("ItemCode").Cells.Item(Row_Num).Specific.Value = "Item_Code"
Regards,
Vítor Vieira -
Activate project in Appropriation request through code
I have created a WBS element for a appropriation request using FM CN2W_WBSELEMENT_CREATE_STRU.
This project also needs to be activated. For this I have used the FM CJDW_PROJ_ACTIVATE_IM. But this is not activating the project.
Also when this is done manually, the click of activate button does not activate it. The proj is activated only during save of the Appropriation request.
Please let mw know your suggestions on how to actiavte the project using code.HI All,
in order to meet the need of my customer, we made a program ( with BAPI ) in order to automatically create the Appropriation request and the project definition and Wbs by downloading a file...first steps works fine until the creation the WBS
we receive message "MESSAGE E011 WITH PSPID_IMP RAISING PROJ_NOT_EXIST." but when I check the project definition via cj03 , I find my project !!! I checked also that the field INACT is empty in ia table PROJ , during the Debugging , I find in the function module "CJDW_PROJ_ACTIVATE_IM" that he keep in memories somewhere the value X in field INACT , thus the database is not updated....
FUNCTION CJDW_PROJ_ACTIVATE_IM.
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(PSPNR_IMP) LIKE PROJ-PSPNR OPTIONAL
*" VALUE(PSPID_IMP) LIKE PROJ-PSPID
*" EXCEPTIONS
*" PROJ_NOT_EXIST
*" NOT_POSSIBLE
DATA: PROJ_IMP LIKE PROJ,
LOC_TABIX LIKE SY-TABIX.
Tabelle PRJTAB einlesen
PERFORM READ_PRJTAB USING PSPNR_IMP
PSPID_IMP.
READ TABLE PRJTAB WITH KEY PSPNR = PSPNR_IMP.
LOC_TABIX = SY-TABIX.
IF NOT SY-SUBRC IS INITIAL.
MESSAGE E011 WITH PSPID_IMP RAISING PROJ_NOT_EXIST.
ENDIF.
MOVE-CORRESPONDING PRJTAB TO PROJ_IMP.
Minimalprüfung beim Aktivieren -> Org.daten konsistent ?
CALL FUNCTION 'CJCK_CHECK_BUKRS_GSBER_KOKRS'
EXPORTING
I_BUKRS = PROJ_IMP-VBUKR
I_GSBER = PROJ_IMP-VGSBR
I_KOKRS = PROJ_IMP-VKOKR
I_WAERS = PROJ_IMP-PWHIE
EXCEPTIONS
ERROR_MESSAGE = 99.
IF NOT SY-SUBRC IS INITIAL.
MESSAGE ID SY-MSGID TYPE 'E'
NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
RAISING NOT_POSSIBLE.
ENDIF.
*PROJ = PROJ_IMP.
CLEAR proj_imp-inACT. "QRK260599
CALL FUNCTION 'CJDW_PROJ_MODIFY'
EXPORTING
BEAKZ = CON_CHANGE
I_PROJ = PROJ_IMP
X_CHECK_INPUT = CON_NO
IMPORTING
E_PROJ = PROJ_IMP
EXCEPTIONS
BEAKZ = 1
PSPNR = 2.
IF NOT SY-SUBRC IS INITIAL.
MESSAGE ID SY-MSGID TYPE 'E'
NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
RAISING NOT_POSSIBLE.
ENDIF.
MOVE-CORRESPONDING PROJ_IMP TO PRJTAB.
CLEAR PRJTAB-INACT.
IF PRJTAB-VBKZ IS INITIAL.
PRJTAB-VBKZ = CON_CHANGE.
ENDIF.
MODIFY PRJTAB INDEX LOC_TABIX.
MOVE PRJTAB TO *PROJ.
PERFORM UPDATE_PROJ_IM ON COMMIT.
ENDFUNCTION.
I need help ,!!!
Thanks in advance
Said Ben Ajiba
Edited by: Said Ben Ajiba Abdelwarit on Jun 9, 2011 11:20 AM -
Purchase Order item info entering through code
In Purchase Order when i put item info through code ie i fill the matrix through code and click on ADD it gives an error saying
Invalid Total[Purchase Order-Document Total]
When total is all right
can anybody give me reason of this error and solution
Regards,
Pavana PunjaHi Verma,
It is all Correct i check that by manually putting the same itemcode and other details the calculation which is shown at this time the same is shown when i add through code
Regards,
Pavana Punja -
Hi,
I want to do the copy from functionality from Goods receipt PO to Purchase through code in my Addon.Can we assign a link between these two documents?How will we copy multiple goods receipt PO to one purchase Invoice.?I have no provision to add a copy from button or matrix.All should be done through code.
Regards
MANJUHello,
You can do this vis the DI API. Here is an example code that copies two Goods Receipt POs to one AP Invoice:
Dim rs, errCode, errMsg
Dim oAPInvoice As SAPbobsCOM.Documents
oAPInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
'We will create the AR Invoice based on two Goods Receipt POs. Both have CardCode = "V10000"
'Goods Receipt PO DocNum 92 has 3 lines
'Goods Receipt PO DocNum 94 has 1 line
oAPInvoice.CardCode = "V10000"
oAPInvoice.DocDueDate = Now
'DocNum 92 line 0
oAPInvoice.Lines.BaseEntry = 92
oAPInvoice.Lines.BaseLine = 0
oAPInvoice.Lines.BaseType = CInt(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
'DocNum 92 line 1
oAPInvoice.Lines.Add()
oAPInvoice.Lines.BaseEntry = 92
oAPInvoice.Lines.BaseLine = 1
oAPInvoice.Lines.BaseType = CInt(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
'DocNum 92 line 2
oAPInvoice.Lines.Add()
oAPInvoice.Lines.BaseEntry = 92
oAPInvoice.Lines.BaseLine = 2
oAPInvoice.Lines.BaseType = CInt(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
'DocNum 94 line 0
oAPInvoice.Lines.Add()
oAPInvoice.Lines.BaseEntry = 94
oAPInvoice.Lines.BaseLine = 0
oAPInvoice.Lines.BaseType = CInt(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
rs = oAPInvoice.Add
If rs <> 0 Then
oCompany.GetLastError(errCode, errMsg)
MsgBox("Error: " & errCode & " - " & errMsg)
Else
MsgBox("Done")
End If
Regards,
Paul Feeney
SAP Business One Forums Team -
Unable to apply custom theme with background Image through code
Hi,
I am creating custom SharePoint 2013 theme and applying it through code on site by referring MSDN Article : "http://msdn.microsoft.com/en-us/library/office/jj927175(v=office.15).aspx".
However when I try to add background image in custom theme and apply that theme to site then sites UI breaks.
Details: I have two features, in feature-1: I am Deploying *.spfont, *.spcolor and background image. Then I am adding a new entry in "composed looks" list for my custom theme. in feature 2- I am applying the custom theme to site by using following
code
SPTheme theme = SPTheme.Open("NewTheme", colorPaletteFile, fontSchemeFile, backgroundURI);theme.ApplyTo(Web, true);
Both feature activates without any errors, new entry also gets added in 'Composed Looks' list with all correct URLs, current item of composed looks list also change to custom theme but entire UI of site breaks If I remove background Image code from custom theme then everything works fine. Following code works fine
SPTheme theme = SPTheme.Open("NewTheme", colorPaletteFile, fontSchemeFile);
theme.ApplyTo(Web, true);
If I apply same background Image manually(not through code) then also everything works as expected.Any help will be really appreciated.Hi,
Thanks for your sharing, it will be helpful to those who stuck with the similar issue.
Best regards
Patrick Liang
TechNet Community Support -
Exception while accessing web service through code
I have a web service developed using AXIS deployed on Weblogic 8.1
Another web application cotaining GUI deployed on Weblogic 10 tries to access this web service through code.
This piece of code to invoke the web service is written in Action Class present inside web application. (Struts is used in GUI based web app)
When the code tries to invoke web service I am getting following error.
(401)Unauthorized xxx
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:1753)
at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.invokeAx(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:243)
at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.callUCS77_1ProcessOfficialChangeWebService(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:173)
at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.processAction(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:133)
at com.ebv.framework.web.action.EBVAction.execute(EBVAction.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
The web service URL is as follows:
http://10.140.96.5:7808/services/ucs77_1/ProcessOfficialChangeSave77_1-v0001.soap
However
When I try to hit the webservice URL directly on browser login window appears where same username/password I provide which are passed in code to invoke the web service. I get the success page indicating that web service is invoked on hitting enter.
The method used in UCS77_1ProcessOfficialChangeSaveDetailsAction.java to invoke web service is as follows:
public String invokeAx
String xmlMessage,
String webServiceURL,
String webServiceOperation,
String username,
String password)
String xmlResponse = null;
Call webServiceCall = null;
InputStream input = new ByteArrayInputStream(xmlMessage.getBytes());
Service service = new Service();
try
webServiceCall = (Call) service.createCall();
SOAPEnvelope env = new SOAPEnvelope(input);
SOAPEnvelope resEnv = null;
webServiceCall.setTargetEndpointAddress(new URL(webServiceURL));
webServiceCall.setOperationName(new QName(webServiceOperation));
webServiceCall.setUsername(username);
webServiceCall.setPassword(password);
try
resEnv = webServiceCall.invoke(env);
catch (AxisFault e)
e.printStackTrace();
Message responseMessage = webServiceCall.getResponseMessage();
SOAPEnvelope soapXml = (SOAPEnvelope) responseMessage.getSOAPEnvelope();
xmlResponse = new String(soapXml.toString().getBytes(AppConstants.UTF8),AppConstants.UTF8);
if (xmlResponse == null)
xmlResponse = resEnv.toString();
catch (Exception e1)
e1.printStackTrace();
return xmlResponse;
Both the weblogic server reside on two different AIX machines.
Can anybody tell what's the problem while invoking web service through code?time to look into the gateway logs as stated by the fault ..
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
looks like the cipher step might have failed -
Changing the Updatable property of a View Object Attribute through code
Hi,
Is there a way to set the "Updatable" property of an attribute in a view object through code ?
I checked the API docs for the AttributeDef class but there is no method to set this. there is a constant (UPDATEABLE_WHILE_NEW) which gives the current value.
My requirements in short - I have a ADF editable Table. Based on a flag whether it is SET or NOT, i need to make a particular column such that the inputTextBox on this column must appear for only the new rows inserted into the table. For all the existing rows users should not be allowed to edit values on this column.
I know this can be controlled with the UPDATABLE property on the attribute in the view object by setting the value as "WHILE NEW".
Now i need to control this through code at runtime.
Please let me know on ow to do this.
JDev version: 11.1.2.3
Thanks.the method you are looking for is available in the AttributeDefImpl class which you can get from the EntityImpl like
this.mDefinitionObject.getAttributeDefImpl("YOUR_ATTRIBUTE_NAME").setUpdateableFlag(AttributeDef.UPDATEABLE_WHILE_NEW);
Timo -
Creating Business Partner Through Code
Hi Everyone
I just wanted to know if any of you knew a way to create a business partner through code.
If there is a way or a sample that anyone can provide that would greatly
apreciated.
What would mandatory fields be? I know CardCode would be one mandatory field but what else would be essential?Hi Sebastiano,
If you only need to read the BP data from the 'source' company then you shouldn't need to log in to it. The RecordSet object should be capable of sending a SQL query that references the other database.
For example:
string sSQL = "select * from " + sSourceDatabase +"..OCRD where CardCode = '" + sMyBPCode +"'"
where sSourceDatabase is the Database ID for the source company and sMyBPCode is the BP you wish to copy.
Using this you should only need to log in to the company where the BP needs to be created. So the whole process should be something like this:
1) Connect to second company
2) Run the query to collect the BP data from the first company
3) Create an instance of the BP object and use the recordset object to assign the properties
4) Add the BP
Hope this makes sense
Owen
P.S. The other option is to use XML. See this post:
Copy items between databases -
On my G5 mac at work, I am getting - don't know what to call it - looks like extraneous matrix type code around prompt windows and in applications. Sometimes I will get large shapes of colors, yellows, magentas, cyans. Anyone else experience this?
I will attach a recent screen shot of a print window I opened and the extra code is above and below the window. There are matrix type blocks of code and then lines under the window. I get this all the time and it is getting worse.
Any help to get rid of it would be appreciated.
Thanks
TatteredSkullIt's likely the Video card, or possibly heat.
At the Apple Icon at top left>About this Mac.
Then click on More Info>Hardware and report this upto *but not including the Serial#*...
Hardware Overview:
Machine Name: Power Mac G5 Quad
Machine Model: PowerMac11,2
CPU Type: PowerPC G5 (1.1)
Number Of CPUs: 4
CPU Speed: 2.5 GHz
L2 Cache (per CPU): 1 MB
Memory: 10 GB
Bus Speed: 1.25 GHz
Boot ROM Version: 5.2.7f1
Get Temperature Monitor to see if it's heat related...
http://www.macupdate.com/info.php/id/12381/temperature-monitor
iStat Menus...
http://bjango.com/mac/istatmenus/
And/or iStat Pro...
http://www.islayer.com/apps/istatpro/
If you have any temps in the 70°C/160°F range, that's likely it. -
How to create a Xfdf doc. in Acrobat Pro 10 through code?
Hi All..!!!
I wanted to know whether there is a way to create an XPdf document in Acrobat Pro 10. I know that we can create a pdf document through code using the SDK.. I wanted to know whether the same can be done for XPdf documents..
Thanks!!Writing an XFDF is not that difficult; all you need is a tool allowing you to assemble text strings.
The preferred way to get a sample on how the XFDF should look like is to export one from the form concerned, and to repeat it using your code. In this case, the document knows best how the XFDF should look like.
Hope this can help.
Max Wyss. -
How to create a XPdf doc. in Acrobat Pro 10 through code?
Hi All..!!!
I wanted to know whether there is a way to create an XPdf document in Acrobat Pro 10. I know that we can create a pdf document through code using the SDK.. I wanted to know whether the same can be done for XPdf documents..
Thanks!!You're better off asking in the SDK forum:
http://forums.adobe.com/community/acrobat/acrobat_sdk -
Getting something went wrong while trying to open workbook through code?
hi,
i am getting something went wrong while trying to open workbook through code below is m code:
ES.ExcelService client = new ES.ExcelService();
client.Credentials = System.Net.CredentialCache.DefaultCredentials;
ES.Status[] status;
string sessionId = client.OpenWorkbook("http://servername/Documents/exceles.xlsx", "en-us", "en-us", out status);
i have also added modify permission to wpg_wss group but i am still getting the same error.
any help is appreciated.
thanks,
gauravHi Gaurav,
For your issue, you need to make sure the site where your workbook is stored in is a Trusted Location in Excel Service Application:
http://technet.microsoft.com/en-in/library/ff191194(v=office.14).aspx
For more information, you can have a look at the blog:
http://blogs.msdn.com/b/cumgranosalis/archive/2006/03/24/excelserviceshelloworld.aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Accessing Party EDI details through code in 2013
Hi,
We are looking at options of accessing the Party EDI details from orchestration in BTS 2013 R2. But looks like the property X12Receiver belonging to the partner object Microsoft.BizTalk.Edi.PartnerAgreementManager.Partner
has been deprecated. Although, using the property does not give a compilation error, it throws exception during runtime with the below error:
System.Data.SqlClient.SqlException (0x80131904): Could not find stored procedure 'edi_PartnerX12InterchangeSelect'.
Any pointers on how the accessing of party EDI details through code/within orchestration can be achieved? Appreciate any help on this regards. Thanks.Refer "Custom Party Resolution" sample available in the BizTalk SDK -
http://msdn.microsoft.com/en-in/library/aa559134.aspx and pay specific attention to the code in "PartyResolutionStream.cs". This has the logic for querying the BizTalk Party database tables.
You can expose you own library/helper with this code and leverage it in the orchestration.
That having said, if you use the EDI Pipelines, the party resolution is done for you and available on the received message in the orchestration as promoted property. Refer
http://msdn.microsoft.com/en-us/library/bb226500.aspx
Regards. -
Creating UDO through code with 1 Docment table & 4 Document Line Tables
Hi,
I need to create one Document table and four Document Line tables(child tables) and make them UDO through code. This process is working When I am creating UDO with one Document table and one Document Line table but if I add more than one Child table it is taking only one child.... Can anyone give me some solution or code example related to this problem this problem?
Regards,
Sudeshna.Hi,
Firstly Trinidad, unfortunately I could not open that link.
And secondly, the following is my code... Through this code I am trying to create an UDO with one document table and two document line tables.... here the UDO is being created but it is not taking two line table, its taking only one Document line table.... how can I create udo with more than one Document line tables?
Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.ChildTables.TableName = "childSplitNew1"
oUserObjectMD.ChildTables.TableName = "childSplitNew2"
oUserObjectMD.Code = "udoSplitNew"
oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD.Name = "udoSplitNew"
oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_Document
oUserObjectMD.TableName = "masterSplitNew"
lRetCode = oUserObjectMD.Add()
Regards,
Sudeshna.
Maybe you are looking for
-
when i am going from 1st detail list to basic list and choosing another sales order number i am geting the previous data instead of data according to new sales order number. i have tried in ECC5.0 and also in 4.7EE.Plz Help me. The code is as follows
-
[SOLVED] Auto-opening in Surf Only Works for Surf Spawned from Term
I didn't have this problem when I last used surf a few months ago, but I've now reinstalled it (0.4.1-1), and applied the patch, and now files (pdfs, etc) do not auto-open unless the instance of surf was spawned from a terminal (in which case, all go
-
Dynamic Task Modification Through VBA
I have a single task that is to be executed through the Serial interface repeatedly. The only difference in each execution would be the command string which would be modified based on input from the user for one single field. I only need one input va
-
BPM advanced variables management
Dear XI specialists, the task is the folowing: in BPM I have one Simple Type MultiLine variable A, containing, for example values: {a.txt b.txt c.txt} I aslo have Simple Type variable B. What is the way to set any value to B, depending on if the File
-
Dear Oracle Group, Our applications are basically Client/Server and/or n-tier typical windows applications. The data is stored in Oracle 9i database on Solaris. Now..., I would like to store photographs and pdf documents in the database. I have read