on 10-02-2018 3:41 PM
Hi,
My client requires all cash journal entries with more than 2 lakhs value per day should be stopped, based on the below logic.
For a customer or venor per day receipts/payments should not cross 2 lakhs.
I wrote a validation to stop posting of single document > 200000 .
Request experts help how can I achieve this.
Thanks in advance,
Satheesh Kumar N
Hello,
FBCJ Validation:
Pre-requisites:
SYST-TCODE = 'FBCJ' AND ( BKPF-BUKRS = 'xxxx' AND BSEG-HKONT = 'xxxxxxx' )
Check:
BSEG-WRBTR <= '200000.00'
Message:
Error: Amounts exceeds 200000
Thanks,
Chetan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }
FORM yfi01 USING lv_cond LIKE d_bool.
*Declaration of local internal table and workarea
DATA : lt_bseg TYPE STANDARD TABLE OF bseg,
lt_bkpf TYPE STANDARD TABLE OF bkpf,
lwa_bseg TYPE bseg,
lwa_bkpf TYPE bkpf.
*Declaration of local variables
DATA :lv_amount TYPE bseg-dmbtr.
SELECT * FROM bkpf
INTO TABLE lt_bkpf
WHERE bukrs = bkpf-bukrs
AND gjahr = bkpf-gjahr
AND blart = bkpf-blart
AND cpudt = bkpf-cpudt
AND tcode = 'FBCJ'.
IF sy-subrc = 0.
SELECT * FROM bseg
INTO TABLE lt_bseg
FOR ALL ENTRIES IN lt_bkpf
WHERE bukrs = bkpf-bukrs
AND belnr = lt_bkpf-belnr
AND gjahr = bkpf-gjahr
AND kunnr = bseg-kunnr.
ENDIF.
CLEAR: lv_amount.
LOOP AT lt_bseg INTO lwa_bseg.
lv_amount = lv_amount + lwa_bseg-dmbtr.
ENDLOOP.
lv_amount = lv_amount + bseg-dmbtr.
IF lv_amount >= 200000 .
lv_cond = 'F'.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Satheesh,
Have you written this validation. Can you please share the logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
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.