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: 

Transaction BD87

former_member202335
Participant
0 Kudos

Hello,

I am using the BD87 transaction to process 2 IDOCs. During processing of the 1st IDOC, the function module SET is called which sets the value of 'active' variable (defined in the top include of the function group) to 'X'. When the processing of the 1st IDOC is complete and the 2nd IDOC is being processed, I find that the value of the variable 'active' is blank.

Are successive IDOCs in the BD87 transaction processed in different sessions? I believe that only if the answer to this question is yes, will the variable be automatically set to blank during the processing of the 2nd IDOC.

Please let me know.

Best regards,

Divyaman Singh Rawat

1 REPLY 1

Former Member
0 Kudos

unfortunately the IDOCS do seem to be processed within the same session, and you will find set parameters retain their value from previously reprocessed IDOCS.

Only by green arrow back out of the BD87 and going into the transaction for the second IDOC can you be sure all parameters will be initialised.

Or make sure the value is reset during processing of the second IIDOC.