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

Upadate AUFK with BAPI_ALM_ORDER_MAINTAIN

k_gjergja
Participant
0 Kudos
3,255

Hello ,

I  need to update  a field  in include CI_AUFL of  table AUFK of an existing order. I am tiring to do it with bapi_alm_order_maintain.

Unfortunately I am getting error message. I guess the error comes from construction of the method table.

I crated a small demo program and fill in method table as below screen shows. I am not sure how to fill in REFNUMBER

and OBJECTTYPE . Can you advice  where to find those values?

In extension table (second print screen)  I have put the name of the include field and the value I want to fill in it , and pass it

to import parameter "extension_in"

Could you advice what is to be corrected in this case .

Best regards

method table

extention

1 ACCEPTED SOLUTION
Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
1,582

Hi Krsto,

Reference number should be something like 1. See the function module documentation for more details.

For Header, Object Type will be 'HEADER'. As you are changing existing order, method should be 'CHANGE'. You have to add another line with SAVE as well.

See if it helps Reg: Extension of BAPI "BAPI_ALM_ORDER_MAINTAIN" | SCN

2 REPLIES 2
Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
1,583

Hi Krsto,

Reference number should be something like 1. See the function module documentation for more details.

For Header, Object Type will be 'HEADER'. As you are changing existing order, method should be 'CHANGE'. You have to add another line with SAVE as well.

See if it helps Reg: Extension of BAPI "BAPI_ALM_ORDER_MAINTAIN" | SCN

Read only

0 Kudos
1,582

Hello ,

I followed instructions and I have all in order except update. In my BADi  I can see value o Z field that has to be updated  but when I run  the program  table is not updated . I did also bapi commit call . I guess it is a header table but I am not sure how to fill it.

Please advice