‎2006 Jul 25 12:15 PM
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
‎2006 Jul 25 12:29 PM
Hi,
Generally SO user exit program MV45AFZZ is used to update the Zfields.
MV45AFZZ -> is for user defined routines.
Rgds,
HR
‎2006 Jul 25 12:30 PM
Hi,
Another point. You need to code in the respective form routine to fill the ZZfield values.
Hope this helps.
Rgds,
HR
‎2006 Jul 25 12:34 PM
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.
‎2006 Jul 25 12:44 PM
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
‎2006 Jul 25 1:08 PM
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.
‎2006 Jul 25 1:14 PM
Hi ,
once after the BAPIis called use the UPDATE statement to
update the Z fields in the corresponding table
Regards
Beena