‎2011 Jul 04 9:05 AM
Hi,
I am currently copying a contract to another sales organisation. I am desparate - any ideas?
I have created additional fields in vbap (extended: bape_vbap, bape_vbap, vbapkoz, vbapkozx). I have tried using BAPI_CONTRACT_CREATEFROMDATA to create the new contract using the extension to add the new fields. I get a short dump with the title 'DBIF_RSQL_INTERNAL_ERROR' and the following key words:
*************************************
"DBIF_RSQL_INTERNAL_ERROR" " "
"SAPLV45U" or "LV45UF0V"
"VBAP_BEARBEITEN"
Termination occurred in the ABAP program "SAPLV45U" - in "VBAP_BEARBEITEN".
The main program was "RSM13000 ".
In the source code you have the termination point in line 169
of the (Include) program "LV45UF0V".
The program "SAPLV45U" was started in the update system.
**********************************************
Thanks,
Leanne
‎2011 Jul 04 9:13 AM
I have used BAPI_SALESORDER_CHANGE for updating the extension fields
Declaration
DATA: ls_order_header_inx TYPE bapisdh1x,
ls_parex TYPE bapiparex,
ls_bape TYPE bape_vbak,
ls_bapex TYPE bape_vbakx,
lt_parex TYPE STANDARD TABLE OF bapiparex.
MOVE iv_vbeln TO ls_bape-vbeln.
ls_bape-zz_fields1 = is_vbak_disc-zz_fields1.
ls_bape-zz_fields2 = is_vbak_disc-zz_fields2.
ls_parex-structure = 'BAPE_VBAK'.
ls_parex-valuepart1 = ls_bape.
APPEND ls_parex TO lt_parex.
CLEAR ls_parex.
MOVE iv_vbeln TO ls_bapex-vbeln.
ls_bapex-zz_zz_fields1 = 'X'.
ls_bapex-zz_hb_zz_fields2 = 'X'.
ls_parex-structure = 'BAPE_VBAKX'.
ls_parex-valuepart1 = ls_bapex.
APPEND ls_parex TO lt_parex .
CLEAR ls_parex.
ls_order_header_inx-updateflag = 'U'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = iv_vbeln
order_header_inx = ls_order_header_inx
simulation = iv_nocommit
TABLES
return = et_return
extensionin = lt_parex.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
‎2011 Jul 04 10:58 AM
The header (VBAK) works but the item (VBAP) does not work. I have tried with iv_nocommit = ' ' and iv_nocommit = 'X'. I do not get a short dump, but the data is not updated. Any more ideas?
‎2011 Jul 04 12:08 PM