‎2009 Aug 12 5:04 AM
Hi Frenz,
I want to extend BAPI_SALESORDER_CREATEFROMDAT2and want to fill new zfields in VBAK.
Could you pls help n guide me.
Thanks in advance
Gautam
‎2009 Aug 12 5:12 AM
hai ,
u can do it usingn extensionin paramter in the bapi tables paramters
for this first u have to extend ur standard tables and then u have to add the same fields in bapi_te_vbak strucutres and then u have to pass this parameters properly to extensionin
for more info u cna see the function module documentation and click extensionin parameter and it gives detials how to do and what to do
hope it will be helpful to you
m.a
‎2009 Aug 12 6:03 AM
Thanks 4 ur reply .
(zbukrs1 zbukrs2 r my 'Z' fields of VBAK)
i already append my z fields in these stru.
a) VBAKKOZ
b) VBAKKOZX
c) BAPE_VBAK
d) BAPE_VBAKX
as per SAP help.
BAPE_VBAk-ZBUKRS1 = 'TEST1' .
BAPE_VBAk-ZBUKRS2 = 'TEST2' .
...................
*BAPE_VBAk-ZFIELDN =
BAPIPAREX-STRUCTURE = 'BAPE_VBAK'.
BAPIPAREX+30 = BAPE_VBAK.
APPEND BAPIPAREX TO EXTENSIONIN.
*BAPE_VBAkX-VBELN =
*BAPE_VBAkX-POSNR =
BAPE_VBAkX-ZBUKRS1 = 'X'.
BAPE_VBAkX-ZBUKRS2 = 'X'.
...................
*BAPE_VBAkX-ZFIELDN = 'X'
BAPIPAREX-STRUCTURE = 'BAPE_VBAkX'.
BAPIPAREX+30 = BAPE_VBAkX.
APPEND BAPIPAREX TO EXTENSIONIN.
my Question is is there any loop of extension, table i read som where .
Thanks
‎2009 Aug 12 6:18 AM