cancel
Showing results for 
Search instead for 
Did you mean: 

Having an issue calling BOPF multi Node instance ACTION via OData Model Functionimport

S0019779716
Newcomer
97

Hi Folks,

we have a scenario to call a BOPF Multi Node Instance Action(Approval) for the Invoices from FIORI List report application, we were successfully able to use the ODatamodel FunctionImport method for the single node BOPF->CDS View instance however when trying to use the MultiNode instance of the BOPF action, end up into error, Kindly guide what would be the best way to have the ODatamodel function Import method handling Multi Node Instance BOPF action. 

View Entire Topic
RaquelSouza
Explorer
0 Kudos

 

Good Afternoo
My Name is Raquel - Brazil

Yes! In the SAP R/3 system, you can create line charts using the SAP standard graphical class or by exporting data to Excel for visualization.

Options to Create a Line Chart in SAP R/3:

1️⃣ Using the cl_gui_chart_engine Class (SAP GUI Graph)

SAP provides the cl_gui_chart_engine class, which allows you to generate charts directly within the system.

Example of ABAP code using cl_gui_chart_engine:

 

abap
CopiarEditar
 
 

DATA: gr_chart TYPE REF TO cl_gui_chart_engine,
gr_container TYPE REF TO cl_gui_custom_container,
gt_data TYPE TABLE OF chart_sdata,
gs_data TYPE chart_sdata.

" Criar container para exibir o gráfico na tela
CREATE OBJECT gr_container
EXPORTING
container_name = 'GRAPH_CONTAINER'.

" Criar instância do gráfico
CREATE OBJECT gr_chart
EXPORTING
parent = gr_container.

" Adicionar dados ao gráfico
gs_data-value = 100.
gs_data-category = 'Jan'.
APPEND gs_data TO gt_data.

gs_data-value = 150.
gs_data-category = 'Fev'.
APPEND gs_data TO gt_data.

gs_data-value = 200.
gs_data-category = 'Mar'.
APPEND gs_data TO gt_data.

" Configurar o gráfico
gr_chart->set_data( EXPORTING dataset = gt_data ).
gr_chart->set_chart_type( EXPORTING chart_type = 'LINE' ).
gr_chart->refresh( ).

This code creates a line chart within a SAP GUI container.


2️⃣ Exporting to Excel and Creating the Chart There

If the chart is complex or needs to be viewed outside SAP, you can generate an ALV report, export the data to Excel (ALV -> Export -> Spreadsheet), and create the chart in Excel.


3️⃣ Alternative: Creating Charts in Fiori/SAP UI5

If the company is using SAP Fiori and S/4HANA, another option is to build a Fiori application with SAP UI5 and display charts using libraries like VizFrame Charts.

 

"Good luck!!
I hope I helped!!!" 🚀😊 

rakellsouza_0-1743018301675.png