SAP AFS Arun 增强 出口 介绍

    技术2025-10-21  15

    很多顾问在使用Arun时候很疑惑,既然Arun在后台配置有预留的出口,为什么没有示例以及Help说明呢?要知道出口很重要的一点,是需要告知用户交互的接口内容。

    其实在NOTES上,SAP为大家做了很多说明。特整理如下:

     

    Symptom

    A user wants to create a user exit in the ARun, however, the interface is not known. 

    Other terms 

    ARun, allocation run, user exit 

    Reason and Prerequisites 

    As a prerequisite, you must implement Note 520450.In order to prevent that customer-specific user exits are overwritten through an upgrade or the import of a FixPak, you must create the functionmodules in the customer namespace.This note is constantly updated, make sure that you always use the latest version. 

    Solution 

    In the following, the interfaces of the individual user exits are described:

    1. User exits in the allocation run: (Customizing path: AFS allocation run - User exits - Define and activate user exits)   a) User exit before the requirements filter Application: 11 - Filter: processing prior to filtering This user exit is _executed before the application of the requirements filter. Table parameter: - im_bedf LIKE j_3abedf_s - im_arve LIKE j_3aarve_s Exceptions: - error_message   b) User exit after the requirements filter Application: 7 - Check: After the first check (for example, cancellation date) This user exit is _executed after the application of the requirements filter. Table parameter: - im_bedf LIKE j_3abedf_s - im_arve LIKE j_3aarve_s Exceptions: - error_message   c) User exit after the selection Application: 10 - Selection: Processing after selection This user exit is _executed upon completion of the selection of the requirements and of the stocks. Table parameter: - im_bedf LIKE j_3abedf_s - im_best LIKE j_3abest_s - im_arve LIKE j_3aarve_s Exceptions: - error_message   d) User exit for the determination of customer-specific release rules Application: 5 - Release: Release rule determination This user exit is _executed before grouping/sorting. Table parameter: - im_bedf LIKE j_3abedf_s Exceptions: - error_message   e) User exit before sorting for filling the customer-specific sort fields Application: 4 - Sorting: Additional fields This user exit is _executed before sorting the requirements. Table parameter: - im_bedf LIKE j_3abedf_s Exceptions: - error_message   f) User exit for filling the customer-specific grouping fields Application: 1 - Grouping: Additional fields This user exit is _executed before grouping. Table parameter: - im_bedf LIKE j_3abedf_s Exceptions: - error_message   g) User exit for converting the group numbers Application: 3 - Grouping: Renaming group number This user exit is _executed after the specification of the group numbers. Table parameter: - im_bedf LIKE j_3abedf_s Exceptions: - error_message   h) User exit before the allocation Application: 12 - Allocation: Processing before the allocation This user exit is _executed before the allocation, namely per group or order in each case. Table parameter: - im_bedf LIKE j_3abedf_s - im_best LIKE j_3abest_s Exceptions: - error_message   i) User exit before the list display (allocation results) Application: 19 - Result: Processing before list display This user exit is _executed before the list display of the allocation results. Table parameter: - ch_bedf LIKE j_3abedf_s - ch_bdbs LIKE j_3abdbs_s Exceptions: - error_message   j) User exit before the update Application: 9 - Posting: Processing before posting This user exit is _executed before the _updateof the allocation results. Import parameter: Import parameter: - im_arnum LIKE j_3abdbs_s-arnum Table parameter: - im_bedf LIKE j_3abedf_s - im_best LIKE j_3abest_s - im_bdbs LIKE j_3abdbs_s - im_bdbs_r LIKE j_3abdbs_s - im_sobd LIKE j_3asore_s - im_sobs LIKE j_3asore_s - im_sova LIKE j_3asova_s Exceptions: - error_message   k) User exit after the update Application: 20 - Post: Processing after posting This user exit is _executed after the _updateof the allocation results. Import parameter: - im_arnum LIKE j_3abdbs_s-arnum - im_copar LIKE j_3aarco_s Table parameter: - im_bedf LIKE j_3abedf_s - im_best LIKE j_3abest_s - im_bdbs LIKE j_3abdbs_s - im_bdbs_r LIKE j_3abdbs_s - im_acrg LIKE j_3aacrg_s - im_refi LIKE j_3arefi_s - im_sobd LIKE j_3asore_s - im_sobs LIKE j_3asore_s - im_sova LIKE j_3asova_s Exceptions: - error_message 2. User exits in the allocation run during the release check: (Customizing path: AFS allocation run - User exits - User exits in the release check) Here, different levels are available for the user at which a customer-specific release check can be carried out. If you set export parameter ex_exit to 'X' in a user exit, the standard release check will NOT be _executed at this level; if this parameter remains ' ', the standard check is _executed after the user exit in addition   a) Group Import parameter: - im_groui LIKE j_3abedf_s-groui - im_relpa LIKE j_3arepa - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark Table parameter: - im_bdbs LIKE j_3abdbs_s - im_best LIKE j_3abest_s Exceptions: - others   b) Header Import parameter: - im_aufnr LIKE j_3abdbs_s-aufnr - im_relpa LIKE j_3arepa - im_recf LIKE j_3arecf - im_relcheck LIKE j_3aarco_s-release_check Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark Table parameter: - im_bdbs LIKE j_3abdbs_s - im_bdbs_r LIKE j_3abdbs_s - im_best LIKE j_3abest_s Exceptions: - others   c) Line group Import parameter: - im_aufnr LIKE j_3abdbs_s-aufnr - im_lngr LIKE j_3abedf_s-j_3alngr - im_relpa LIKE j_3arepa - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark Table parameter: - im_bdbs LIKE j_3abdbs_s - im_best LIKE j_3abest_s Exceptions: - others   d) Delivery group Import parameter: - im_aufnr LIKE j_3abdbs_s-aufnr - im_grkor LIKE j_3abedf_s-grkor - im_relpa LIKE j_3arepa - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark Table parameter: - im_bdbs LIKE j_3abdbs_s - im_best LIKE j_3abest_s Exceptions: - others   e) Item Import parameter: - im_aufnr LIKE j_3abdbs_s-aufnr - im_posnr LIKE j_3abdbs_s-posnr - im_relpa LIKE j_3arepa - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark Table parameter: - im_bdbs LIKE j_3abdbs_s - im_best LIKE j_3abest_s Exceptions: - others   f) Schedule line Import parameter: - im_bedf LIKE j_3abedf_s - im_relpa LIKE j_3arepa - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark - ex_zmeng LIKE j_3aactn-zmeng Table parameter: - im_bdbs LIKE j_3abdbs_s - im_best LIKE j_3abest_s Exceptions: - others   g) Schedule line VAS Import parameter: - im_bedf LIKE j_3abedf_s - im_vare LIKE j_3avare - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark - ex_zmeng LIKE j_3aactn-zmeng Exceptions: - others   h) VAS Import parameter: - im_bedf LIKE j_3abedf_s - im_vare LIKE j_3avare - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark - ex_zmeng LIKE j_3aactn-zmeng Table parameter: - im_bdbs LIKE j_3abdbs_s - im_best LIKE j_3abest_s Exceptions: - others   i) BOM Import parameter: - im_aufnr LIKE j_3abdbs_s-aufnr - im_grkor LIKE j_3abdbs_s-grkor - im_bore LIKE j_3abore - im_relpa LIKE j_3arepa - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g - ex_exit LIKE j_3abdbs_s-mark Table parameter: - im_bdbs LIKE j_3abdbs_s - im_best LIKE j_3abest_s Exceptions: - others   j) Final check Import parameter: - im_relpa LIKE j_3arepa - im_recf LIKE j_3arecf Export parameter: - ex_action LIKE j_3arepa_s-orful_g Table parameter: - im_best LIKE j_3abest_s - im_bedf LIKE j_3abedf_s - im_bdbs LIKE j_3abdbs_s - im_bdbs_r LIKE j_3abdbs_s Exceptions: - others 3. User exits in the rush order: (Customizing path: AFS allocation run - User exits - Define and activate user exits)   a) User exit before the allocation Application: 18 - Rush order: Processing before allocation This user exit is _executed before the allocation of a rush order. Before you create the function module, you must add the following ABAP command to the Top include of the customer function group: (for example, for function group Zxxx the Top include is: LZxxxTOP) - TYPE-POOLS J3AAR. Export parameter: - im_stock TYPE j3aar_stock - ex_exit LIKE j_3abdbs_s-mark Table parameter: - im_vbap LIKE vbapvb - im_vbep LIKE vbepvb - im_bdsi LIKE j_3abdsiv - im_best LIKE j_3abest_s - im_messg LIKE j_3aproi_s Exceptions: - no_data_import - exception_occured - others   b) User exit after the allocation Application: 15 - Rush order: Additional data This user exit is _executed after the allocation of a rush order. Import parameter: - im_locat LIKE j_3acdbf_s-cdbfl_01 Table parameter: - im_bdbsv LIKE j_3abdbsv Exceptions: - error_message 4. User exits in the tool management: (Customizing path: AFS allocation run - User exits - Define and activate user exits)   a) User exit for additional data Application: 13 - Tool management: Additional data Import parameter: - im_locat LIKE j_3acdbf_s-cdbfl_01 Table parameter: - im_bdbs LIKE j_3abdbs_s Exceptions: - error_message 5. User exits in the reorganization: (Customizing path: AFS allocation run - User exits - Define and activate user exits)   a) User exit for additional data Application: 14 - Reorganization tool: Additional data Import parameter: - im_locat LIKE j_3acdbf_s-cdbfl_01 Table parameter: - im_bdbs LIKE j_3abdbs_s Exceptions: - error_message 6. User exits in the transport request: (Customizing path: AFS allocation run - User exits - Define and activate user exits)   a) User exit for additional data Application: 16 - Transport request: Additional data Import parameter: - im_locat LIKE j_3acdbf_s-cdbfl_01 Table parameter: - im_bdbs LIKE j_3abdbs_s Exceptions: - error_message 7. User exits in VA01/VA02 handling (Customizing path: AFS allocation run - User exits - Define and activate user exits)   a) User exit for additional data Application: 17 - Other application: Additional data Import parameter: - im_locat LIKE j_3acdbf_s-cdbfl_01 Table parameter: - im_bdbs LIKE j_3abdbs_s Exceptions: - error_message 8. User exits in the transport request: (Customizing path: AFS allocation run - User exits - Define and activate user exits)   a) User exit for additional data Application: 21 - Del./Shortp.: Additional data This user exit is _executed after the Delivery/Shortpick. Import parameter: - im_locat LIKE j_3acdbf_s-cdbfl_01 Table parameter: - im_bdbsv LIKE j_3abdbsv Exceptions: - error_message 9. User exit for sorting the selected requirements/stocks in the allocation run (Customizing path: AFS Allocation Run - Definition and General Controls - Definition of Elementary Rules - Define Rules for Stock/Requirements Sorting - Sorting '2' - choose Sort #2' alternative sorting)   a) Sorting of stocks (Object 'ST') Table parameter: - im_best LIKE j_3abest_s Exceptions: - error_message   b) Sorting of requirements (Object 'RQ'/'RS') Table parameter: - im_bedf LIKE j_3abedf_s Exceptions: - error_message

     

    周运(CityMatch)--专注于Sap的 Retail & Afs 产品的应用研究。 如有转载,请注明出处。 联系作者:CityMatch(at)163.com 博客链接:http://blog.vsharing.com/zhouyun sapnote_0000722823.pdf  ( 62 KB )

    最新回复(0)