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

Problem with BAPI_SALESORDER_CHANGE

Former Member
0 Likes
797

Hi,

There are 4 z fields in additional data B in Sales order

header.

I am trying to update the z fields using the BAPI, but

it does not update the z fields.

I have filled the table EXTENSIONIN and had appended the

structures BAPE_VBAK, BAPE_VBAKX, VBAKKOZ and VBAKKOZX

as mentioned in the help document.

While debugging , i found out that it is filling e_vbak

structure with ORDER_HEADER_IN structure(mentioned in

BAPI).

Kindly help me to solve this....

gaurav

6 REPLIES 6
Read only

Former Member
0 Likes
745

Hi,

Generally SO user exit program MV45AFZZ is used to update the Zfields.

MV45AFZZ -> is for user defined routines.

Rgds,

HR

Read only

Former Member
0 Likes
745

Hi,

Another point. You need to code in the respective form routine to fill the ZZfield values.

Hope this helps.

Rgds,

HR

Read only

Former Member
0 Likes
745

Another way...

You can directly update z-fields in VBAK using Update query if those fields are not linked to any other table.

Thanks & Regards,

Govind.

Read only

Former Member
0 Likes
745

Hi,

Actually, the data is coming through an IDOC (used for

shipment), and after that this BAPI is called, so it

updated all the fields except those z fields.

Thanks

gaurav

Read only

0 Likes
745

Updating ZTABLE you may need to do manualy. When the data comes from idoc and there will be a place where you map those data to bapi. Once the bapi is executed

1) Those datas can be exported to Memory using EXPORT and IMPORT it in order userexist for updating the Ztable.

2) Or when the return sturcture of BAPI is successful and before the BAPI COMMIT is executed, you can manualy update those ZTABLES using UPDATE.

Hope this helps you.

Cheers,

Thomas.

Read only

Former Member
0 Likes
745

Hi ,

once after the BAPIis called use the UPDATE statement to

update the Z fields in the corresponding table

Regards

Beena