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: 

FM for Order Operations

Former Member
0 Kudos

Hi,

Is there any fm to get the old and new data of order operations?

Any help would be highly appreciated.

Regards,

Pitambar

1 REPLY 1

Former Member
0 Kudos

Hi,

To get the old and new values you can use FM CO_BO_OPR_OF_ORDER_GET

 CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET'
   EXPORTING
     aufnr_imp           = v_aufnr
*    CHECK_DELETED       = ' '
     get_old             = 'X'
*    FLG_STATUS          = ' '
*    FLG_WORK            = ' '
*    SORT_BY_SEQ         = ' '
*    GET_ALT_SEQ         = 'X'
*    FLG_PROV            = ' '
*    FLG_QUAL            = ' '
*    FLG_CONV            = ' '
     flg_oproll          = 'X'
   TABLES
     afvgd_get           = it_new
     afvgt_old           = it_old.

Regards,
Gaurav

<b>Reward points if helpful</b>