Application Development 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: 

Getting number of currently processing IDOC

Former Member
0 Kudos
92

Hi to all

I'd like to ask for your help in such a case:

I've generated (via BDBG) inbound and outbound FM, based on my BAPI FM. During IDOC processing I need to know number of IDOC which my BAPI currently porecesses. I coud modify inbound INPUT_* function which calls my BAPI, but it is generated therefore strongly not recommended to be modified. Any ideas how to pass this information?

I've been thinking about some global communication areas (sth. like GET/SET), but it's likely that system will process in few paralell threads which make synchronization, timing and many other problems with that approach.

Any help will by appreciated

regards

Maciej Gottfried

4 REPLIES 4

ferry_lianto
Active Contributor
0 Kudos
65

Hi,

Why don't use FM IDOC_INBOUND_WRITE_TO_DB or IDOC_INBOUND_SINGLE to process the IDoc data instead of calling FM IDOC_INPUT_*?

These FM will return the IDoc number for inbound process.

Regards,

Ferry Lianto

Former Member
0 Kudos
65

I'm not calling this FM manually, IDOCs are processed immediately as they appear and mechanism is standard.

0 Kudos
65

Hi,

Check the IDOCINPUT function module for some user exits and capture the idoc number.

REgards,

Ravi

0 Kudos
65

I've checked that - no user exits found