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

bapi using Submit program?

Former Member
0 Likes
1,039

  dear all, pls check this code.

i developed 7 bapis using submit program for transactions IH06, IH08, IP24, IW39, IW69 etc

they worked fine till yesterday but now,

the bapi when communicated by non-sap tool  returning no data exists message.

though the data exiists.

when i check the same in SE37. I GET DATA AND MESSAGE Data Fetched Successfully.

BAPI uset to work fine for last 3 months. im unable to undestand whts the issue.

 

TRY.

CALL METHOD cl_salv_bs_runtime_info=>get_data_ref(

IMPORTING

r_data = r_data ).

CATCH cx_salv_bs_sc_runtime_info . "#EC NO_HANDLER

ENDTRY.

SUBMIT riqmel40 " submit program using values

WITH datuv EQ ivnotif_datefrom

WITH datub EQ ivnotif_dateto

WITH qmart IN shbynotiftype

WITH strno IN lsht_200funclocs

WITH equnr IN lsht_200equips

WITH ernam IN shbycreatedby

WITH aenam IN shbychangedby

EXPORTING LIST

TO MEMORY AND RETURN.  

TRY.

CALL METHOD cl_salv_bs_runtime_info=>get_data_ref(

IMPORTING

r_data = r_data ).

CATCH cx_salv_bs_sc_runtime_info .

call method  cl_salv_bs_runtime_info=>clear_all.

regards

satish chandra

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
837

Same solution as in Screen output with out Connection to User-bapi for parameter dy_selm seems relevant. (Same "family" of reports)

The called report will execute a

EXPORT sel_tab TO MEMORY ID sy-repid.

Then import the selected table in your "BAPI" wrapper.

Regards,

Raymond

4 REPLIES 4
Read only

Former Member
0 Likes
837

GUYS, when i test the bapi in se37, i have no problems. but when via non-sap im not getting data here

CALL METHOD cl_salv_bs_runtime_info=>get_data_ref(

IMPORTING

r_data = r_data )..

i have no clue why this is happenening, it worked last three months very well.

please we are above to close our project.. help me on this.

thanks & regards

satish chandra

Read only

0 Likes
837

GUYS, i believe the draw back in submit program is when single recored to be displayed then the display would be of screen. how could we chage this display from screen to list.?

any ideas guys

regards

satish chandra

Read only

0 Likes
837

GUYS, i believe the draw back in submit program is when single recored to be displayed then the display would be of screen. how could we chage this display from screen to list.?

any ideas guys

regards

satish chandra

Read only

RaymondGiuseppi
Active Contributor
0 Likes
838

Same solution as in Screen output with out Connection to User-bapi for parameter dy_selm seems relevant. (Same "family" of reports)

The called report will execute a

EXPORT sel_tab TO MEMORY ID sy-repid.

Then import the selected table in your "BAPI" wrapper.

Regards,

Raymond