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: 

substitution -debug prob

Former Member
0 Kudos

hi masters,

in TCODE OBBH i have created substitution

the EXIT IS = U001.

in the substitution i have selected the U001.

BUT it does not take to my routine.

i have writen tHE ROUTINE Like this.

form U001.

endform.

but once i give the EXIT NAME in the SUBSTITUTION It does not move anywhere.

but when i trying to select the EXIT it goes DEBUGGER and not after my selction of EXIT - U001.

CAN YOU PLEASE TELL WHAT I NEED TO DO NOW.

thank you,

pasala.

1 ACCEPTED SOLUTION

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

Where have you written the code for your exit routine ?

BR,

Suhas

5 REPLIES 5

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

Where have you written the code for your exit routine ?

BR,

Suhas

Former Member
0 Kudos

hi suha,

i have created the EXIT - U111.

and i have writen the code LIKE this in routine.

FORM U111 USING is_bkpf type bkpf

is_bseg type bseg

i_xref_field type i

Changing c_rmvct type rmvct.

DATA : L_TEXT LIKE BSEG-SGTXT.

CONCATENATE BKPF-BELNR BSEG-GJAHR INTO L_TEXT SEPARATED BY space.

ENDFORM.

as i said when try to select a exit i could be able to get to the debugger... but... once i select the the EXIT it does not trigger my my routine.

i am not sure of the debugger mode in SUBSTITUTION... and your info will be of greate help to me.

thank you,

pasala.

0 Kudos

Check those OSS notes for reference

- Note 842318 - Frequently asked questions about validations + substitutions

- Note 48121 - User Exits in Validations/Substitutions

In Note 842318, check §3. How can I use the Debugger to analyze a problem?

Regards,

Raymond

Former Member
0 Kudos

hi Raymond,

i have gone through the notes and other things regarding the substitution but i still dint get to my point when i debug.

as i said :

i have created a substitution.. created a step in step there are 2 things

1. pre-requisite : in pre-req : i said it to be like this sy-tcode = 'miro' and bkpf-bukrs = tr05.

2. substitution : in substitu: i have selected the bseg-sgtxt.

i have copied the prog RGGBS000 to zf_ggbs000 and maintained in the table.

in zprog i have writen the code in:

form get_exit_titles tables etab.

data: begin of exits occurs 50,

name(5) type c,

param like c_exit_param_none,

title(60) type c,

end of exits.

  • *----> begin of new-insert jj

exits-name = 'U907'.

exits-param = c_exit_param_field.

exits-title = 'TCP Vendorname, Number and Reference'.

append exits.

endform

and writen the form like this

form u907 using is_bkpf type bkpf

is_bseg type bseg

i_xref_field type i

changing c_rmvct type rmvct.

data : l_text like bseg-sgtxt.

concatenate bkpf-belnr bseg-gjahr into l_text separated by space.

endform.

but when i stop here it does come to the above routine but does not come to the below routine.

can anyone help me pls your input is highly appriciated.

thank you,

pasala.

Former Member
0 Kudos

thank you all.