cancel
Showing results for 
Search instead for 
Did you mean: 

check the status of the content server

Former Member
0 Kudos

Hello

I'm working in EBP system. I had problems with attachments when the content server failed. In fact, the attchments are stored in the content server. the consequence is that the table BBP_PDATT which referes with all attachements contain two fields empty.

So I would like to display an erroe message like "you can not save attachements for the moment" when the content server is bound.

Does any module function that can get the status of the content server?

Thank you for your help.

peggy.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Peggy,

I suggest you testing the FM 'BBP_ATTACH_METH_READ_CONTENT' with an existing attachment. If the content server is down you will receive an error message.

See this example:

FUNCTION ZBBP_CHECK_CONTENT_SERVER.

*"----


""Interface locale :

*" EXPORTING

*" REFERENCE(ACTIVE) TYPE FLAG

*" TABLES

*" ET_MESSAGES STRUCTURE BBP_PDS_MESSAGES OPTIONAL

*"----


CLEAR ACTIVE.

REFRESH ET_MESSAGES.

TABLES: BBP_PDATT.

DATA: LOIO_INITIAL TYPE SDOK_DOCID VALUE

'00000000000000000000000000000000',

IS_ATTACH TYPE BBP_PDS_ATT_T.

  • ES_ATTACH TYPE BBP_PDS_ATT_T,

SELECT * FROM BBP_PDATT WHERE LOIO_CLASS = 'BBP_L_DOC'

AND ( LOIO_OBJID <> SPACE

OR LOIO_OBJID <> LOIO_INITIAL )

ORDER BY CREATIONTIME DESCENDING.

EXIT.

ENDSELECT.

CHECK SY-SUBRC = 0.

CLEAR IS_ATTACH.

MOVE-CORRESPONDING BBP_PDATT TO IS_ATTACH.

CALL FUNCTION 'BBP_ATTACH_METH_READ_CONTENT'

EXPORTING

IS_ATTACH = IS_ATTACH

  • IMPORTING

  • ES_ATTACH = ES_ATTACH

TABLES

ET_MESSAGES = ET_MESSAGES.

IF ET_MESSAGES[] IS INITIAL.

MOVE 'X' TO ACTIVE.

ENDIF.

ENDFUNCTION.

If this FM help you, please, give me points.

Best regards,

Gianluca

Former Member
0 Kudos

Thank you for your help Gianluca!

It solves perfectly the problem.

Answers (0)