+ All Categories
Home > Documents > User Exits

User Exits

Date post: 25-Oct-2014
Category:
Upload: jayakrishnak
View: 199 times
Download: 3 times
Share this document with a friend
Popular Tags:
56
Transcript
Page 1: User Exits
Page 2: User Exits
Page 3: User Exits

Include/Module Info Function

ZZPBO_CUSTOMFLDS

FIELD_DISPLAY

ZZREASON_CODE

ZZRETREF

ZZLPRIO

ZZPROC_RADIO_BUTTON

SCREEN_VALUE_DISPLAY

There are 7 PBO modules in this include. All of them are used to set the fields in Additional Data 'A' and 'Additional data B', at header or item level as active/inactive depending on various condtions like doc type, Transaction,Transaction mode, field gropup. All of these are the z-fields in VBAP n VBAK.

Used to handle remaining ( most ) of z-fields at header level ( VBAK ) ie set them active / inactive based on conditions.

Used to make ERTS date field disabled.

Used to make reason code field compulsory

Was used for Old Reebill Order. Now all code is commented.

Used to set delivery Priority

Used to set radio buttons for post-shipping Holds.

De-activates Order level fields in additional Data A & B for display mode VA03.

Page 4: User Exits
Page 5: User Exits

USEREXIT_CHECK_VBAK

USEREXIT_CHECK_VBAP

USEREXIT_CHECK_VBEP

USEREXIT_CHECK_VBKD

USEREXIT_CHECK_XVBAP_FOR_DELET

USEREXIT_CHECK_XVBEP_FOR_DELET

USEREXIT_MOVE_FIELD_TO_VBAPKOM

USEREXIT_NEW_PRICING_VBAP

USEREXIT_NEW_PRICING_VBKD

This Userexit can be used to add additional logic for checking the header for completeness and consistency.

This Userexit can be used to add addtional logic for checking the position for completeness and consistency.

This Userexit can be used to add additional logic for checking the schedule lines for completeness and consistency.

This Userexit can be used to add additional logic for checking the sales details for completeness and consistency

Additional examination can be entered in this form, before the position is released for deletion.

Additional examination can be entered in this form, before the schedule line is released for deletion.

This userexit can be used to move additional fields into the * sales document line workarea VBAP

This userexit can be used to perform new pricing, dependant on the change of datafields. This routine is not called, when the material number has been changed. Available data-fields: vbak - header data vbap - item data (changed) vbap - item data (old, before the change)

This userexit can be used to perform new pricing, dependant on the change of datafields. Field vbkd-posnr is the item-number of the business data. If the field is initial, then vbkd contains the business header data.

Page 6: User Exits

userexit_source_determinationThis Userexit is used to add additional logic for finding * the source of the plant or the item category.

Page 7: User Exits

ZZSETMVGR2

NOT USED NOT USED - Shedule line Data VBEP

CODE

CODE

NOT USED NOT USED

ZZSETGPROFIT

ziafzb05,

ziafzb04 Similar to above, only VBKD instead of VBAP

ZCHECK_DOIND_CHG, ZZREASONCODE, ZZRTSDATECALC, ZZADJUST_XVBEP

ZCHECK_DOIND_CHG - It is used to record DO-Indicator changes.

Assembly Ind Phase 2 Updated the logic for setting assembly indicator to reflect changes before saving

only get triggered for VA21 transaction*-Quotes created via ISA / CRM need not go via this logic.Used to set DFA contract no.

Used to detrmine common plant line items for quote ONLY in create mode using FM 'Z_ISA_COMMON_PLANT'.

Logic written to get the Plants of the source document populated on the Order that is getting created from ISA/CRM.This logic will get executed only until the remaining part of Plant det II from CRM side is put in place. Once that is installed, this logic will be removed as CRM will have fixed the issue.

Used to detrmine/re-dtermine pricing for VBAP-fields every time they are changed. Eg mvgr2,zzygp0,upmat.Lets say when AI indicator field is reset or changd, the pricing is carried out again. This is done by this code.New pricing will be set to 'C' To know what is 'C' -->Go inside Header-->conditions-->Update.'C' ensures that manual pricing is not considered while re-pricing.

Page 8: User Exits

zsetplant_block_part1. & ZIAFZB06

ZIAFZB06 - Commented out fully zsetplant_block_part1 - This include is used for 'Correct' Plant determination logic.It checks if line no 200 has the same plant as line no. 100 as it expects it to be the same. Eg if 100 line item has plant LE it will chk if 200 has LE and carries out the correct plant determination at all line items. If it doesnt, then block is set. However the material must be extended ( must be present ) for that particular plant to be even considered for this. Else a plant block is set. Th plant block is set not in this code but in a later code.This jsut checks plant deermination.

Page 9: User Exits

Not sure if its ver used

INCLUDE ZZRTSDATECALC .This user exit looks at various date fields and arrives at aschedule line date for each line item on the order

ZZREASONCODE-This program is intended to check to see if either the SOL date or *ERTS date have changed. If they have changed (not including initial *entry) this program will export to memory an indicator that will be *picked up in the PBO of screen 4312 in SAPMV45A. THe code in the PBO will make the VBAK-ZZREASONCODE field mandatory

Only VA21 - Quote creation

Only VA21 - Quote creation

VL09 - To reverse 5-6 deliveries at a time

Only to correct the plant if we had an incorret plant flowing in from CRM. If a blank plant flows in,this is not exuted as the ECC side carries out correct calculation.

Page 10: User Exits
Page 11: User Exits

ZZADJUST_XVBEP - Adjust IVBEP and IVBEP1 as per XVBEP - Schedule Line

Page 12: User Exits
Page 13: User Exits

Include/Module Function

ZZDLR_PAYTRMS( include)

ZZSECT_NUM_VALID Checks Section Number for the plant

ZZSOL_NUM_VALID

ZZER_NUM_VALID

ZZERT_NUM_VALID

ZZRE_NUM_VALID

DATE_CONVERT

ZZSOLDATE_MESSZZSET_RADIO_BUTTON Checks rado-buttons for post-shipping Holds.

ZZOUTPLDATE

ZZBACKORDDATECHECK_REASONCODE Checks Back order date and back order reason code.

ZZVALIDATE_REASONCODE_1

ZZVALIDATE_REASONCODE_2

check_len_vessel

Checks for descriptions of SAP or CAT payterms using tables T052U and ZPAYTRMXREF.

Checks SOL date . SOL date cannot be in the past. Similarly for 'YSPL' SOL date cannot be greater than parent.Also, warning message if there is no section number when*** a start on line date is present.

Compares RTS date with SOL date and RTS date cannot be in the past.VBAK-ZZERTSDATE

Compares ERTS date with SOL date and ERTS date cannot be in the past.VBAK-ZZERTSDATER

Checks revised RTS date with reason code.Uses table ZDATECODES. VBAK-ZZREASONCODE

Uses 'DATE_CONVERT_TO_FACTORYDATE' to check if back order date is working date.hecks SAOL and BO Dates.

If the order has been serialized, a information message will be* displayed

For change mode checks Outplant date with sy-datum. Out plant date can never be less than today's date.Out plant date is the date on which the goods are moved out of the plant.

Compared backorder with SOL Date. Uses 'DATE_CONVERT_TO_FACTORYDATE' to check if back order date is working date.hecks SAOL and BO Dates.

VALIDATE REVISED ERTS DATE WHENEVER IT IS CHANGED. A REASON CODE ISNEEDED WHEN THE CHANGE TO REVISED ERTS DATE IS MADE.

Validate If The Correct Reason Code Is Entered - VBAK-ZZREASONCODE

To Ensure the length of Vessel Flag entered by the user doesnt Exceed 2 Chrecters - ZZVESSFC - error message 'Enter 2 char value'

Page 14: User Exits
Page 15: User Exits

Special Conditionss Comment

Valid Only for VA02/VA05

Valid Only for VA01/VA02/VA05

VA05 - List Of sales order

Valid Only for VA01/VA02/VA05

Valid only for Ord Type 'YOOR' and 'YSPL'. Tcode VA02,ZVA02 and VA05

YOOR-Std Order YSPL-CAT Split Order ZVA02- multiple Order update program ZSD_MULTIPLE_ORDER_UPDATE

Valid for 'YIOR and change transaction

Valid Only for VA01/VA02/VA05

Page 16: User Exits
Page 17: User Exits
Page 18: User Exits
Page 19: User Exits
Page 20: User Exits

Include/M

Page 21: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 22: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 23: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 24: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 25: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 26: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 27: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 28: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 29: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 30: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 31: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 32: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 33: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 34: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 35: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 36: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 37: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 38: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 39: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 40: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 41: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 42: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 43: User Exits

Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M Include/M

Page 44: User Exits

Include/M Include/M Include/M Include/Module

Page 45: User Exits

USEREXIT_DELETE_DOCUMENT

USEREXIT_FIELD_MODIFICATION

USEREXIT_MOVE_FIELD_TO_VBAP

USEREXIT_MOVE_FIELD_TO_VBAK

USEREXIT_MOVE_FIELD_TO_VBEP

USEREXIT_MOVE_FIELD_TO_VBKD

USEREXIT_NUMBER_RANGE

This userexit can be used to delete data in additional tables when a sales document is deleted.

This userexit can be used to modify the attributes of screen fields.

This userexit can be used to move some fields into the sales dokument item workaerea VBAP

This userexit can be used to move some fields into the sales dokument header workaerea VBAK.

This userexit can be used to move some fields into the sales dokument schedule line workaerea VBEP

This userexit can be used to move some fields into the sales dokument business data workaerea VBKD

This userexit can be used to determine the numberranges for the internal document number.

Page 46: User Exits

userexit_pricing_prepare_tkomk

USEREXIT_PRICING_PREPARE_TKOMP

USEREXIT_READ_DOCUMENT

USEREXIT_REFRESH_DOCUMENT

userexit_save_document

userexit_save_document_prepare

This userexit can be used to move additional fields into the communication table which is used for pricing: TKOMK for header fields

This userexit can be used to move additional fields into the *communication table which is used for pricing:

This userexit can be used to read data in additional tables ** when the program reads a sales document

It is always necessary to refresh user-specific data before the next document will be processed. This can be done in this userexit. This userexit can be used to refresh user-specific data when the processing of a sales document is finished - after the document is saved - when you leave the document processing with F3 or F15 . It may be necessary to refresh user-specific data before the next document will be processed.

This userexit can be used to save data in additional tables when a document is saved.

This userexit can be used for changes or checks, before a document is saved

Page 47: User Exits

ZIAFZZ10

ZZYOMSYT

ziafzz18

Used to set delete indicator for non - YSPL orders

Z_NO_ITEM_EDITS_FOR_INV_OR_PGI ZSETDOIND_DISPLAY, ZGET_XVBAPVALUES ZORD_CANCELED , ZIAFZZ35, ZVALIDSOL, ZIAFZZ23, ZIAFZZ31, ZIAFZZ29, ZZPMATN, ZIAFZZ44, ZIAFZZ45, ZIAFZZ46.

ZGET_XVBAPVALUES - It takes a pristine copy of xvabp at startup of va02.The itab will be used in last user-exit to make sure xvbap & yvbap relationship is correct for save. ZORD_CANCELED - Information Message for cancelled order.reminds user they're viewing a cancelled order ZIAFZZ35 - set MVGR2 assembly indicator based on item category, this will be passed will also set value that table A619 uses for material that are relevant for pricing.Assembly indicator is set to N if atleast one configurable product exist and and if the mode is create mode and if the order is non DTO ZVALIDSOL - If the order has been serialized a message will be displayed and will allow to change SOL date. 2. If the order is completed status, changing of SOL date will not beallowed.

ZIAFZZ55, ZSET_VBAPMVGR2_1

ZZSET_DO_IND, ZZRETREF, ZZOUTPLANT, ZZCONTPERSON, ZZSET_DEFAULT_VALUES_FOR_YCPR

zspardate,zkbpricedate.,z_set_shp_type_from_delivery,z_set_remove_lessoff.

Page 48: User Exits

zscreen_inital_value

zsdi_prsdt_change.

zsdi_check_status,

ZIAFZA03,ZIRDD020,zclear_msg.

ziafzz49,ziafzz12,ziafzz27,ztrigger_split_order,zsetusrstatus,zdtoblocking,zustat_for_misc,ziru009_plant_specific_data_st,ziru012_port_marks_generate,ziru901_update_order_rejected,zspardate_status,ztops_status,zypic_status,zinc_status,zcfgstatus,zvalidate_serialnumber_ord,zsd_ycpr_partner_check

zsd_partner_reprice,zsd_chk_ord_lock,zconfig_date_explosion,ziafzz49,zsetplant_block_part2,zupdtvbep,zsetlo_ind,zchg_ordtype,zchg_qttype,zsetserial_new,ziru002_delivery_priority,ziru009_plant_specific_data,zsdu_del_line_partners,zcopy_shipping_point,zadjust_xyvbap

Page 49: User Exits

To determine the document number is a prticular no. range

ziafzz23 - sets vbak-zzpndapp is 'PND' status exists ziafzz31 - sets vbak-zzoabind if 'OAB' status exists ziafzz29 - checks line item's wt. & sets to zero ziafzz44 - block input into ihrez (CAT ESO Number) ziafzz45 - update CAT Inv Prefix fields ziafzz46 - update Delivery Priority Description zscreen_chg_zrev - ZSETDOIND_DISPLAY - Disable DO indicator field Z_NO_ITEM_EDITS_FOR_INV_OR_PGI - This code will prevent any line item inserts from saving if the order has been PGI'd. A pop up information message will explain to the user why and what actions need to occur for the line items to be changed.

ZSET_VBAPMVGR2_1 - Logic for Assembly Indicator ZIAFZZ55 - Currently there are 2 sales orgs that are to buy from plant PV E901 and E50W. If in the future new ones are added they are to be added to the table ZPV_ORGS. This is the save source for orgs that are to order from PV

ZZSET_DO_IND - DO indicator detting ZZCONTPERSON - Contact person determination ZZRETREF - Assembly Indicator evaluation ZZSET_DEFAULT_VALUES_FOR_YCPR- Set default values for YCPR docs

or misx orders set schedule line in VBEP tovalue YT which requires no inventory for delivery post goods issue processing.change request 2004-1028. For YREB order types, set schedule line in VBEP to value YT which requires no inventory for delivery post goods issue processing

z_set_remove_lessoff - To carry out less-off Calculations z_set_shp_type_from_delivery - To set delivery shipment type zspardate- To carry out calculations related to spar date

Page 50: User Exits

Exit to carry out calculation in case of pricing date changes

Exit To cjeck Document status

Clear and refresh z-variables and Memory-Ids

zscreen_inital_value - To set initial values on screen

Page 51: User Exits

MV45AFZF

USEREXIT_AVAIL_CHECK_CREDIT CODE

MV45AFZD

USEREXIT_CONFIG_DATE_EXPLOSION CODE

This include is reserved for user modifications

This userexit can be used to determine the BoM explosion date that is used for the variant configuration.


Recommended