Skip to Content
0

GOS CREATE ATTACHMENT SERVICE FROM TOOLBAR , Create_atta not working

Mar 27 at 01:37 PM

16

avatar image

Hi Friends ,

I have created a ZEE Transaction with a ZEE Screen .

The requirement is to create attachments and list attachments by

clicking two buttons .From application tool bar .

While doing the 'Attach' ok code .

Getting Return as 'Execution failed' from CALL METHOD MANAGER->START_SERVICE_DIRECT

object in Tcode SWo1 objects created

 DATA: MANAGER TYPE REF TO CL_GOS_MANAGER.
 CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS'.

At Pai .

WHEN 'ATTACH'.
CREATE OBJECT MANAGER
 EXPORTING
 IP_NO_COMMIT = 'R'
 EXCEPTIONS
 OTHERS = 1.
WHEN 'ATTACH'.
        CALL METHOD MANAGER->START_SERVICE_DIRECT
        EXPORTING
          IP_SERVICE       = 'CREATE_ATTA'
          IS_OBJECT        = OBJ
        EXCEPTIONS
          NO_OBJECT        = 1
          OBJECT_INVALID   = 2
          EXECUTION_FAILED = 3
          OTHERS           = 4.

Where as the following is working , Provided inputting an Existing OBJ details

 WHEN 'LIST'.
      CALL METHOD MANAGER->START_SERVICE_DIRECT
       EXPORTING
          IP_SERVICE       = 'VIEW_ATTA'
          IS_OBJECT        = OBJ
        EXCEPTIONS
          NO_OBJECT        = 1
          OBJECT_INVALID   = 2
          EXECUTION_FAILED = 3
          OTHERS           = 4.

and Also ,Standard 'Services For object ' is working

Please check what might be missing in the above .

Thank you

Regards,

Ponrajasekharan

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers