cancel
Showing results for 
Search instead for 
Did you mean: 

service call to function module not fetching data

Harsh9
Participant
0 Kudos

Hello Experts,

Today, I have started facing one more weird issue of the similar kind, I faced few weeks back.

Once my web dynpro application is loaded, on the click of button I make a service call to function module which brings me some data and that is being shown on the UI.

After doing few more service calls on the click of other buttons, when I click on the button initially clicked, service call is being made but no data is being returned.

I already debugged the code, made sure the parameters is being passed correctly to function module.

Regards,

Harsh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Harsh,

Can you let me know which FM(BAPI) are you using in service call ?

Thanks

KH

Harsh9
Participant
0 Kudos

Hello Katrice,


I have wrapped a call to standard function module BAPI_REQUIREMENT_GET_LIST in my Z function module.

I tried debugging to the point where my Z function module is calling standard function module. Though parameters are correctly passed, it is not returning data.

Regards,

Harsh

Former Member
0 Kudos

Have you checked if it is returning any messages?.

Thanks

KH

Harsh9
Participant
0 Kudos

Yes,

It is not returning any messages. Also sy-subrc is being set to 0.

Regards,

Harsh

Harsh9
Participant
0 Kudos

Hello Katrice,

I debugged to the hilt and found that standard function module 'ME_REL_ACTIVE' was returning sy-subrc non zero.

I cleared one variable after identifying it. Below is the code snippet:

    ld_read_t16fg = '(SAPLEBNF)READ_T16FG'.
    ASSIGN (ld_read_t16fg) TO <lst_read_t16fg>.
    IF <lst_read_t16fg> IS ASSIGNED AND <lst_read_t16fg> IS NOT INITIAL.
      CLEAR <lst_read_t16fg>.
    ENDIF.
    UNASSIGN <lst_read_t16fg>.

Regards,

Harsh

Answers (0)