Application Development 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: 

BAPI_ALM_CONF_CREATE issue

gouravkumar64
Active Contributor
0 Kudos

Hi All,

I am facing an issue with  BAPI_ALM_CONF_CREATE this BAPI.

When I am confirming order from se37 with this bapi ,it is working.

But when I am using this bapi in program, it is not working i.e order not confirming.

         gs_timetickets-conf_no = '0000279214'.

         gs_timetickets-orderid = wa_afvc-aufnr.

         gs_timetickets-operation '0380'.

         gs_timetickets-fin_conf = 'X'.

         gs_timetickets-exec_start_date = '25.07.2015'.

         gs_timetickets-exec_fin_date = '25.07.2015'.

         gs_timetickets-CONF_TEXT = 'Test data'. "short Text

         gs_timetickets-ACT_WORK = '0'. "Actual work

        APPEND gs_timetickets TO gt_timetickets.


CALL FUNCTION 'BAPI_ALM_CONF_CREATE'

*      EXPORTING

*        post_wrong_entries = '1'

*       TESTRUN            =

       IMPORTING

         return             = ret

       TABLES

         timetickets        = gt_timetickets

         detail_return      = gt_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

     EXPORTING

        wait = 'X'.

       .


Can anyone help in this?




Thanks

Gourav.

1 ACCEPTED SOLUTION

gouravkumar64
Active Contributor
0 Kudos

Resolved, in this case bapi_transaction_commit is not working &

solved using SET UPDATE TASK LOCAL then bapi then commit work.

4 REPLIES 4

jogeswararao_kavala
Active Contributor
0 Kudos

Whether individual operations are confirming ?

0 Kudos

Hi,

I just hard code one operation for test.this is confirming from IW41& FROM bapi.

But not from program !

Thanks

Gourav.

0 Kudos

You giving confirmation number? Is it external numbering?

gouravkumar64
Active Contributor
0 Kudos

Resolved, in this case bapi_transaction_commit is not working &

solved using SET UPDATE TASK LOCAL then bapi then commit work.