on 01-05-2017 2:14 PM
Hi Team,
I want to set the validation on Payment method.
If payment method is 7 then only posting will be allowed in F-28 otherwise it will display error message and it should not impact to other tcodes like F-06 which are related to FBZ1.
Could you please let me know how to implement?
F-28 is also a FBZ1 in disguise like F-06...
So in your OB28 validation rule you should use an exit and check the actual transaction, as sy-tcode is FBZ1 for your two examples, use method CL_DYNPRO=>GET_CURRENT_TRANSACTION to get actual current transaction code.
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Raymond..
Issue resolved!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Raymond,
I created validation as like below screen and implemented logic in exit as below .
FORM u107 USING b_result.
IF bseg-koart = 'D'.
IF bseg-zlsch = 'D' OR bseg-zlsch = 'V' OR bseg-zlsch = '7' OR bseg-zlsch = 'M'.
* Do Nothing
ELSE.
MESSAGE e999(ztpl) WITH 'Please enter payment method either M,D,V and 7'(012).
ENDIF. ENDIF. ENDFORM.
Validation is working fine for F-28 but not able do postings through F-06 when payment method is other than M,D,V and 7
It should not impact to other tcodes. how to restrict?
Please suggest me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.