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: 

exit to check posting date in F-02

former_member185116
Active Participant
0 Kudos

hello all,

in transaction F-02

based on posting date like if posting date is > 01.01.2010 or if posting date is < 01.01.2010

i want to put some condition ( when user clicks enter button after entering the posting date)...

is there any exit to write this condition,

thanks in advance...

1 ACCEPTED SOLUTION

pranay570708
Active Contributor
0 Kudos

Hi Vinay,

Try this: Goto se38, enter 'MF05AI00_D0100_PRE_APPL_SUB'.

Create impilict enhancement in  FORM PAI_d0100_pre_appl_sub. Write your validation here. Field BKPF-BUDAT contains the posting date entered on the screen.

16 REPLIES 16

former_member196331
Active Contributor
0 Kudos

There is one enhancement point is there In below code.

MF05AI10_PERIODE_PRUEFEN

Structure:BKPF  FIELD:BUDAT.

Check it.

0 Kudos

hi,

thanks for u r reply,

but i have never written enhancement points, (i have used exits only)

please can u elaborate on how to go further....

0 Kudos

Please have a look on below example They has given step by step, There is no need to tell you again.

Step by step to enhance ABAP code via implicit enhancement - ABAP Development - SCN Wiki

You can do the same steps in the program what i told you earlier

Line no is between 11 to  25 .

Put break point like below.

break-point. then check it.

You can ask me any doubts later also. But first try to understood the above link .Surely get some knowledge.

0 Kudos

hi ,

as u said i have written my implicit enhancement code,

but when i checked it is giving error saying statement not accessible,

0 Kudos

Here, I said  line no 13 to 20 .

Apply the logic in the exact location, Location i was highlighted in the image.

0 Kudos

And one more thing Before starts the code you have to mentioned the tcode like.

if sy-tcode eq 'f-02'.

""your logic

endif.

If you dont write. Some times code will be triggers other tcodes also.

Ok  In debug you have to check what is SY-UCOMM.

0 Kudos

one more thing,

i have deleted the implicit enhancement by going to SE80 and selecting the appropriate package,

after this  i have put break point in MF05AI10_PERIODE_PRUEFEN,

but now its not triggering for F-02 transaction , previously it was triggering when i selected enter button..

why this change now, where did i went wrong,

please clarify on this...

0 Kudos

After deleted, Have u Created One more time.

is it activated.  Can you Confirm me. If it is activated definitely activated.

0 Kudos

my code in MF05AI10_PERIODE_PRUEFEN is different from yours,

there is no form PAI...

every thing is with in


MODULE periode_pruefen


..


ENDMODULE.





i was able to create the code only after line no 131


edit->enhancement operations->show implicit enhancement options,


then the black arrow mark is coming only at line no 131 , here i have put the cursor and


edit->enhancement operations->create option.

0 Kudos

hi, I hope You Can not write the code at the Last. There is nothing in my hand.

May be you were using diff version than me.

One thing At least you can not write. As per my knowledge.

Try with other Codes also.

SAPFF001

LF013U01

LFACSU34

LTAX1U01

You need to find the enhancement point.May be other programs also there you need to find it.

pranay570708
Active Contributor
0 Kudos

Hi Vinay,

Try this: Goto se38, enter 'MF05AI00_D0100_PRE_APPL_SUB'.

Create impilict enhancement in  FORM PAI_d0100_pre_appl_sub. Write your validation here. Field BKPF-BUDAT contains the posting date entered on the screen.

0 Kudos

hi pranay,

thanks for u r reply,

its working fine,

but need small clarification ,

does this trigger for all transactions where ever posting date field exists(as i am not specifying the

sy-tocde = 'required t code' in my code)...

0 Kudos

It would be better if use sy-tcode check before your validation. You are never sure if this screen gets called somewhere else.

0 Kudos

It's Not easy to say where the code is going to Trigger.

It's better to mentioned Sy-tcode then it will applicable to particular t-code.

0 Kudos

hi parany,

thanks a lot for u r prompt reply, resolved my problem....

0 Kudos

hi ,

thanks for u r patience and all u r valuable suggestions.....

thanks a lot...

i went with 'MF05AI00_D0100_PRE_APPL_SUB'.