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

Function Module or BAPI for IM52 Transaction(Budget Distribution)

Former Member
0 Likes
2,208

Hi,

My requirement is to change the budget value for a particular investment program and WBS element. I am facing problem with BDC. Is there any other way? Please help me to solve this problem.

Thanks&Regards,

Ganga Bhavani.

4 REPLIES 4
Read only

Former Member
0 Likes
1,067

Check BAPI_EXPENDITUREPROGDEF_CHANGE

Reward points...

Read only

Former Member
0 Likes
1,067

Hi,

I have checked that FM .Its used to change the program id definition.But my requirement is to change the budget value based on program id and WBS Element.

Please help.

Regards

Ganga Bhavani

Read only

sebastiansierra
Discoverer
0 Likes
1,067

I have same problema, who knows what is the BAPI FOR BUDGET DISTRIBUTION?, from IM position to WBS element (IM52)

Thanks for your help!!!

Read only

0 Likes
1,067

Hi all.

One way can be...

1.- Get the data in the same sequence that into the IM42/IM52 screen:

Make a copy of the FM "AIP1_GET_INVPROG" to get all rows that you can see in IM42/IM52 screen.

1.1.- Adapt your new FM.

The necessary data is stored into the internal table "pos".

Make a new deep structure/table type (of the same type of the internal table "pos") to declare an output (export) table in your FM interface.

For get the right values to execute your FM, first analyse the value parameters passed to the standar FM and the output.

1.1.1 Put a break-point at the begining and one more at end of the FM "AIP1_GET_INVPROG", Run the transaction IM42 or IM52. Check the values passed to the FM. (the input parameter I_AKTYP should be 'A' (display))

2.- Now, we can determine the exact row to use in our BDC data to use with CALL TRANSACTION. Make you own logic to fill your BDC data internal table.

Recomendation: Use OPTIONS FROM ctu_params in your CALL TRANSACTION WITH defsize = 'X'

Good luck!

Best regards!