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: 

call bapi in Enhancement

Former Member
0 Kudos
175

hi ,

i do Enhancement and i call from their to bapi that i build and

when i put debugger in the fm it don't get inside of it ,what can be the problem?

Regards

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos
122

hi,

it depends on the condition u hav set.

if the condition is not satisfied then the fm will not trigger.

any queries post ur code.

reward points if hlpful.

10 REPLIES 10

GauthamV
Active Contributor
0 Kudos
123

hi,

it depends on the condition u hav set.

if the condition is not satisfied then the fm will not trigger.

any queries post ur code.

reward points if hlpful.

Former Member
0 Kudos
122

Hi gautham chakraverthi,

i call to the FM in the user exit ,

i check , if i do double click on the FM name i get inside of it!

but when i put break-point on the fm and press F5 I go inside method

if_rsr_var_runtime~check

and after another method and another ... and i don't go inside the FM

What u think is the problem?

i work in BI7 SYSTEM maybe i have to declare there something ?

Regards

Former Member
0 Kudos
122

Pl. check whether ur user exit is activated or not.

Regards,

Joy.

Former Member
0 Kudos
122

Hi Joyjit Ghosh ,

sure its activated !

Regards

Former Member
0 Kudos
122

Can u pl. post ur code? FM call from user exit as well as FM code. And one question, there is any chance that SAP is not calling the exit for the data u r using for testing purpose?

Regards,

Joy.

Former Member
0 Kudos
122

HI Joyjit Ghosh ,

there is no Chance because when i turn on the quary i get inside the user exit I PUT BREAK POINT and do select ... but when i come to the FM I and i put debugger & press f5 i go inside metods and not the FM.

Former Member
0 Kudos
122

HI Joyjit Ghosh ,

this is my code :

IF i_sst  = 'ZZ_PRC'.
BREAK-POINT.
      LOOP AT i_t_var_range INTO ttab
            WHERE vts = 'YY_ST'.
      ENDLOOP.

BREAK-POINT.

    CALL FUNCTION 'YHR_GET_EMP_DATA' 
      EXPORTING
        PERNR       = '1234'
      TABLES
        emp_data          = emp_data 

BREAK-POINT.

.

when i run the QUARY the debbuger start and do the loop before the fm (i have data in TTAB) but when i push f5 on the FM I go inside metods .

i do double click on the FM NAME AND I see the fm code.

Regards

Former Member
0 Kudos
122

Put a breakpoint on the FM call within ur user exit. Activate debugger , Run ur treansaction...come inside the userexit and press F8 instead of F5 and see what happens...

Regards,

Joy.

Former Member
0 Kudos
122

Hi Joyjit Ghosh ,

thanks for all repays!!!

as u see in my code below i put break point after the fm but when i push f8 i don't go to the break-point but start the user exit from the begning .

Regards

Former Member
0 Kudos
122

Hi,

Put break point in ur enhancement and then try.

Regards

Susheel