cancel
Showing results for 
Search instead for 
Did you mean: 

attachments using Store Business documents option for Approve Requisitions(PR)

Former Member
0 Kudos

Hi Team,


Our requirement is store the attachments using Store Business documents option for Approve Requisitions(PR) and wanted to show the same attachements in FIORI app, could you please help in this regards ASAP.

Where as we are able to see the attachments that are uploaded using the Create --> attachments option, but not from Store Business documents.

Regards,

Vijay Daniel

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Daniel,

we had the same Problem with the Approve Requisitions App but fixed it.

You have to implement the Badi GBAPP_APV_PR_RDP.

1. In there you have to modify first of all the Method IF_GBAPP_EX_APV_PR_RDP~CHANGE_DATA_ITEM_DETAILS_API for position Approvement or the Method IF_GBAPP_EX_APV_PR_RDP~CHANGE_DATA_HEADER_DETAILS_API for overall Approvement.

In the structure CS_PR_ITEM_DATA_EXPANDED you can find the deep structure Attachments

Here you can manipulate the List of Attachements that will be shown in the App. With the BAPI  BDS_ALL_CONNECTIONS_GET  you can get a list of all Business Documents attached to the requisition

Example:

CALL FUNCTION 'BDS_ALL_CONNECTIONS_GET'
   EXPORTING
     CLASSNAME              = 'BUS2105'
     CLASSTYPE              = 'OT'
    OBJKEY                 = att_object_key  (PR Number)
  IMPORTING
    COUNT                  = l_att_count
   TABLES
     ALL_CONNECTIONS        = lt_con
           .


2. In order to be able to display the attachments from the App you have to modify the Method IF_GBAPP_EX_APV_PR_RDP~CHANGE_ATTACHMENT_CONTENT_API of the BADI

This method will be called if someone clicks on the attachment from the App.


With the BAPI  SCMS_AO_TABLE_GET you will get your business document in binary table.


Than you build your XSTRING from that and put this into CS_STREAM (Export parameter).


And this was it.For us it works perfectly. Try it out.

Vasilis
Advisor
Advisor
0 Kudos

Hi,

you can manage the attachments list using the available BADI

  • GBAPP_APV_PR_RDPYou can use this BAdI to change the runtime data that is returned by the Gateway service and displayed on the user interface of the Approve Requisitions app. This includes the use of pictures, changing the list of attachments and notes displayed, and changing the workflow. For more information, see the BAdI documentation and the example implementation.


Regards,

Vasilis


Former Member
0 Kudos

Hi Vasilios Lianos


Hope you well,


Would the same badi work for the Approve Supplier Invoice App ?


Thank you

Vasilis
Advisor
Advisor