on 03-10-2016 10:33 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can manage the attachments list using the available BADI
Regards,
Vasilis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, this has different badis
App Extensibility: Approve Supplier Invoices - SAP Fiori 1.0 for SAP ERP - SAP Library
You need to check it
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.