| Technical Design | | ||
GAP Code | VALE AP355 02.02.03.07.01.N | |||
Product Description | Consist some fields in Orders | |||
Technical Characteristics | ||||
Program | ZEPSDDGL_CONSIST_FIELDS_CO | |||
Transaction | VA41, VA42 | Change Request | ED0K926740 ED0K926824 ED0K926901 ED0K926745 | |
Development Class | Z_SD | Language | EN/PT | |
Observations | | |||
Information about User or Field Exit
Transaction | VA41, VA42 |
Execution Conditions | |
Project or Enhancement | |
Include | |
Justification | |
Change Log:
Version | Technical Designer | Reviewer | Product Code | Date | Project | |
1 | Douglas dos Santos | | VALE AP355 02.02.03.07.01.N | | Mozart | |
Changed Items | Initial Development | |||||
Version | Technical Designer | Reviewer | Product Code | Date | Project | |
| | | | | | |
Changed Items | | |||||
More...
1. Functional Requirements Analysis
1.1. Processing Overview
Some information in the sales process can be changed only by specific department of the company, being this document created to guarantee the correct way of the sales process on user profile and document type specific, about the process iron mining.
The correct filling information fields in contract/deal are necessary for subsequent documents created on SAP. Therefore, these mandatory fields will be important to avoid any error on future process.
The consistence of fields in contract/deal will depend of the document type created by users on SAP.
1.2. Inputs Overview
Type | Short Description | |
MV45AFZZ | Exit | Exit of VA01, VA02 |
LV09CF88 | Include | Include used to call popup |
ZEPSDDGL_CONSIST_FIELDS_CO | Include | Used in the exit |
ZEPSDDGL_BLOCK_FIELDS_CO | Include | Used in the exit |
ZEPSDDGL_POPUP_FIELDS_CO_NEW | Include | Used for popup |
ZEPSDDGL_POPUP_FIELDS_CO_OLD | Include | Used for popup |
1.3. Output overview
N/A
1.4. Logical Flow Diagram
2. Object Specification
2.1. Created / Changed Transparent Tables
N/A
Table Name | | Creation / Change | | ||||||||
Description | | Authorization Group | | ||||||||
Table Structure | |||||||||||
Field | Check Table | Key | Data Element | Data Type | Size | Short Description | |||||
| | | | | | | |||||
| | | | | | | |||||
| | | | | | | |||||
| | | | | | | |||||
Maintenance Dialog Validations | |||||||||||
Field | Message Type | Condition | |||||||||
| | | |||||||||
Message Text | | ||||||||||
More...
2.2. Selection Screen
N/A
Program Name | | |||||
Description | Data Type | Default Value | Mandt? | Selection Type | Technical Name | Search Help |
| | | | | | |
| | | | | | |
2.2.1. Selection Screen Validation
N/A
2.3. Logic and Data Manipulation
EXIT: MV45AFZZ – PERFORM USEREXIT_SAVE_DOCUMENT_PREPARE
Use function 'ZCMFCRGL_CHECK_EXIT'.
Create include ZEPSDDGL_CONSIST_FIELDS_CO.
Is necessary check same fields when user save the document.
If ( transaction equal VA41 or VA42 (TVARV parameter) ) and
( VBAK-AUART equal “ZLTC” or “ZODL” or “ZPOT” (TVARV parameter) and
VBAK-SPART = “01” (TVARV parameter)
· Check incoterm
if VBKD-INCO1 = initial then.
Show message M01.
V_ERROR = “X”. (Variable global, clear in begin of include)
· Check Analysis Condition – Com. Or Prov. Invoices
If VBAK-ZZANL_CMI is initial then
Show message M02.
V_ERROR = “X”. (clear in begin of perform)
· Check transport System
Read first data of table PREV_OIJ_EL_DOC_MOT into WA_DOC_MOT.
If WA_DOC_MOT-TSYST is initial then.
Show message M12.
Else.
Execute selection S01.
If not found data show message M13
· Check Modes of Transport
Read first data of table G_DOC_M_MOT_ALL[]
IF WA_DOC_MOT_ALL-VKTRA is initial
Then show message M14
else
Execute Selection S02.
If WA_DOC_MOT_ALL-VKTRA not equal WA_OIJTS-VKTRA then
Show message M15.
· Check Tolerance
IF WA_DOC_MOT-VKTRA equal (03 or 04) and
( WA_DOC_MOT-ITBOTOL is initial or
WA_DOC_MOT-ITBUTOL is initial ) then.
Show message M16.
ELSEIF ( WA_DOC_MOT-ITBOTOL is initial or
WA_DOC_MOT-ITBUTOL is initial ) and
WA_DOC_MOT-UNLIMITED is initial then
Show message M17
· Check Operation and Location
Get the data (SAPLOIJ_EL_C)GT_LAYT_INF_W[] using field symbol moving to table T_LAYT.
Read all values of table T_LAYT.
IF WA_DOC_MOT-VKTRA equal (03 or 04).
And wa_layt-operation not equal ( “D” or “O” )
And wa_layt-locid is initial then
Show message M18
If wa_layt-operation equal “O”
and WA_DOC_MOT-TSYST(First two positions) not equal wa_layt-locid(First two positions).
Show message M19.
· Check Partner Function / Customer
Read table XVBPA where PARVW equal “EX”.
If not found data show message M07.
V_ERROR = “X”. (clear in begin of perform)
· Check Analysis Condition – Com. Or Prov. Invoices
IF VBAK-ZZANL_CMI is initial then
Show message M03.
V_ERROR = “X”. (clear in begin of perform)
· Check Local Analysis – Com. Or Prov. Invoices
IF VBAK-ZZLCL_COM_PROV is initial then
Show message M04
V_ERROR = “X”. (clear in begin of perform)
· Check Analysis Condition – Final Invoices
IF (VBAK-ZZANL_FIN is initial then
Show message M05
V_ERROR = “X”. (clear in begin of perform)
· Check Base of Billing
IF VBAK-ZZWGH_BSE_PRF is initial then
Show message M06
V_ERROR = “X”. (clear in begin of perform)
· Check Invoice form
IF VBAK-ZZWGH_BSE_PRF = 1 “Dry” and
VBAK-ZZINV_LAYOUT = “” then
Show message M08
V_ERROR = “X”. (clear in begin of perform)
· Check Type of Invoice
IF VBAP-ZZINV_TYP is initial
Show message M09
V_ERROR = “X”. (clear in begin of perform)
ELSEif VBAP-ZZINV_TYP = 2 (Provisional/Final)
And VBAP-ZZUNC_MRG_PRC is initial then
Show message M10.
V_ERROR = “X”. (clear in begin of perform)
· Check Customer Material Number
If VBAP-KDMAT is initial then
Show message M11
V_ERROR = “X”. (clear in begin of perform)
· Check Storage Location
If VBAP-LGORT is initial then show message M20.
V_ERROR = “X”. (clear in begin of perform)
· Check Risk Management
VBKD-ZLSCH = “L” and
VBAK-ABSSC <> “Z00001”(Parameter TVARV) then
Show message M21
· Terms of Payment
If SCREEN-NAME equal “VBKD-ZTERM”
And SY-DYNNR eq “4002” then
SCREEN-REQUIRED equal 1.
· Payment Method
If SCREEN-NAME equal “VBKD-ZLSCH”
And SY-DYNNR eq “4002” then
SCREEN-REQUIRED equal 1.
· Check Partners
Read table XVBPA where PARVW equal “WE”.
Execute selection S03
Read all values XVBPA
If WA_XVBPA-PARVW equal “RG” .
Read the table T_PARTNER where PARVW equal WA_XVBPA-PARVW
And KUNN2 equal WA_XVBPA-KUNNR
If no data found then show message M22.
Elseif. WA_XVBPA-PARVW equal “RE”
Read the table T_PARTNER where PARVW equal WA_XVBPA-PARVW
And KUNN2 equal WA_XVBPA-KUNNR
If no data found then show message M22.
EXIT: MV45AFZZ – USEREXIT_FIELD_MODIFICATION
Use function 'ZCMFCRGL_CHECK_EXIT'.
Create include ZEPSDDGL_BLOCK_FIELDS_CO.
Is necessary check/block same fields when user save the document.
If ( transaction equal VA41 or VA42 (TVARV parameter) ) and
( VBAK-AUART equal “ZLTC” or “ZODL” or “ZPOT” (TVARV parameter) and
VBAK-SPART = “01” (TVARV parameter)
· Analysis Condition
IF VBAK-ZZANL_FIN equal 1 then
If SCREEN-NAME equal “VBAK-ZZLCL_FIN_INV”
And SY-DYNNR eq “4002” then
VBAK-ZZLCL_FIN_INV = 2
SCREEN-INPUT equal 0.
VBAK-ZZANL_FIN_INV must be mandatory filling and the value must be = “Seller” (this field cannot be changed) and
VBAK-ZZANL_PEN must be mandatory filling and the standard value is “Origin”, this field can be changed.
INCLUDE: LV09CF88
Use function 'ZCMFCRGL_CHECK_EXIT'.
Use enhancement ZEPSDEGL_POPUP_FIELDS_NEW in begin Perform FCODE_ALT_1000.
Create new include ZEPSDDGL_POPUP_FIELDS_CO_NEW.
Is necessary change reference partner when the user click to button alternatives.
If ( transaction equal VA41 or VA42 (TVARV parameter) ) and
SY-UCOMM equal “ALT” and
( VBAK-AUART equal “ZLTC” or “ZODL” or “ZPOT” (TVARV parameter) and
VBAK-SPART = “01” and (TVARV parameter)
( FIF_PARVW equal “RE” or “RG” ).
Read the table GVT_LOCAL_MEMORY where OBJECTTYPE = FIC_OBJECTTYPE
and OBJECTKEY = FIC_OBJECTKEY.
T_VBPA_OLD = GVT_LOCAL_MEMORY-XVBPA[].
Read the table T_VBFA_OLD where PARVW = “WE”.
V_KUNNR_NEW = WA_VBFA_OLD-KUNNR.
Read the table T_VBFA_OLD where PARVW = “AG”.
V_KUNNR_OLD = WA_VBFA_OLD-KUNNR
WA_VBFA_OLD-KUNNR = V_KUNNR_NEW
Move the value changed for table GVT_LOCAL_MEMORY.
INCLUDE: LV09CF88
Use function 'ZCMFCRGL_CHECK_EXIT'.
Use enhancement ZEPSDEGL_POPUP_FIELDS_CO_OLD in end perform FCODE_ALT_1000 .
Create new include ZEPSDDGL_POPUP_FIELDS_CO_OLD.
Is necessary change reference partner when the user click to button alternatives.
If ( transaction equal VA41 or VA42 (TVARV parameter) ) and
SY-UCOMM equal “ALT” and
( VBAK-AUART equal “ZLTC” or “ZODL” or “ZPOT” (TVARV parameter) and
VBAK-SPART = “01” (TVARV parameter)
( FIF_PARVW equal “RE” or “RG” ).
Read the table GVT_LOCAL_MEMORY where OBJECTTYPE = FIC_OBJECTTYPE
and OBJECTKEY = FIC_OBJECTKEY.
T_VBPA_OLD = GVT_LOCAL_MEMORY-XVBPA[].
Read the table T_VBFA_NEW where PARVW = “AG”.
WA_VBFA_NEW-KUNNR = V_KUNNR_OLD
Move the value changed for table GVT_LOCAL_MEMORY.
2.4. Data Selection
Identification | S01 |
Description | Get Transport system |
Table Name | OIJRRA |
Fields | COUNT( * ) |
For All Entries | |
Criteria | KUNNR equal KUAGV-KUNNR WERK equal VBAP-WERKS LGORT equal VBAP-LGORT |
Internal Table | N/A |
Identification | S02 |
Description | Get Modes of Transport |
Table Name | OIJTS |
Fields | TSYST VKTRA |
For All Entries | |
Criteria | TSYST equal WA_DOC_M_MOT_ALL-TSYST |
Internal Table | WA_OIJTS |
Identification | S03 |
Description | Get Partner |
Table Name | KNVP |
Fields | KUNNR KUNN2 |
For All Entries | |
Criteria | KUNNR equal KUWEV-KUNNR and PARVW equal ( “RE” or “RG” ) |
Internal Table | T_PARTNER |
More...
2.5. Messages
Identification | Message Type | Condition |
M01 | I | When incoterms is initial |
Message Text | EN - The Incoterm is missing, it will not be sent a workflow message PT - O Incoterm está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M02 | I | When Analysis Condition – Com. Or Prov. Invoices |
Message Text | EN - The Analysis Condition – Com. Or Prov. Invoices is missing, it will not be sent a workflow message PT - A Condição de Análise - Faturas Com. Ou Prov. está ausente, não será enviada a mensagem de workflow. |
Identification | Message Type | Condition |
M03 | I | When Analysis Condition – Com. Or Prov. Invoices is initial |
Message Text | EN - The Analysis Condition – Com. Or Prov. Invoices is missing, it will not be sent a workflow message PT - A Condição de Análise - Faturas Com. Ou Prov. está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M04 | I | When Local Analysis – Com. Or Prov. Invoices is initial |
Message Text | EN - The Local of Analysis – Com. Or Prov. Invoices is missing, it will not be sent a workflow message. PT - O Local de Análise - Fatura Final está ausente, não será enviada a mensagem de workflow. |
Identification | Message Type | Condition |
M05 | I | When Analysis Condition – Final Invoices is initial |
Message Text | EN – The Analysis Condition – Final Invoices is missing, it will not be sent a workflow message PT - A Condição de Análise - Fatura Final está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M06 | I | When Base Billing is initial |
Message Text | EN – The Base of Billing is missing, it will not be sent a workflow message. PT - A Base para Faturamento está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M07 | I | When partner (EX) is initial |
Message Text | EN – The partner function (EX) is missing, it will not be sent a workflow message PT - A Função Parceiro (EX) está ausente, não será enviada a mensagem de workflow. |
Identification | Message Type | Condition |
M08 | I | When Invoice Form incorrect |
Message Text | EN – The Invoice Form is missing, it will not be sent a workflow message PT - O Formulário da Fatura está ausente, não será enviada a mensagem de workflow. |
Identification | Message Type | Condition |
M09 | I | When Type is missing |
Message Text | EN – The Type of Invoice is missing, it will not be sent a workflow message PT - O Tipo de Fatura está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M10 | I | When Type is provisional final |
Message Text | EN – The Uncollected Margin is missing, it will not be sent a workflow message PT - A Margem não sacada - Preço do produto está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M11 | I | When Custumer Material is missing |
Message Text | EN – The Customer Material Number is missing, it will not be sent a workflow message PT - O Número Material do Cliente está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M12 | I | When transport system is missing |
Message Text | EN – The Transport System is missing, it will not be sent a workflow message PT – O Sistema de Transporte está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M13 | I | When transport system is incorrect |
Message Text | EN – Plant/Storage Location not exist in tcode O4TQ, it will not be sent a workflow message PT - Centro/Depósito não existe na transação O4TQ, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M14 | I | When modes transport is missing |
Message Text | EN – The Modes of Transport is missing, it will not be sent a workflow message PT - O Modo de Transporte está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M15 | I | When modes transport is incorrect |
Message Text | EN – Modes of Transport is different in tcode O4TV, it will not be sent a workflow message PT - Modo de Transporte é diferente na transação O4TV, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M16 | I | When modes tolerance is missing |
Message Text | EN – The Limit Under/Over is missing, it will not be sent a workflow message PT - O Limite Inferior ou Superior está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M17 | I | When tolerance is missing |
Message Text | EN – The Limit Under/Over or Tolerance is missing, it will not be sent a workflow message PT - O Limite inferior ou superior ou a tolerância está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M18 | I | When Operation type is missing |
Message Text | EN – The Operation Type and/or Location is missing, it will not be sent a workflow message PT - O Tipo de Operação e/ou Local de Atividade está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M19 | I | When Operation type is incorrect |
Message Text | EN – The fields Transport System and/or Location must contain the same 2 first letters, it will not be sent a workflow message PT - Os campos Sistema de Transporte e/ou Local de Atividade deve ter as duas primeiras letras iguais, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M20 | I | When Storage Location is missing |
Message Text | EN – The Storage Location is missing, it will not be sent a workflow message PT - O Depósito está ausente, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M21 | I | When Risk is missing |
Message Text | EN – The Guarantee is different Z00001, it will not be sent a workflow message PT - A Garantia está diferente de Z00001, não será enviada a mensagem de workflow |
Identification | Message Type | Condition |
M22 | E | When Partner is incorrect |
Message Text | EN – Partner: xxxxx incorrect. Choose a new partner PT - Parceiro: xxxxx incorreto. Escolha um novo parceiro |
More...
2.6. Output Layout
N/A
2.7. File Layout
N/A
No comments:
Post a Comment