Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

appending structure to BAPI

$
0
0

Hi Gurus,

 

 

My client is doing integration with E-commerce. So Customer can order from internet itself. so when he/she punches the order through internet, E-Commerce will hit SAP to create sales order. So  E-commerce Will  provide us some additional fields that are not there in sales order header (VBAK)  which need to be stored in data base.

 

so i have appended the structure(ZSTRUCT) to the sales order header (VBAK) table and added  those structure fields in VA01 Additional Data  B tab  ((header level) .After that i have appended the same structure to VBAKKOZ, VBAKKOZX, BAPE_VBAK, BAPE_VBAKX.((of course with different structure names).

 

so when the customer places an order the E-commerce will call the function module /Bapi/RFC "BAPI_SALESORDER_CREATEFROMDAT2"

so i have appended the additional fields structure to the bapisdh1, bapisdh1x  and added the structure(zstruct) in bapiparex.

 

 

but while trying to create sales order it is through a dump error saying " INVALID SUBFIELD ACCESS : OFFSET AND LENGTH TOO LARGE ".

 

gone through lot of sdn sites  : http://scn.sap.com/thread/1616966

http://scn.sap.com/thread/1108325

http://scn.sap.com/thread/57934

its very urgent please.

 

regards

rakesh.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>