cancel
Showing results for 
Search instead for 
Did you mean: 

Validations for Parked Documents

austin_steyn
Participant
0 Kudos

Hi,

Do validations work for documents that are parked? i.e. when you park a park document. Transaction: FV70 - Park/Edit Invoice or when you post a parked document: FBV0 - Post/Delete

I have created a rule to check that the parked document payment term must be the same as the Customer BP, but having no luck.

My rule is:

Prerequisites:

( BKPF-BLART IN ZFIDOCTYPE_PARKEDDOCS ) AND

( SYST-TCODE = 'FBV0' OR SYST-TCODE = 'FV70' OR

SYST-TCODE = 'FV75' OR SYST-TCODE = 'F-64' OR

SYST-TCODE = 'FV67' OR SYST-TCODE = 'FB70' OR

SYST-TCODE = 'FBVB' )

Check:

U024

* User exit that checks the BP

Accepted Solutions (0)

Answers (2)

Answers (2)

austin_steyn
Participant
0 Kudos

The user exit worked 🙂

( BKPF-BLART IN ZFIDOCTYPE_PARKEDDOCS ) AND

( SYST-TCODE = 'FBV0' OR SYST-TCODE = 'FV70' OR

SYST-TCODE = 'FV75' OR SYST-TCODE = 'F-64' OR

SYST-TCODE = 'F-67' OR SYST-TCODE = 'FBV0' OR

SYST-TCODE = 'FBV2' )

USER EXIT:

U024

CODE:

form u024 using b_result.

b_result = 'T'.

select single zterm from knb1 into @data(lv_old_zterm)
where bukrs = @bseg-bukrs
and kunnr = @bseg-kunnr.

if lv_old_zterm <> bseg-zterm.
b_result = 'F'.
endif.

endform.

sandip_kurewar
Active Participant
0 Kudos

Use BTE function module sample_interface_00001140 with your code.