‎2008 Apr 28 12:10 PM
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
‎2008 Apr 28 12:13 PM
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.