08-03-2010 11:07 AM
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
08-03-2010 11:46 AM
08-03-2010 4:16 PM
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
08-03-2010 4:56 PM
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
08-04-2010 3:45 AM
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
08-03-2010 12:55 PM
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.
08-03-2010 2:08 PM
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
08-10-2010 8:35 AM
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.