‎2012 Jul 13 1:06 PM
Hi,
Have anyone use the FM AC_FLUSH_CALL in their program?
Background:
I am working on a program which creates PO's in Parallel RFC's.
It takes an file with PO details and it calls BAPI_PO_CREATE1 to create the PO's.
Since the performance was not good, we decide to introduce parallel processing.
Say, you have a file with 1000 lines, the program will display the details in an ALV.
By details, I meant, whether PO can be created or error messages if it cannot be created.
There is a SAVE button in the ALV, when you press that, it will create PO's for the lines where there are no error messages.
Issue:
When you upload the file first time (BAPI in test mode), the program works well, it displays the ALV with the details.
Now when you press SAVE, it goes through the same path of execution (BAPI with COMMIT) and it gave a dump.
The dump was 'RPERF_ILLEGAL_STATEMENT'.
The point of dump was at CALL FUNCTION 'OLE_FLUSH_CALL' DESTINATION OLE_DESTINATION.
When I checked one SAP note, it says that, in the Response of a Parallel RFC, you should not call another RFC.
Well, I am not calling an RFC explicitly, but a standard RFC is triggered for clearing the RFC or Automation queue.
So I used CL_GUI_CFW=>FLUSH to clear the queue, but with no luck.
Then I tried using the FM AC_FLUSH_CALL with SYSTEM_FLUSH = 'X' and it worked.
This is an internal FM and it says that this should not be called directly.
My question is what are the side effects for using this?
Thanks,
Shambu
‎2012 Jul 16 10:06 AM
‎2012 Jul 16 10:06 AM
‎2012 Jul 16 10:23 AM
Hi Shambu,
It is not that "should not be called directly" . Its is "
NO DIRECT CALLS TO CONTROL FRAMEWORK FROM THIS FUNCTION MODULE"
You can also use CL_GUI_CFW=>UPDATE_VIEW instead of directly calling AC_FLUSH_CALL update_view (Biblioteca SAP - SAP Calendar Control)
‎2012 Jul 16 6:04 PM
Kesav,
It worked. Thanks!
NO DIRECT CALLS TO CONTROL FRAMEWORK FROM THIS FUNCTION MODULE - Doesn't this mean don't call it directly?
‎2014 Mar 21 2:21 AM
Hi Shambu,
I have a requirement to
1) Output data from an internal table into excel, and
2) Create a chart from the data in excel
So far I have been able to export the data using OLE calls, created a chart object,.
My question:
1. How to put Data Lables
2. How to put Data Table under the Chart
3. How to rename the series names.
Below is the recorded Macro. I don't know how to convert it to ABAP.
Sub Macro1()
ActiveSheet.Shapes.AddChart.Select
ActiveChart.ChartType = xlColumnClustered
Application.CutCopyMode = False
ActiveChart.SetSourceData Source:=Range("B1:E4")
ActiveChart.SeriesCollection(1).Name = "=Sheet2!$A$2"
ActiveChart.SeriesCollection(2).Name = "=Sheet2!$A$3"
ActeChart.SeriesCollection(3).Name = "=Sheet2!$A$4"
ActiveChart.SetElement (msoElementDataLabelOutSideEnd)
ActiveChart.SetElement (msoElementDataTableWithLegendKeys)
End Sub
I have attached the current output and expected output.
I have searched about this in google but i could not find any solution for this.
Your help is greatly appreciated.
Current Output:
Expected Output:
I hope that I have explained my query clearly.
Thanks,
Lakshmi.