cancel
Showing results for 
Search instead for 
Did you mean: 

Generation of invoices in B1if for CFDI 3.3 (MX)

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Nicolas_Fuchs
Advisor
Advisor

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

Former Member
0 Kudos

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