Skip to Content
0
Former Member
Dec 21, 2012 at 12:34 PM

Problem with BAPI_SALESORDER_CHANGE - Extensionin

460 Views

Dear Experts,

I am facing a problem with BAPI_SALESORDER_CHANGE - Tables - EXTENSIONIN.

I need to update the Truck Number in Sales Order.

My code involves as :

DATA : WS_BAPE_VBAP TYPE BAPE_VBAP,

WS_BAPE_VBAPX TYPE BAPE_VBAPX,

WT_EXTENSIONIN TYPE STANDARD TABLE FO BAPIPAREX WITH HEADER LINE.

WT_EXTENSIONIN-STRUCTURE = BAPE_VBAP.

WS_BAPE_VBAP-VBELN = WS-VBAP-VBELN.

WS_BAPE_VBAP-POSNR = WS_VBAP-POSNR.

WS_BAPE_VBAP-OIC_TRUCKN = '8005A'.

WT_EXTENSIONIN-VALUEPART1 = WS_BAPE_VBAP.

APPEND WT_EXTENSIONIN.

WT_EXTENSIONIN-STRUCTURE = BAPE_VBAPXO.

WS_BAPE_VBAPX-VBELN = WS-VBAP-VBELN.

WS_BAPE_VBAPX-POSNR = WS_VBAP-POSNR.

WS_BAPE_VBAPX-OIC_TRUCKN = '8005A'.

WT_EXTENSIONIN-VALUEPART1 = WS_BAPE_VBAPX.

APPEND WT_EXTENSIONIN.

and i am calling BAPI_SALESORDER_CHANGE.

But in table EXTENSIONIN-VALUEPART1 is having the lenght of 240, but what the field i want to update with values is beyond 240 length. This is the reason i am unable to update the value in SO. Even in debugging also, i cannt find the value of OIC_TRUCKN, even i pass with value.

Kindly help me to solve this issue.

Thanks & Regards,

Srinivas