Skip to Content
0

I am unable to creste project defination in ABAP cj20n

Jan 11 at 12:49 PM

27

avatar image
Former Member

this is my program. I am getting error is project profile doesnt exsit.

DATA: ls_entity TYPE BAPI_PROJECT_DEFINITION,
ls_zps_pdef TYPE ZPS_PDEF,
ls_return TYPE BAPIRETURN1,

it_e_message_table TYPE STANDARD TABLE OF BAPI_METH_MESSAGE,
wa_e_message_table LIKE LINE OF it_e_message_table.

MOVE-CORRESPONDING is_entity To ls_entity.
MOVE-CORRESPONDING ls_entity TO ls_zps_pdef.

* ls_entity = 'BAPI_TE_PROJECT_DEFINITION'.

APPEND wa_e_message_table TO it_e_message_table.

IF me->gv_without_initialization IS INITIAL.
CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
ENDIF.


CALL FUNCTION 'BAPI_PROJECTDEF_CREATE'
EXPORTING
project_definition_stru = ls_entity
IMPORTING
return = ls_return
TABLES
e_message_table = it_e_message_table.

IF sy-subrc NE 0.
IF me->gv_without_commit IS INITIAL.
CALL METHOD me->exec_ps_commit.
ENDIF.
ENDIF.


MOVE-CORRESPONDING ls_entity TO ls_zps_pdef.
INSERT ZPS_PDEF FROM ls_zps_pdef.
MOVE-CORRESPONDING ls_entity TO es_entity.

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

1 Answer

Raymond Giuseppi
Jan 11 at 12:59 PM
1

Check value of PROJECT_DEFINITION_STRU-PROJECT_PROFILE vs Customizing table maintained by transaction OPSA.

Share
10 |10000 characters needed characters left characters exceeded