Application Development 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: 

Unable to update a custom field using BAPI_SALESORDER_CHANGE

Former Member
0 Kudos

Hi All,

I have a custom field in sales order screen, I am trying to update the same using BAPI_SALESORDER_CHANGE , EXTENSION parameter with all correct parameters.

I have extended BAPE_VBAP,BAPE_VBAPX,VBAPKOM,VBAPKOMX, VBAPKOZ,VBAPKOZX all extended for that sales order line item custom field.

When we try to update using BAPI our RETURN table gets populated with all success messages.

But when we go to screen unable to change that value.

The custom Field is grayed out at the time of sales order change and create also (VA02 and VA01).

I want to know , Can't we update the custom field which is grayed out through BAPI and Extension parameter ?

Please help.

Dipankar

<< Moderator message - Please do not promise points >>

Edited by: Rob Burbank on Jan 26, 2011 9:05 AM

4 REPLIES 4

Former Member
0 Kudos

Sounds like the first step is to fix the not availble for input condition that exists in VA01 and VA02.... Your post doesn't actually seem to indicate whether or not the BAPI inserted values into these field(s), so in SE11/16, do you see values in the fields in question that match the values inserted into your BAPI interface tables?

The fact that you cannot change in VA02 or enter in VA01 and that you tried to populate with BAPI are two entirely separate issues.

Former Member
0 Kudos

Hi,

Hi Did you call Function BAPI_TRANSACTION_COMMIT' after calling the BAPI. ?

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait = c_x.

Regards,

Jovito.

Former Member
0 Kudos

Hi Deepankar,

Check user-exit MV45AOZZ. Check the PBO module for the screen where the custom field is located. I think, there is some code written in the PBO module which is stopping it from coming to "input/change mode".

madhu_vadlamani
Active Contributor
0 Kudos

Dear dipankar,

Hi.Try to maintain like screen in if sy-tcode = 'va03.' screen input = 0 .Maintain in this way it may work.

Regards,

Madhu.