Skip to Content
author's profile photo Former Member
Former Member

BAPI_ALM_ORDER_MAINTAIN update AUFK custom fields

Dear all,

I'm trying to find a solution to update custom fields from AUFK.
I already checked all posts without success.

Here you have my procedure:

  1. I created my custom fields in CI_AUKF structure
  2. I created append structure in IBAPI_CAUFVD_UPDATE
  3. I implemented my badi IBAPI_ALM_ORD_MODIFY with the following code, I checked with debug and all information is correctly filled.
  4. Then I implemented my abap code in program to call BAPI "BAPI_ALM_ORDER_MAINTAIN":

Unfortunately I'm not able to update my Z custom fields. I don't know why !

With this code in program I have the following error:

Sorry for French print screens but I'm not able to have all customizing in EN to create production order.

Thank you for your precious help !

2dk7i.png (40.2 kB)
rfgda.png (29.7 kB)
dquze.png (59.6 kB)
lvewr.png (66.9 kB)
wjmqa.png (17.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Apr 10, 2018 at 07:04 PM

    Hi Melissa,

    One of your error messages indicates a problem with the methods. I'm comparing your code to my own calls to the same BAPI, though we don't have customer fields appended to AUFK so I'm not using the extension_in parameter. A difference I notice is in your SAVE method, try clearing the REFNUMBER field instead of passing a value. My own code looks like this...

    ls_method-objectkey = orderid.
    ls_method-objecttype = if_eams_bo_const=>gc_bapi_ord_obj_type-empty.
    ls_method-method = if_eams_bo_const=>gc_bapi_ord_method-save.
    CLEAR ls_method-refnumber.
    APPEND ls_method TO lt_methods.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Amy !

      Thank you for your reply !

      I tried to comment refnumber in SAVE method but unfortunately the issue is the same. I have same errors.

      I tried some modifications on methods without success. This is the reason I'm looking for an example of code updating custom fields in AUFK.

  • Posted on Jul 29, 2020 at 09:54 AM


    I'm facing same problem. Z fields on AUFK not updated with BAPI_ALM_ORDER_MAINTAIN.

    I've seen other posts here on scn: the implementation of badi: IBAPI_ALM_ORD_MODIFY and enhance structure IBAPI_CAUFVD_UPDATE.

    SAP provides note,sap_appl 618., and other notes...

    it is really necessary to implement BADI IBAPI_ALM_ORD_MODIFY? and enhance IBAPI_CAUFVD_UPDATE?

    ea-appl 605.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.