How do I add a UDF in Recurring Postings?

Hi All,
is there a way to add a UDF in Recurring Postings Form?
Thanks,
Vangelis

Hi Vangelis,
you can do it when you add the field via DIAPI.
i post here a simple vb6 sample.
to call the procedure i posted use this
AddUserDefinedFields "ORCR", "TEST", "TEST", SAPbobsCOM.db_Alpha, SAPbobsCOM.st_None, 100, 100
Public Sub AddUserDefinedFields(pTableName As String, pName As String, pDescription As String, pType As String, _
    pSubType As String, pSize As Long, pEditSize As Long)
On Error GoTo Err_Handling
    Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    Dim oValidValuesMD As SAPbobsCOM.ValidValuesMD
    Dim oRecordSet As SAPbobsCOM.Recordset
    Dim lRetCode As Long
    Dim sQuery As String
    Dim sTmpTableName
    Set oRecordSet = oCompany.GetBusinessObject(BoRecordset)
    Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
    sTmpTableName = pTableName
    sQuery = "Select tableid from cufd where aliasid = '" & pName & "' and tableid ='" & pTableName & "'"
    oRecordSet.DoQuery (sQuery)
    If oRecordSet.Fields(0).Value <> pTableName Then
        Set oRecordSet = Nothing
        oUserFieldsMD.TableName = sTmpTableName
        oUserFieldsMD.Name = pName
        oUserFieldsMD.Description = pDescription
        oUserFieldsMD.Type = pType
        oUserFieldsMD.SubType = pSubType
        oUserFieldsMD.Size = pSize
        oUserFieldsMD.EditSize = pEditSize
        lRetCode = oUserFieldsMD.Add
        If lRetCode <> 0 Then
            sNotAddedUDF = sNotAddedUDF & pName & "-" & pTableName & ", "
            'oCompany.GetLastError lErrCode, sErrMsg
            'MsgBox lErrCode & ", " & sErrMsg
        Else
            sAddedUDF = sAddedUDF & pName & ", "
        End If
    Else
        sNotAddedUDF = sNotAddedUDF & pName & "-" & pTableName & ", "
    End If
    Set oUserFieldsMD = Nothing
    Set oRecordSet = Nothing
    Set oValidValuesMD = Nothing
Exit_Sub:
Exit Sub
Err_Handling:
End Sub
use ORCR to add it to the header from Recurring Postings Form
use RCR1 to add a line UDF
i hope it helps - if you're happy reward points
regards
David

Similar Messages

  • Add a UDF on OSHP table

    Hi ,
    How can i add an UDF in the OSHP Table?
    Thanks .
    Edited by: Laurent VIALARET on May 25, 2009 2:14 PM

    Dear Laurent,
       UDF cant be added in the OSHP(Delivery Type)
    Regards
    Jambulingam.P

  • How do I add a recurring event to repeat on the fifth recurring day of the month, for example, an event that only happen on the fifth Sunday of the month for those months that have a fifth Sunday?

    How do I add a recurring event to repeat on the fifth recurring day of the month, for example, an event that only happen on the fifth Sunday of the month for those months that have a fifth Sunday?

    Create one on the first Tuesday, select repeat/monthly and take the option at the bottom.

  • Trying to add missing UDF, but keep breaking my existing layout!

    Hi Everyone,
    I am working with an existing layout in Crystal Reports.
    Unfortunately a UDF that I require, and expect to be present, cannot be accessed. The UDF that I need to use is called 'U_INE_FreightR'.
    I figured that it may be possible to remove the table, and then re-add it, and thereby obtain access to the 'missing' UDF. Towards this end I click Database > Database Expert. I then remove the table, OPOR.
    Doing so gives the following warning.
    I then click on OK, and proceed regardless of the warning.
    Afterwards I re-add the required, OPOR, table (after making a relevant database connection).
    Following this procedure produces the following error.
    I have no choice but to click on OK here, so that is what I did.
    Now when I look in the table for the required UDF it is present...
    Following on I then save the modified form back into Business One (Add-Ins > SAP Business One > Save).
    All appears to be well, however when I then use the layout in Business One there is a lot of information missing. I suspect that the errors with regard to missing content in the layout relate back to the error message "There are fields in the report from this file. Continue?".
    I am now at a complete loss regarding how to make the extra UDF available in the layout, without 'breaking' the layout, and losing content.
    If anybody can advice me on how to add the UDF without breaking my layout it will be greatly appreciated.
    Kind Regards,
    David

    Hi Saado,
    I have attempted your technique, however unfortunately I am getting stuck. Here are the steps that I follow -
    1). Click on Database menu
    2). Click on Verify Database
    3). Enter the password into the OLE DB (ADO) dialog box - as shown below -
    4). Click on Finish
    I am then presented with the screen below, for which I do not know the correct values to enter -
    If I simply click on OK I am met with the following error message -
    I then click on OK, and follow this by clicking on the close (red cross) button.
    The message below is shown -
    I click on OK, and am presented with a Map Fields dialog as shown below -
    I then click on OK, and receive the message 'The database is now up to date'. However I also receive the error message shown below -
    I click OK, and am then shown the Formula Workshop, as follows -
    Can you please provide further advice? I suspect that my mappings are out, but I don't have any idea about how to fix them!
    Any further assistance will be greatly appreciated.
    Kind Regards,
    David

  • How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    You've probably found an answer to this by now, but I think this has been addressed in another forum -- The link below suggested using a button and adding the tooltip to the button. 
    https://forums.adobe.com/thread/304974?start=0&tstart=0
    Sounds like it would work but I haven't actually tried it. 
    Good luck~!

  • How do i add type kit fonts to muse web site

    how do I +add type kit fonts to muse website

    Hi.
    Check this video, might be helpful
    Let me know if you have any questions

  • How can I add more than one same spry menu (eg. collapsible menu)  with in different styles (font size, color, background, etc) on current page?

    How can I add more than one same spry menu (eg. collapsible menu)  with in different styles (font size, color, background, etc) on current page?

    Hi Nancy,
    This screenshot was only for imagination. A part of the code (not all) is below.  In the code there are some background images but they are not seem in live mode.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="css/my_site.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css"/>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <style>
    #CollapsiblePanel1 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-color: #003366;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel1 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        line-height: 52px;
    #CollapsiblePanel1 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/international.jpg);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel2 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelContent {
        background-color: blue;
    #CollapsiblePanel3 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel3 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel3 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel4 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel4 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel4 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel5 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel5 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel5 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    </style>

  • How do I add multiple apple id's to one account

    How do I add multiple Apple id's to one account for billing and Icloud use?

    You don't. You can't combine Apple IDs.

  • HT201342 How can I add an e-mail address to my existing icloud addresses?  I currently only use one and I would like to ad two more?

    How can I add an e-mail address to my existing icloud account?  I curently only use one of the three.

    Each iCloud account only has a single iCloud account.  If you want, you can add up to 3 alias addresses that will receive email in the same iCloud inbox, as explained here: http://support.apple.com/kb/PH2622.

  • How can I add amazon to Apple TV?

    I am a new Apple TV user. So far I am impressed and like it a lot. However I would like to use the Amazon Prime and I have yet to find it. How can I add it to my Apple TV?

    You cannot add apps to Apple TV. If you have an IOS device you can AirPlay to stream using the app from there

  • HT201269 How do I add another contact / recipient to an SMS. Easy in Android, but I can't see how on my 5s.  Have to create a group on my Macbook Pro (OS 9.1), but it's not getting synced via usb. I'd prefer not to use cloud.

    How do I add a contact / recipient to an SMS on iPhone 5s?  It's easy on Android, but I've not sussed it on the iPhone - can't create a group etc.  Tried to create a group on Mac, but it either doesn't exist or won't sync to the phone with usb, nor will other contact details created on Mac.  I'd rather not use the cloud.  I'm sure contacts used to sync to my old iPod touch in Snow Leopard.
    Is it not more logical to have the phone as the main source of this sort of data?  We're more likely to update on a device we carry all the time surely?
    Please advise. Thank you

    Hey Cornish wrinkly,
    It sounds like you want to create a group message. You can read about group messaging on the iPhone here:
    iOS: Understanding group messaging
    http://support.apple.com/kb/HT5760
    Welcome to Apple Support Communities!
    Regards,
    Delgadoh

  • How do I add multiple tickets under the same confirmation number from the American Airlines app to Passbook?

    I have a confirmation number from American Airlines for a flight with my family all under my name and for some reason I cannot add all of our tickets to Passbook. To clarify, I went to the American Airlines app and put in the confirmation number along with my name which pulled up my boarding pass only. Although I was able to add this boarding pass to Passbook, I was not able to add any of the other boarding passes for my children to Passbook that should have also been under the flight reservation. In fact I couldn't even see them in the American Airlines app. I tried to use their names and the same confirmation number but nothing happened, and nothing else seems to be working. How can I add all of these boarding passes to my Passbook?

    Fair enough.
    I started doing this before unlimited data and emails on phones was a common commodity, on my Samsung Blackjack.
    I then continued it due to its convenience. My only counter argument is this:
    Even when emails are set to immediately push, I am always notified earlier by this forwarding message (sometimes by several minutes/hours due to the fact that it is not dependent on my being connected to 4G or wifi to receive it.
    Also, to contradict snozdop's point that both methods use data and battery, I say this - when I use the forwarding method, the information comes in a pure text format and therefore uses considerably less information than an HTML and CSS rich email, with embedded images and such -also, unlimited text messages aids curve costs.
    I will, however, give this method a go. In any case, a solution to my original question would still be greatly appreciated.
    Thanks guys.

  • How do I add multiple contacts to a group?

    How do I add multiple contacts to a group on my Ipad?

    See if this thread helps.
    https://discussions.apple.com/thread/4114588
    Matt

  • How do i add a company logo to my email signature on my mac book pro

    how do i add a company logo to my email signature on my mac book pro

    I would like to know how to do this as well. All I'm able to do is add the link, but not the button. My colleague has done this on his Outlook on his HP. I'm not sure why this is so difficult!

  • How do I add a printer connected to another iMac on the network to my printer list?

    How do I add an Epson printer connected to an iMac on the network to the printer list on my MacBook Pro? I cannot get it to show up in the list for printers to add.

    That only works if the printer is itself a network printer. You can't do it if it is directly connected to another computer on the network unless it is configured to be a Shared Printer on the other computer.

Maybe you are looking for

  • HELP!  My audio is bleeding!!!

    Hi all. I've been working on a new version of Final Cut Pro Studio 2 with a new computer (Intel 2.4Ghz 17-inch Macbook Pro) and I have this recurring audio problem in which the audio from one track will bleed into the other tracks. At most I'm workin

  • Sharing Mac with two iTunes accounts

    Recently bout an Mac air In our family we have one Mac but two accounts for iTunes Can my wife add her iTunes library to guests without hurtin either her library on her iPod or my library on the Mac? Thanks

  • Total system crash caused by/during FF 6.0.1 update

    Here on rock stable Windows 7 64bit SP1 (Dutch). At 19:00 hrs (local time) today I was surfing normally when suddenly my mouse-pointer froze. Duration was a few seconds and then suddenly a complete black screen. No matter what I did, nothing happened

  • Store only in cache?

    Hi - We have a persistent object that contains attributes that we do not want stored in the database. The problem we are facing is that we do want them stored in the cache. I assumed that all attributes would be stored in cache, but actually only the

  • Transfer of duty from plant to plant

    Dear All,           I am reposting this thread as it was not answered and rephrasing the question. If i have to transfer the excisable goods from one plant to another. How the duty will be transfered from one plant to another? Pl details the process