Hi,
I am trying to create an inbound idoc in a particular client and trying to post it in the same client using standard function module.
IDoc type is CREAMAS and Basic Type is CREAMAS04. The function module to process this IDoc is "IDOC_INPUT_CREDITOR".
I am building the data records, control data inside my program and passing it to the function module "IDOC_INBOUND_WRITE_TO_DB". This function module creates an IDoc but it goes in status 56. I could see the error message from Subroutine F21_IDOC_INSERT_WITH_FAIL_STAT in program SAPLEDI1. When i manually process the idoc in we19 data is posted to SAP sucessfully.
Can anyone help me why my idoc is going to status 56 though all the segments are correct?
Thanks
Slasher