UDF populating on Marketing Doc's Matrix

Hi all,
I've created UDFs in the IGN1 table using the sdk but all the Fields are being displayed in all the Marketing Doc's Matrix. ie: AR & AP.  I dont want them to be displayed on all the forms.  I only want them to appear on the "Reciept from Production Form".  How do I do that?
Thanks

Hi guys,
I'm getting an Exception:
"System.Runtime.InteropServices.COMException (0x80040111): Retrieving the COM class factory for component with CLSID {FD65E5A4-2232-452B-8541-5BC1EC3FF9C6} failed due to the following error: 80040111."
with the following snippet...
    Public Sub SetFormPreferences()
        Dim oCompanyService As SAPbobsCOM.CompanyService
        Dim oFormPreferencesService As SAPbobsCOM.FormPreferencesService
        Dim oColumnsPreferences As SAPbobsCOM.ColumnsPreferences
        Dim oColumnsPreferencesParams As SAPbobsCOM.ColumnsPreferencesParams
        Dim oColumnPreferences As SAPbobsCOM.ColumnPreferences
        oCompanyService = oCompany.GetCompanyService
        oFormPreferencesService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.FormPreferencesService)
        System.Runtime.InteropServices.Marshal.ReleaseComObject(oCompanyService)
        Try
            oColumnsPreferencesParams = New SAPbobsCOM.ColumnsPreferencesParams
            oColumnsPreferencesParams.FormID = "139"
            oColumnsPreferencesParams.User = 1
            oColumnsPreferences = oFormPreferencesService.GetColumnsPreferences(oColumnsPreferencesParams)
            oColumnPreferences = oColumnsPreferences.Item("U_ETypDe")
            SapApp.MessageBox("In form 139, U_ETypDe visibility is set to - " & oColumnPreferences.VisibleInForm)
        Catch ex As Exception
            SapApp.MessageBox(ex.ToString)
        End Try
    End Sub
Can anyone help with this?
Thanks

Similar Messages

  • Re-enable UDF in Marketing Docs

    Hi,
    I had created a UDF in marketing docs with DI API and in my code I set the field to be Enabled = false, ok, no problems until yesterday. Now I need to set Enabled = true but i'm getting the error "The field is not a user defined field" and i can't set my Enabled back to true;
    This is a bug?
    I already made a search in the forum, I found only one problem like mine but it's not solved:
    - Enabling & Disabling UDF's
    Thanks,
    Ricardo Momm

    Hi Edward,
    I'm accessing the UDF via user interface with UIAPI. If I try to set the Enabled property to False nothing happens but if I try to set the Enabled property to True the exception "Item is not a user defined item" is throw.
    form.Items.Item("U_Field").Enabled = false; // no error
    form.Items.Item("U_Field").Enabled = true; // throw not a UDF field
    The point is, in the first run when I set the Enabled property to false there is no exception and the Field is disabled, after this operation i can't set the Enabled property to true again.
    My SAP B1 Version is: 2005B PL34
    PS: sorry with the poor english... i'm still learning

  • Hide UDFs in Marketing Docs (Not Displayed)

    Hi All,
    I have created 12 UDFs in Marketing Docs for the "Stock Transfer"....But they will appear in all the Marketing Docs (AR and AP and many, many, many more)  It seems like I would have to go into each and every Marketing Doc under each and every User Name and Edit the UDFs Settings.
    Is there a way I can hide these UDFs from all the Marketing Docs/Forms except the intended Form??? (Stock Transfer Form) without the use of coding.  I want to use the Std SBO Customizing functionality...
    Thanks Guys

    Hi Noor,
    I don't know a way to block the added UDFs to be visible and modified by the user...  unless changing the settings for the specific form (be careful the user has no rights to change them one more time and block your calculations).
    The best way to avoid problems is to block the user from modifying them by disabling them when the form is loaded (by using SDK).
    Anyone else has a better trick?
    Regards
    Trinidad.

  • Need additional field populated along with this FMS on Market Docs

    During creation of a marketing doc such as Sales order, the user searches for the item which has this query loaded into item field.
    SELECT T0.[ItemCode], t1.[AvgPrice],t1.[OnHand], T1.[WhsCode] FROM OITM T0  INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode WHERE T1.[WhsCode] =(SELECT warehouse from oudg where code= 'manager') and t0.[invntitem]='Y'
    Search of item field displays other info such as quanitty in warehouse and warehouse along with item code. In above case the warehouse is 02 for maanger profile.
    However, on selecting any of the above items, the warehouse displayed on sales order is 01 (not 02 which is what it should have been). Why did not the relevant warehouse 02 get loaded?
    How can I over come this without using just the above FMS query. Do I have to use another FMS query for warehouse field also?
    Thank you.
    Hi, I have this FMS query that displays items from warehouse of the  logged in user's defaults. However, the actual warehouse on sales

    Hi,
    FMS query will only return the first column from the query result. Whatever displayed will be irrelevant. If you need Warehouse 02, FMS has to be set on warehouse column with the whscode as first column.
    Thanks,
    Gordon

  • Marketing docs including item remarks in the printed form?

    On the PO window you will see all items the user has added including text rows. When you print the document it is including the IMD remarks for parts that have that populated. I have not found why this being included. As far as I can see the text rows that are referenced in the PLD are from the Purchase Order:Rows. I see no reference to the IMD remarks. We do not want this on any of our marketing docs. It is happening on all of them currently. Any help you can offer would be greatly appreciated.
    Thanks,
    Monica

    Hi
    You have to select the specific template based on your business process . Since you have decided to put the text(function) in the purchase order and I believe documents are usually created based on copy from and copy to function , you have to find the appropriate PLD format to handle your situation .
    I have given an alternative workaround  for this issue because I donot like PO with whole bunch of text which is difficult for to read .
    1. Ask your user to use opening and closing remark instead of using text field .
    2.Display this opening and closing remarks in PLD - Database  -OPOR Field -Header
    3.Print the information on PLD .
    Limitation -user cannot see in the screen that remarks have been added unless print preview is used
    So I have ask user  to create a common code and put in remarks that means there are more remarks associated with this documents
    Hope this helps  you
    Bishal

  • 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.

  • Populating CRM marketing attributes using the APD

    Hi Experts
    We are having problems with populating CRM marketing attributes using the APD. When we run our process we get the error message:
    CRMBW_ATTR_WRITE005: Error when processing function module CRMBW_UPDATE_BPMKT_5. Message no. RSAN_MDL024
    As you can see, we are using the new function module CRMBW_UPDATE_BPMKT_5 since the old CRMBW_UPDATE_BPMKT did not work either.
    Do we have to add a reference to a infoobject in transaction CRMBWTARGETS? We have not done this because the marketing attribute in CRM doesn’t have decimals and all the objects in BI have. Could this be the cause of the error?
    Kind regards
    Erik

    Hi Ramesh,
    Thanks for quick reply.
    I have already followed the procedure you have described. Since there is not common objects between ODS and Bpatner infoobject, i am not able to do mapping.
    for eg. my ZBPARTNER infoobject has attributes like zfooty, ztennis and zrugby but my ODS has char name , char value, counter for multiple values infoobjects.
    I am following the example in the demo content to work out the process but could not understand how the data is getting uploaded from ODS to Business partner.
    http://help.sap.com/saphelp_nw70/helpdata/en/bf/5df63bf9deaf09e10000000a114084/frameset.htm
    Thanks,
    Sandeep Jogde

  • Line Delete capability on marketing docs

    Hi,
       can anyone let me know which version of SAP enables marketing docs line deletion capabilities using the SDK? Is it 8.8 or 2007 SP1?
    Thanks.
    Gopal

    Hello
    it is avaiable from B12007
    Usage:
    oDoc.lines.setcurrentline(i)
    oDoc.lines.Delete()
    regards
    János

  • XLR old reports not working with UDF from Marketing docs

    Hi,
    We are using SAP Business One 2005 A (6.80.318)  SP: 01  PL: 16 and the following version of XLR.
    XLR Version 6.80.367 (under about XLR) or 6.80.01.26 (under Add-ons manager).
    We have just gone from 6.80.01.25 to 6.80.01.26 version of XLR and have had an issue with the reports that contain UDF's. 
    Previously when doing patches of SBO we have had issues with the UDF's renumbering eg.  SalesEmp_1 becoming SalesEmp_2.  Within the XLR reports we would simply update the identifier of the UDF and it would report correctly.
    The issue this time is that the identifier has disappeared.  ie. SalesEmp_1 has become SalesEmp.  When you create a new report the data can be retrieved correctly however when you change the existing report to reflect SalesEmp (rather than SalesEmp_1) it reports no data. 
    I am not keen on re-creating all of my reports with UDFs and was wondering if anyone else had encountered the same issue and come up with a solution. 
    It may have something to do with the UDF's being available as Dimensions now whereas previously they were only Light Dimensions?
    Let me know if I need to clarify further - although it will probably make perfect sense if you have been through the same issue - and if you haven't you may not be able to help.
    Kind regards
    Andrew

    Hi Andrew,
    Unfortunately I don't know the answer to your question...
    ...but anyway, this Forum is focussing on the SAP Business One SDK.
    In principle the Implementation Forum in the PartnerEdge P2P (http://p2p.sap.com/businessoneforum?type=join) area should more suitable for such questions.
    I suggest that you raise your issue there - and hope that you will get the right answer.
    ...or since the issue came up when you changed from one version of XLR to another - log a question to SAP Support on the XLR component.
    Sorry,
    Frank

  • 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 You

    hi,
    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

  • Business Area not populating in Accounting Doc Post Division Change

    Hello Friends,
    Platofrm: SAP R/3
    We created a new Divisions (06)  and  assigned them to the Material in Plant 155. A new business arae (PTIC)
    was also created and assigned to sales are 0020 00 06.
    Later we did couple of assignments (Enter Str>Assig>SD>) where we assigned business area to division - Plant - Sales Org
    and Dris Channel ) .
    Now to validate the changes I am posting a Sales order in sales area 0020 00 10 - to see whether the newly created business area is getting populated or not. Post sales order - delivery- goods issue and _accounting doc - in the accounting document
    I dont see the business arae PTIC. Old business area (PTI) is getting populated.
    I wanted to know whether Material is controlling the business area in accounting doc and where I am missing the link.
    Our aim is to see business area PTIC in final accounting document so that we are sure that the material - whom we assigned division -06 is giving business are ptic.
    Please assist and provide suggestions.
    George

    Hi,
    Go to SPRO > Enterprise Controlling > Consolidation > Integration: Preparation for Consolidation > Preparation in the Sender System > Further Settings for Business Area Consolidations > Sales and Distribution
    And check the below settings:-
    - Assign Rules per Sales Area
    - Assign Business Area per Plant and Division
    - Assign Business Area per Sales Area
    Regards,
    SDNer

  • Is it possible to query for all marketing doc hits to one account?

    We have been struggling to create one single query that pulls all entries made to a particular revenue account by all marketing documents (in 2007A, PL42).
    For example, an item may be used on an A/R invoice, A/R, credit memo, A/P invoice, or A/P credit memo in any given month.  We've been using four different queries to pull basic data from each one, then blending them together in Excel.  This seems silly, and I'm hoping we can blend the code in one query instead of running four different ones.  Thoughts?
    One of the four queries we've been using:
    SELECT T0.[DocNum], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[FreeTxt], T1.[Quantity], T1.[Price], T1.[LineTotal], T1.[AcctCode], T2.[Segment_0], T2.[AcctName]
    FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
         INNER JOIN OACT T2 ON T1.AcctCode = T2.AcctCode
    WHERE T2.[Segment_0] ='319000' AND T0.[DocDate] BETWEEN '[%0]' AND '[%1]'
    ORDER BY T1.[ItemCode]
    It would be even cooler if we could choose two segments to review (i.e. also '318000').
    Kind Regards,
    Russell Clayton

    When trying to link AP docs as well, I am only retrieving AR.  Any suggestions on this, and how to properly order by T2.Segment_0 would be greatly appreciated.  Thanks!
    SELECT T2.Segment_0, T2.AcctName, T1.[ObjType], T0.DocNum, T0.DocDate, T0.CardName, T1.ItemCode, T1.Dscription, T1.FreeTxt, T1.Quantity, T1.Price, T1.LineTotal
    FROM dbo.OINV T0 INNER JOIN dbo.INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN dbo.OACT T2 ON T1.AcctCode = T2.AcctCode
    WHERE T0.DocDate BETWEEN '[%0]'
    AND '[%1]'
    UNION ALL
    SELECT T2.Segment_0, T2.AcctName, T1.[ObjType], T0.DocNum, T0.DocDate, T0.CardName, T1.ItemCode, T1.Dscription, T1.FreeTxt, T1.Quantity, T1.Price, T1.LineTotal
    FROM dbo.ORIN T0 INNER JOIN dbo.RIN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN dbo.OACT T2 ON T1.AcctCode = T2.AcctCode
    WHERE T0.DocDate BETWEEN '[%0]'
    AND '[%1]'
    SELECT T2.Segment_0, T2.AcctName, T1.[ObjType], T0.DocNum, T0.DocDate, T0.CardName, T1.ItemCode, T1.Dscription, T1.FreeTxt, T1.Quantity, T1.Price, T1.LineTotal
    FROM dbo.OPCH T0 INNER JOIN dbo.PCH1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN dbo.OACT T2 ON T1.AcctCode = T2.AcctCode
    WHERE T0.DocDate BETWEEN '[%0]'
    AND '[%1]'
    SELECT T2.Segment_0, T2.AcctName, T1.[ObjType], T0.DocNum, T0.DocDate, T0.CardName, T1.ItemCode, T1.Dscription, T1.FreeTxt, T1.Quantity, T1.Price, T1.LineTotal
    FROM dbo.ORPC T0 INNER JOIN dbo.OPC1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN dbo.OACT T2 ON T1.AcctCode = T2.AcctCode
    WHERE T0.DocDate BETWEEN '[%0]'
    AND '[%1]'
    ORDER BY  T2.Segment_0 ASC

  • Anybody has a doc for Matrix reports or online source?

    I tried searching metalink for a doc which a a basic Matrix reports tutorial.
    Does anybody have a document or know any online tutorial?
    Thanks

    Take a look in the Building Reports manual (available at http://otn.oracle.com/products/reports/htdocs/getstart/docs/or_br.zip), or from the Documentation link on the main reports page.
    Hope this helps,
    Danny

  • Line Item Text in MIGO: needs to be populated in Material Doc#.

    Hi Friends ,
    Can we  have the solution of this query "When I am doing Goods receipt I am entering some text in the text field in the where tab of the item.
    But this is not creating any corresponding entry in the mseg table.
    Again if go to change mode MB02 and then enter the text it is taking it properly. How it can get reflected directly in Material Document instead of changing Mat.Doc.
    Regards,
    Lalit
    Noida.

    .

  • RE:cash discount base value & it being populated in accounting doc

    hello friends,
    i am explaining the problem clearely again.
    when we post an invoice to a customer,it generates an accounting document.
    when we see this accounting document,the field discount base amount is showing zero.it is not populating any value.
    the requirement is that this field should populate the discount base value & the discount should be calculated on the grossvalue(inclding taxes)of the invoice.
    please help me how to & where to configure this.
    thanks in advance.

    Hi Ram M,
    I have the same issue. Did you get a reply on this?
    Regards

Maybe you are looking for