Create folder in system matrix  (incoming payment )

Hi, my friends
i like to create folder in runtime in system matirx. please post the code for regarding this. For example:incoming payment matrix create folder
advance thanks

Hi
You can check the samples provided by SAP in C:programm files>SAP>SDK>Samples>COM UI and systemformmanipulation example..
Thanks

Similar Messages

  • Create folder in system matrix

    i like to create folder in runtime in system matirx. please post the code for regarding this.
    advance thanks

    its as
    Dim oFolderItem As SAPbouiCOM.Folder
    Dim oNewItem As SAPbouiCOM.Item
    Dim oItem As SAPbouiCOM.Item
    oNewItem = oOrderForm.Items.Add("UserFolder", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
    oItem = oOrderForm.Items.Item("9")
    oNewItem.Top = oItem.Top
    oNewItem.Left = oItem.Left
    oNewItem.AffectsFormMode = False
    oFolderItem = oNewItem.Specific
    oFolderItem.Caption = "xxx"
    oFolderItem.GroupWith("9")

  • Create Folder in System Form

    Hi,
        Anybody know how can i create a folder in a system form that not contain any folder???
    For example: Good Receipt, Good Issue, Inventory Transfer from the Inventory Module
    Thanks!!

    Try this:
    oForm = SBO_Application.Forms.GetFormByTypeAndCount("134", intFormCount) '134 is for Business Partner.
                oForm.DataSources.UserDataSources.Add("FolderDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
                objRefItem = oForm.Items.Item("9") 'Refer to the position or the last Folder
                objItem = oForm.Items.Add("Folder", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
                objItem.Left = objRefItem.Left + objRefItem.Width
                objItem.Width = 200
                objItem.Top = objRefItem.Top
                objItem.Height = objRefItem.Height
                objItem.AffectsFormMode = False
                oFolder = objItem.Specific
                '// set the caption
                oFolder.Caption = sFolderCap
                oFolder.DataBind.SetBound(True, "", "FolderDS")
                oFolder.GroupWith("9")
    Kevin.

  • Sample for A/R invoice and Incoming Payment

    Hi,
    Have any samples for create A/R invoice and incoming payment by SDK?
    Which related tables are used?
    Thanks!
    Regards,
    On

    On,
    If you look at the SDK Help Documentation, specifically at the Documents, Document_Lines and Payments Objects for the DI API, the help discusses the tables involved as well as gives samples of common documents.
    Eddy

  • Adding Journal Entry  throgh Incoming Payments,

    Hi Friend,
                  I need Help ....
    I need to create a journal entry using incoming payment. I have different types of deduction Accounts. All deductions need to display in  journal entry and also its reflect in Invoice.Then only invoice going to close.
    Dim junEntry As SAPbobsCOM.JournalEntries
    Ex :-
    :::::Journal Entry::::::
    *Account Code/BpName*                *AccountName*          *DR*            *CR*
    620005                                Deduction1            10      
    620006                                Deduction2           100
    620007                                Deduction3           100
    620008                                Deduction4           115
    620009                                Deduction5            10
    6200010                              Deduction6             10       
    6200011                         Cash Recived               655             1000
                                                              1000             1000 
            Dim decDebi As Decimal = 0
            Dim dtCount As Integer = dtDataTable.Rows.Count - 1
            junEntry = objAddOnCentral.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
            junEntry.Memo = strBpCode
            junEntry.ReferenceDate = Now.Date
            For intLoop = 0 To dtDataTable.Rows.Count - 1
                junEntry.Lines.AccountCode = dtDataTable.Rows(intLoop)("Account").ToString()
                junEntry.Lines.Debit = dtDataTable.Rows(intLoop)("Amount").ToString()
                decDebi += CDec(dtDataTable.Rows(intLoop)("Amount").ToString())
                junEntry.Lines.Add()
            Next
            junEntry.Lines.ShortName = strBpCode.Replace("Incoming Payments", "")
            junEntry.Lines.Credit = decDebi
            junEntry.Lines.Add()
            intErrCode = junEntry.Add()
            If intErrCode <> 0 Then
                objAddOnCentral.objApplication.StatusBar.SetText("" & objAddOnCentral.objCompany.GetLastErrorCode & " " & objAddOnCentral.objCompany.GetLastErrorDescription & "", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                Return False
            End If

    Hi,
    I thing no need addon once u add incoming payment automatically invoice will close and JE also will pass.
    Regards,
    Siva

  • Post an incoming payment ( check ) against an invoice

    Hi
    I am trying to post an incoming payment ( cheque ) against an invoice. I keep getting no matching records found ( odbc error -2028 )
    Has anyone got a simple example I could use as a comparison please ?
    Thanks
    Regards Andy

    I had a similar problem.  Just make sure you have the proper Invoice number and that everything exist in SAP
    This error means that to create your incoming payment, the SDK needs everything created prior to make an incoming payment.   Exactly as if you would do it in SAP
    So just make sure everything is there and that you refer to the right Invoice
    Good luck

  • FMS to get sales employee in incoming payment screen

    Dear Experts,
                  I have created a UDF in the incoming payment screen, kindly provide a query for the following scenario, whenever customer code is input in the incoming payment the UDF has to populate the Sales Employee name linked to the customer in the business partner master data.
    Saravanan

    Dear Saravanan,
    Please save this query and attach it to your Sales Employee Name UDF:
    SELECT T0.\[SlpName\] FROM OSLP T0  INNER JOIN OCRD T1 ON T0.SlpCode = T1.SlpCode WHERE T1.\[CardCode\] = $\[$-5.CardCode\]
    Have it refresh when the Customer / Supplier number changes.
    As its referencing screen data it will only run as a formatted search and will error if you run it from a query screen.
    Regards,
    Adrian
    PS, as you are adding it to a UDF its good practice to add the - in between the $ and the 5.  This will mean it will run the FS manually by pressing shift F2.

  • EBS upload wrong G/L account determination for incoming payments

    Hello,
    I´ve got problem with G/L account assignment in EBS upload.
    Client has 3 company codes 6250, 6251 and 6300. For each CC several bank accounts.
    Company codeHouse banks and Bank acccount ID is 1:1, one house bank - one bank account ID.
    House banks have the same names in company codes, also the Bbank Account IDs are the same in CC.
    CC 6300 has G/L accounts for bank settlements:
    Main:       13102211
    Incoming: 13106271
    Outgoing: 13106272
    Account symbol mask is +++++6+1 for icoming payments (transaction type: incoming)
                                                                                    main      /      incoming
    While uploading EBS for cc 6300 system post incoming payments as        40: 13102211 / 50: 13106211
    13106211 is wrong G/L account (it should be 13106271 ) and in CC 6300 is not defined, it is account from company code 6250.
    Could someone please tell me how the system determine the G/L account for icoming payments? Where to make the config?
    Please advise.
    Thank you.
    Lubos

    You account digits logic is little unclear. Thats why it is always important have the proper logic while formulating the accounts.
    For example
    If the main account is
    120300 (ending with 0)
    120301 (Cheque Payable Sub account 1)
    120302 (Cheque Receivable Sub Account 2)
    Now you can mask
    +++++1 for Cheque Payments
    +++++2 for Cheque Receipts
    But, you said, you
    main account 13102211 and incoming subaccount was 13106271
    If I understand correctly
    the masking should be ++++6271
    Otherwise
    +++67+

  • Create Folder in INBOX using Java Mail coding

    I want to create a folder in my INBOX and want to copy the incoming mails to the created folder and delete the incoming mails from my INBOX , By using POP3 protocol.

    For POP3, the only folder available is the INBOX. If you are using IMAP, you can have other folders available.

  • Create draft incoming payments

    Hi all,
    i am having great difficulty in creating draft incoming payments through the DI, whatever I seem to do I cannot see the sort of properties that the help files say are there e.g. .cashsum .transferaccount etc. The only propoerties that are shown are the ones for marketing documents. I have tried all combinations of the two sets of code below but nothing seems to work,
      Dim DraftPay As SAPbobsCOM.Documents = GetDIConnection.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
      DraftPay.DocObjectCode = SAPbobsCOM.BoObjectTypes.oIncomingPayments
    Dim DraftPay As SAPbobsCOM.Documents = GetDIConnection.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPaymentsDrafts)
      DraftPay.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPaymentsDrafts
    In trying to fix this issue i have given up on the idea of creating a draft and tried to create a simple incoming payment but i hit the same issue. Whatever I seem to do I only get the option to use marketing document properties.
    Am I missing something obvious or has someone else hit this issue (I am using V2007 by the way)
    Any help would be appreciated as we begin training on this system in two weeks!
    Gordon

    Hi,
    you create payments like
    vb6 samples:
    Dim oPay As SAPbobsCOM.Payments
    Set oPay = vCompany.GetBusinessObject(oIncomingPayments)
    Set oPay = vCompany.GetBusinessObject(oVendorPayments)
    Set oPay = vCompany.GetBusinessObject(oPaymentsDrafts)
    for drafts you also have to set:
    oPay.DocObjectCode = bopot_IncomingPayments
    or
    oPay.DocObjectCode = bopot_OutgoingPayments 
    i hope it helps
    lg David

  • Create A/R Invoice and Its Incoming Payment using DI Server

    Hi Everyone,
    I need to create an A/R Invoice and its payment in a sigle transaction using DI Server. The problem is that I don't know the DocEntry that will be assigned to the invoice in order to set it in the SOP message for creating the incoming payment.
    I guess the SOAP message should look like:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
      <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
    </env:Header>
    <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add invoice">
      <BOM>
       <BO>
        <AdmInfo>
         <Object>oInvoices</Object>
        </AdmInfo>
        <Documents>
         <row>
          <DocDate>20040707</DocDate>
          <DocDueDate>20040707</DocDueDate>
          <CardCode>BP</CardCode>
         </row>
        </Documents>
        <Document_Lines>
         <row>
          <ItemCode>Item1</ItemCode>
          <Quantity>3</Quantity>
          <TaxCode>My Tax</TaxCode>
         </row>
        </Document_Lines>
      </BO>
      </BOM>
      </dis:AddObject>
      <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Incoming Payment">
      <BOM>
       <BO>
        <AdmInfo>
           <Object>oIncomingPayments</Object>
        </AdmInfo>
        <Payments>
           <row>
               <CardCode>BP</CardCode>
               <DocTypte>rCustomer</DocTypte>
           </row>
       <Payments>
       <Payments_Invoices>
            <row>
                 <DocEntry>???</DocEntry> <---- ???
                 <InvoiceType>it_Invoice</InvoiceType>
                <SumApplied>100</SumApplied>
            </row>
       </Payments_Invoices>
       </BO>
      </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    Any help?

    Dear Hugo Moreno,
    You could use the GetNewObjectCode Method of the Company Object to retrieves the key of the last added record.
    Please refer to SDK DI API help for this method.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Error creating incoming payment. (ODBC -2035)

    The error that I get while creating an incoming payment is:
    This entry already exists in the following tables (ODBC -2035)
    Here is the code:
    public static bool CreatePayment()
           DateTime now = DateTime.Now;
           Payments pmt = (Payments) m_company.GetBusinessObject(BoObjectTypes.oIncomingPayments);
                pmt.ApplyVAT = BoYesNoEnum.tYES;
                pmt.CardCode = invoice.CardCode;
                pmt.CardName = invoice.CardName;
                pmt.CashSum = 0;
                pmt.ContactPersonCode = invoice.ContactPersonCode;
                pmt.DocCurrency = invoice.DocCurrency;
                pmt.DocDate = now;
                pmt.TaxDate = now;
                pmt.DocRate = 0;
                pmt.LocalCurrency = BoYesNoEnum.tYES;
                pmt.DocType = BoRcptTypes.rCustomer;
                pmt.HandWritten = BoYesNoEnum.tNO;
                pmt.JournalRemarks = "journal remarks";
                pmt.Remarks = "remarks";
                pmt.Reference1 = baseEntry.ToString();
                pmt.TransferSum = 0;
                // invoice
                pmt.Invoices.AppliedFC = 0;
                pmt.Invoices.DocEntry = baseEntry;
                pmt.Invoices.DocLine = 0;
                pmt.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice;
                pmt.Invoices.SumApplied = amount;
                // credit card
                pmt.CreditCards.AdditionalPaymentSum = 0;
                pmt.CreditCards.CardValidUntil = Util.CCDateToDateTime(cardExpirationDate);        
                pmt.CreditCards.CreditCard = bp.CreditCardCode;
               pmt.CreditCards.CreditCardNumber = ccNumber;
                pmt.CreditCards.CreditSum = amount;
                pmt.CreditCards.CreditType = BoRcptCredTypes.cr_InternetTransaction;
                pmt.CreditCards.FirstPaymentDue = now;
                pmt.CreditCards.FirstPaymentSum = amount;
                pmt.CreditCards.NumOfCreditPayments = 1;
                pmt.CreditCards.NumOfPayments = 1;
                // there's a record in OCRP  (credit card payment methods)   
                pmt.CreditCards.PaymentMethodCode = 1;
                if (pmt.Add() != 0)
                    int errCode;
                    string errMsg;
                    m_company.GetLastError(out errCode, out errMsg);
                    // here errMsg is "This entry already exists in the following tables (ODBC -2035)"
                    return false;
                return true;
    I had 53 records in ORCT (incoming payments) but the next number in NNM1 and ONNM was 1. So I assumed that it was wrong and tried to set NNM1.NextNumber and ONNM.AutoKey to 54 for ObjectCode = 24 (Incoming payment).
    The error remained the same. Then I removed all records from ORCT and its subordinate tables RCT1, RCT2, RCT3,.... and changed the next number back to 1.
    The error is still: "This entry already exists in the following tables (ODBC -2035)".
    Do you have any ideas what may cause the above error and how I can get more info which is the entry that already exists and in which table?
    The code above works on another company (database).
    Thanks.
    Svilen

    Thanks Alexey,
    Please note that I have manually modified SBO tables once the problem appeared not before. I do not know how receipt numbers got out of sync.
    I also find the message "This entry already exist in the following
    tables" without actually specifying any table, strange, the least.
    The SDK is not particularly good and the samples in the help file are outdated and therefore wrong.

  • Receipt (Incoming Payment) system default print layout

    Hi,
    When I print the Incoming payment receipt with the default print layout - APA Receipt (System), it always show many rows in the table.
    e.g. the incoming payment is a cheque from "Bank of China". I expect there should be only 1 row in the repetitive area.  However, it shows 3 rows for each bank defined in the system.
    Then, I do the following:
    1) I add a database field to get "Incoming payment - Cheques" table, "Bank Code - Account No." field.
    2) Update the existing database fields (Bank Code - Bank Name) in repetitive area, make it "Related to" the above field.
    After that, I get 3 rows, all under "Bank of China"
    How to get rid of the duplicate rows?  I expect to have only 1 row under "Bank of China" in this case.
    I am using SAP Business One 2007.
    Thank you very much!
    Yvonne

    May I have your advise please? Thanks a lot!

  • Create incoming payments, based on Sales Person code

    Hi all,
    is there any SAPB1 functionality to create incoming payments, for many Sales Invoices of different customers , based on a Sales Person code ?
    Thank you,
    Aris Pantelatos

    Hi Jitin and Gordon,
    Thank you both for your replies.
    Jitin, I need to create different incoming payments (one for every customer)  based on a list of invoices with a specified Sales Person on them.
    Do you know, if this is included on SAPB1 roadmap?
    Aris
    Edited by: Aris Pantelatos on Feb 8, 2012 4:04 PM

  • Include the Journal entry created in Incoming Payments PLD

    Hello Experts!!!
    Is there a way to include the journal entry created in the Incoming Payments PLD?

    hi jennifer,
    You can create query print layout designer report using query.
    SELECT
    T0.TransId, T0.BaseRef, T0.RefDate,
    T1.Account, T1.ShortName, T2.AcctName,
    T1.Debit, T1.Credit
    FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId and
    T1.TransType = 24 INNER JOIN OACT T2 ON T1.Account = T2.AcctCode
    WHERE
    T0.BaseRef = '[%0]' or  T0.RefDate = '[%1]'
    Jeyakanthan

Maybe you are looking for

  • Minecraft server not working on Mountain Lion

    Hey guys, I used to host a Minecraft server on my macbook running OSX Lion and it would work perfectly but as soon as I upgraded to Mountain Lion people cannot connect to my server. I've tried pretty much every setting but for some reason people cann

  • Dual gpib cards in the same network with NT4

    Is it possible to use 2 Pc as masters on the same GPIB network. For now we have to disable CIC for the PC that is inactive but this is awkward since we allways have to log in to both PC's. BRG Anders Olme

  • Bex Query WAD Iview - Look and feel.

    I've put a query into a WAD and I've published the WAD as an ivew. But i want the look and feel to be "Corporate" and not use the SAP standard blues etc. I have created a custom them but when I preview the iview the query in the WAD is blue rather th

  • Is there any way to restore bookmarks with sync?

    I lost my firefox, but shortly before i clicked the "sync now" thing. I reinstalled it, but now i can't get any of my bookmarks. Is there any way to restore the information? I backed up the old firefox file, but replacing it does nothing.

  • Trying to download 64 bit but seems to be installing 32 bit

    After downloading what I thought was 64 bit, java plug ins state it is a 32 bit version