Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Park G/L Document - Validation Rules (OB28)

Former Member
0 Kudos

Hi all,

Apparently, I have been using BAPI_ACC_GL_POSTING_POST and implement user exit (CMOD) ACBAPI01, component EXIT_SAPLACC4_001 to Park G/L Document. Everything looks fine so far.

However, business consultant has commented that the Validation Rule (Transaction Code OB28) does not trigger when executing the above BAPI. Normally, when user execute tcode F-02 to create Park Document, it will trigger Validation Rule (OB28).

Can anyone shed some lights of why Validation Rule is not trigger when using the above BAPI? Is it because the BAPI is executed without online screen, and thus no Validation Rule is fired, or I have missed out some steps?

Thanks and best regards,

Patrick

7 REPLIES 7

andreas_mann3
Active Contributor
0 Kudos

look here

you cannot use validation either for parking nor for posting documents wwith bapis

A.

0 Kudos

Hi Andreas,

Thanks for your info.

Based on your link provided, does that mean that parked document (either park invoice or park G/L document) will not trigger validation and substitution at all, except when you are posting parked document?

However, if you try to execute TCODE F-02, it will fire validation and substitution. Please can you advise on this?

Best regards,

Patrick

0 Kudos

That's probably because F-02 is actually the transaction for posting documents (SAPMF05A), only in the end you can opt to just park it instead. Compare with F-65 (SAPLF040), which does not trigger validation/substitution when parking documents.

Thomas

0 Kudos

Hi Thomas,

Thanks for your reply.

I have tried to park G/L document using tcode F-65, however, if I input invalid value , it will prompt me validation error message from OB28.

Please can you assist?

Regards,

Patrick

Former Member
0 Kudos

Hi,

A document can be parked even though it is not complete and hence it will not go through the validation (OB28) part.

But if you are posting the document, then it should go through this validation rule.

I have been using the BAPI - BAPI_ACC_GL_POSTING_POST to post the G/L documents and it works fine in my case.

Regards,

Selva K.

Former Member
0 Kudos

HI,

As earlier post, Validation will not work for park the document.

in case of posting, go to program RGGBR000 or ZRGGBR000and put break point any try.

(You need to maintained validation in the Z RGGBR000 under perform)

Regards,

Sri

Former Member
0 Kudos

I bet BAPI could not trigger Validation Rules (OB28), however, as per business requirement, I will just include dynamic subroutine call towards program ZGGBR000.

Thanks all for your helps and advices.

Cheers.