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

How to Call Scapscript program in bapi

Former Member
0 Likes
330

Hi All there,

wanted to call a sap-script program in a bapi

my coding is line

FUNCTION ZBAPI_ZDIPNB.

*"----


""Local interface:

*" EXPORTING

*" VALUE(HTML_STRING) TYPE STRING

*" TABLES

*" SELTAB STRUCTURE RSPARAMS

*" HTML_REPORT STRUCTURE W3HTML

*"----


types: begin of tt_html,

html type W3HTML,

end of tt_html.

Data: LIST_TAB type standard table of ABAPLIST.

Submit ZSDRDINVPNBRPT with SELECTION-TABLE SELTAB

exporting list to Memory and return.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = list_tab

EXCEPTIONS

not_found = 1

OTHERS = 2.

CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'

EXPORTING

  • REPORT_NAME =

TEMPLATE_NAME = 'WEBREPORTING_REPORT'

  • CHARSET = 'utf-8'

TABLES

html = HTML_REPORT

listobject = list_tab.

  • LISTICONS =

FREE MEMORY.

ENDFUNCTION.

but include program in this report is not excuting it is not asking for input parameter which I have defined in include preoram

Answer will definatly rewarded

Regards

Shashikant

1 REPLY 1
Read only

Former Member
0 Likes
298

well most of the sap-script driver programs are not executable so you will have problem trying to call these.

normally the enrty-routine is beeing called and the the rest will go its way.

but be sure to provide the neccesary data especially in the structure NAST.