Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI get IDOCS list

Former Member
0 Likes
3,447

Hi,

After some unsuccesful resarches i'm come here asking for you help.

I tried some BAPI in order to get idocs list, or at least an IDOCS display, but none of them was working except for SPI_IDOC_READ but i get only one IDOC.

I tried :l BAPI_DOCUMENT_GETLIST, BAPI_IDOCAPPL_DISPLAY, DSD_ME_IDOCSTAT_EXTRACTOR, EDI_DISPLAY_IDOCS, IDOCS_OUTPUT_TO...

Perhaps i didn't have the right syntax, could you tell me which BAPI i shoud use and with which syntax please ?

PS: I'm developping with Windev

Thanks for reading me, hope you would be able to help me.

5 REPLIES 5
Read only

Former Member
0 Likes
1,759

Hi Alexandre,

I afraid that there no BAPI (or RFC enabled function module) available to get the entire IDOC list. In SAP, the details are stored in the tables EDIDC and EDID4.

You might want to contact the SAP consultants to develop a custom RFC enabled function module for getting the list of IDOC within a data range. You can call the custom RFC enabled function module from your Windev system.

I will also search to see if there are any standard BAPI's available for your requirement.

Cheers

~Niranjan

Read only

0 Likes
1,759

Hi Niranjan,

If there is any BAPI for this, do you think there is one for have all IDOCS Number and then i could treat them with SPI_IDOC_READ for example, or it could be enough if i can get IDOCS in a file or something like that, but threads about exporting idocs wern't very clear for me.

Read only

0 Likes
1,759

Hi,

Do you need the entire IDOC data, which includes control record, data records and status records? Or do you need only the IDOC number from SAP?

Cheers

~Niranjan

Read only

0 Likes
1,759

Firstly i'll need all IDOCS number then the entire IDOC DATA which i can have with SPI_IDOC_READ I supose

Thanks Niranjan for helping me.

Read only

0 Likes
1,759

Hi,

I got the FM IDOC_DATE_TIME_GET, but this is of very little use. You might want to contact the SAP consultants to develop a custom RFC enabled function module for getting the list of IDOC within a data range. You can call the custom RFC enabled function module from your Windev system.

Then you can use the FM SPI_IDOC_READ to read all the IDOC data.

Cheers

~Niranjan