Question:
We want to set up a procedure in which all the invoices which are entered in the legacy system are to be uploaded once on a daily basis through a middleware"msq" to sap fb70 or fb75 with idocs.
Can anyone advise me on to which inbound idoc should be used to transfer data on a daily basis to fb70/fb75. I tried
invoic02but the field names in the idoc don't match the field names of Fb70/fb75. I tried fidccp02 but whenever I enter a line item it gives me an error that accounting transaction not permitted to post in fi/co.
help will be appreciated.
Answer:
You need INVOIC02, that will load the idoc with function module IDOC_INPUT_INVOIC_FI
you can check out the code in IDOC_INPUT_INVOIC_FI to see which fields to use.
Answer:
Thanx for ur reply Matt but the fields that are present in invoic02 donot match most of the fields of FB70. The fields in Fidccp02 match them only.
Regards,
Tayyab
Answer:
Hello,
try with BAPI_ACC_INVOICE_POST. At least you have user-exit to fill missing fields
Not much of help,
Gordan
_________________
Proud member of Tuly Idiot club
Answer:
Hey Gordan and Matt,
I am using Fidccp02
message type:Fidcc2
f.module:idoc_input_fidcc2 (description"send entire docs user exit 005,006")
Excuse my ignorance but is this a correct inbound idoc to use when I need to transfer invoices made in an external software to Sap fb70 on a daily basis through a middleware? Because all of the fields present in the idoc match fb70 fields? the problem is that it gives me n error message of 51 again and again when i test it through we19 saying that accounting transaction not permitted to post in fi/co. Is there something wrong with the idoc or customizing?
thanks in advance for ur reply.
Answer:
Hi tayyab,
Sorry I didn't have more time to reply last week.
The INVOIC02 IDOC is used for MM, SD and FI invoices, so it's fields need to be generic, therefore it may not look to you like the fields match, but they do.
Please see SAP OSS note 150120 - "EDI INVOIC01: Posting external invoices into FI" for an exact description of how the invoic idoc is used in FI.
Also, note 546604 is a very good one, explaining the config needed, mandatory fields, and user exits you can use.
Thanks,
Matt.
Answer:
Thanks for ur reply Matt I will take a look at it. Matt I have a field paojbnr which is the profitability segment field in fb70 and the idoc that i am using, the same field is present. But in fb70.. prof segment has fourteen additional fileds which are not present in invoic01 or fidccp02.
1- How would i populate these fields?
2-whether I have to put the prof segment number and the values in the prof segment linked to the number would automatically get populated? if that is the case where can i find the prof segment number?
Thanks in advance