Skip to Content
avatar image
Former Member

PDF Issue

Hi all,

I have created a report..this report when executed will give the o/p in a PDF format of PO details ...this report will take PO number as input ..this is working fine in GUI mode...when i placed this report in the ITS whenever i give a PO number to it it is going to dump...In dump i didnt find how to solve it...please help..

My report will take input as PO Number and when executed it will open the PO Details in PDF format...

The logic i have written is creating the PDF file in the SAP Work dir and opening the created PDF file from the SAP Work Dir...will this effect any where????

As my report is working fine in GUI and NOT ITS what exactly do i need to chnage..

Dump shows as ::


Access not possible using 'NULL' object reference.

What happened?

Error in ABAP application program.

The current ABAP program "CL_GUI_FRONTEND_SERVICES======CP" had to be

terminated because one of the

statements could not be executed.

This is probably due to an error in the ABAP program.

Error analysis

An exception occurred. This exception is dealt with in more detail below

. The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL', was


caught nor passed along using a RAISING clause, in the procedure



Since the caller of the procedure could not have expected this exception

to occur, the running program was terminated.

The reason for the exception is:

Attempt to access a component using 'NULL' object reference (points

to nothing).

An object reference must point to an object (an instance of a class)

before you can use it to access components (variable:


Either the reference has not yet been set, or it has been reset to

'NULL' by a CLEAR statement.</b>

I am unable to find a solution please help...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 02, 2007 at 09:52 AM


    maybe this is not supported by the webgui - yet. What is your release incl. Support Package level?

    best regards


    Message was edited by:

    Tobias Gomer

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      I want to help but in order to do so, I need information about the problem.

      What is about testing the method? Didn't see a reply yet.

      My EMail account is tobias.gomer"AT", please send me your




      Message was edited by:

      Tobias Gomer

  • avatar image
    Former Member
    May 07, 2007 at 02:47 PM


    I have worked on the same requirment i could get it please see the below code.

    Use this FM. If you need any more information let me know.

    MIME_TYPE = 'application/pdf'.

    clear DATA_LEN.

    DATA_LEN = numbytes.



    DATA_LEN = numbytes







    OTHERS = 2.

    Add comment
    10|10000 characters needed characters exceeded