cancel
Showing results for 
Search instead for 
Did you mean: 

Table name for Attachment Block in CRM WEB UI Screen

former_member219737
Participant
0 Kudos


Hi,

  Can anyone guide me in solving below task.

  I want to know the table name where the flag is getting saved when the document is attached in "ATTACHMENT" assignment block.

  When i SAVE the document, I want to perform some validations based on the document attached to it.

  I have the screen shot of it.

 

regards,

Karthik s

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Karthik,

You can use below class to get all the attachments for the transaction.

DATA:  ls_business_object   TYPE sibflporb,

            lt_properties_result TYPE crm_kw_propst.

CALL METHOD cl_crm_documents=>get_info

     EXPORTING

       business_object       = ls_business_object

     IMPORTING

       ios_properties_result = lt_properties_result.

Rgds,

Shobhit

former_member219737
Participant
0 Kudos

Hi,

   Thanks for your valuable reply.

   Can u please suggest me an idea of validating an attachment from "OBJECT ID" of specific document.

  

  I feel we will be receiving all the document if we specify the BUS OBJECT of that document.

Can u suggest an idea of it.

Regards,

Karthik S

Former Member
0 Kudos

You have to pass the specific transaction guid in ls_business_object.

Ex:

ls_business_object-instid = order_guid.

ls_business_object-typeid = lv_object_type.

ls_business_object-catid  = 'BO'.

Then to validate the specific attachment you have to read the internal table lt_properties_result with name = your attachment name.

Hope it's clear now.

Rgds,

Shobhit