‎2014 Jun 02 3:07 AM
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
‎2014 Jun 06 12:33 AM
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
‎2014 Jun 06 12:33 AM
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