Sei sulla pagina 1di 78

Include/Module

ZZPBO_CUSTOMFLDS FIELD_DISPLAY ZZREASON_CODE

ZZRETREF ZZLPRIO

ZZPROC_RADIO_BUTTON

SCREEN_VALUE_DISPLAY

Function Used to handle remaining ( most ) of zfields at header level ( VBAK ) ie set them active / inactive based on conditions. Used to make ERTS There are 7 PBO modules in this include. All date field disabled. of them are used to set the fields in Used to make reason Additional Data 'A' and 'Additional data B', at code field compulsory header or item level as active/inactive Was used for Old depending on various condtions like doc Reebill Order. Now all type, Transaction,Transaction mode, field code is commented. gropup. All of these are the z-fields in VBAP Used to set delivery n VBAK. Priority Used to set radio buttons for post-shipping Holds. De-activates Order level fields in additional Data A & B for display mode VA03.

Info

USEREXIT_CHECK_VBAK

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. USEREXIT_CHECK_VBAP 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.

USEREXIT_CHECK_VBEP

USEREXIT_CHECK_VBKD

USEREXIT_CHECK_XVBAP_FOR_DELET USEREXIT_CHECK_XVBEP_FOR_DELET

USEREXIT_MOVE_FIELD_TO_VBAPKOM

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)

USEREXIT_NEW_PRICING_VBAP

USEREXIT_NEW_PRICING_VBKD

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

userexit_source_determination

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

ZCHECK_DOIND_CHG, ZZREASONCODE, ZZRTSDATECALC, ZZADJUST_XVBEP

ZCHECK_DOIND_CHG - It is used to record DOIndicator changes.

ZZSETMVGR2

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

NOT USED

CODE

CODE NOT USED

NOT USED - Shedule line Data VBEP 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'. NOT USED 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.

ZZSETGPROFIT 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.

ziafzb05,

ziafzb04

Similar to above, only VBKD instead of VBAP

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.

INCLUDE ZZRTSDATECALC . This user exit looks at various date fields and arrives at a schedule 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

Not sure if its ver used

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.

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

Include/Module ZZDLR_PAYTRMS( include) ZZSECT_NUM_VALID

Function Checks for descriptions of SAP or CAT payterms using tables T052U and ZPAYTRMXREF. Checks Section Number for the plant 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.

ZZSOL_NUM_VALID ZZER_NUM_VALID ZZERT_NUM_VALID ZZRE_NUM_VALID DATE_CONVERT

ZZSOLDATE_MESS ZZSET_RADIO_BUTTON

ZZOUTPLDATE

ZZBACKORDDATE CHECK_REASONCODE

ZZVALIDATE_REASONCODE_1 ZZVALIDATE_REASONCODE_2

If the order has been serialized, a information message will be * displayed Checks rado-buttons for post-shipping Holds. 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. Checks Back order date and back order reason code. VALIDATE REVISED ERTS DATE WHENEVER IT IS CHANGED. A REASON CODE IS NEEDED WHEN THE CHANGE TO REVISED ERTS DATE IS MADE. Validate If The Correct Reason Code Is Entered - VBAKZZREASONCODE To Ensure the length of Vessel Flag entered by the user doesnt Exceed 2 Chrecters - ZZVESSFC - error message 'Enter 2 char value'

check_len_vessel

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_OR DER_UPDATE

Valid for 'YIOR and change transaction Valid Only for VA01/VA02/VA05

Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module Include/Module

Include/Module Include/Module Include/Module Include/Module

USEREXIT_DELETE_DOCUMENT

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

USEREXIT_FIELD_MODIFICATION

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

USEREXIT_MOVE_FIELD_TO_VBAP

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

USEREXIT_MOVE_FIELD_TO_VBAK

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

USEREXIT_MOVE_FIELD_TO_VBEP

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

USEREXIT_MOVE_FIELD_TO_VBKD

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.

USEREXIT_NUMBER_RANGE

userexit_pricing_prepare_tkomk

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 * USEREXIT_PRICING_PREPARE_TKOMP 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.

USEREXIT_READ_DOCUMENT

USEREXIT_REFRESH_DOCUMENT

userexit_save_document

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

userexit_save_document_prepare

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

Used to set delete indicator for non - YSPL orders 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 Z_NO_ITEM_EDITS_FOR_INV_OR_PGI product exist ZSETDOIND_DISPLAY, and and if the mode is create mode and if the ZGET_XVBAPVALUES order is non DTO ZORD_CANCELED , ZVALIDSOL - If the order has been serialized a ZIAFZZ35, ZVALIDSOL, message will be displayed and will allow to ZIAFZZ23, ZIAFZZ31, change SOL date. 2. If the order is completed ZIAFZZ29, ZZPMATN, status, changing of SOL date will not be ZIAFZZ44, ZIAFZZ45, allowed. ZIAFZZ46. ZIAFZZ10

ZIAFZZ55, ZSET_VBAPMVGR2_1

ZZSET_DO_IND, ZZRETREF, ZZOUTPLANT, ZZCONTPERSON, ZZSET_DEFAULT_VALUES_FOR_YCPR

ZZYOMSYT

zspardate,zkbpricedate.,z_set_shp_type_f rom_delivery,z_set_remove_lessoff.

ziafzz18

zscreen_inital_value

zsdi_prsdt_change.

zsdi_check_status,

ZIAFZA03,ZIRDD020,zclear_msg. ziafzz49,ziafzz12,ziafzz27,ztrigger_split_or der,zsetusrstatus,zdtoblocking,zustat_for_ misc,ziru009_plant_specific_data_st,ziru0 12_port_marks_generate,ziru901_update_ order_rejected,zspardate_status,ztops_sta tus,zypic_status,zinc_status,zcfgstatus,zva lidate_serialnumber_ord,zsd_ycpr_partner _check zsd_partner_reprice,zsd_chk_ord_lock,zc onfig_date_explosion,ziafzz49,zsetplant_bl ock_part2,zupdtvbep,zsetlo_ind,zchg_ordt ype,zchg_qttype,zsetserial_new,ziru002_d elivery_priority,ziru009_plant_specific_dat a,zsdu_del_line_partners,zcopy_shipping_ point,zadjust_xyvbap

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 to value 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

To determine the document number is a prticular no. range

zscreen_inital_value - To set initial values on screen

Exit to carry out calculation in case of pricing date changes

Exit To cjeck Document status

Clear and refresh z-variables and Memory-Ids

MV45AFZF USEREXIT_AVAIL_CHECK_CREDIT This include is reserved for user modifications Forms for sales document processing CODE

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

Potrebbero piacerti anche