05-20-2016 7:51 AM
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...
05-20-2016 1:20 PM
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.
05-20-2016 8:13 AM
There is one enhancement point is there In below code.
MF05AI10_PERIODE_PRUEFEN
Structure:BKPF FIELD:BUDAT.
Check it.
05-20-2016 9:06 AM
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....
05-20-2016 9:13 AM
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.
05-20-2016 12:22 PM
hi ,
as u said i have written my implicit enhancement code,
but when i checked it is giving error saying statement not accessible,
05-20-2016 12:31 PM
Here, I said line no 13 to 20 .
Apply the logic in the exact location, Location i was highlighted in the image.
05-20-2016 12:32 PM
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.
05-20-2016 12:40 PM
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...
05-20-2016 12:42 PM
After deleted, Have u Created One more time.
is it activated. Can you Confirm me. If it is activated definitely activated.
05-20-2016 1:05 PM
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.
05-20-2016 1:17 PM
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.
05-20-2016 1:20 PM
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.
05-23-2016 7:03 AM
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)...
05-23-2016 7:08 AM
It would be better if use sy-tcode check before your validation. You are never sure if this screen gets called somewhere else.
05-23-2016 7:13 AM
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.
05-23-2016 12:11 PM
hi parany,
thanks a lot for u r prompt reply, resolved my problem....
05-23-2016 12:13 PM
hi ,
thanks for u r patience and all u r valuable suggestions.....
thanks a lot...
i went with 'MF05AI00_D0100_PRE_APPL_SUB'.