Sometimes when you are creating a sales order, or posting invoice verification, creating a nota fiscal, you get the error that says: 8B115 It is not possible to determine the CFOP automatically or 8B569 CFOP not found for XYZ in sales order XYZ and etc;
This will happen when it is missing the correct assignments at the following tables:
- J_1BAON – CFOP for Incoming and returns of Incoming
- J_1BAPN – CFOP for Outgoings and returns of Outgoings
If you still can’t figure out what is the missing entry, you can put a breakpoint to the following functions according to the direction (Incoming/Outgoing).
1 – For Outgoing and Returns of Outgoing
- 1 – Go to Transaction SE37
- 2 – Enter Function J_1B_NF_CFOP_2_DETERMINATION
…
* The concept with generic read was abandoned. Only the exact version
* is used!
* do 2 times.
***** select with all parameters
READ TABLE it_bapn INTO wbapn WITH KEY
direct = cfop_parameters-direct
dstcat = cfop_parameters-dstcat
indus3 = cfop_parameters-indus3
itmtyp = cfop_parameters-itmtyp
spcsto = cfop_parameters-spcsto
ownpro = cfop_parameters-ownpro
matuse = cfop_parameters-matuse
indus1 = cfop_parameters-indus1
origin = space
version = i_version.
…
Add a breakpoint at “READ TABLE it_bapn INTO wbapn WITH KEY”
Then check the values on the structure cfop_parameters for the following fields:
- direct
- dstcat
- indus3
- itmtyp
- spcsto
- ownpro
- matuse
- indus1
- i_version
The results are the values that must be added to J_1BAPN.
2 – For Incoming and Returns of Incoming
- 1 – Go to Transaction SE37
- 2 – Enter Function J_1B_NF_CFOP_1_DETERMINATION
…
*——————————————————-
*—> Read CFOP with version of the region
*——————————————————-
*— access with all key fields
PERFORM read_cfop USING cfop_parameters-direct
cfop_parameters-dstcat
cfop_parameters-indus3
cfop_parameters-itmtyp
cfop_parameters-spcsto
cfop_parameters-matuse
cfop_parameters-indus2
lv_version
CHANGING cfop.
…
Add a breakpoint at “PERFORM read_cfop USING cfop_parameters-direct”
Then, check the values on the structure cfop_parameters for the following fields:
- direct
- dstcat
- indus3
- itmtyp
- spcsto
- matuse
- indus2
The results are the values that must be added to J_1BAON.
… and this should be the last post about CFOP 😉
Copyright Notice: © Leandro da Pia Nascimento and SAPBR.COM (SAP BRAZIL) WordPress Blog, 2013 to 2015. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Leandro da Pia Nascimento and SAPBR.COM with appropriate and specific direction to the original content.