‎2012 Mar 08 12:11 PM
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.
‎2012 Mar 08 1:20 PM
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.
‎2012 Mar 08 1:21 PM
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
‎2012 Mar 08 2:57 PM
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
‎2012 Mar 08 9:13 PM
solve my issue a parameter wasn't correct.
Points rewarded.
thanx you all.