Hi Experts,
This is regarding Idoc - Inbound.
Requirement:
1. Create a Function module which creates a Idoc which in turn update few entries on basis of input.
2. Output the table(return) with information (for eg: mr no,status as pass/fail , reason , type etc etc.)
Development Done till now:
FM created and idocs are being processed in background.Now how i should populate errors/success records?
I am using JOB_OPEN,SUBMIT RBDAPP01 ,JOB_CLOSE to process in background and after that i am fetching records from EDIDC,
using fm: IDOC_READ_COMPLETELY to get details about IDOC status.
Issues/Queries:
1. Number of records are high(around 60k-80k) so processing time will be more so when i submit data to process in background , will program will start with
other statements : select * from EDIDC and then FM: IDOC_READ_COMPLETELY
If "YES" then it can give me wrong information.
for eg: Submit got trigger , idoc will start processing , cursor back to next statement and i am doing select query it will give me 2/10/100 records in
pass status and same i will return but actually idoc is still processing and say after 30mins it completes entire processing with hardly
some errors.
how to get exact correct status for all processed idocs?
2. If theirs BAPI as well IDOC(which internally calls same BAPI) which one to use BAPI or IDOC.
Criteria: Data is coming from flat file but in huge amount.does IDOC process faster than BAPI?
Awaiting your expert comments.Thanks in advance.
P.S Status report is a part of this FM and will be exported to calling program.
Regards,
Arc.