Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Is there any BAPI for T-Code : CJ06 with custom fields ?

Former Member
0 Likes
866

Hi Friends,

Is there any BAPI for T-Code : CJ06 with custom fields mentioned below?

The fields I am giving as input are :

Project Definition - PSPID,

Short Description - POSTU,

Project Profile - PROFL,

Controlling Area -VKOKR,

Company Code - VBUKR,

Profit Center -PRCTR,

Project Currency -PWHIE,

Number of the responsible person (project manager)- VERNR,

Plant -WERKS,

Start Date -PLFAZ,

Finish Date -PLSEZ,

Project Profile -PROFL,

Applicant Number - ASTNR,

Long Text -LTXT.

Custom Fields are :

Investment Type,

New Model Series,

New Model Derivative,

Project Type,

New Model Type,

Legacy Project Code,

Preparation,

Approval,

Execution,

INV Benefit start,

Capitalization ,

Post Inv Review,

Project Category,

Type of R&D Project,

Tax Relief,

Parent R&D Project,

Tax Relief,

Customer Name,

EGE Responsible,

Cost Center,

Legacy Project Code.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
777

Read the documentation of the following BAPIs

- BAPI_PS_INITIALIZATION

- BAPI_BUS2001_CREATE

- BAPI_BUS2001_PARTNER_CREATE_M (if partners are to be updated)

- BAPI_PS_PRECOMMIT

- BAPI_TRANSACTION_COMMIT

Also perform some search on their names as well as structure name BAPI_TE_PROJECT_DEFINITION for EXTENSIONIN parameter.

Regards,

Raymond

Hi Friends,

Is there any BAPI for T-Code : CJ06 with custom fields mentioned below?

The fields I am giving as input are :

Project Definition - PSPID,

Short Description - POSTU,

Project Profile - PROFL,

Controlling Area -VKOKR,

Company Code - VBUKR,

Profit Center -PRCTR,

Project Currency -PWHIE,

Number of the responsible person (project manager)- VERNR,

Plant -WERKS,

Start Date -PLFAZ,

Finish Date -PLSEZ,

Project Profile -PROFL,

Applicant Number - ASTNR,

Long Text -LTXT.

Custom Fields are :

Investment Type,

New Model Series,

New Model Derivative,

Project Type,

New Model Type,

Legacy Project Code,

Preparation,

Approval,

Execution,

INV Benefit start,

Capitalization ,

Post Inv Review,

Project Category,

Type of R&D Project,

Tax Relief,

Parent R&D Project,

Tax Relief,

Customer Name,

EGE Responsible,

Cost Center,

Legacy Project Code.

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
778

Read the documentation of the following BAPIs

- BAPI_PS_INITIALIZATION

- BAPI_BUS2001_CREATE

- BAPI_BUS2001_PARTNER_CREATE_M (if partners are to be updated)

- BAPI_PS_PRECOMMIT

- BAPI_TRANSACTION_COMMIT

Also perform some search on their names as well as structure name BAPI_TE_PROJECT_DEFINITION for EXTENSIONIN parameter.

Regards,

Raymond

Read only

RaymondGiuseppi
Active Contributor
0 Likes
777

I found an old code of mine

      clear: st_extension.
      st_extension-structure = 'BAPI_TE_PROJECT_DEFINITION'.
      call method cl_abap_container_utilities=>fill_container_c
        exporting
          im_value     = st_ci_proj " type bapi_te_project_definition
        importing
          ex_container = st_extension+30
        exceptions
          others       = 0.
      append st_extension to it_extension.
      call function 'BAPI_BUS2001_CHANGE'
        exporting
          i_project_definition     = i_project_definition
          i_project_definition_upd = i_project_definition_upd
        tables
          et_return                = et_return
          extensionin              = it_extension
          extensionout             = et_extension.
      loop at et_return into st_return where type = 'A' or type = 'E'.
        message id st_return-id type 'E' number st_return-number
          with st_return-message_v1 st_return-message_v2 st_return-message_v3 st_return-message_v4.
      endloop.

Regards,

Raymond

Read only

Former Member
0 Likes
777

Use this BAPI 'BAPI_BUS2001_CREATE'. But unlike other BAPI we have do extra work before and after calling BAPI like Initialization and Commit.