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

Investment Program fields in TCode CJ11

Former Member
0 Likes
905

Hi Experts,

Currently I'm facing an issue loading the IM fields of CJ11 that belongs to WBS level 1.

Field name: Investment Program

Table/Structure: RAIP1

Field Name: PRNAM

Field name: Approval year of the Investment Program

Table/Structure: RAIP1

Field Name: GJAHR

Field name: Position ID

Table/Structure: RAIP1

Field Name: POSID

I have a dirty way to load them but I would like to do it properly. The answer that I found is to modify the BAPIs to get these fields. Any advise on how to do it?

Cheers,

RR

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

Hi All,

In case that somebody face this too my dirty way is using FM  AIPP_ALLOCATE_POSITION_DARK before  BAPI_PS_PRECOMMIT in case the fields are mandatory and call it  after BAPI_TRANSACTION_COMMIT if there are no error but using the new Object Number and do a commit after it.

You can save any error of FM AIPP_ALLOCATE_POSITION_DARK using for example  BALW_BAPIRETURN_GET2 if sy-subrc is not 0.

I hope this helps, and if anybody has a better idea please share it.

Cheers,

RR

1 REPLY 1
Read only

Former Member
0 Likes
639

Hi All,

In case that somebody face this too my dirty way is using FM  AIPP_ALLOCATE_POSITION_DARK before  BAPI_PS_PRECOMMIT in case the fields are mandatory and call it  after BAPI_TRANSACTION_COMMIT if there are no error but using the new Object Number and do a commit after it.

You can save any error of FM AIPP_ALLOCATE_POSITION_DARK using for example  BALW_BAPIRETURN_GET2 if sy-subrc is not 0.

I hope this helps, and if anybody has a better idea please share it.

Cheers,

RR