Hi all visible false udf in marketing document
hi all,
i want to visible false udf in the marketing document.but field not show in the forms object.
how is possible.
thanks to replr but i haven't got udf in the active form event.
If pVal.FormType = "142" Then 'Purchase Order Form
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And BubbleEvent = True And FLAG = False Then
oFormAPOrder = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
'Form = SBO_Application.Forms.ActiveForm
Dim oItem As SAPbouiCOM.Item
oItem = oForm.Items.Item("U_UIN")
oItem.Visible = False
end if
end if
i read in forum that u have to catch form with -142 then u get the udf of the form.
but i tried my problem not solved.
Regards
Rajkumar
Similar Messages
-
How to update UDF from marketing documents to Journal Entry UDF
Hi Experts,
I have a UDF in the marketing documents and I want to save the value to Journal Entry UDF.
Regards,
JummieHello Jummie,
If I understand correctly, the scenario is that copy the value of UDF from marketing document to the UDF its target JE from when the marketing document is created.
if so, just listen to FormDataAdd Event for the marketing document, copy the value of udf when document is created.
Here is the sample code.
Private Sub FormDataEventHandler( _
ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, _
ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
'You may add the target documents, 133 - A/R invoice.
'Before action = true, start the transation
If BusinessObjectInfo.FormTypeEx = "133" _
And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
And BusinessObjectInfo.BeforeAction = True Then
oCompany.StartTransaction()
'BubbleEvent = False
End If
'Before Action = false,
'Update product item tree
'Succeed, commit, otherwise rollback
If BusinessObjectInfo.FormTypeEx = "133" _
And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD) Then
If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess Then
Dim objectKey As String = String.Empty
oCompany.GetNewObjectCode(objectKey)
MsgBox(BusinessObjectInfo.Type)
Dim oInvoice As SAPbobsCOM.Documents = Nothing
oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
If oInvoice.GetByKey(CInt(objectKey)) Then
'Retrieve the UDF value in documents
Dim udfValueInDoc As String = oInvoice.UserFields.Fields.Item("***").Value
Dim oJE As SAPbobsCOM.JournalEntries = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
'Retrieve the JE for the document
oJE.GetByKey(CInt(oInvoice.JournalMemo))
Dim succeeded = True
'add you code to copy the UDF from document into JE
If succeeded Then
'update the production tree succesfully,
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
Else
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
End If
End If
End If
End If
End Sub
Regards, Yatsea -
Limiting Authorization of one of many UDF in marketing documents
Hi
I have created a Additional Authorization Creator for limiting the user from changing the values of UDF Field and its working fine, but the issue is i need to block only one UDF which i have created.
For Eg.
There are some 5 UDF (Header Level UDF) in a marketing document, namely
UDF 1 - Transport Name
UDF 2 - Transport Type
UDF 3 - Vehicle Number
UDF 4 - Driver Number
UDF 5 - Driver Name
I need to block only the UDF 5 from changing and the other UDF's can be changed.
The Additional Authorization Creator which i created block's me from changing all the five UDF Values instead of only that UDF 5 .
What could be reason? Should i need to give any Form Number like what i give 63771 which is for Form Settings?Hi
you can open the document , open the user defined field
go to tools---customization tools ---settings
you will see the list of UDF you can just select which UDF you want to update
you can mark 4 UDF as active and the 5-th UDF as not active but visible
shachar -
UDF In Marketing Document At Title Level - Display/Activate
Can you display an UDF in a Marketing Document and if so how do you make it visible and active? I see how to do this for the rows but not the title.
Go to menu - View - User Field. Or simply CtrlShiftU.
It will be visible and active by default unless you manually uncheck the boxes under setting.
Thanks,
Gordon -
Using UDF in Marketing documents
Dear All,
I made two UDF in Marketing docs rows and the same rows in Accounting - Journal transaction rows
The goal is: Every time when the user creates a marketing docs, I'd like to insert the corresponding data to accounting. What should I do for this? Could this be automatically somehow? Is it a simple way to capture all of the events which modifies the journal entries?well,
i would do it so:
use et_VALIDATE and/or et_LOST_FOCUS in the matrix and make one procedure for all documents.
to be sure the code only works for your documents filter it like
if (pval.FormType = 139 or pval.Formtype = 133 or ...) then
anyway, it will be very tricky, because you will get troubles when more documents are opened
regards
David -
Hi Experts,
The UDFs and FMS which are working fine in A/R INV, not working in Sales ORder (Whenever trying to attach FMS, it shows internal error occurred)Hi,
Most FMS if structured correctly should work across all marketing documents as the table structures are the same.
The FMS's will not work however, if you are including table names in the queries, e.g. $\[ORDR.CardCode\] instead of $\[$-4.CardCode\] or $\[RDR1.ItemCode.0\] instead of $\[$38.1.0\]
If you are unsure how to replace the table names with the form references, simply change the table names in your query, save it with a different name and apply that query to the different screen.
There are some instances where using the table name is necessary, for example if you need to pick up header level UDFs $\[ORDR.U_UDF\].
If you are a SAP partner or customer, there is a useful e-learning session in the education section that will help you.
Post your query here if you have further problems.
Regards,
Adrian -
Hi,
When I add an UDF in the Marketting Documents -> Row/Title it appears in all the marketting related documents.
How can I add it only for say AR Invoice.
I tried defining Category for the user defined fields. But then I will have to do it for all the documents one by one seperately as this category definitions are not available when I go to the next document type.
How shall I handle this ?
Thanx in advance.
With Regards,
Ram.Hi Ram,
The UDF is correctly designed to apply to apply to all marketing documents in the event that say you start using the field in a sales quotation the informations will automatically carry forward to the sales orders, an automatically created purchase order and A/R Invoice etc.
For your issue you simply need to adjust the form settings in all documents where you will not be using the field.
It's a little work but just the way it is!
Jake -
Image UDF on Marketing Documents for Signature
Hi,
I'm using SAP B1 2007A (PL48) with B1DE 1.4
SCENARIO:
For certain Marketing Document Forms (AR Invoice, Sales Order etc) , I need to capture a physical signature via an ePad and save the resulting jpeg with the Marketing Document.
I've created a UDF on the Marketing Documents Title of type Image.
I've added a button to the form (for example AR Invoice) which lets the user capture a signature and saves it to a file.
QUESTION:
How can I programatically load the saved jpg file to the Image UDF?
Please advise.Hi Ben,
Unfortunately, because you are doing this on a system form it isn't easy. The PictureBox control is what you need to set the picture but I gave it a quick test and although I can create an instance of the PictureBox control and set it to an image UDF field, any value I set to the Picture property is not saved to the UDF.
An alternative approach:
1) Create a separate UDT. In this table you'll need columns for DocType and DocEntry (so you can link a record back to a marketing document) and an Image UDF.
2) Create a simple form that just has a PictureBox control on it. Bind the control to the image UDF on your table.
3) Add a button (in the form load event) to each of the marketing documents that need a signature.
4) Trap the event of the user clicking on the button in the marketing document form and open your new form. Use conditions in the DBDataSource to show the correct signature image.
To import the scanned image you'll need to do the following:
1) Copy the image file to the Pictures folder (as set in the General Settings path tab).
2) Add an entry to the UDT for the correct document type and entry. For the image UDF you should set just the image file name and not the full path.
Hope that all makes sense!
Kind Regards,
Owen -
Batch Nos and UDFs in Marketing Documents.
Dear Experts,
I am adding some documents like Purchase Invoice, Sales INv..etc, in SAP B1 using DI, Now the problem is I am adding some Batch information like Batch Nos, Batch Quantity etc. Now in the same table OBTN, I want to fill up some values in the UDF. How do i do this as oPurchaseInvoice.Lines.BatchNumbers.UserFields.Fields.Item("U_lsp").Value is not possible.
Thanks in advance,
Vasu Natari.Vasu,
Unfortunatelly the UserFields collection of BacthNumbers is not implemented in DI API.
You may try:
1. Create a Purchase invoice over SAP B1 GU using bacthes.
2. Enter Defining bacthes screen and fill one the UDFs
3. Issue the Purchase invoice
4. save the last issued Purchase Invoice as xml via DI API,using GetAsXml method
5. Analyze the XML File, and check how the UFD-s are handled in xml
You will see the following in the bacthes area
if you prepare your Puchase Invoice as XML File, and load it from xml, you can manage the User Defined Fields in Batches.
Regards
János -
While creating the UDF in the Marketing Document ERRor
Dear to ALL
Please give me some solution to the my problem
My problem is
While i am creating the UDF in the marketing document I am getting the error message 131-183 could not able to create the data base.
Any one can help me out releated to this problem
Please .....................................................
With regards to all ........................
Gopi J N
[email protected]
[email protected]Hi JN,
There is no limit in number of UDF but in record length. This a SQL
Server 2000 limitation which establish 8060 bytes as maximum for a
record. This limitation does not exist in MSSQL 2005.
Therefore, in order to be able to add more UDFs you should reduce the
size of the existing UDFs or upgrade the system to MSSQL 2005.
Please refer to the SAP note 816387
The solution to this problem is to decrease the size of the
User Defined Fields. Either by decreasing the length or changing
the definition of "Alpahnumeric" fields to Text, or the last resort
is to remove the fields.
All these actions have to be done via the SAP Business One application.
The change of field type alphanumeric to Text might influence the
performance. -
Marketing Document Header Level UDF - Table Holding the Categories
Hi All,
I need the name of the table where categories of udf at header level of marketing document is stored.
I cheked the table CPRF but it does not show the category code in which the udf will be displayed in the form,
please help,
Thanx in advance,,,,Hi
If you need category codes and descriptions, they are stored in the CUDC.
Thanks,
Gordon -
Print BP Address udf's on Marketing Documents
We have created two udf's with the Business Partner Bill and Ship To Address's (crd1).
We need to print these on marketing documents with the rest of the address. The udf's don't carry over from the BP to
the marketing document when it is created and I can't seem to get to them through the tables in pld. I have the OCRD table available in pld, but not the CRD1.
Does anyone have any thoughts? Can this be done?
Thank Youhi,
Create database field,Press Alt Key + mouse,Select Table name CRD1 -Business Partners - Addresses,
Select column type - user defined field,Align field to top with address.
Jeyakanthan -
Setting values in a disabled UDF in Row Details in Marketing Documents
Is there any way for us to be able to disable a UDF in the row details of a marketing document but the disabled UDF should also accept value or updates using SDK? We created a UDF that stores important detail and we don't want the user to edit the value. The current form settings is not possible.
Hoping for your immediate response.
Thanks
Edited by: Cecille Rabara on Jul 6, 2009 11:04 AMHi
you can get form type and item from system information. after getting this information you have to access the column for this particular item(Matrix). just set it to disable and if you have data in your database then it will display by this column at the time of navigation.
I think this will helps u -
Extra Discount in Marketing Documents - Formatted Search
Hello All,
I am trying to add a UDF for "Extra Discount" in the marketing documents. I have tried to attach a formatted search on the document total to calculate the final value after this extra discount has been specified. However, the formatted search doesnt work and I get an "Internal Error".
The scenario mentioned underneath will explain the requirement:
<b>Default Option in SAP:</b>
Customer C0001
Item | Price | Discount | Tax | Total
I0001 | 100 | 10% | VAT@4 | 90
Total 90
Discount 5% 4.5
Tax Amount 3.42
Doc Total 88.92
<b>Requirement:</b>
Customer C0001
Item | Price | Discount | Tax | Total
I0001 | 100 | 10% | VAT@4 | 90
Total 90
Discount 5% 4.5
<u>Extra Discount 2% 1.8</u>
<b>Tax Amount 3.348
Doc Total 87.048</b>
Is it possible to have this scenario mapped in SAP Business One using formatted search without using SDK/Customization?
Regards,
Gyanesh RupaniHello Jimmy,
The client wants the extra cash discount to be visible on the invoice itself. I have tried creating the UDFs and assigned appropriate FS to them to change the document total. However, the issue is that the moment the document total is affected, the discount (available by default in marketing documents footer) automatically gets changed proportionally!
So, for eg. if an invoice is for 1000 USD and I give a discount (system field) of <b>10%</b> to a customer and 5% as cash discount (UDF), with the help of FS, the invoice amt automatically gets changed to 850 USD but the discount field also automatically gets changed to <b>15%</b>!
This is the inbuilt functionality of SBO - so if someone can help me overcome this, I will be very grateful.
Regards,
Gyanesh -
Remove or Hiding Marketing Documents from SAP Business One.
Hi Everyone,
Is there any way by which a marketing document in SAP Business One can be deleted or be hidden. For example in a Sales A/R module the the client does not want to use or also view the AR downpayment request or AR down payment invoice as it is not required for his business. What is the way to hide or remove it from the user point also during authorization.
I am also seeing that when in the user autorization I am giving full authorization for e.g in Purchase A/P Module - Purchase Order and Good Reciept PO only and when logging in by that assigned user I am only seeing the Purchase Order and Good Reciept PO that's absolutely fine but when I am going in Form Settings and and selecting visible for all the modules then all the marketing documents are coming back which should not come. Is there any way to block the form settings in this moment and when using the tab apply authorization in forms settings the defined authorized documents are comming but if one again clicks on form settings and make all the marketing document visible then again all the marketing documents are comming back which I don't want.
Please let me know your valuable comments in this regard.
Thanks and RegardsKawish,
<Font Color="Blue" Size=3> To Hide the module from the User Main Menu
</Font>
Login as that user and click Form settings and Uncheck Visible for the
Using Authorization > General > Document Settings (change this to No Authorization)
This would prevent the user access to Form Settings.
<Font Color="Blue" Size=3> To Disable access to a Module
</Font>
Use Administration > System Initialization > Authorizations > Additional authorization creator. chose a name and in the Form ID area add the Form number. ( you can get the form number when you open the module and from the View menu enable system information, you can see the Forum number on the Task Bar)
Suda
Maybe you are looking for
-
Hi Experts, I am customizing the Purchase Order detail Report .Here I need to add total tax details . I found tax details are in po_distribution_all table.Here tax amount is caluculated for each and every line. in po_distribution table we have recove
-
I want to shuffle my streaming movies to play one after the other.
How to do this?
-
everytime i connect my muvo tx fm to my computer, i always have to install the driver because my computer does not recognize my unit. do i need to update my driver so that i will install it once?
-
I upgraded to Adobe Acrobat version XI Pro after using a trial version. (I am using Windows 7 Professional on my PC) and now that there was an update (that continues to fail), I get a message saying "Error 1324. The path my documents or the volume is
-
Iphone will not sync and is not shown on finder
Recently, the iphone has stopped syncing. When I plug in the device, it is not seen by the Mac. The Iphone charges ok. The computer recognizes other Iphones. Do you know why the iphone has stopped communicating with the MAC?