Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_INSPOPER_RECORDRESULTS and BAPI_INSPLOT_SETUSAGEDECISION not update

rodrigo_paisante3
Active Contributor
0 Likes
1,851

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,013

Check out this link:

Sample Code BAPI_INSPOPER_RECORDRESULTS

BR,

Yaseen

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.

3 REPLIES 3
Read only

Former Member
0 Likes
1,014

Check out this link:

Sample Code BAPI_INSPOPER_RECORDRESULTS

BR,

Yaseen

Read only

rodrigo_paisante3
Active Contributor
0 Likes
1,013

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.

Read only

0 Likes
1,013

Hi Rodrigo,

Glad to know that your problem is solved

BR,

Yaseen