2012 Mar 01 3:20 PM
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.
2012 Mar 01 3:50 PM
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 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
2012 Mar 01 3:50 PM
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
2012 Mar 06 3:40 PM
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
2012 Mar 09 7:23 PM
Use this BAPI 'BAPI_BUS2001_CREATE'. But unlike other BAPI we have do extra work before and after calling BAPI like Initialization and Commit.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |