cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed in SAP Java- Print option

Former Member
0 Kudos

Anybody please help quickly,

Now, I have 2 tables from different queries. I have a print (HTML written) option in my WEB Template

JAVA PROGRAM:

function PrintReport(typePaper) {

document.title ='Report';

if (typePaper == "0")

{var CurrentReportName = '&?mp=U&ptot=1&rtot=0&psize=' + escape(typePaper) + '&fsize=' + escape('39') + '&qtitle=' + escape(document.title);};

if (typePaper == "1")

{var CurrentReportName = '&?mp=U&ptot=1&rtot=0&psize=' + escape(typePaper) + '&fsize=' + escape('52') + '&qtitle=' + escape(document.title);};

CurrentReportName += '&ASOFDATE=' + escape(AsOfLabel.innerText);

var openCMD='<SAP_BW_URL>';

openCMD += '&DATA_PROVIDER=REPORT_TEST1&TEMPLATE_ID=DPW_PRINT_PAGE&CMD=RELEASE_DATA_PROVIDER';

openCMD += CurrentReportName;

openWindow(openCMD,'MainTitleNow',800,600);

}

The data provider here is REPORT_TEST1. Now it only prints the corresponding data for the data proviedr 1 i.e., REPORT_TEST1. I have a second table whose data comes from the data provider 2 when i use this HTML to print I want the second table contents from the data provider 2 (REPORT_TEST2)also to be printed simlutaneously.

Please help.

THANX A LOT,

SRINI

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I call the two queries for different web items in the web template. I want a report to print them at once using the print structure in my previous message. If more information is needed please reply