I have values of VKBD in Intrenal table I_VBKD and have an another internal table I_FINAL.
I need to modify a field in the standard table using BAPI.
Conditins are as below :
if COLA/Economic change date = u201800000000u2018. "SPACE Change VBKD-PRSDT = = Date of first adjustment Else Change VBKD-PRSDT = = COLA/Economic change date. Endif
My code :
LOOP AT I_FINAL INTO WG_FINAL. IF WG_FINAL-ZZCOLA_ECO = '00000000'. "sPACE READ TABLE I_VBKD INTO WG_VBKD WITH KEY VBELN = WG_FINAL-VBELN BINARY SEARCH. IF SY-SUBRC = 0. WG_VBKD-PRSDT = WG_FINAL-ZZCOLA_DATE. * Change VBKD-PRSDT = = Date of first adjustment *** Updating the database MODIFY VBKD FROM WG_VBKD. " Here instead of Modify i want to use BAPI. Can somebody provide me some sample code code how i can achive this?
Any suggestions are appreciated!
Edited by: Kittu on Apr 6, 2010 12:53 PM