cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc ACC_DOCUMENT03 - entry in ITEMNO_ACC

a_meijer
Explorer
0 Kudos
3,789

Hello,

We want to use IDoc ACC_DOCUMENT03 to post journal entries from a non-SAP system to SAP ECC 6.0. Process code used (entered in WE20 - Partner profiles) is BAPI and function module BAPI_IDOC_INPUT1. We are having issues to determine what is the correct entry for the IDoc field ITEMNO_ACC for those IDoc segments that do not contain any information.

If we do not enter an ITEMNO_ACC in an empty segment, we receive error messages in the IDoc like for example "No currency line exists for line item 0000000000". If we do enter an ITEMNO_ACC in a empty segment, we receive error messages like for example "Required field TAX_CODE was not transferred in parameter ACCOUNTTAX". Removing the IDoc segments that do not contain any information prevents the error messages, but is not the desired solution as it can differ per IDoc which segments will contain information.

What is the correct entry for ITEMNO_ACC for segments that do not contain any information? How to prevent error messages for segments that do not contain information and where ITEMNO_ACC is blank?

Thanks and kind regards,

André

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Meijer,

ITEMNO_ACC is used to link the segment (GL-E1BPACGL09,AP-E1BPACAP09,AR -E1BPACAR09 etc) to the corresponding Amount segment (E1BPACCR09).

For example there is E1BPACGL09 (with GL account 604100)  with ITEMNO_ACC as 1 and also a segment E1BPACCR09 with the ITEMNO_ACC as 1 (with amount 100), then a line item will be posted for GL account 604100 with amount 100.

Regarding the error " "Required field TAX_CODE was not transferred in parameter ACCOUNTTAX". let me know which segment is red. is it E1BPACTX09 segment?

Regards,

Rajesh

a_meijer
Explorer
0 Kudos

Hello Rajesh,

Thanks for your reply. We do know the ITEMNO_ACC is used to to link the different segments in the IDoc.

The error is in segment E1BPACWT09 Withholding Tax Information. At least the fields reagrding the runtime error are only present in this segment.

Thanks and kind regards,

André

Former Member
0 Kudos

Hi Meijer,

If a segment is not required then we should remove that segment.

There should not be any impact with this as we donot use all the segments of the bsic type in idoc.

Regards,

Rajesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All/Meijer,

Can any one tell me how the above issue can be solved. Even I am getting the same run time error..

Thanks

Former Member
0 Kudos

Hi Vikash,

Wha is the error segment name. What is the issue description.

Regards,

Rajesh

a_meijer
Explorer
0 Kudos

Hello Vikash,

This issue was caused by the middleware delivering the data for the IDoc. For every line item segment there was a header segment being sent to SAP. Even if there wasn't any data for the line item segment.

Solution was to don't let the middleware sent any information to SAP for empty segments. So we didn't have to remove any segments in SAP itself (i.e. no need to create a customer specific IDoc based on ACC_DOCUMENT03). If we receive an IDoc now in SAP from our middleware system, we only see (for example in transaction WE02) the segments which actually have data.

Kind regards,

André

0 Kudos

Hi,

Try debugging the Idoc using transaction WE19 and tell me on what condition it is getting failed.

Thanks.

Regards,

Rachit.

a_meijer
Explorer
0 Kudos

Hello Rachit,

When we do not enter a line item number in empty segments, we receive a runtime error. It shows a runtime error in program SAPLACC19 in "FILL_WITH_TAX". In the source code the termination point is in line 63 of the (Include) program LACC9F80.

Line     SourceCode

59     performconvert_curr_to_internal USING

60     'ACCOUNTWT' wt_tabix:

61

62     <cr>-waers     space <wt>-BAS_AMT_TC     gs_accwt_WT_QSSHB,

>>     lc     space <wt>-BAS_AMT_LC     gs_accwt_WT_QSSHH,

64     lc2     space <wt>-BAS_AMT_L2     gs_accwt_QSSH2

The odd thing is, it looks like it is dumping when processing withholding tax. But we do not use withholding tax. When we do enter a line item number in the withholding tax segment, there is no runtime error.

Thanks and kind regards,

André

0 Kudos

Hi Meijer,

May be the field withholding tax is compulsory. I think you should consult a FICO consultant.

Thanks.

Regards,

Rachit.