Application Development and Automation 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: 
Read only

Customer Logic for FB02

Former Member
0 Likes
1,644

Hello Experts,

This is my requirement:-

1) User Goes to Tcode: FB02 (Display Document)

2) Select a Document Press ENTER

3) Clicks F5 (Display Document Header)

4) Changes the Reference Field (XBLNR) and presses the tick

5) At the point after pressing TICK I want to call a custom function for some checks on the Reference field.

Please advice how can this be achieved by using a BADI or CUSTOMER FUNCTION ETC.

Hoping its an easy requirement for you guys.

Thnx

Salman Akram

Edited by: Salman Akram on Sep 3, 2009 8:11 PM

Hello Experts,

This is my requirement:-

1) User Goes to Tcode: FB02 (Display Document)

2) Select a Document Press ENTER

3) Clicks F5 (Display Document Header)

4) Changes the Reference Field (XBLNR) and presses the tick

5) At the point after pressing TICK I want to call a custom function for some checks on the Reference field.

Please advice how can this be achieved by using a BADI or CUSTOMER FUNCTION ETC.

Hoping its an easy requirement for you guys.

Thnx

Salman Akram

Edited by: Salman Akram on Sep 3, 2009 8:11 PM

8 REPLIES 8
Read only

Former Member
0 Likes
1,538

Hi,

This can set up using FI validation(TransactionsOB28) ,I hope your functional cosultant would be able to help you also you can use Business Transaction Events (BTEs Transaction FIBF) to set up the same.

Check the below link for FI Validations:

LINK:[FI Validations|http://www.sap-basis-abap.com/sapfi004.htm]

Check BTEs: 00001410, 00001420 and 00001430

Regards,

Himanshu

Read only

0 Likes
1,538

Hello,

Thank You. We have already checked on the validations option and that does not fullfill our requirement. We only need to call the customer function when there is a "change" in the reference field otherwise we dont want to call the customer function. With validation the logic will always be triggered. Please let me know if what I am saying doesn't make sense.

Regards,

Salman Akram

Edited by: Salman Akram on Sep 3, 2009 10:18 PM

Read only

0 Likes
1,538

The validation could check the transaction. If it's FB02 or FB03, then do your logic.

rob

Read only

0 Likes
1,538

Hello,

As i mentioned above, validation is not meeting our requirements. We need something like a screen exit? Is there a way to use screen exits and badi's....Just some thoughts.

Regards,

Salman

Read only

0 Likes
1,538

Hi Salman,

I dont think there are exits or BADIs that fulfill the your requirements, please check your self. You can go to spro branch to the right node in the hierchy and you should find the information about the enhancments there. You can also go to SMOD use the pacakage to see the enhancements avaliable and you can check if they would fulfill your requirement. In order to check the BADIs avaliable you can go to the class CL_EXITHANDLER and go to method get instance and use a break point there and then execute the transaction FB02 to see is any BADI triggers that can do what you want.

Yes you are right that the code in the validation would be triggered every time but you can out conditions and control it.

Regards,

Himanshu

Read only

0 Likes
1,538

Thank You Himanshu,

I did check the BADI after putting the breakpoint and the EXIT_NAME is: GOS_SRV_SELECT

However if i was to use the BADI way of moving forward do you know if I can implement logic for PAI (Process after input) flow logic there? Maybe if i can use field (chain/end chain) statements in the BADI i can know if the Reference field has changed and that way would know if customer exit function needs to be called or not? I am sorry i have not implemented a BADI before so let me know if my question is vague.

About putting conditions around the validation again i think its not possible as there is no way for me to tell whether a user has literally changed the contents of the Reference field. If the user DOESNT DO ANYTHING with the Reference field but changes Header Text Field for example, then I dont want to call the customer function. I see this happening only by using Field (Chain/End Chain) Statement to know if a user has changed a reference field.....

Please advice as I am loosing valuable time here and really need help or a way forward.

Regards,

Salman

Read only

0 Likes
1,538

Answered as part of another thread

Regards,

Salman

Read only

Former Member
0 Likes
1,538