10-28-2015 4:56 AM
Dear All,
We have a peculiar requirement restricting user to pass back dated entries except (current date and one day before only).
We have got validation via OB28 for allowing user to pass the entry in current date only. but purpose is not served.
How can we fulfil this requirement for both current date and the previous 1 day only to allow user for posting.
Regards,
Hemangi.B
10-28-2015 5:45 AM
Hi Hemangi,
I am sure you must be already knowing how to create a rule. Still I have marked the steps by the number of the sequence of instructions that you need to follow.
1) Create a new rule, name
2) Name it as per your naming convention
3) Goto "Exits" tab.
4) Ignore this step.
5) Click on the "ABAP Routine" button. That shall take you to ABAP editor. From there click on the "Enhancement" button and check for implicit enhancements (as shown in the following screen shots). 6) Implement the enhancement (as shown in the last screen shot) and write your logic
IF BKPF-BUDAT >= sy-datum - 1.
B_RESULT = B_TRUE.
ENDIF.
Hope this helps.
Regards,
Kiran
10-28-2015 6:27 AM
Hi Kiran,
We tried the above by creating a rule and in exits by selecting SVAL and click on ABAP routine it is taking to Module Pool program SAPFGBEB but the screen shown by you shows different program.I tried creating enhancements in both the programs separely but it doesnot work either.In RGGBR000 it is not triggering to the user break point given when I run FBCJ and click on SAVE or POST.
Please guide further.
Regards,
Anand/Hemangi
10-28-2015 7:24 AM
Hi Anand/Hemangi,
Concerning the issue of control not coming to the place where break point has been placed -
Did you check if the configuration is rightly maintained for the relative company code in the initial screen of transaction OB28?
Considering SVAL in your case, is that a validation or a rule?
I would suggest creation of a custom rule and implement the logic as suggested before.
Also check if you have created the rule at the document header level or at the line item level.
Regards,
Kiran
10-28-2015 7:29 AM
Hi Kiran,
Configuration is maintained as creating a custom rule in header level.I tried by placing above logic with break point but it is not triggering.
If you already tried and working fine.Please guide us further more if we are not clear.
Regards,
Anand