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

CO01 CO02 COMMIT

Former Member
0 Likes
993

hy expert, i have the requirment to fill a custom table after a save on c01 or co02 is any badi or user-exit that i can use?

i'm on ecc6. i watched for enhacement point on CO_ZV_ORDER_POST but there are not after the commit. just after the commit there is a leave to transaction . how can i solve this issue?

Regards.

4 REPLIES 4
Read only

Former Member
0 Likes
760

Hi

Try this way...

Develop one function module,write your code in this FM. In ehancement call function module in update task.

CALL FUNCTION 'Function Module Name' in UPDATE TASK.

Regards,

Raghu.

Read only

Former Member
0 Likes
760

Hi,

Use the available enhancement point before the commit statement, and call in update task. So it will be called when commit work is executed.

Regards

Rajesh V

Read only

0 Likes
760

your hints were usefull but it seems not work .

data: wa_afpod  TYPE  AFPOD,
      wa_CAUFVD  TYPE  CAUFVD.
CALL FUNCTION 'CO_BT_HEADER_POSITION_READ' IN UPDATE TASK
  EXPORTING
    aufnr_act                = AUFNR_MES
*   POSNR_ACT                =
*   FLG_ONLY_CAUFV_BT        = ' '
 IMPORTING
   AFPOD_EXP                = wa_afpod
   CAUFVD_EXP               = wa_CAUFVD
* EXCEPTIONS
*   HEADER_NOT_FOUND         = 1
*   POSITION_NOT_FOUND       = 2
*   OTHERS                   = 3
          .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
if not wa_afpod is initial.
types: it_test type STANDARD TABLE OF ztest.
data:     wa_test TYPE LINE OF it_test.
MOVE-CORRESPONDING wa_afpod to wa_test.
insert ztest from wa_test.
endif.
ENDIF.

but the table is not filled

Read only

0 Likes
760

solve my issue a parameter wasn't correct.

Points rewarded.

thanx you all.