‎2010 Oct 01 6:39 AM
Hi Experts,
I need to wrtie exit in OBBH so wht i did is in ZRGGBS000 module i added exit U901. But once i activate the code and come back and press f4 i am not able to see the exit wht i created and 2nd issue is
1) Using the reference number BKPF-XBLNR (billing doc number), get the customer PO line VBKD-BSTKD.
2. Update BSEG-SGTXT (user exit should only be called for GL lines other than the 2 specifically excluded).
But how to write the code to get customer PO based on reference number in BKpf as there is no link between two tables.
Can anyone please help me out . I do abt fico at all
‎2010 Oct 01 6:47 AM
Hello,
Did you add the exit U901 to the subroutine get_exit_titles in the program ZRGGBS000.
Something like this:
exits-name = 'U901'.
exits-param = c_exit_param_field.
exits-title = Your Exit Title'.
APPEND exits.
BR,
Suhas
‎2010 Oct 01 8:02 AM
‎2010 Oct 01 6:47 AM
Have you added the exit U901 inside the form-routine GET_EXIT_TITLES ? See the program documentation
* Note: If you define a new user exit, you have to enter your *
* user exit in the form routine GET_EXIT_TITLES. *Regards
Vinod
‎2010 Oct 01 10:39 AM
Hi,
From the technical standpoint, you couldn't do anything much apart from what you have already done regarding the exit not appearing in the F4 list.
To get the VBKD-BSTKD value, there is no direct link as you have already found out, you have to use field-symbols to get the value.
field-symbols <vbkd> type vbkd.
field = '(SAPMV45A)VBKD'.
assign (field) to <VBKD>.
Use this to get the value of customer PO.
Hope it helps.
Sujay