Content


 

The "Changes" report shows the master data changes within the last 12 months for the selected customers, sorted by date in descending order.

Data acquisition and layout

We use the output of the SAP report RFDABL00_NACC". No own ABAP coding is required, since we can can set the parameters for the report in VB.NET and get the output back in HTML format.

You can define the color scheme for the HTML output of ABAP reports in the SAP system. We first use the original SAP layout.

In general, the direct display of an ABAP report is a very quick way to provide existing functionality as a CIS mobile report, which includes SAP standard reports as well as your own ABAP evaluations already developed by you. Even though the layout is usually not optimal for smaller mobile devices, this has made the information available.

Vb.net
    ' Report Changes
    Public Function CreateReportChanges _
             (Byval Keys As Dictionary(From String, String), _
              Byval Id As String, Byval Customernumbers() As String, _
              Byval Customernames() As String) As String


        We use ABAP report RFDABL00_NACC to display customer changes

        Clear input/output
        Rfc_input.clear()
        Rfc_output.clear()


        Build up report selections
        For Each Cnr As String In Customernumbers
            Add_report_selection(rfc_input, }, "kunnr", knr, knr)
        Next

        Dim Sorg As String = Getitem(keys, "vkorg")
        Dim Vtweg As String = Getitem(keys, "vtwku")
        Dim Saves As String = Getitem(keys, "spart")

        Dim D2 As Date = Date.today
        Dim D1 As Date = D2.AddYears(-1)
        Add_report_selection(rfc_input, "DATE", d_
               1.ToString("yyyyMMdd"), d2.ToString("yyyyMMdd"))
        Add_report_selection(rfc_input, "XALG", " ")
        Add_report_selection(rfc_input, "XALL", " ")
        Add_report_selection(rfc_input, "XBUK", " ")
        Add_report_selection(rfc_input, "XVKO", "X")
        Add_report_selection(rfc_input, "VKORG", vkorg, vkorg)
        Add_report_selection(rfc_input, "VTWEG", vtweg, vtweg)
        Add_report_selection(rfc_input, "SPART", saves, saves)

        Add_report_selection(rfc_input, "XDSCR", "X")


        ' Request data
        Ic.rfcrequest("RFDABL00_NACC", "H", rfc_input, rfc_output)


        ' Buld up HTML output table
        Dim Sb As New Stringbuilder


        Sb.append("<div style='text-align:center; font-size:12pt;
            Font-weight:bold; margin: 10px 0px 10px 5px; color:)
        AppendString(sb, _
                ic.MessageText("REPORT_CHANGES_TITLE", vkorg, vtweg, spart))
        Sb.append("<br>")
        Sb.append("<br>")
        Sb.append("</div>")

        For Each Line As Addonsimplestring In Rfc_output
            Sb.Append(line.content)
        Next

        Clear input/output
        Rfc_input.clear()
        Rfc_output.clear()


        Return Sb.tostring

    End Function

However, with this the output still looks a bit pale:


Especially on the iPad, the font in the SAP standard colors is somewhat difficult to read. We therefore define a new HTML layout for the report output under the name /GUIXT/WEBREPORTING_CIS (see next section for procedure) and pass it along when calling the report. Instead of

Request data
ic.rfcrequest(
"RFDABL00_NACC", "H", rfc_input, rfc_output)

it then says

Request data
ic.rfcrequest(
"RFDABL00_NACC./GUIXT/WEBREPORTING_CIS", "H", rfc_input, rfc_output)

i.e. You name the desired layout after the report name, separated by ".". This makes it look like this, for example:

 

You can also define a pure black and white design "ZZ_CIS_GRAY" (see next section), which is good for printing:

Call then with

Request data
ic.rfcrequest(
"RFDABL00_NACC.ZZ_CIS_GRAY", "H", rfc_input, rfc_output)

 

Customize the standard HTML layout for ABAP reports in SAP-Systems

CIS mobile uses the function blocks of the "Web Reporting" im SAP-Systems. You can find a description e.g. in

Web Reporting



It is not necessary to activate the Web Reporting environment (ICF Service of the ITS), because CIS mobile calls the function modules for generating the HTML reports directly, not via a Web Service.

To create your own layout, proceed as follows (see also Attributes for web reporting

Change templates):

Start transaction SMW0, press F8 (search) there.

 

Enter the SAP standard template WEBREPORTING_REPORT as name, then F8.

 

We do not change the default template, but create a copy. To do this, select the line with WEBREPORTING_REPORT and press the Copy button.

 

As name e.g. ZZ_CIS_GRAY:

 

Then go back and enter ZZ_CIS_GRAY as the object name. Select the line with ZZ_CIS_GRAY and click "Change". The reporting template is displayed:

 

 

We delete everything except the <!listbody!> line and then save.

 

Next, click the icon for "Attributes" in the toolbar, or Ctrl F9:

 

Here you can define the desired colors as RGB values,e.g. turn everything into shades of gray.  The description of this at SAP: Attributes for Web Reporting Templates

 

 

 

Additional Parameters

No Additional Parameters.