‎2009 Nov 17 6:42 AM
Hi,
I'm trying to pass parameter in object CL_GOS_MANAGER. This is my coding.
data : cocode(3) type c,
docno(10) type c,
fiscal(4) type c,
temp(20) type c.
cocode = ORGANISATIONS(3).
docno = CORR_DOC(10).
fiscal = CORR_DOC+13(4).
concatenate cocode ' ' docno fiscal into temp.
DATA: LO_MANAGER TYPE REF TO CL_GOS_MANAGER,
LA_OBJ TYPE BORIDENT.
LA_OBJ-OBJTYPE = 'BUS2021'.
LA_OBJ-OBJKEY = temp.
call method LO_MANAGER->set_id_of_published_object
exporting is_object = la_obj.
if sy-subrc = 0.
endif.
But I always get ABAP dump message Access via 'NULL' object reference not possible.
Anyone can help me ?
Thanks,
Melissa
‎2009 Nov 17 6:49 AM
‎2009 Nov 17 7:41 AM
HI,
Here's is the whole scenario I'm facing.
When I open FIBLFFP (payment request) -> I create object. This is in order to be able attach file
(Method CREATE_FREEFORM_PAYMENT)
DATA : LA_OBJ TYPE BORIDENT.
LA_OBJ-OBJTYPE = 'BUS2021'.
LA_OBJ-OBJKEY = '0000000000'. * This is an initial document number, because the correct doc no not yet generated
CREATE OBJECT CL_GOS_MANAGER
EXPORTING
IS_OBJECT = LA_OBJ
IP_NO_COMMIT = SPACE
EXCEPTIONS
OTHERS = 1.When I want to save my payment request, then only I can get the document number generated by SAP.
I need to pass the the combination company code + doc no + fiscal year to the object key of object CL_GOS_MANAGER I've created earlier.
(EXIT_SAPL2021_002)
DATA : cocode(3) TYPE c,
docno(10) TYPE c,
fiscal(4) TYPE c,
temp(20) TYPE c,
la_obj TYPE borident.
cocode = organisations(3).
docno = corr_doc(10).
fiscal = corr_doc+13(4).
CONCATENATE cocode ' ' docno fiscal INTO temp.
la_obj-objtype = 'BUS2021'.
la_obj-objkey = temp.
CALL METHOD lo_manager->set_id_of_published_object
EXPORTING
is_object = la_obj.Then I get the error message.
Any suggestion so that I could have the attached file linked to the new document created ?
Thanks,
Melissa
‎2009 Nov 17 2:29 PM
Hi Melissa,
Is it dumping at the below statement.
call method LO_MANAGER->set_id_of_published_object
exporting is_object = la_obj.
Check if there is some value in LO_MANAGER, before this statement is called, in debugging mode.
Are you freeing or clearing it before ?
Regards,
Nisha Vengal.
‎2009 Nov 18 5:54 AM
Hi All,
I solved it by my own.
I need to define the variable in global parameter that both of the exit and function module can recognized.
Thanks for your help.
Melissa