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_ALM_CONF_CREATE issue

gouravkumar64
Active Contributor
0 Likes
3,656

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
Read only

gouravkumar64
Active Contributor
0 Likes
2,641

Resolved, in this case bapi_transaction_commit is not working &

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

4 REPLIES 4
Read only

jogeswararao_kavala
Active Contributor
0 Likes
2,641

Whether individual operations are confirming ?

Read only

0 Likes
2,641

Hi,

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

But not from program !

Thanks

Gourav.

Read only

0 Likes
2,641

You giving confirmation number? Is it external numbering?

Read only

gouravkumar64
Active Contributor
0 Likes
2,642

Resolved, in this case bapi_transaction_commit is not working &

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