cancel
Showing results for 
Search instead for 
Did you mean: 

Bapi XXX Get Detail to BAPI XXX Change Order

Former Member
0 Kudos

I'm working with the following:

Bapi_prodord_get_detail

bapi_prodord_change

I have an input form on the get detail presenting a table view of the production order header. This is editable.

The user can change the start and finish date and the order quantity.

there is a SAVE button in the table tool bar.

What I want to happen is for the SAVE event to call the Change bapi with populated values from the table and make the change.

I cannot get this to work.

I've tried a data store and Input thingies - all to no avail. (I'm a beginner!)

Appreciate any help

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I followed the documentation for adding a popup to the iview. The getlist bapi results table is editable with some custom fields added to hold the original data (unchanged). the user selects the line and changes the data, then clicks the SAVE button added to the table toolbar. This callse the popup which contains the CHANGE bapi. I added a second results form to grab the original data, and changed data. Then a new field 'LOG' and a formula to write a message ' Quantity changed from '& @orig_value &' to ' @Target_quantity

Former Member
0 Kudos

Hi Simon,

Connect the table to the change Bapi and pass the values. Ensure that the line connecting the table and bapi is called save. Also, if you can let us know what problems are you facing and if this works for you or not?

Cheers

Nidhi

Former Member
0 Kudos

I managed to get it to work by adding a popup and following the example in the documentation. I'm sure there would be a better way but for the purpose of prototyping it was satisfactory