Access Data for System Form in SAP B1
Hi,
I want to access Text data and Matrix data for Purchase order Form. Can u Plz provide solution / Code for this problem.
Thanks
Hi Makarand,
write these code inside ItemEvent,
oForm = SBO_Application.Forms.Item(FormUID)
oEditText = oForm.Items.Item("4").Specific 'Unique ID of Vendor Code
VendorCode = oEditText.Value
oMatrix = oForm.Items.Item("38").Specific 'Unique ID of Matrix
For i=1 To oMatrix.RowCount
oColumn = oMatrix.Columns.Item("1") 'Unique ID of ItemCode in matrix
oEditText = oColumn.Cells.Item(i).Specific
ItemCode = oEditText.String
Next
You will get item Unique ID from Debug information.
Hope this will help you
regards,
BBN
Similar Messages
-
How to register add-on of edited system form in sap b1 9.0?.
Hi all,
I have a problem in SAP b1 9.0.
Actually I added one field of BPCode to Employee master data, so I want to register an add-on of that system form in SAP b1 9.0.
When I create file of .ard as we watch it in video of
Bryan Gomez
Creating and Registering SAP Add-on - YouTube it will be created correctly, But the problem is when I register that the file of .ard it gives error (Cannot create a file when that file already exists). Again when I create a file of .ard of any other User form it gives the same error (Cannot create a file when that file already exists).
But when I create and register the add-on of Hello World in Sample folder of SDK it will be registered correctly.
How can I solve that problem.
Anyone can help me please.Hi pallavi p,
That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
So let me give you the way you can try.
1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
2. Right click on your project
3. Add new item
4. Sap Business One
5. System form (Employee master data) or user form
6. Add
And then if your form is opened
7. Go to add the reference of UI API Version 9.0
8. Check errors found in menu.vb (or in OutPut)
So if it's possible try to solve that problem.
Please anyone can help me. -
How to know last access date for the schema's
Dear all,
could u plz tell me How to know last access date for the schema’s
Regards,
Srinivasa rao.PSrinivas,
could u plz tell me How to know last access date for the schema’s
In Oracle, we don't access schemas but schema objects.And this informationis not kept anywhere persistantly.As Amit also mentioned,if you do need it,you have to enable Auditing.
Aman.... -
How to create add-on of a system form in sap b1 9.0?
Hi all,
I have a problem related to the creation of a system form add-on of sap b1 9.0.
I can develop some projects in visual basic, but about sap b1 add-on, I know how to package files of to install (.ard and .exe files) and I also know how to register .ard file in sap b1 9.0, So I tried to register all projects found in SDK sample folder that was correct.
I tried to do an example of project found in SDK Help Center.
But the problem I have to day related to the creation of system form add-on.
The steps I tried to do are:
1. I opened SAP B1 Studio for Microsoft Visual Studio
2. Right click my project and add the system form (Employee Master Data)
3 Connection string I used in Command line arguments 0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
4. I added one field (CFL of BPCode) to Employee Master Data. I did n't add any reference because when I add UI API Vission 9.0 to system form or user form of sap b1 it gives errors in Menu.vb. I do know why.
5. I converted in 32 bit and build my project
6. I re_opened new visual studio 2010 for creating new project with SAP B1 AddOnInstaller.NET Wizard
7. From here I did every thing according to the video of Bryan Gomez
Creating and Registering SAP Add-on - YouTube
8. I registered my .ard file
9. But when I start my add-on it gives error (Add-on connection timed out)
The questions I want to ask,
1. If you are creating the add-on of system form Is there any other thing needed to do more than the above I explained?.
2. Is it necessary to go in SDK code when you are using the system form like that?.
3. If it is necessary to add reference of UI API in project, how to handle error occurs when we add that the reference to the project which is using a system form?.
Please anyone who has an idea he/she can help me.Hi pallavi p,
That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
So let me give you the way you can try.
1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
2. Right click on your project
3. Add new item
4. Sap Business One
5. System form (Employee master data) or user form
6. Add
And then if your form is opened
7. Go to add the reference of UI API Version 9.0
8. Check errors found in menu.vb (or in OutPut)
So if it's possible try to solve that problem.
Please anyone can help me. -
How to configure output for adobe forms in sap,,if i want to pront an invo
Hi,
I used adobe forms in GTS.
BUt in normal SAP system,i want to use adobe form to print an invoice data.
I wantt o use the standard form and standard interface for that.
But how to do configuration for this?
normally for smartforms we do it in NACE transdaction?
But for this adobe forms what is the driver program,,where to configure this form and interface.
Thanks in advance,
sasiHello,
it is the same way how you will configure for smart forms.
Standard driver program is : RLB_INVOICE
Please go through this link, how to configure print forms for invoice.
http://****************/Tips/SmartForms/NACE/Configuration.htm
Edited by: rakhi966 on Sep 9, 2011 9:22 PM -
DBDataSources not up to date in system form
Hi guys,
I really need you help on a issue.
I'm trying to read all records in the matrix of the Sales Order (System Form)
Now i'm using the datasource (DBDataSource) of this form to get the values, because this is faster then getting the values from the matrix.
I run the following code on the before et_CLICK event on the Update Button. And i get this message:
Data Source - Bad Data Source Offset at SAPbouiCOM.DBDataSourceClass.GetValue(Objext Index, Int32 RecorNumber)
This issue seems to occure when i duplicate or add some lines and hit the Update Button. The amount of lines in the datasource is still the same as when i opened the Sales Order. But the number of records in the matrix is larger. So it seems that the datasource has not been updated when i added the lines.
Does anyone has a solution for this?
//Cache the document matrix
SalesOrderCached salesOrderCached = new SalesOrderCached();
ui.Matrix mtx = (ui.Matrix)form.Items.Item(SBO_FormTypes.Document.ItemMatrix.VALUE).Specific;
ui.DBDataSource dataSource = form.DataSources.DBDataSources.Item("ORDR");
ui.DBDataSource dataSourceLines = form.DataSources.DBDataSources.Item("RDR1");
salesOrderCached.DocNum = dataSource.GetValue("DocNum", 0);
salesOrderCached.CardCode = dataSource.GetValue("CardCode", 0);
for (int i = 1; i < mtx.RowCount; i++)
mtx.GetLineData(i);
SalesOrderLineCached salesOrderLine = new SalesOrderLineCached();
salesOrderLine.LineNum = i;
salesOrderLine.ItemCode = dataSourceLines.GetValue("ItemCode", i -1).Trim();
salesOrderLine.WarehouseCode = dataSourceLines.GetValue("WhsCode", i -1).Trim();
salesOrderLine.LineTotal = Convert.ToDouble(dataSourceLines.GetValue("LineTotal", i -1).Trim(), NumberFormatInfo.InvariantInfo);
salesOrderCached.SalesOrderLinesCached.Add(salesOrderLine);
return salesOrderCached;Unfortunately not.
the only thing I can think of trying is using the GetCellSpecific method of the matrix object. I have never used it but I see in the helpfile SAP say "This is the recommended way to get the contents of a cell."
Worth a try but highly unlikely to work would be to use matrix.FlushToDataSouce().... but I would bet it won't work unless it's a user defined item. A similar method would be "GetLineData()"
So I think it will be either GetCellSpecific to see if it improves performance or some sort of workaround
EDIT: Actually, maybe try SerializeAsXML. It will be extra development time but bound to be faster. -
Error when reading the access data for the Adapter Engine
We are getting the following error in XI. It started on Jan 22 and resolved on Jan 23 automatically. Nothing has been changed and we don't able to understand how problem started and how it resolved:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
<SAP:P1>af.xpd.dbcixpd</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>3: Unable to find URL for Adapter Engine af.xpd.dbcixpd</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.xpd.dbcixpd</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>
Pls suggest if anyone has gone thru same problem.
Regards
AmarI got the same problem while using RFC lookup.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
<SAP:P1>af.tx1.netweaver</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>3: Unable to find URL for Adapter Engine af.tx1.netweaver</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.tx1.netweaver</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Any idea ,when we get this error usually. -
Export data for the table of SAP using the JCO
Good Morning,
Sorry error of the agreement, and that I am using a translator.
I am needing of help, to solve a problem that I have to integrate the system in Java using the SAP JCO.
Well I need send (Export_Parameter) data into a table in SAP,but I do not know this process.
If someone went through that and can help, thank you in advance
Obs : Not found documents that help me
Att
Elton C.This is a forum for problems with the Java language and the default libraries that come with it. We can't help you with any third-party applications/libraries such as SAP and JCO.
Sorry. -
Form Settings getting cleared for system form
Hi All,
I have added the code for setting editable=false for the following items in Updatemode and Ok mode.Then in add mode,i made the columns to editable = true .First time it is working fine.
the next time, I got the error message as "item is not a user defined item" on ItemCodeCol.editable = true.Then i check the form settings, the Active field for the itemcode cleared.When i set to Active as checked and run my code,it is working fine.How to solve the issue and how to avoid the setting of the fields.
This is my code :
If oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
oSQItemCodeCol.Editable = True
oSQItemNameCol.Editable = True
oSQQtyCol.Editable = True
oSQWhsCodeCol.Editable = True
ElseIf oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Or oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE Then
oSQItemCodeCol.Editable = False
oSQItemNameCol.Editable = False
oSQQtyCol.Editable = False
oSQWhsCodeCol.Editable = False
End If
Thanx in advance
Regards
Mohana
Edited by: Mohana Annadurai on Feb 20, 2009 5:28 AMHi,
This is not UDF in system form.That is , the itemcode,itemname,qty,warehouse field in the content tab of the sales quotation form.when i change the field to editable and noneditable,
1)it is allowing to set the editable property to false and true for the first time.
2) After adding the record,i navigate the record to check ,at that time,as per my code,in update mode,it is not allowing to edit.
3)When i click add menu,and i chose customer, at that time it is not allowing to add a itemcode,becoz the itemcode field is disabled.
4)when i check in form settings, in Table format, Active gets unchecked for the above fields.
5)I want to avoid this changing of active in form settings.How to to this...
Regards
Mohana -
Auto-fill calender date and validate other fields depending upon selected date for infopath forms
I have a calender box in infopath form which i want to autoselect when user opens the form..Ex..i am opening form on 14th march the calender should show as 19th march and also i have to perform few validation and action such as if i am selecting date with
more than 5 days gap should open other field which is a dropdown..How can i perform this..Do you have Excel Services? if so, this article may be of use to you:
http://sergioblogs.blog.co.uk/2013/01/08/infopath-2010-and-excel-services-in-sharepoint-15407321/
You can configure an excel workbook to validate if a date is a working day and then use formulas to workout the working date for 5 days after the date you enter, then link your InfoPath form to connect to the excel workbook and return the result of your
calculation.
Regards
Sergio Giusti
http://sergioblogs.blog.co.uk/
Whenever you see a reply and if you think is helpful, click " Vote As Helpful". And whenever you see a reply being an answer to the question of the thread, click "
Mark As Answer". -
Access to EHS data from system outside of SAP
We are creating a Formulation tool in a SQL database with a Access front end which will need to use EHS Specification data and eventually push the Formulation data back into the SAP EHS Spec database.
I would like this new database to have Real-Time access to SAP data. We currently are using RFC connections with tools such as EASY-Expert and a external Rules based program Atrion as well, so I know it is possible to feed this data back and forth using XML files.
Any advice on how I should proceed and maybe some external tools for purchase that will help me do this.Hi Beverly,
it is possible to access EH&S data from outside SAP by using the standard SAP BAPIs (e.g. BAPI_BUS1077_GETDETAIL for reading EH&S data) which are RFC enabled. Another possibility would be to develop your own RFC enabled function modules in the SAP system and call them from outside.
From your access database you can use VBA to perform the RFC call.
Best regards,
Andreas -
Single Client Access Name for Weblogic Forms and Reports.
I have a 2 node clustered system:
Windows 2008 R2 64-bit
Weblogic 10.3.3 (on each node)
Weblogic Forms and Reports 11.1.1.3 (on each node)
Database 11gR2 RAC 11.2.0.1 (on each node)
The forms and reports are clustered and I can connect to each from each of the two servers and the cluster is working well.
The database uses Single Client Access Name (SCAN) to present the database as if it were one server called dbserver1.
I was wondering if there was a similar thing for Weblogic and what everyone else uses to present their application as a single name to the user.
I tried using Windows Network Load Balancing, but this stops the database scan listeners from working.
Thanks.Dear,
Did you find an answer to your question back in 2009?
We are facing the same installation architecture, but we do not find any concrete information regarding SCAN with Oracle Forms 11g
Geert -
EP5: Access Data Source (System Conf) properties
Hi ,
I am using EP5.0.In my portal , I have a tab called "System Configuration" and in that I have a sub tab called "DataSources" . I am putting in details such as URL , Username argument (say UName ) (not the username itself) and the password argument (say Pwd) (not the password - the argument like PWD ). these arguments are like -
used in the URL to check like UName = '..' and Pwd ='...' and these arguments may be different for differnet datasources... I want to get these details in the iview program ...
like
for datasource
'sdn'--- username argument = UName
password argument = Pwd
'sap'--- username argument = UserName
--- password argument = Pass
I want these details in the program ......
I should be able to pass the data source name and then it should give me these details ...so that i can use these arguments in my user mapping for other users...
what api should i use? what should i use....
please reply as soon as possbile...
avinash...Hi all ,
Can anyone help me out with the above mentioned problem please ? Its urgent....
Thank you,
Avi -
hi experts
I want to put DocDate and TaxDate into payments form how to do this.
i tried to add like this
no form load
Form frm = APL_Form.Polaczenie.pApp.Forms.GetFormByTypeAndCount(pVal.FormType,pVal.FormTypeCount);
(frm.Items.Item("10").SPecific as editText ).Value="15/04/08";
but it doesn`t work.
i also tried to add this data by DataSources.
this is in ORCT.DocDate
Regards
Edited by: Michal Wieczorek on Jul 16, 2008 10:46 AMMichal,
If pVal.FormType = "170" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.Before_Action = False Then
Try
oform = sbo_Application.Forms.GetFormByTypeAndCount(170, 1)
oform.Items.Item("10").Specific.value = "20080719"
oform.Items.Item("90").Specific.value = "20080719"
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
1) date has to be entered in yyyymmdd format.
2) exchange rate has to be updated for the date that you are passing. or else a window for the same will open.
HTH
Binita
Edited by: Binita Joshi on Jul 16, 2008 12:08 PM -
Allowing "Reader Users" to Save MULTIPLE Unique Sets of Forms Data for One Form
I own Acrobat Pro X. I use it to create many documents in my law practice. I need to deliver a contract form to a client that the client will use again and again and again... The client only owns Acrobat Reader. I need this to be like a "template" in Microsoft Word. The client needs to be able to fill-in the fillable fields on the document that I have created, then print and save it (e.g. as "Jones.pdf"), then fill it with new data and print and save it again (e.g. as "Smith.pdf"). This process may need to be repeated hundreds or thousands of times. Sometimes the client will need to reopen a document (data set) that was previously saved and printed and see it as it was last printed (so, to load "Jones.pdf" and see it as it was created). Sometimes the client will need to send a "filled" PDF to one of his customers, where the client's customer can print the document, but not change any of the fields (much less the body of the document, of course). So to sum up:
* Attorney creates contract with fillable fields in Acrobat Pro X and sends to client;
* Client uses PDF created by attorney to create, print and save an infinite number of unique 'data sets' for the document, any of which can be opened and printed at any time; and
* Client sends locked-down, un-changeable PDF to Client's customer for customer to print, but not change.
All of this needs to be able to happen without the Client ever buying Acrobat. Is this possible? I'm aware of File > Save As > Reader Extended PDF > Enable Additional Features, but I cannot figure out if this will work, since I don't use Reader on my pc.
Surely this scenario is faced by document creators often. However, I tried and failed to find a set of search terms which would reveal discussion threads that were relevant to this query.I apologize for being unclear. I'll try to clarify the facts.
1. I have written a custom subcontract agreement for one client. This is the only client that I will ever give this particularl document/subcontract. My client will *never* send the data or the document back to me. Once I turn over this document to my client, it is from my perspective, a one-time, one-way transaction.
2. My client
Will be the only person who will ever put data in the fields (using Acrobat Reader);
Will create hundreds or thousands of unique subcontracts using the document that I have created, but the only difference between each will be the data that my client has put in the fields;
Needs to be able save each unique set of data as a unique pdf (jones_1.pdf; smith_2.pdf; etc.);
Needs to be able to email the completed document to his customer in a way that his customer cannot modify the document, but can view it, print it, sign the paper printout and snail-mail it back.
3. My client's customer
Should be able to view and print, but be unable to change anything in the document;
Will not need to sign the document electronically (there will be no digital signatures)
Users of Microsoft Word are familiar with the concempt of templates. When you create a new document based on a template, the content and formatting can be changed in each new iteration made from the template, but the original template is not changed. I could give my client the subcontract as a Word template, but his staff could easily or accidentally change important language that I don't want them to be able to change. For the client's own protection, I want the client only to be able to change data in the fields that I've designated. This sort of scheme is impossible using a Word document or template. I hope it's possible with a PDF.
Maybe you are looking for
-
How do I get the t.v. shows/movies off of my itunes account onto my itouch?
I backed them up on my itunes account and had to update my software on my itouch. All of my music was loaded back onto the itouch but I can't get the movies or the t.v. shows to load back onto the itouch. I also lost all of my apps. Help!
-
How can i export a blurb lightroom book layout into indesign?
I've designed a book in lightroom in the BLURB layout. I want to export this layout into INdesign to finetune it. Any suggestions on how to do this?
-
Hi Experts, I am using BAPI_SALESDOCU_CREATEFROMDATA to create sale orders. As of now i m giving the following inputs to the BAPI WA_HEADER-DOC_TYPE = T_UPLOAD-AUART. WA_HEADERX-DOC_TYPE = 'X'. WA_HEADER-PMNTTRMS = T_UPLOAD-ZTERM. WA_HEAD
-
How do I copy and paste email addresses from one email to a new one?
I need to copy email addresses from one email to a new one. I can copy, but I can't paste them to the new email. Any help would be appreciated!
-
Building a hp8673C driver (first time driver builder, coaching appreciated)
I've got a HP8673C Synthesized Signal Generator, communicating with Labview over GPIB-USB-HS cord (Labview 8.6.1 on Windows XP). There is no existing driver, so I am setting out to build one. I have never built a driver before, so here it goes. What