cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine user who is processing a certain document

Former Member
0 Kudos

Hello everyone,

Sometimes when we try to Change a Bid Invitation or an Auction document in SRM 4.0, we get the following message:

"Document is already being processed; Try again later".

This message is defined as message number 442 in transaction SE91 (BBP_PD message class). In this same message class we have message number 045, which is defined as follows:

"User & is already processing this document. Please try again later"

We would like to know if we can start using this second message instead of the first one, so that we can identify which user is processing the document that we are trying to modify. For that, we also need to know what adjustments need to be done in order to make it possible to use message number 045 instead of 442.

Thanks in advance!

Henrique Hermont

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

We've decide to acess SM12 every time we get the blocking message.

Former Member
0 Kudos

Hi Henrique,

In SRM, you can use the message control config to control and influence your messages. Please navigate to the following path or make the same changes in table T100. <u><b>(if the configuration doesnot work)</b></u>

SPRO->Cross application components->message control->influence message control and then set for Object BUS2200, your current requirement.

i.e. Setting Message Number 442 to Warning and message 045 to Error.. (In Config or table T100; Message Class BBP_PD and MSGNR 442 to W from E)You can use this setting in Confunction with the BBP_DOC_CHECK_BADI to use Error 045 instead of number 442.

443 will be called in standard document check, but since it is flipped to a warning, the BBP_DOC_CHECK_BADI will ensure and throw the 045 as an Error. You can pick also pick the user name processing the document in the document check and display the message as:

<b>"User Henrique is already processing this document. Please try again later"</b>

Hope this info helps !!

Thanks,

Sundeep

Former Member
0 Kudos

Hi Sundeep,

We went to SPRO->Cross application components->message control->influence message control. However, there were only two other message numbers available in the F4 selection. Consequently, we first went to table BBPC_PDMSG and created two entries (for MSGNR 045 and 442). After that, we were able to include these entries in the aforementioned path at SPRO.

Although you've mentioned BBP_DOC_CHECK_BADI as an alternative to control and throw the appropriate messages, we haven't figured out how we can capture which user is already processing the document. Since the BBP_DOC_CHECK_BADI importing parameters don't seem to be able to help with that, should we use <field symbols> in the BADI?

And lastly, instead of throwing MSGNR 442 as a Warning message, can't we just set it field XIGNO = 'X' in table BBPC_PDMSG so that we can deactivate it in table V_T100C? (For that, we would need to know what Functional Area must be chosen in order to make the accurate settings in table V_T100C. Our guess is that it would be V_T100C).

Thank you very much!

Henrique Hermont

Former Member
0 Kudos

Hi

Start Transaction SM30 to maintain database view BBPV_PDMSG.

<u>Please maintain record in BBPC_PDMSG with following values (say) -></u>

App area Msg no Obj type Key Key All Std switch off

BBP_PD 429 BUS2200 <blank> <blank> W E <uncheck>

Hence please switch off that error msg in the IMG. You may need to add that error msg data into the table BBPC_PDMSG first followed by the IMG configuration.

<u>Afterwards you can set the message type of the corresponding message to 'Warning Message' via IMG activity 'Influence Message Control' (Enterprise Buyer -> Cross-Application Basic Settings -> Message Control</u>

<u>Please refer to few SAP OSS notes, which will help -></u>

Note 710787 - EBP: Message control: Additional messages (2)

Note 552049 - EBP: Message control: Additional messages

Note 770938 - Inappropriate error message after implementing Note 752868

Note 816231 - Error message can no longer be customized after Note 770938

Hope this will help.

Regards

- Atul

Former Member
0 Kudos

Hi gurus,

We have managed to create entries in table BBPV_PDMSG and to set message number 442 as 'warning'.

What we HAVEN'T managed to do yet is to capture which user is processing the document. Neither have we found a way to display the message. Sundeep has mentioned DOC_CHECK_BADI but we haven't figured out how to do that.

We understand that the user who is processing (and consequently blocking) the document is a program variable that needs to be exported to the message function. We thought of using an ABAP command such as sy-'blocker' to capture which user is processing the document, but we are not sure if that's what should be done...

Could you all help us with that?

Thanks again!

Henrique Hermont

Former Member
0 Kudos

Hey Henrique,

You could probably use the BBP_DOC_CHECK_BADI and check the locked entries in transaction SM12 for the corresponding Bid Invitation and then pick the user name from there?

Hope this resolves your issue mate !!

Sundeep