Marketing Documents through B1if

We are implemented a integration between Business One and other sys and need send Marketing Documents to B1.
To DI API and DI Server, the XML Schema these objects its kind:
<BOM>
  <BO>
     <AdmInfo>
       <Object>13</Object>
       <Version>2</Version>
      </AdmInfo>
      <Document
In B1if we have problems to conclude tests. The XML Schema to Mark. Documents are the same?
I receive a error message {"ResultCode":"-1", "ErrorMsg":""}
Some one can help?

Hi Gordon,
Thanks for the answer.
Sorry for delay in reply, I was out of the office.
This is my Sale Invoice XML. But the error persist. I'm in B1 8.81 PL10.
The general schema is ok? My doubt is only it.
Because this is the exactly same xml that I use in my add-on aplication to import external invoices from the POS system.
<BOM>
     <BO>
          <AdmInfo>
               <Object>13</Object>
               <Version>2</Version>
          </AdmInfo>
          <Documents>
               <row>
                    <DocNum/>
                    <DocType>dDocument_Items</DocType>
                    <HandWritten>tNO</HandWritten>
                    <DocDate>20120113</DocDate>
                    <DocDueDate>20120113</DocDueDate>
                    <CardCode>C999</CardCode>
                    <DocCurrency>R$</DocCurrency>
                    <DocTotal>3.66</DocTotal>
                    <Reference1/>
                    <Comments/>
                    <JournalMemo>Cupom fiscal PDV - B1if - C999 - 484</JournalMemo>
                    <PaymentGroupCode>-1</PaymentGroupCode>
                    <DocTime>0903</DocTime>
                    <ContactPersonCode/>
                    <Series/>
                    <TaxDate>20120113</TaxDate>
                    <DocObjectCode>13</DocObjectCode>
                    <Indicator/>
                    <SequenceCode>-2</SequenceCode>
                    <SubSeriesString/>
                    <SequenceSerial>485</SequenceSerial>
                    <SequenceModel>24</SequenceModel>
                    <DiscountPercent>0</DiscountPercent>
                    <POSCashierNumber>1</POSCashierNumber>
                    <POSEquipmentNumber>EPSON TM T81 FBII</POSEquipmentNumber>
                    <POSManufacturerSerialNumber>EP081010000000003717</POSManufacturerSerialNumber>
               </row>
          </Documents>
          <Document_Lines>
               <row>
                    <LineNum>1</LineNum>
                    <ItemCode>A005</ItemCode>
                    <Quantity>1</Quantity>
                    <ShipDate/>
                    <LineTotal>1.76</LineTotal>
                    <Currency>R$</Currency>
                    <Usage>5</Usage>
               </row>
          </Document_Lines>
     </BO>
</BOM>

Similar Messages

  • Unit Price and Document Total in a Marketing Document

    Hi Experts,
    I am trying to post a marketing document through the DI API.  I have assigned value to the document lines as follows:
                    sapDocument.Lines.ItemCode = items.MaterialCode;               
                    sapDocument.Lines.Quantity = items.Quantity;
                    //sapDocument.Lines.Price = items.Price; // tried assigning to both Price and Unit Price
                    sapDocument.Lines.UnitPrice = items.Price;
                    //sapDocument.Lines.LineTotal = items.LineTotal // Also tried assigning this.
    All my documents have been successfully posted in SAP Business One except that there is no Price saved and therefore follows that my Line Total and Document Total are all 0.00.
    Hope someone could help me out.
    Thanks.
    Melvin Balingit

    Hello Guys,
    So the correct method is
    first assign the unitprice, than assign the qty.
    Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
            oDoc.CardCode = "C20007"
            oDoc.DocType = BoDocumentTypes.dDocument_Items
            oDoc.DocDueDate = Today
            oDoc.Lines.ItemCode = "A00002"
            oDoc.Lines.Quantity = 2
            oDoc.Lines.UnitPrice = 100
            oDoc.Lines.Add()
            oDoc.Lines.ItemCode = "A00003"
            oDoc.Lines.Quantity = 2
            oDoc.Lines.UnitPrice = 100
            If oDoc.Add <> 0 Then
                MsgBox("Erreur " + oCompany.GetLastErrorDescription())
            Else
                Dim newCode As String = oCompany.GetNewObjectKey()
                MsgBox(newCode)
                AddInvoiceEx(newCode)
            End If
    Regards
    János

  • Printing marketing documents via DI API

    Hello everybody?
    I've been looking for some information about how to print marketing documents through DI API using the layout assigend in the PLD. Until now i have not found a way to do this, so I want to know if anyone has found a solution either using ALD?
    I've seen some workaround using the DI API but it's not useful for me, so it's a definitive answer to say that it's not possible to do this?
    Thanks

    Hi,
    When i had a similar requirement i used Crystal reports to preview and print my custom reports, I opened the Report on the Print Preview menu icon click.
    Hope it helps,
    Vasu Natari.

  • DI API/DI Server Access to Approve Marketing Documents (Approval Procedures

    a.     Many of my clients require the functionality to remotely approve Marketing Documents
    b.     Currently the DI allows for the creation and updates of Approval Stages and Templates
    c.     There is no mechanism to approve Marketing Documents through the DI API / DI Server
    d.     This functionality is urgently required
    e.     It is specifically required to access the Marketing Document marked for approval and approve/reject these Documents via the DI API

    How to do it:
    SAPbobsCOM.ApprovalRequestsService oApprovalRequestsService = null;
    SAPbobsCOM.ApprovalRequestParams oApprovalRequestParams = null;
    SAPbobsCOM.ApprovalRequest oApprovalRequest = null;
    SAPbobsCOM.ApprovalRequestDecision oApprovalRequestDecision = null;
    oApprovalRequestsService =
      (SAPbobsCOM.ApprovalRequestsService)MyCompanyService.GetBusinessService(
          SAPbobsCOM.ServiceTypes.ApprovalRequestsService);
    oApprovalRequestParams =
      (SAPbobsCOM.ApprovalRequestParams)oApprovalRequestsService.GetDataInterface(
          SAPbobsCOM.ApprovalRequestsServiceDataInterfaces.arsApprovalRequestParams);
    int wddCode = 1;
    oApprovalRequestParams.Code = wddCode;
    oApprovalRequest = oApprovalRequestsService.GetApprovalRequest(oApprovalRequestParams);
    oApprovalRequestDecision = oApprovalRequest.ApprovalRequestDecisions.Add();
    oApprovalRequestDecision.Status = SAPbobsCOM.BoApprovalRequestDecisionEnum.ardApproved;
    oApprovalRequestDecision.ApproverUserName = SAPB1UserName;
    oApprovalRequestDecision.ApproverPassword = SAPB1Password;
    oApprovalRequestsService.UpdateRequest(oApprovalRequest);
    Hope it helps
    D.

  • Filtering Item, Customer and Supplier data on Marketing Documents

    My client has 7 franchises under one umbrella, so as their item, customer and vendor masters will be at one place in SBO. But their requirement is when specific franchise person work on marketing documents, could only be able to access its respective master data in LOV's. I filtered it through formatted search and filtering in LOV's as well but he/she can access others master data. Can anybody tell me any workaround for it?
    Thanks & regards

    Hi there!
    I am exactly in the same situation. Did you get some answers or did you find any solution about the filtering data and marketing documents?
    I try to filter some data like BP (OCRD), Sales Marketing documents & Opportunities by using the SlpCode from the OSLP table.
    I have to do as well a link between the login used and the slpcode.
    I have to do a global like by using the table OUSR (user) (link between login and slpcode).
    Any advice?
    Best regards,
    Sébastien

  • 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

  • Update form Marketing Document screens from one user to other

    I know there is a query somewhere where I can set up all Marketing Document screens for a user then copy it to other users so their Marketing documents have the same look and I don't have to go through each user.
    Does anybody has that query? Thanks

    Hi Rosi
    A query would imply some sort of direct write to SAP tables and that is not wise. You could rather have a look at the DI API or DTW templates for updating user defaults. If I recall correctly it is called UserMenuService.
    Kind regards
    Peter Juby

  • Open Quantity Column in Marketing Document

    Dear All
    While going through the table structure of Marketing Document I found that there are two column - one is 'OpenQty' and another is 'OpenCreQty'. Both the columns kept the same values.
    Will you please let me know the utility of keeping same value in two columns or what is the interpretation of 'OpenCreQty' column?
    Thanks
    Aloke Bandyopadhyay

    Dear Aloke,
    These two columns are different. Although most of the time they have the same value, they are for different purposes. 'OpenQty' is normal as our common knowledge. While 'OpenCreQty' is only for the quantity that available to give Credit Memo.
    Thanks,
    Gordon

  • Marketing Documents

    Whenever i create table through source code, the control which i am creating is got affected in marketing documents.....? Most of the screens contains that control which i had created for particular screen.. These things r done in system form....? Wats the reason...?

    Hi Badri,
    If you want the UDF you create only for particular document type, i would suggest you to use Copy Express add on from SAP.
    Create the UDF in other database, copy it to your desired database using Copy Express but only select document type you want the UDF exist.
    Cheers,
    Dody

  • Address in marketing documents

    hi
    I have uploaded the address of the business partners through dtw and it was successful.
    but when i make any transaction through marketing documents i cant find the bill to address in the logistic tab.
    can any one help me in this.
    regards
    praveen

    Praveen,
    Could yoube specific on the following? 
    What type of BP? Vendor / Customer?
    What is the marketing document you are trying this.
    do you have both ship to and bill to in the BP Master Address tab.
    Suda

  • Customer master restriction in Marketing document.........

    Dear All,
    I have defined customer master along with the sales employee for respective customers in BP master data.
    These sales employees are company's employees defined in HR module.
    Scenario is as follows:
    Whenever sales employees login through his ID and creates marketing document like sales quotation or order he must see only the customers or lead which are mentioned against his name in master.
    He must not be permitted to select  customer of other sales employee.
    How can i restrict this sales employee....?
    Solution will be highly appreciated.....
    regards
    swapnil

    Solution : -
    1. Data Ownership Authorization
    2. Formatted search
    Jeyakanthan

  • FMS required for Row Level in Marketing document for Dimensions vs BP

    Dear All,
    I need some help in regards to the FMS in SAP Business One. I am trying to use Dimension in the row level of my marketing document. In Dimension 2 and Dimension 3 I have named them as Dimension 2 whose description is Regions and in Dimension 3 whose descrption is Area.
    Now in Cost Accounting I have setup the Profit Centers in Dimension 2 Region as under :
    Factor Code  Factor Description
    CD0201         Region 1_Asia
    CD0202         Region 2_Middle East
    Also I have setup the Profit Centers in Dimension 3 Area as under :
    Factor Code   Factor Description
    CD0201A       India
    CD0201B       Pakistan
    CD0201C       China
    CD0202A       Syria
    CD0202B       Saudi Arabia
    I have created a udf in the Business Partner Header as U_DCostRegion wherein I have set Valid Values for Field as under which the user will put
    Value            Description
    CD0201         Region 1_Asia
    CD0202         Region 2_Middle East
    In the Business Business Partner Territory the BP has been defined as per the Dimension 3 Area. In which for e.g C0001 territory is India, C0002 territory is Pakistan and so on
    Now my requirement :
    I want that if the user is doing a Sales Quotation or Sales Order from the Sales Quotation then in the Row level Dimensions column of Regions and Area automatically through FMS it should populate the data accordingly as to what is put in the BP master Data. For Example user is doing Sales Quotation for C0001 whose Area ( U_DCostRegion) is set as CD0201 Region 1_Asia and Territory is set as India then automatically in the Sales Quotation row columns of Region and Area values of CD0201 Region 1_Asia and CD0201A India should come.
    I think this requirement can be fullfilled by FMS but I am not able to do it from my end. Please advise what should be the FMS for it.
    Regards,
    Depika

    Dear Rahul,
    I am able to put the Region from the Business Partner UDF to the document Row of Region column with the FMS as SELECT $[OCRD.U_DCostRegion] as in the U_DCostRegion I had set Valid Values for Field as
    Value    Description
    CD0201 Region 1_Asia
    CD0202 Region 2_Middle East
    As in the Dimension in Marketing document it takes the Factor Code e.g CD0201 so I am able to handle it with the above FMS.
    But for the Area dimension I am not able to make the FMS because in the marketing document it takes the Factor Code means the Factor Code e.g CD0201A and its not linked to the BP Territory Table of OTER.
    I want a FMS which is linked with the OTER Table also as such if in the BP the territory ( avaliable in base product BP > General Tab > Territory ( where its defined as India for BP C0001) should link to CD0201A which is the Factor Code wherein the Factor Description is India.
    please advise in this regard.
    Regards,
    depika

  • Error 'Specify account number' while posting a parked document through FBV0

    Hi,
    I am getting an error 'Specify account number' while posting a parked document through transaction FBV0.
    I am not able to figure it out as to what account number it is referring to. Since the document is parked I assume the GL account used has no problem. Please help.

    Hi,
    Try to change the Account number and then save or post the data. I think Once We Parking the Document it wont allow to post the data without changing.
    Try same scenario in the development its be useful
    Regards,

  • Error: While posting a G/L document through TC F-02

    Hi Friends,
    i am trying to post a G/L document through TC F-02 its giving the following Error
    "There is no item category assigned to G/L A/C No 20020/COA BCS.
    can any one help me out,
    Thanks
    RK

    Hi,
    When you are working in ECC 6.0 for the first time you will get this error.  Just go to SPRO search for Document Splitting and deactivate in new G/L
    If OK please assign points !!!!
    Srinivas Kommu.

  • POSTING G/L account documents through custom program

    While posting the documents through the tcode fb01,
    when I tick at PA segement button ASSIGNMENT TO
    PROFITABILITY SEGMENT screen opens, DERIVATION
    BUTTON is activated/enabled . But through a custom program when session is
    processed and when PA segement button is ticked on
    ASSIGNMENT TO PROFITABILITY SEGMENT screen, DERIVATION BUTTON is not visible. I can only see Continue, Next Page, Delete Assignment, and Cancel buttons. Where do I need to check this problem?

    Hi,
    Nope, in standard SAP you can not do that.
    You would need to develop your custom program for it.
    Regards,
    SDNer

Maybe you are looking for

  • IMessage working on iPhone but not on MacBook Pro or iPad Air

    I Am getting increasingly frustrated that iMessage is working on my iPhone but not on iPad or MacBook Pro.  I have tried settings system preferences, taking jabber off etc but still no joy. It's been two weeks now, can anybody help me please

  • RMI with SSL server authentification

    Hello, It is possible to implement a RMI over SSL client /server with only server authentification ? I'have got currently a RMI SSL client/server with mutual authentification. It includes that client must have a keystore but i don't want that. If any

  • Inbound idoc ordsp fm:IDOC_OUTPUT_ORDRSP

    my problem is  that idoc fails  when it comes in as a response of ORDCHG when user changes the delivery date in PO outbound idoc triggers with message type ORDCHG. Vendor sends the response as a confirmation of order via inbound idoc message type ORD

  • Help with video encoding

    Hello, I was wondering if anyone can explain the difference between "Progressive download from web server", and "Streaming from Flash Video Stream Service." What is the real difference, and why would I choose one optionover the other? Also, when enco

  • Help with ZIP files

    Hi guys, I'm having some problems with creating arhives of my files. When I compress them (control>creeate arhive) they are still the same size zipped or not. What am I doing wrong? Thanks