2012 Nov 13 3:36 PM
Hi all,
I am using bapis BAPI_INSPOPER_RECORDRESULTS and BAPI_INSPLOT_SETUSAGEDECISION to input records and get decision usage.
The first bapi executes fine, then I call bapi to commit work. No error occurs.
At QE51N I can see the operation details, all ok, all records with status 5 (processing is completed). Very good.
But...
Then I go to QA03 -> Usage decision tab -> details button and navigate in characteristics grid, the fields "status" and "valuation" were not updated!
Continuing process, I call the BAPI_INSPLOT_SETUSAGEDECISION, but it returns the correct error "short-term characteristics are still open".
How to update status fields? Anyone know that?
I filling bapi fields evaluated = 'X', evaluation = 'A' (accept) and closed = 'X'.
Thanks in advance.
Best regards.
2012 Nov 21 7:12 AM
Hi all,
I am using bapis BAPI_INSPOPER_RECORDRESULTS and BAPI_INSPLOT_SETUSAGEDECISION to input records and get decision usage.
The first bapi executes fine, then I call bapi to commit work. No error occurs.
At QE51N I can see the operation details, all ok, all records with status 5 (processing is completed). Very good.
But...
Then I go to QA03 -> Usage decision tab -> details button and navigate in characteristics grid, the fields "status" and "valuation" were not updated!
Continuing process, I call the BAPI_INSPLOT_SETUSAGEDECISION, but it returns the correct error "short-term characteristics are still open".
How to update status fields? Anyone know that?
I filling bapi fields evaluated = 'X', evaluation = 'A' (accept) and closed = 'X'.
Thanks in advance.
Best regards.
2012 Nov 21 7:12 AM
2012 Nov 21 9:56 AM
Thanks Yaseen!
I have only one note about the sample code to others that have the same problem.
I must have to pass char_results and single_results to function BAPI_INSPOPER_RECORDRESULTS.
That was my mistake, I was passing only single_results.
CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
EXPORTING
insplot = pa_insp
inspoper = pa_inso
insppointdata = l_inspoint
IMPORTING
return = return
TABLES
char_results = l_char_resultsnew
sample_results = l_sample_results_new
single_results = l_single_results
returntable = l_return.
2012 Nov 21 10:46 AM
Hi Rodrigo,
Glad to know that your problem is solved
BR,
Yaseen
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |