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

OBBH Tcode

Former Member
0 Likes
1,064

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

4 REPLIES 4
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
804

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

Read only

Former Member
0 Likes
804

YA I DID THT AS WELL

Read only

Former Member
0 Likes
804

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

Read only

Former Member
0 Likes
804

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