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: 

Extend bapi BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos
183

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

3 REPLIES 3

Former Member
0 Kudos
72

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

0 Kudos
72

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

0 Kudos
72

yes

u can add mulitple entries

m.a