Skip to Content
avatar image
Former Member

Generation of invoices in B1if for CFDI 3.3 (MX)

Hello

I'm trying to create invoices in B1if with the following template within the atom:

<Documents>
   <row>
                <CardCode></CardCode>
                <CardName></CardName>
                <DocDueDate></DocDueDate>
                <DocDate></DocDate>
                <NumAtCard></NumAtCard>
                <Series></Series>
                <Address></Address>
                <FederalTaxID></FederalTaxID>
                <ReserveInvoice>N</ReserveInvoice>
                <DocType>S</DocType>
                <DocTotal></DocTotal>
                <Comments></Comments>
                <U_B1SYS_MainUsage></U_B1SYS_MainUsage>
     </row>
</Documents>
<Document_Lines>
     <row>
                <ItemDescription></ItemDescription>
                <AccountCode></AccountCode>
                <LineTotal></LineTotal>
                <NCMCode></NCMCode>
                <CostingCode></CostingCode>
                <ProjectCode></ProjectCode>
      </row>
</Document_Lines>

I need my invoices can be created when the generation type in SAP B1 is "Generate" but I get this error in the scenario within B1if:

So the invoice is not created, but when I change the generation type to "Generate later", the invoice is created succesfully and it's possible to stamp it.

How I can know which are the missing parameters in order to create and stamp invoices with the generation type "Generate"?

Is it possible to know more information about this issue or if I need to configure something else in the scenario step?

Thanks

Jonathan

errorb1if.jpg (19.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 15 at 04:18 PM

    Hi Jonathan,


    the value 'S' for DocType will not work. You need to follow the enumeration of the DI-API /

    BoDocumentTypes . For service documents the value is "dDocument_Service".

    Regards, Nicolas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 18 at 06:32 AM

    Hi Nicholas,

    I've created an invoice in VB.NET with these parameters and the invoice was created and stamped succesfully

    but when I tried to replicate the invoice in B1if I got the same error with the XML document

    I don't know if I need to set more parameters in the atom

    Add comment
    10|10000 characters needed characters exceeded